Changeset 11560


Ignore:
Timestamp:
Dec 21, 2010, 4:50:41 PM (11 years ago)
Author:
charles
Message:

remove unused code: gtr_toolbar_set_orientation() is unnecessary because we always use the default setting

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/msgwin.c

    r11337 r11560  
    400400
    401401    toolbar = gtk_toolbar_new( );
    402     gtr_toolbar_set_orientation( GTK_TOOLBAR( toolbar ), GTK_ORIENTATION_HORIZONTAL );
    403402    gtk_toolbar_set_style( GTK_TOOLBAR( toolbar ), GTK_TOOLBAR_BOTH_HORIZ );
    404403
  • trunk/gtk/util.c

    r11522 r11560  
    755755}
    756756
    757 void
    758 gtr_toolbar_set_orientation( GtkToolbar      * toolbar,
    759                              GtkOrientation    orientation )
    760 {
    761 #if GTK_CHECK_VERSION( 2,16,0 )
    762     gtk_orientable_set_orientation( GTK_ORIENTABLE( toolbar ), orientation );
    763 #else
    764     gtk_toolbar_set_orientation( toolbar, orientation );
    765 #endif
    766 }
    767 
    768 
    769757/***
    770758****
  • trunk/gtk/util.h

    r11253 r11560  
    133133void gtr_idle_add( GSourceFunc  func, gpointer data );
    134134
    135 /* backwards-compatible wrapper around gtk_orientable_set_orientation() */
    136 void gtr_toolbar_set_orientation( GtkToolbar * tb, GtkOrientation orientation );
    137 
    138135/* backwards-compatible wrapper around gtk_widget_set_tooltip_text() */
    139136void gtr_widget_set_tooltip_text( GtkWidget * w, const char * tip );
Note: See TracChangeset for help on using the changeset viewer.