fixed the behavior when changing the unit.

2007-08-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: fixed the behavior when
	changing the unit.


svn path=/trunk/; revision=23164
This commit is contained in:
Sven Neumann 2007-08-08 23:37:10 +00:00 committed by Sven Neumann
parent 7140af83e1
commit 3dc9a2cc08
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-08-09 Sven Neumann <sven@gimp.org>
* plug-ins/print/print-page-layout.c: fixed the behavior when
changing the unit.
2007-08-08 Sven Neumann <sven@gimp.org>
* plug-ins/print/print-page-layout.c

View file

@ -678,6 +678,10 @@ print_size_info_center_changed (GtkWidget *combo)
static void
print_size_info_center_none (void)
{
/* return early if we are called from a unit change */
if (gimp_size_entry_get_unit (info.size_entry) != info.data->unit)
return;
info.data->center = CENTER_NONE;
if (info.center_combo)
@ -741,6 +745,10 @@ print_size_info_offset_max_changed (GtkAdjustment *adj,
{
guint index = GPOINTER_TO_INT (data);
/* return early if we are called from a unit change */
if (gimp_size_entry_get_unit (info.size_entry) != info.data->unit)
return;
g_signal_handlers_block_by_func (info.size_entry,
print_size_info_size_changed, NULL);