From c0723bcac8aa374eacb21f0fb2072d0a0ab4142c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 21 Dec 2010 16:50:41 +0000 Subject: [PATCH] remove unused code: gtr_toolbar_set_orientation() is unnecessary because we always use the default setting --- gtk/msgwin.c | 1 - gtk/util.c | 12 ------------ gtk/util.h | 3 --- 3 files changed, 16 deletions(-) diff --git a/gtk/msgwin.c b/gtk/msgwin.c index 61f3b2995..993fda8df 100644 --- a/gtk/msgwin.c +++ b/gtk/msgwin.c @@ -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 ); diff --git a/gtk/util.c b/gtk/util.c index 5ff7858e0..173d6de58 100644 --- a/gtk/util.c +++ b/gtk/util.c @@ -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 -} - - /*** **** ***/ diff --git a/gtk/util.h b/gtk/util.h index 8751fdba8..e66d580fd 100644 --- a/gtk/util.h +++ b/gtk/util.h @@ -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 ); -- 2.40.0