From 8560f256652d274c6ab33493622349055596761a Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 10 Oct 2007 06:20:01 +0000 Subject: [PATCH] an object can access its own private struct directly. 2007-10-10 Sven Neumann * app/tools/gimprectangleoptions.c (gimp_rectangle_options_string_current_updates): an object can access its own private struct directly. svn path=/trunk/; revision=23791 --- ChangeLog | 6 ++++++ app/tools/gimprectangleoptions.c | 10 +++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 12d6122a9d..777d9d48aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-10 Sven Neumann + + * app/tools/gimprectangleoptions.c + (gimp_rectangle_options_string_current_updates): an object can + access its own private struct directly. + 2007-10-10 Sven Neumann * app/widgets/gimpcontrollerinfo.c diff --git a/app/tools/gimprectangleoptions.c b/app/tools/gimprectangleoptions.c index fda91c955d..6702fecd5b 100644 --- a/app/tools/gimprectangleoptions.c +++ b/app/tools/gimprectangleoptions.c @@ -807,22 +807,18 @@ gimp_rectangle_options_string_current_updates (GimpNumberPairEntry *entry, GimpRectangleOptions *rectangle_options) { GimpRectangleOptionsPrivate *private; - gboolean use_string_current; gboolean user_override; private = GIMP_RECTANGLE_OPTIONS_GET_PRIVATE (rectangle_options); user_override = gimp_number_pair_entry_get_user_override (entry); - g_object_get (rectangle_options, - "use-string-current", &use_string_current, - NULL); - gimp_number_pair_entry_set_default_text (entry, - use_string_current ? _("Current") : NULL); + private->use_string_current ? + _("Current") : NULL); gtk_widget_set_sensitive (private->aspect_button_box, - ! use_string_current || user_override); + ! private->use_string_current || user_override); } GtkWidget *