Changeset 2420


Ignore:
Timestamp:
Jul 19, 2007, 3:16:30 AM (15 years ago)
Author:
charles
Message:

Transmission won't be as pretty and shiny for gtk+ 2.4 users, but it will compile and work for them

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/actions.c

    r2400 r2420  
    2121#define UNUSED
    2222#endif
     23
     24#if !GTK_CHECK_VERSION(2,6,0)
     25#define GTK_STOCK_ABOUT NULL
     26#endif
     27
    2328
    2429
  • trunk/gtk/main.c

    r2411 r2420  
    889889about ( void )
    890890{
     891#if GTK_CHECK_VERSION(2,6,0)
     892
    891893  GtkWidget * w = gtk_about_dialog_new ();
    892894  GtkAboutDialog * a = GTK_ABOUT_DIALOG (w);
     
    908910  g_signal_connect_swapped (w, "response", G_CALLBACK (gtk_widget_destroy), w);
    909911  gtk_widget_show_all (w);
     912
     913#else
     914
     915  GtkWidget * w = gtk_message_dialog_new_with_markup(
     916    NULL,
     917    GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
     918    GTK_MESSAGE_INFO,
     919    GTK_BUTTONS_CLOSE,
     920    "<b>%s %s</b>\n\n%s\n%s",
     921    g_get_application_name(), LONG_VERSION_STRING,
     922    "http://transmission.m0k.org/",
     923    _("Copyright 2005-2007 The Transmission Project"));
     924  g_signal_connect_swapped (w, "response",
     925                            G_CALLBACK (gtk_widget_destroy), w);
     926  gtk_widget_show_all( w );
     927
     928#endif
    910929}
    911930
  • trunk/gtk/torrent-inspector.c

    r2400 r2420  
    3939
    4040#define UPDATE_INTERVAL_MSEC 1500
     41
     42#if !GTK_CHECK_VERSION(2,6,0)
     43#define GTK_STOCK_FILE NULL
     44#define GTK_STOCK_DIRECTORY NULL
     45#endif
    4146
    4247/****
Note: See TracChangeset for help on using the changeset viewer.