mirror of https://github.com/GNOME/gimp.git
an object can access its own private struct directly.
2007-10-10 Sven Neumann <sven@gimp.org> * app/tools/gimprectangleoptions.c (gimp_rectangle_options_string_current_updates): an object can access its own private struct directly. svn path=/trunk/; revision=23791
This commit is contained in:
parent
5a910a3a19
commit
8560f25665
|
@ -1,3 +1,9 @@
|
|||
2007-10-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimprectangleoptions.c
|
||||
(gimp_rectangle_options_string_current_updates): an object can
|
||||
access its own private struct directly.
|
||||
|
||||
2007-10-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpcontrollerinfo.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 *
|
||||
|
|
Loading…
Reference in New Issue