Changeset 8724


Ignore:
Timestamp:
Jun 20, 2009, 11:55:36 PM (13 years ago)
Author:
charles
Message:

(trunk gtk) update some of the gtk+ calls s.t. we're not using deprecated API calls anymore

Location:
trunk/gtk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/msgwin.c

    r7658 r8724  
    460460
    461461    toolbar = gtk_toolbar_new( );
    462     gtk_toolbar_set_orientation( GTK_TOOLBAR(
    463                                      toolbar ), GTK_ORIENTATION_HORIZONTAL );
     462    gtr_toolbar_set_orientation( GTK_TOOLBAR( toolbar ), GTK_ORIENTATION_HORIZONTAL );
    464463    gtk_toolbar_set_style( GTK_TOOLBAR( toolbar ), GTK_TOOLBAR_BOTH_HORIZ );
    465464
  • trunk/gtk/tr-icon.c

    r7658 r8724  
    7171                stats.downloadCount,
    7272                downStr, upStr );
     73#if GTK_CHECK_VERSION( 2,16,0 )
     74    gtk_status_icon_set_tooltip_text( GTK_STATUS_ICON( icon ), tip );
     75#else
    7376    gtk_status_icon_set_tooltip( GTK_STATUS_ICON( icon ), tip );
     77#endif
    7478
    7579    return TRUE;
  • trunk/gtk/util.c

    r8669 r8724  
    690690#endif
    691691}
     692
     693void
     694gtr_toolbar_set_orientation( GtkToolbar      * toolbar,
     695                             GtkOrientation    orientation )
     696{
     697#if GTK_CHECK_VERSION( 2,16,0 )
     698    gtk_orientable_set_orientation( GTK_ORIENTABLE( toolbar ), orientation );
     699#else
     700    gtk_toolbar_set_orientation( toolbar, orientation );
     701#endif
     702}
  • trunk/gtk/util.h

    r8389 r8724  
    9595#ifdef GTK_MAJOR_VERSION
    9696
     97void        gtr_toolbar_set_orientation( GtkToolbar      * toolbar,
     98                                         GtkOrientation    orientation );
     99
    97100void        gtr_widget_set_tooltip_text( GtkWidget * w, const char * tip );
    98101
Note: See TracChangeset for help on using the changeset viewer.