[gtk+] gtk: use the new scrollable API to get scroll adjustments



commit a46dec176e94cbea226203fc1d7e11e58817cfa6
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 22 17:03:21 2010 +0200

    gtk: use the new scrollable API to get scroll adjustments

 gtk/gtktoolitemgroup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index aa6558a..2f69c08 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -1083,7 +1083,7 @@ gtk_tool_item_group_set_focus_cb (GtkWidget *window,
       /* Check that the focused widgets is fully visible within
        * the group's parent widget and make it visible otherwise. */
 
-      adjustment = gtk_tool_palette_get_vadjustment (GTK_TOOL_PALETTE (p));
+      adjustment = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (p));
 
       if (adjustment)
         {
@@ -1107,7 +1107,7 @@ gtk_tool_item_group_set_focus_cb (GtkWidget *window,
             }
         }
 
-      adjustment = gtk_tool_palette_get_hadjustment (GTK_TOOL_PALETTE (p));
+      adjustment = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (p));
 
       if (adjustment)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]