mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk gtk) get everything except torrent-cell-renderer building under GTK+ 3.0.5
This commit is contained in:
@@ -1561,11 +1561,18 @@ update_model( gpointer gdata )
|
||||
return !done;
|
||||
}
|
||||
|
||||
/* GTK+ versions before 2.18.0 don't have a default URI hook... */
|
||||
#if !GTK_CHECK_VERSION(2,18,0)
|
||||
#define NEED_URL_HOOK
|
||||
#endif
|
||||
|
||||
#ifdef NEED_URL_HOOK
|
||||
static void
|
||||
on_uri_clicked( GtkAboutDialog * u UNUSED, const gchar * uri, gpointer u2 UNUSED )
|
||||
{
|
||||
gtr_open_uri( uri );
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
show_about_dialog( GtkWindow * parent )
|
||||
@@ -1578,7 +1585,9 @@ show_about_dialog( GtkWindow * parent )
|
||||
NULL
|
||||
};
|
||||
|
||||
#ifdef NEED_URL_HOOK
|
||||
gtk_about_dialog_set_url_hook( on_uri_clicked, NULL, NULL );
|
||||
#endif
|
||||
|
||||
d = g_object_new( GTK_TYPE_ABOUT_DIALOG,
|
||||
"authors", authors,
|
||||
|
||||
Reference in New Issue
Block a user