]> granicus.if.org Git - transmission/commitdiff
remove unused code: gtr_toolbar_set_orientation() is unnecessary because we always...
authorCharles Kerr <charles@transmissionbt.com>
Tue, 21 Dec 2010 16:50:41 +0000 (16:50 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 21 Dec 2010 16:50:41 +0000 (16:50 +0000)
gtk/msgwin.c
gtk/util.c
gtk/util.h

index 61f3b29957e4020966c14b0082f7c8f50581346d..993fda8df97b7c5d4e715f118ee6d8823db3ca0d 100644 (file)
@@ -399,7 +399,6 @@ msgwin_new( TrCore * core, GtkWindow * parent )
     **/
 
     toolbar = gtk_toolbar_new( );
-    gtr_toolbar_set_orientation( GTK_TOOLBAR( toolbar ), GTK_ORIENTATION_HORIZONTAL );
     gtk_toolbar_set_style( GTK_TOOLBAR( toolbar ), GTK_TOOLBAR_BOTH_HORIZ );
 
     item = gtk_tool_button_new_from_stock( GTK_STOCK_SAVE_AS );
index 5ff7858e0085f3a42e4206eba36f84af1a0f1bcf..173d6de582a9e0a287d654b11181d5689975d82c 100644 (file)
@@ -754,18 +754,6 @@ gtr_widget_set_visible( GtkWidget * w, gboolean b )
 #endif
 }
 
-void
-gtr_toolbar_set_orientation( GtkToolbar      * toolbar,
-                             GtkOrientation    orientation )
-{
-#if GTK_CHECK_VERSION( 2,16,0 )
-    gtk_orientable_set_orientation( GTK_ORIENTABLE( toolbar ), orientation );
-#else
-    gtk_toolbar_set_orientation( toolbar, orientation );
-#endif
-}
-
-
 /***
 ****
 ***/
index 8751fdba8ad31a7964f1e1615d770f4259dbab73..e66d580fdfc02727b1460852deb4b87d43680c56 100644 (file)
@@ -132,9 +132,6 @@ guint gtr_timeout_add_seconds( guint seconds, GSourceFunc func, gpointer data );
 /* backwards-compatible wrapper around gdk_threads_add_idle() */
 void gtr_idle_add( GSourceFunc  func, gpointer data );
 
-/* backwards-compatible wrapper around gtk_orientable_set_orientation() */
-void gtr_toolbar_set_orientation( GtkToolbar * tb, GtkOrientation orientation );
-
 /* backwards-compatible wrapper around gtk_widget_set_tooltip_text() */
 void gtr_widget_set_tooltip_text( GtkWidget * w, const char * tip );