[gimp/gtk3-port: 200/228] app: port GimpToolbox to GtkWidget::style_updated()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 200/228] app: port GimpToolbox to GtkWidget::style_updated()
- Date: Mon, 14 Jan 2013 01:16:51 +0000 (UTC)
commit bb9538b57f716f7e258ef317e0dd0d911f9ce06d
Author: Michael Natterer <mitch gimp org>
Date: Wed Feb 16 23:12:10 2011 +0100
app: port GimpToolbox to GtkWidget::style_updated()
app/widgets/gimptoolbox.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c
index 2dcb45d..6120d7f 100644
--- a/app/widgets/gimptoolbox.c
+++ b/app/widgets/gimptoolbox.c
@@ -98,8 +98,7 @@ static void gimp_toolbox_get_property (GObject *object,
GParamSpec *pspec);
static void gimp_toolbox_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
-static void gimp_toolbox_style_set (GtkWidget *widget,
- GtkStyle *previous_style);
+static void gimp_toolbox_style_updated (GtkWidget *widget);
static gboolean gimp_toolbox_button_press_event (GtkWidget *widget,
GdkEventButton *event);
static void gimp_toolbox_drag_leave (GtkWidget *widget,
@@ -163,7 +162,7 @@ gimp_toolbox_class_init (GimpToolboxClass *klass)
object_class->get_property = gimp_toolbox_get_property;
widget_class->size_allocate = gimp_toolbox_size_allocate;
- widget_class->style_set = gimp_toolbox_style_set;
+ widget_class->style_updated = gimp_toolbox_style_updated;
widget_class->button_press_event = gimp_toolbox_button_press_event;
dock_class->get_description = gimp_toolbox_get_description;
@@ -300,8 +299,7 @@ gimp_toolbox_constructed (GObject *object)
gimp_toolbox_dnd_init (GIMP_TOOLBOX (toolbox), toolbox->p->vbox);
- gimp_toolbox_style_set (GTK_WIDGET (toolbox),
- gtk_widget_get_style (GTK_WIDGET (toolbox)));
+ gimp_dock_invalidate_geometry (GIMP_DOCK (toolbox));
}
static void
@@ -419,10 +417,9 @@ gimp_toolbox_size_allocate (GtkWidget *widget,
}
static void
-gimp_toolbox_style_set (GtkWidget *widget,
- GtkStyle *previous_style)
+gimp_toolbox_style_updated (GtkWidget *widget)
{
- GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style);
+ GTK_WIDGET_CLASS (parent_class)->style_updated (widget);
gimp_dock_invalidate_geometry (GIMP_DOCK (widget));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]