[gimp/gtk3-port: 90/386] plug-ins: port the unit-editor to	GtkScrollable
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gimp/gtk3-port: 90/386] plug-ins: port the unit-editor to	GtkScrollable
- Date: Wed,  9 May 2018 09:29:50 +0000 (UTC)
commit 246999d4cd1b2f70184480044ae8eb48b91d34ee
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 5 16:39:22 2010 +0100
    plug-ins: port the unit-editor to GtkScrollable
 plug-ins/common/unit-editor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/unit-editor.c b/plug-ins/common/unit-editor.c
index 1751c51..d19469e 100644
--- a/plug-ins/common/unit-editor.c
+++ b/plug-ins/common/unit-editor.c
@@ -572,7 +572,7 @@ new_callback (GtkAction   *action,
           gtk_tree_selection_select_iter (gtk_tree_view_get_selection (tv),
                                           &iter);
 
-          adj = gtk_tree_view_get_vadjustment (tv);
+          adj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (tv));
           gtk_adjustment_set_value (adj, gtk_adjustment_get_upper (adj));
         }
     }
@@ -614,7 +614,7 @@ duplicate_callback (GtkAction   *action,
 
               gtk_tree_selection_select_iter (sel, &iter);
 
-              adj = gtk_tree_view_get_vadjustment (tv);
+              adj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (tv));
               gtk_adjustment_set_value (adj, gtk_adjustment_get_upper (adj));
             }
         }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]