зеркало из https://github.com/mozilla/gecko-dev.git
bug 1343802 remove unused moz_gtk_enable_style_props r=jhorak+328198
MozReview-Commit-ID: KbAIRCyqmJ8 --HG-- extra : rebase_source : 4b468d9b6bab63a69df389d1a7624272f9ec1a43
This commit is contained in:
Родитель
926cc5294b
Коммит
8abe43df06
|
@ -66,7 +66,6 @@ static GtkWidget* gHPanedWidget;
|
|||
static GtkWidget* gVPanedWidget;
|
||||
static GtkWidget* gScrolledWindowWidget;
|
||||
|
||||
static style_prop_t style_prop_func;
|
||||
static gboolean have_arrow_scaling;
|
||||
static gboolean is_initialized;
|
||||
|
||||
|
@ -79,13 +78,6 @@ moz_gtk_set_widget_name(GtkWidget* widget)
|
|||
gtk_widget_set_name(widget, "MozillaGtkWidget");
|
||||
}
|
||||
|
||||
gint
|
||||
moz_gtk_enable_style_props(style_prop_t styleGetProp)
|
||||
{
|
||||
style_prop_func = styleGetProp;
|
||||
return MOZ_GTK_SUCCESS;
|
||||
}
|
||||
|
||||
static gint
|
||||
ensure_window_widget()
|
||||
{
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
#include <math.h>
|
||||
|
||||
static style_prop_t style_prop_func;
|
||||
static gboolean have_arrow_scaling;
|
||||
static gboolean checkbox_check_state;
|
||||
static gboolean notebook_has_tab_gap;
|
||||
|
@ -77,13 +76,6 @@ GetStateFlagsFromGtkTabFlags(GtkTabFlags flags)
|
|||
GTK_STATE_FLAG_NORMAL : GTK_STATE_FLAG_ACTIVE;
|
||||
}
|
||||
|
||||
gint
|
||||
moz_gtk_enable_style_props(style_prop_t styleGetProp)
|
||||
{
|
||||
style_prop_func = styleGetProp;
|
||||
return MOZ_GTK_SUCCESS;
|
||||
}
|
||||
|
||||
gint
|
||||
moz_gtk_init()
|
||||
{
|
||||
|
|
|
@ -67,9 +67,6 @@ typedef enum {
|
|||
MOZ_GTK_TAB_SELECTED = 1 << 10
|
||||
} GtkTabFlags;
|
||||
|
||||
/* function type for moz_gtk_enable_style_props */
|
||||
typedef gint (*style_prop_t)(GtkStyle*, const gchar*, gint);
|
||||
|
||||
/*** result/error codes ***/
|
||||
#define MOZ_GTK_SUCCESS 0
|
||||
#define MOZ_GTK_UNKNOWN_WIDGET -1
|
||||
|
@ -271,15 +268,6 @@ typedef enum {
|
|||
*/
|
||||
gint moz_gtk_init();
|
||||
|
||||
/**
|
||||
* Enable GTK+ 1.2.9+ theme enhancements. You must provide a pointer
|
||||
* to the GTK+ 1.2.9+ function "gtk_style_get_prop_experimental".
|
||||
* styleGetProp: pointer to gtk_style_get_prop_experimental
|
||||
*
|
||||
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
||||
*/
|
||||
gint moz_gtk_enable_style_props(style_prop_t styleGetProp);
|
||||
|
||||
/**
|
||||
* Perform cleanup of the drawing library. You should call this function
|
||||
* when your program exits, or you no longer need the library.
|
||||
|
|
Загрузка…
Ссылка в новой задаче