mirror of
https://github.com/transmission/transmission
synced 2025-01-31 11:23:40 +00:00
Transmission won't be as pretty and shiny for gtk+ 2.4 users, but it will compile and work for them
This commit is contained in:
parent
f04f6933f6
commit
93ea89eba3
3 changed files with 29 additions and 0 deletions
|
@ -21,6 +21,11 @@
|
|||
#define UNUSED
|
||||
#endif
|
||||
|
||||
#if !GTK_CHECK_VERSION(2,6,0)
|
||||
#define GTK_STOCK_ABOUT NULL
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
extern void doAction (const char * action_name, gpointer user_data );
|
||||
|
||||
|
|
19
gtk/main.c
19
gtk/main.c
|
@ -888,6 +888,8 @@ getselection( struct cbdata * cbdata )
|
|||
static void
|
||||
about ( void )
|
||||
{
|
||||
#if GTK_CHECK_VERSION(2,6,0)
|
||||
|
||||
GtkWidget * w = gtk_about_dialog_new ();
|
||||
GtkAboutDialog * a = GTK_ABOUT_DIALOG (w);
|
||||
const char *authors[] = { "Eric Petit (Back-end; OS X)",
|
||||
|
@ -907,6 +909,23 @@ about ( void )
|
|||
gtk_about_dialog_set_translator_credits (a, _("translator-credits"));
|
||||
g_signal_connect_swapped (w, "response", G_CALLBACK (gtk_widget_destroy), w);
|
||||
gtk_widget_show_all (w);
|
||||
|
||||
#else
|
||||
|
||||
GtkWidget * w = gtk_message_dialog_new_with_markup(
|
||||
NULL,
|
||||
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
GTK_MESSAGE_INFO,
|
||||
GTK_BUTTONS_CLOSE,
|
||||
"<b>%s %s</b>\n\n%s\n%s",
|
||||
g_get_application_name(), LONG_VERSION_STRING,
|
||||
"http://transmission.m0k.org/",
|
||||
_("Copyright 2005-2007 The Transmission Project"));
|
||||
g_signal_connect_swapped (w, "response",
|
||||
G_CALLBACK (gtk_widget_destroy), w);
|
||||
gtk_widget_show_all( w );
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -39,6 +39,11 @@
|
|||
|
||||
#define UPDATE_INTERVAL_MSEC 1500
|
||||
|
||||
#if !GTK_CHECK_VERSION(2,6,0)
|
||||
#define GTK_STOCK_FILE NULL
|
||||
#define GTK_STOCK_DIRECTORY NULL
|
||||
#endif
|
||||
|
||||
/****
|
||||
***** PIECES VIEW
|
||||
****/
|
||||
|
|
Loading…
Reference in a new issue