mirror of https://github.com/GNOME/gimp.git
g_object_get_data() should always return a size-entry here. Return with a
2007-10-27 Sven Neumann <sven@gimp.org> * app/dialogs/preferences-dialog.c (prefs_resolution_source_callback): g_object_get_data() should always return a size-entry here. Return with a warning if it doesn't. svn path=/trunk/; revision=23976
This commit is contained in:
parent
91d29f48b2
commit
4cf569afad
|
@ -1,3 +1,9 @@
|
|||
2007-10-27 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/dialogs/preferences-dialog.c (prefs_resolution_source_callback):
|
||||
g_object_get_data() should always return a size-entry here. Return
|
||||
with a warning if it doesn't.
|
||||
|
||||
2007-10-27 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpconfig/gimpscanner.c (gimp_scanner_parse_color):
|
||||
|
|
|
@ -446,11 +446,11 @@ prefs_resolution_source_callback (GtkWidget *widget,
|
|||
{
|
||||
GimpSizeEntry *entry = g_object_get_data (G_OBJECT (widget),
|
||||
"monitor_resolution_sizeentry");
|
||||
if (entry)
|
||||
{
|
||||
xres = gimp_size_entry_get_refval (entry, 0);
|
||||
yres = gimp_size_entry_get_refval (entry, 1);
|
||||
}
|
||||
|
||||
g_return_if_fail (GIMP_IS_SIZE_ENTRY (entry));
|
||||
|
||||
xres = gimp_size_entry_get_refval (entry, 0);
|
||||
yres = gimp_size_entry_get_refval (entry, 1);
|
||||
}
|
||||
|
||||
g_object_set (config,
|
||||
|
|
Loading…
Reference in New Issue