Changeset 12354


Ignore:
Timestamp:
Apr 12, 2011, 11:13:41 AM (11 years ago)
Author:
jordan
Message:

(trunk gtk) transmission-gtk requires GTK+ 2.8 or higher, so remove the `#if GTK_CHECK_VERSION(2,8,0)' checks because we already know the answer.

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/actions.c

    r12068 r12354  
    4040    gtr_actions_handler( gtk_action_get_name( a ), user_data );
    4141}
    42 
    43 #if !GTK_CHECK_VERSION( 2, 8, 0 )
    44  #define GTK_STOCK_INFO GTK_STOCK_PROPERTIES
    45 #endif
    4642
    4743#if !GTK_CHECK_VERSION( 2, 10, 0 )
  • trunk/gtk/main.c

    r12234 r12354  
    7070#define MY_READABLE_NAME "transmission-gtk"
    7171
    72 #if GTK_CHECK_VERSION( 2, 8, 0 )
    73  #define SHOW_LICENSE
     72#define SHOW_LICENSE
    7473static const char * LICENSE =
    7574"The OS X client, CLI client, and parts of libtransmission are licensed under the terms of the MIT license.\n\n"
     
    7776"1. The MIT-licensed portions of Transmission listed above are exempt from GPLv2 clause 2(b) and may retain their MIT license.\n\n"
    7877"2. Permission is granted to link the code in this release with the OpenSSL project's 'OpenSSL' library and to distribute the linked executables. Works derived from Transmission may, at their authors' discretion, keep or delete this exception.";
    79 #endif
    8078
    8179struct cbdata
     
    105103gtr_window_present( GtkWindow * window )
    106104{
    107 #if GTK_CHECK_VERSION( 2, 8, 0 )
    108105    gtk_window_present_with_time( window, gtk_get_current_event_time( ) );
    109 #else
    110     gtk_window_present( window );
    111 #endif
    112106}
    113107
     
    13231317}
    13241318
    1325 #if GTK_CHECK_VERSION( 2, 8, 0 )
    13261319static gboolean
    13271320on_main_window_focus_in( GtkWidget      * widget UNUSED,
     
    13361329}
    13371330
    1338 #endif
    1339 
    13401331static void
    13411332on_add_torrent( TrCore * core, tr_ctor * ctor, gpointer gdata )
     
    13441335    GtkWidget * w = gtr_torrent_options_dialog_new( cbdata->wind, core, ctor );
    13451336
    1346 #if GTK_CHECK_VERSION( 2, 8, 0 )
    13471337    g_signal_connect( w, "focus-in-event",
    13481338                      G_CALLBACK( on_main_window_focus_in ),  cbdata );
    13491339    if( cbdata->wind )
    13501340        gtk_window_set_urgency_hint( cbdata->wind, TRUE );
    1351 #endif
    13521341
    13531342    gtk_widget_show( w );
  • trunk/gtk/tr-window.c

    r12318 r12354  
    4040#include "util.h"
    4141
    42 #if !GTK_CHECK_VERSION( 2, 8, 0 )
    43 static void
    44 gtk_tree_view_column_queue_resize( GtkTreeViewColumn * column ) /* yuck */
    45 {
    46     const int spacing = gtk_tree_view_column_get_spacing( column );
    47 
    48     gtk_tree_view_column_set_spacing( column, spacing + 1 );
    49     gtk_tree_view_column_set_spacing( column, spacing );
    50 }
    51 
    52 #endif
    53 
    5442typedef struct
    5543{
Note: See TracChangeset for help on using the changeset viewer.