--- gimp-painter-_old/app/dialogs/about-dialog.c Tue Nov 11 00:29:01 2008 +++ gimp-painter--2.6.2/app/dialogs/about-dialog.c Mon Nov 10 21:01:52 2008 @@ -609,7 +609,7 @@ gtk_widget_show (label); #endif - label = gtk_label_new (_("gimp-painter- (release 20081103)")); + label = gtk_label_new (_("gimp-painter- (release 20081110)")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_box_reorder_child (GTK_BOX (vbox), label, 2); gtk_widget_show (label); --- gimp-painter-_old/app/widgets/gimptooloptionseditor.c Mon Nov 3 18:53:17 2008 +++ gimp-painter--2.6.2/app/widgets/gimptooloptionseditor.c Tue Nov 11 00:41:33 2008 @@ -83,6 +83,9 @@ GimpToolPresets *presets); static void gimp_tool_options_editor_save_presets (GimpToolOptionsEditor *editor); +static void gimp_tool_options_editor_style_set (GtkWidget *widget, + GtkStyle *prev_style); + G_DEFINE_TYPE_WITH_CODE (GimpToolOptionsEditor, gimp_tool_options_editor, GIMP_TYPE_EDITOR, @@ -97,10 +100,21 @@ { GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkObjectClass *gtk_object_class = GTK_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); object_class->constructor = gimp_tool_options_editor_constructor; gtk_object_class->destroy = gimp_tool_options_editor_destroy; + + widget_class->style_set = gimp_tool_options_editor_style_set; + + gtk_widget_class_install_style_property (widget_class, + g_param_spec_int ("content-border", + NULL, NULL, + 0, + G_MAXINT, + 0, + GIMP_PARAM_READABLE)); } static void @@ -522,4 +536,21 @@ gtk_widget_set_sensitive (editor->restore_button, restore_sensitive); gtk_widget_set_sensitive (editor->delete_button, delete_sensitive); gtk_widget_set_sensitive (editor->reset_button, reset_sensitive); +} + + +static void +gimp_tool_options_editor_style_set (GtkWidget *widget, + GtkStyle *prev_style) +{ + GimpToolOptionsEditor *editor = GIMP_TOOL_OPTIONS_EDITOR (widget); + gint content_border; + + //GTK_WIDGET_CLASS (parent_class)->style_set (widget, prev_style); + + gtk_widget_style_get (widget, + "content-border", &content_border, + NULL); + + gtk_container_set_border_width (GTK_CONTAINER (editor->options_vbox), content_border); }