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:
Sven Neumann 2007-10-27 20:18:53 +00:00 committed by Sven Neumann
parent 91d29f48b2
commit 4cf569afad
2 changed files with 11 additions and 5 deletions

View File

@ -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):

View File

@ -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,