Changeset 12639


Ignore:
Timestamp:
Aug 7, 2011, 6:41:13 PM (10 years ago)
Author:
jordan
Message:

(trunk gtk) since we're bumping glib's requirement to 2.26 (27 Sept 2010), it's a good time to bump the gtk+ requirement to 2.22 (32 Sept 2010).

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r12638 r12639  
    5151##
    5252##
    53 GTK_MINIMUM=2.8.0
     53GTK_MINIMUM=2.22.0
    5454AC_SUBST(GTK_MINIMUM)
    5555GLIB_MINIMUM=2.26.0
     
    241241                  [gtk+-2.0 >= $GTK_MINIMUM
    242242                   glib-2.0 >= $GLIB_MINIMUM
    243                    gio-2.0 >= $GIO_MINIMUM],
     243                   gio-2.0 >= $GIO_MINIMUM,
    244244                   gmodule-2.0 >= $GLIB_MINIMUM
    245245                   gthread-2.0 >= $GLIB_MINIMUM],
  • trunk/gtk/actions.c

    r12638 r12639  
    4040    gtr_actions_handler( gtk_action_get_name( a ), user_data );
    4141}
    42 
    43 #if !GTK_CHECK_VERSION( 2, 10, 0 )
    44  #define GTK_STOCK_SELECT_ALL NULL
    45 #endif
    4642
    4743static GtkRadioActionEntry sort_radio_entries[] =
  • trunk/gtk/details.c

    r12607 r12639  
    14461446}
    14471447
    1448 #if GTK_CHECK_VERSION( 2,12,0 )
    14491448static gboolean
    14501449onPeerViewQueryTooltip( GtkWidget   * widget,
     
    15141513    return show_tip;
    15151514}
    1516 #endif
    15171515
    15181516static void
     
    17111709                                          PEER_COL_PROGRESS,
    17121710                                          GTK_SORT_DESCENDING );
    1713 #if GTK_CHECK_VERSION( 2,12,0 )
    17141711    v = GTK_WIDGET( g_object_new( GTK_TYPE_TREE_VIEW,
    17151712                                  "model",  m,
     
    17171714                                  "has-tooltip", TRUE,
    17181715                                  NULL ) );
    1719 #else
    1720     v = GTK_WIDGET( g_object_new( GTK_TYPE_TREE_VIEW,
    1721                                   "model",  m,
    1722                                   "rules-hint", TRUE,
    1723                                   NULL ) );
    1724 #endif
    17251716    di->peer_view = v;
    17261717
    1727 #if GTK_CHECK_VERSION( 2,12,0 )
    17281718    g_signal_connect( v, "query-tooltip",
    17291719                      G_CALLBACK( onPeerViewQueryTooltip ), di );
    1730 #endif
    17311720    g_object_unref( store );
    17321721    g_signal_connect( v, "button-release-event",
  • trunk/gtk/file-list.c

    r12356 r12639  
    447447    tr_strlsize( size_str, child_data->length, sizeof size_str );
    448448
    449 #if GTK_CHECK_VERSION(2,10,0)
    450449    gtk_tree_store_insert_with_values( build->store, &child_iter, build->iter, INT_MAX,
    451450                                       FC_INDEX, child_data->index,
     
    457456                                       FC_ENABLED, enabled,
    458457                                       -1 );
    459 #else
    460     gtk_tree_store_append( build->store, &child_iter, build->iter );
    461     gtk_tree_store_set( build->store, &child_iter,
    462                         FC_INDEX, child_data->index,
    463                         FC_LABEL, child_data->name,
    464                         FC_SIZE, child_data->length,
    465                         FC_SIZE_STR, size_str,
    466                         FC_ICON, icon,
    467                         FC_PRIORITY, priority,
    468                         FC_ENABLED, enabled,
    469                         -1 );
    470 #endif
    471458
    472459    if( !isLeaf )
  • trunk/gtk/filter.c

    r12607 r12639  
    10031003
    10041004    /* add the entry field */
    1005 #if GTK_CHECK_VERSION( 2,16,0 )
    10061005    s = gtk_entry_new( );
    10071006    gtk_entry_set_icon_from_stock( GTK_ENTRY( s ), GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_CLEAR );
    10081007    g_signal_connect( s, "icon-release", G_CALLBACK( entry_clear ), NULL );
    10091008    gtk_box_pack_start( GTK_BOX( h ), s, TRUE, TRUE, 0 );
    1010 #else
    1011     s = gtk_entry_new( );
    1012     gtk_box_pack_start( GTK_BOX( h ), s, TRUE, TRUE, 0 );
    1013     w = gtk_button_new( );
    1014     gtk_button_set_relief( GTK_BUTTON( w ), GTK_RELIEF_NONE );
    1015     l = gtk_image_new_from_stock( GTK_STOCK_CLEAR, GTK_ICON_SIZE_MENU );
    1016     gtk_button_set_image( GTK_BUTTON( w ), l );
    1017     gtk_box_pack_start( GTK_BOX( h ), w, FALSE, FALSE, 0 );
    1018     g_signal_connect_swapped( w, "clicked", G_CALLBACK( entry_clear ), s );
    1019 #endif
    10201009
    10211010    g_signal_connect( s, "changed", G_CALLBACK( filter_entry_changed ), data->filter_model );
  • trunk/gtk/icons.c

    r12638 r12639  
    1010#include <glib.h>
    1111#include <gtk/gtk.h>
     12#include <gio/gio.h>
    1213#include "icons.h"
    1314
    14 #if GTK_CHECK_VERSION( 2, 12, 0 )
    15  #define USE_GIO_ICONS
    16 #endif
    17 
    18 #ifdef USE_GIO_ICONS
    19  #include <gio/gio.h>
    20 #endif
    21 
    2215#define VOID_PIXBUF_KEY "void-pixbuf"
    2316
    24 #ifdef USE_GIO_ICONS
    2517static const char *
    2618get_static_string( const char *s )
     
    3628    return g_string_chunk_insert_const( static_strings, s );
    3729}
    38 #endif
    39 
    4030
    4131typedef struct {
     
    9787}
    9888
    99 #ifdef USE_GIO_ICONS
    10089static const char *
    10190_icon_cache_get_icon_key( GIcon * icon )
     
    220209    return pixbuf;
    221210}
    222 
    223 #else /* USE_GIO_ICONS */
    224 
    225 static GdkPixbuf *
    226 icon_cache_get_mime_type_icon( IconCache * icon_cache, const char * mime_type )
    227 {
    228     GdkPixbuf  * pixbuf;
    229     const char * stock_name;
    230 
    231     if( !strcmp( mime_type, UNKNOWN_MIME_TYPE ) )
    232         stock_name = GTK_STOCK_MISSING_IMAGE;
    233     else if( !strcmp( mime_type, DIRECTORY_MIME_TYPE ) )
    234         stock_name = GTK_STOCK_DIRECTORY;
    235     else
    236         stock_name = GTK_STOCK_FILE;
    237 
    238     pixbuf = g_hash_table_lookup( icon_cache->cache, stock_name );
    239 
    240     if( pixbuf != NULL )
    241     {
    242         g_object_ref( pixbuf );
    243         return pixbuf;
    244     }
    245 
    246     pixbuf = gtk_icon_theme_load_icon( icon_cache->icon_theme,
    247                                        stock_name,
    248                                        icon_cache->icon_size,
    249                                        0, NULL );
    250     g_hash_table_insert( icon_cache->cache, (gpointer) stock_name, g_object_ref( pixbuf ));
    251     return pixbuf;
    252 }
    253 
    254 #endif
    255 
    256211
    257212GdkPixbuf *
     
    282237gtr_get_mime_type_from_filename( const char * file G_GNUC_UNUSED )
    283238{
    284 #ifdef USE_GIO_ICONS
    285239    char * tmp = g_content_type_guess( file, NULL, 0, NULL );
    286240    const char * ret = get_static_string( tmp );
    287241    g_free( tmp );
    288242    return ret;
    289 #else
    290     return "uncertain";
    291 #endif
    292 }
     243}
  • trunk/gtk/main.c

    r12638 r12639  
    395395                               gpointer         gdata UNUSED )
    396396{
    397     GdkWindow * gdk_window = gtr_widget_get_window( gtk_window );
     397    GdkWindow * gdk_window = gtk_widget_get_window( gtk_window );
    398398    const gboolean isMaximized = ( gdk_window != NULL )
    399399                              && ( gdk_window_get_state( gdk_window ) & GDK_WINDOW_STATE_MAXIMIZED );
     
    14591459}
    14601460
    1461 /* GTK+ versions before 2.18.0 don't have a default URI hook... */
    1462 #if !GTK_CHECK_VERSION(2,18,0)
    1463  #define NEED_URL_HOOK
    1464 #endif
    1465 
    1466 #ifdef NEED_URL_HOOK
    1467 static void
    1468 on_uri_clicked( GtkAboutDialog * u UNUSED, const gchar * uri, gpointer u2 UNUSED )
    1469 {
    1470     gtr_open_uri( uri );
    1471 }
    1472 #endif
    1473 
    14741461static void
    14751462show_about_dialog( GtkWindow * parent )
     
    14821469        NULL
    14831470    };
    1484 
    1485 #ifdef NEED_URL_HOOK
    1486     gtk_about_dialog_set_url_hook( on_uri_clicked, NULL, NULL );
    1487 #endif
    14881471
    14891472    d = g_object_new( GTK_TYPE_ABOUT_DIALOG,
  • trunk/gtk/open-dialog.c

    r12410 r12639  
    515515    gtr_dialog_set_content( GTK_DIALOG( w ), t );
    516516
    517 #if GTK_CHECK_VERSION(2,20,0)
    518517    if( gtk_entry_get_text_length( GTK_ENTRY( e ) ) == 0 )
    519518        gtk_widget_grab_focus( e );
    520519    else
    521520        gtk_widget_grab_focus( gtk_dialog_get_widget_for_response( GTK_DIALOG( w ), GTK_RESPONSE_ACCEPT ) );
    522 #endif
    523521
    524522    return w;
  • trunk/gtk/torrent-cell-renderer.c

    r12638 r12639  
    3535#define COMPACT_ICON_SIZE GTK_ICON_SIZE_MENU
    3636#define FULL_ICON_SIZE GTK_ICON_SIZE_DND
    37 
    38 /***
    39 ****
    40 ***/
    41 
    42 /* backwards-compatible wrapper around gtk_cell_renderer_get_padding() */
    43 static void
    44 gtr_cell_renderer_get_padding( GtkCellRenderer * cell, gint * xpad, gint * ypad )
    45 {
    46 #if GTK_CHECK_VERSION( 2,18,0 )
    47     gtk_cell_renderer_get_padding( cell, xpad, ypad );
    48 #else
    49     if( xpad != NULL ) *xpad = cell->xpad;
    50     if( ypad != NULL ) *ypad = cell->ypad;
    51 #endif
    52 }
    5337
    5438/***
     
    423407    g_string_truncate( gstr_stat, 0 );
    424408    getShortStatusString( gstr_stat, tor, st, p->upload_speed_KBps, p->download_speed_KBps );
    425     gtr_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
     409    gtk_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
    426410
    427411    /* get the idealized cell dimensions */
     
    476460    g_string_truncate( gstr_prog, 0 );
    477461    getProgressString( gstr_prog, tor, inf, st );
    478     gtr_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
     462    gtk_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
    479463
    480464    /* get the idealized cell dimensions */
     
    538522        if( y_offset ) {
    539523            int xpad, ypad;
    540             gtr_cell_renderer_get_padding( cell, &xpad, &ypad );
     524            gtk_cell_renderer_get_padding( cell, &xpad, &ypad );
    541525            *y_offset = cell_area ? (int)((cell_area->height - (ypad*2 +h)) / 2.0) : 0;
    542526        }
     
    650634    g_string_truncate( gstr_stat, 0 );
    651635    getShortStatusString( gstr_stat, tor, st, p->upload_speed_KBps, p->download_speed_KBps );
    652     gtr_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
     636    gtk_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
    653637    get_text_color( widget, st, &text_color );
    654638
     
    688672#if GTK_CHECK_VERSION( 3,0,0 )
    689673        "inverted", seed,
    690 #elif GTK_CHECK_VERSION( 2,6,0 )
     674#else
    691675        "orientation", (seed ? GTK_PROGRESS_RIGHT_TO_LEFT : GTK_PROGRESS_LEFT_TO_RIGHT),
    692676#endif
     
    739723    g_string_truncate( gstr_stat, 0 );
    740724    getStatusString( gstr_stat, tor, st, p->upload_speed_KBps, p->download_speed_KBps );
    741     gtr_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
     725    gtk_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
    742726    get_text_color( widget, st, &text_color );
    743727
     
    808792#if GTK_CHECK_VERSION( 3,0,0 )
    809793        "inverted", seed,
    810 #elif GTK_CHECK_VERSION( 2,6,0 )
     794#else
    811795        "orientation", (seed ? GTK_PROGRESS_RIGHT_TO_LEFT : GTK_PROGRESS_LEFT_TO_RIGHT),
    812796#endif
  • trunk/gtk/tr-icon.c

    r12318 r12639  
    114114    g_snprintf( tip, sizeof( tip ), _( "Transmission\nUp: %1$s %2$s\nDown: %3$s %4$s" ), up, upLimit, down, downLimit );
    115115
    116 #if GTK_CHECK_VERSION( 2,16,0 )
    117116    gtk_status_icon_set_tooltip_text( GTK_STATUS_ICON( icon ), tip );
    118 #else
    119     gtk_status_icon_set_tooltip( GTK_STATUS_ICON( icon ), tip );
    120 #endif
    121117}
    122118#endif
  • trunk/gtk/tr-prefs.c

    r12638 r12639  
    578578    w = new_check_button( s, TR_PREFS_KEY_PEX_ENABLED, core );
    579579    s = _( "PEX is a tool for exchanging peer lists with the peers you're connected to." );
    580     gtr_widget_set_tooltip_text( w, s );
     580    gtk_widget_set_tooltip_text( w, s );
    581581    hig_workarea_add_wide_control( t, &row, w );
    582582
     
    584584    w = new_check_button( s, TR_PREFS_KEY_DHT_ENABLED, core );
    585585    s = _( "DHT is a tool for finding peers without a tracker." );
    586     gtr_widget_set_tooltip_text( w, s );
     586    gtk_widget_set_tooltip_text( w, s );
    587587    hig_workarea_add_wide_control( t, &row, w );
    588588
     
    590590    w = new_check_button( s, TR_PREFS_KEY_LPD_ENABLED, core );
    591591    s = _( "LPD is a tool for finding peers on your local network." );
    592     gtr_widget_set_tooltip_text( w, s );
     592    gtk_widget_set_tooltip_text( w, s );
    593593    hig_workarea_add_wide_control( t, &row, w );
    594594
     
    876876        page->whitelist_widgets = g_slist_append( page->whitelist_widgets, w );
    877877        v = page->view = GTK_TREE_VIEW( w );
    878         gtr_widget_set_tooltip_text( w, _( "IP addresses may use wildcards, such as 192.168.*.*" ) );
     878        gtk_widget_set_tooltip_text( w, _( "IP addresses may use wildcards, such as 192.168.*.*" ) );
    879879        sel = gtk_tree_view_get_selection( v );
    880880        g_signal_connect( sel, "changed",
     
    12471247    w = new_check_button( s, TR_PREFS_KEY_UTP_ENABLED, core );
    12481248    s = _( "uTP is a tool for reducing network congestion." );
    1249     gtr_widget_set_tooltip_text( w, s );
     1249    gtk_widget_set_tooltip_text( w, s );
    12501250    hig_workarea_add_wide_control( t, &row, w );
    12511251#endif
  • trunk/gtk/tr-window.c

    r12607 r12639  
    268268    gtk_image_set_from_stock( GTK_IMAGE( p->alt_speed_image ), stock, -1 );
    269269    gtk_button_set_alignment( GTK_BUTTON( w ), 0.5, 0.5 );
    270     gtr_widget_set_tooltip_text( w, str );
     270    gtk_widget_set_tooltip_text( w, str );
    271271
    272272    g_free( str );
     
    284284****  FILTER
    285285***/
    286 
    287 #if GTK_CHECK_VERSION( 2, 12, 0 )
    288286
    289287static void
     
    334332    }
    335333}
    336 
    337 #endif
    338334
    339335static gboolean
     
    598594    mainmenu = gtr_action_get_widget( "/main-window-menu" );
    599595    w = gtr_action_get_widget( "/main-window-menu/torrent-menu/torrent-reannounce" );
    600 #if GTK_CHECK_VERSION( 2, 12, 0 )
    601     g_signal_connect( w, "query-tooltip",
    602                       G_CALLBACK( onAskTrackerQueryTooltip ), p );
    603 #endif
     596    g_signal_connect( w, "query-tooltip", G_CALLBACK( onAskTrackerQueryTooltip ), p );
    604597
    605598    /* toolbar */
     
    640633        w = gtk_button_new( );
    641634        gtk_container_add( GTK_CONTAINER( w ), gtk_image_new_from_stock( "utilities", -1 ) );
    642         gtr_widget_set_tooltip_text( w, _( "Options" ) );
     635        gtk_widget_set_tooltip_text( w, _( "Options" ) );
    643636        gtk_box_pack_start( GTK_BOX( h ), w, 0, 0, 0 );
    644637        gtk_button_set_relief( GTK_BUTTON( w ), GTK_RELIEF_NONE );
     
    681674        hbox = gtk_hbox_new( FALSE, GUI_PAD );
    682675            w = gtk_button_new( );
    683             gtr_widget_set_tooltip_text( w, _( "Statistics" ) );
     676            gtk_widget_set_tooltip_text( w, _( "Statistics" ) );
    684677            gtk_container_add( GTK_CONTAINER( w ), gtk_image_new_from_stock( "ratio", -1 ) );
    685678            gtk_button_set_relief( GTK_BUTTON( w ), GTK_RELIEF_NONE );
     
    865858gtr_window_set_busy( TrWindow * w, gboolean isBusy )
    866859{
    867     if( w && gtr_widget_get_realized( GTK_WIDGET( w ) ) )
     860    if( w && gtk_widget_get_realized( GTK_WIDGET( w ) ) )
    868861    {
    869862        GdkDisplay * display = gtk_widget_get_display( GTK_WIDGET( w ) );
    870863        GdkCursor * cursor = isBusy ? gdk_cursor_new_for_display( display, GDK_WATCH ) : NULL;
    871864
    872         gdk_window_set_cursor( gtr_widget_get_window( GTK_WIDGET( w ) ), cursor );
     865        gdk_window_set_cursor( gtk_widget_get_window( GTK_WIDGET( w ) ), cursor );
    873866        gdk_display_flush( display );
    874867
    875868        if( cursor ) {
    876 #if GTK_CHECK_VERSION(3,0,0)
     869#if GTK_CHECK_VERSION( 3,0,0 )
    877870            g_object_unref( cursor );
    878871#else
  • trunk/gtk/util.c

    r12638 r12639  
    416416        gboolean opened = FALSE;
    417417
    418 #if GTK_CHECK_VERSION(2,14,0)
    419418        if( !opened )
    420419            opened = gtk_show_uri( NULL, uri, GDK_CURRENT_TIME, NULL );
    421 #endif
    422420
    423421        if( !opened )
     
    591589
    592590void
    593 gtr_widget_set_tooltip_text( GtkWidget * w, const char * tip )
    594 {
    595 #if GTK_CHECK_VERSION( 2,12,0 )
    596     gtk_widget_set_tooltip_text( w, tip );
    597 #else
    598     static GtkTooltips * tips = NULL;
    599     if( tips == NULL )
    600         tips = gtk_tooltips_new( );
    601     gtk_tooltips_set_tip( tips, w, tip, NULL );
    602 #endif
    603 }
    604 
    605 GdkWindow*
    606 gtr_widget_get_window( GtkWidget * w )
    607 {
    608 #if GTK_CHECK_VERSION( 2,14,0 )
    609     return gtk_widget_get_window( w );
    610 #else
    611     return w->window;
    612 #endif
    613 }
    614 
    615 gboolean
    616 gtr_widget_get_realized( GtkWidget * w )
    617 {
    618 #if GTK_CHECK_VERSION( 2,20,0 )
    619     return gtk_widget_get_realized( w );
    620 #else
    621     return GTK_WIDGET_REALIZED( w ) != 0;
    622 #endif
    623 }
    624 
    625 void
    626591gtr_widget_set_visible( GtkWidget * w, gboolean b )
    627592{
     
    641606    }
    642607
    643 #if GTK_CHECK_VERSION( 2,18,0 )
    644608    gtk_widget_set_visible( w, b );
    645 #else
    646     if( b )
    647         gtk_widget_show( w );
    648     else
    649         gtk_widget_hide( w );
    650 #endif
    651 }
    652 
    653 static GtkWidget*
    654 gtr_dialog_get_content_area( GtkDialog * dialog )
    655 {
    656 #if GTK_CHECK_VERSION( 2,14,0 )
    657     return gtk_dialog_get_content_area( dialog );
    658 #else
    659     return dialog->vbox;
    660 #endif
    661609}
    662610
     
    664612gtr_dialog_set_content( GtkDialog * dialog, GtkWidget * content )
    665613{
    666     GtkWidget * vbox = gtr_dialog_get_content_area( dialog );
     614    GtkWidget * vbox = gtk_dialog_get_content_area( dialog );
    667615    gtk_box_pack_start( GTK_BOX( vbox ), content, TRUE, TRUE, 0 );
    668616    gtk_widget_show_all( content );
     
    673621***/
    674622
    675 #if !GTK_CHECK_VERSION( 2,12,0 )
    676 struct gtr_func_data
    677 {
    678     GSourceFunc function;
    679     gpointer data;
    680 };
    681 
    682 static void
    683 gtr_func_data_free( gpointer data )
    684 {
    685 #if GTK_CHECK_VERSION( 2,10,0 )
    686     g_slice_free( struct gtr_func_data, data );
    687 #else
    688     g_free( data );
    689 #endif
    690 }
    691 
    692 static struct gtr_func_data *
    693 gtr_func_data_new( GSourceFunc function, gpointer data )
    694 {
    695 #if GTK_CHECK_VERSION( 2,10,0 )
    696     struct gtr_func_data * d = g_slice_new( struct gtr_func_data );
    697 #else
    698     struct gtr_func_data * d = g_new( struct gtr_func_data, 1 );
    699 #endif
    700     d->function = function;
    701     d->data = data;
    702     return d;
    703 }
    704 
    705 static gboolean
    706 gtr_thread_func( gpointer data )
    707 {
    708     gboolean more;
    709     struct gtr_func_data * idle_data = data;
    710 
    711     gdk_threads_enter( );
    712     more = idle_data->function( idle_data->data );
    713     gdk_threads_leave( );
    714 
    715     return more;
    716 }
    717 #endif
    718 
    719623guint
    720624gtr_idle_add( GSourceFunc function, gpointer data )
    721625{
    722 #if GTK_CHECK_VERSION( 2,12,0 )
    723626    return gdk_threads_add_idle( function, data );
    724 #else
    725     return g_idle_add_full( G_PRIORITY_DEFAULT,
    726                             gtr_thread_func,
    727                             gtr_func_data_new( function, data ),
    728                             gtr_func_data_free );
    729 #endif
    730627}
    731628
     
    733630gtr_timeout_add_seconds( guint seconds, GSourceFunc function, gpointer data )
    734631{
    735 #if GTK_CHECK_VERSION( 2,14,0 )
    736632    return gdk_threads_add_timeout_seconds( seconds, function, data );
    737 #elif GTK_CHECK_VERSION( 2,12,0 )
    738     return gdk_threads_add_timeout( seconds*1000, function, data );
    739 #else
    740     return g_timeout_add_full( G_PRIORITY_DEFAULT,
    741                                seconds * 1000,
    742                                gtr_thread_func,
    743                                gtr_func_data_new( function, data ),
    744                                gtr_func_data_free );
    745 #endif
    746633}
    747634
  • trunk/gtk/util.h

    r12638 r12639  
    115115guint gtr_idle_add( GSourceFunc  func, gpointer data );
    116116
    117 /* backwards-compatible wrapper around gtk_widget_set_tooltip_text() */
    118 void gtr_widget_set_tooltip_text( GtkWidget * w, const char * tip );
    119 
    120 /* backwards-compatible wrapper around gtk_widget_get_window() */
    121 GdkWindow* gtr_widget_get_window( GtkWidget * w );
    122 
    123 /* backwards-compatible wrapper around gtk_widget_get_realized() */
    124 gboolean gtr_widget_get_realized( GtkWidget * w );
    125 
    126117/* backwards-compatible wrapper around gtk_widget_set_visible() */
    127118void gtr_widget_set_visible( GtkWidget *, gboolean );
Note: See TracChangeset for help on using the changeset viewer.