Make GtkFileChooserButton use ::style-updated
This commit is contained in:
@ -222,8 +222,7 @@ static void gtk_file_chooser_button_hide (GtkWidget *wi
|
|||||||
static void gtk_file_chooser_button_map (GtkWidget *widget);
|
static void gtk_file_chooser_button_map (GtkWidget *widget);
|
||||||
static gboolean gtk_file_chooser_button_mnemonic_activate (GtkWidget *widget,
|
static gboolean gtk_file_chooser_button_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling);
|
gboolean group_cycling);
|
||||||
static void gtk_file_chooser_button_style_set (GtkWidget *widget,
|
static void gtk_file_chooser_button_style_updated (GtkWidget *widget);
|
||||||
GtkStyle *old_style);
|
|
||||||
static void gtk_file_chooser_button_screen_changed (GtkWidget *widget,
|
static void gtk_file_chooser_button_screen_changed (GtkWidget *widget,
|
||||||
GdkScreen *old_screen);
|
GdkScreen *old_screen);
|
||||||
|
|
||||||
@ -330,7 +329,7 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class)
|
|||||||
widget_class->show = gtk_file_chooser_button_show;
|
widget_class->show = gtk_file_chooser_button_show;
|
||||||
widget_class->hide = gtk_file_chooser_button_hide;
|
widget_class->hide = gtk_file_chooser_button_hide;
|
||||||
widget_class->map = gtk_file_chooser_button_map;
|
widget_class->map = gtk_file_chooser_button_map;
|
||||||
widget_class->style_set = gtk_file_chooser_button_style_set;
|
widget_class->style_updated = gtk_file_chooser_button_style_updated;
|
||||||
widget_class->screen_changed = gtk_file_chooser_button_screen_changed;
|
widget_class->screen_changed = gtk_file_chooser_button_screen_changed;
|
||||||
widget_class->mnemonic_activate = gtk_file_chooser_button_mnemonic_activate;
|
widget_class->mnemonic_activate = gtk_file_chooser_button_mnemonic_activate;
|
||||||
|
|
||||||
@ -1347,11 +1346,9 @@ change_icon_theme (GtkFileChooserButton *button)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_file_chooser_button_style_set (GtkWidget *widget,
|
gtk_file_chooser_button_style_updated (GtkWidget *widget)
|
||||||
GtkStyle *old_style)
|
|
||||||
{
|
{
|
||||||
GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->style_set (widget,
|
GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->style_updated (widget);
|
||||||
old_style);
|
|
||||||
|
|
||||||
if (gtk_widget_has_screen (widget))
|
if (gtk_widget_has_screen (widget))
|
||||||
change_icon_theme (GTK_FILE_CHOOSER_BUTTON (widget));
|
change_icon_theme (GTK_FILE_CHOOSER_BUTTON (widget));
|
||||||
|
Reference in New Issue
Block a user