[gimp] Use GtkAdjustment's accessors
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Use GtkAdjustment's accessors
- Date: Fri, 9 Oct 2009 21:03:25 +0000 (UTC)
commit a52a4a0fa3ed15e92165513249dc693a37295a20
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 9 22:57:58 2009 +0200
Use GtkAdjustment's accessors
plug-ins/print/print-page-layout.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/print/print-page-layout.c b/plug-ins/print/print-page-layout.c
index df23784..e883927 100644
--- a/plug-ins/print/print-page-layout.c
+++ b/plug-ins/print/print-page-layout.c
@@ -708,7 +708,9 @@ print_size_info_offset_max_changed (GtkAdjustment *adj,
g_signal_handlers_block_by_func (info.size_entry,
print_size_info_size_changed, NULL);
- gimp_size_entry_set_value (info.size_entry, index, adj->upper - adj->value);
+ gimp_size_entry_set_value (info.size_entry, index,
+ gtk_adjustment_get_upper (adj) -
+ gtk_adjustment_get_value (adj));
g_signal_handlers_unblock_by_func (info.size_entry,
print_size_info_size_changed, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]