[gimp] Use gtk_orientable_set_orientation() instead of deprecated



commit b64fe8779a656e57a5ce2d28e8f0e27f18004af2
Author: Manish Singh <yosh gimp org>
Date:   Sun May 24 10:41:18 2009 -0700

    Use gtk_orientable_set_orientation() instead of deprecated
    gtk_toolbar_set_orientation()
---
 plug-ins/imagemap/imap_menu.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/plug-ins/imagemap/imap_menu.c b/plug-ins/imagemap/imap_menu.c
index 3845afc..ab3e8ef 100644
--- a/plug-ins/imagemap/imap_menu.c
+++ b/plug-ins/imagemap/imap_menu.c
@@ -516,8 +516,8 @@ make_tools(GtkWidget *window)
 
   handlebox = gtk_handle_box_new ();
   toolbar = gtk_ui_manager_get_widget (ui_manager, "/Tools");
-  gtk_toolbar_set_orientation (GTK_TOOLBAR (toolbar),
-			       GTK_ORIENTATION_VERTICAL);
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (toolbar),
+                                  GTK_ORIENTATION_VERTICAL);
 
   gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_ICONS);
   gtk_container_set_border_width (GTK_CONTAINER (toolbar), 0);
@@ -536,9 +536,10 @@ make_selection_toolbar(void)
 
   toolbar = gtk_ui_manager_get_widget (ui_manager, "/Selection");
 
-  gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), GTK_TOOLBAR_ICONS);
-  gtk_toolbar_set_orientation(GTK_TOOLBAR(toolbar), GTK_ORIENTATION_VERTICAL);
-  gtk_container_set_border_width(GTK_CONTAINER(toolbar), 0);
+  gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_ICONS);
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (toolbar),
+                                  GTK_ORIENTATION_VERTICAL);
+  gtk_container_set_border_width (GTK_CONTAINER (toolbar), 0);
 
   gtk_widget_show (toolbar);
   return toolbar;



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