mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
(trunk gtk) get everything except torrent-cell-renderer building under GTK+ 3.0.5
This commit is contained in:
parent
4a1a4ebcc0
commit
b0379147d9
2 changed files with 15 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -874,7 +874,12 @@ gtr_window_set_busy( TrWindow * w, gboolean isBusy )
|
|||
gdk_window_set_cursor( gtr_widget_get_window( GTK_WIDGET( w ) ), cursor );
|
||||
gdk_display_flush( display );
|
||||
|
||||
if( cursor )
|
||||
if( cursor ) {
|
||||
#if GTK_CHECK_VERSION(3,0,0)
|
||||
g_object_unref( cursor );
|
||||
#else
|
||||
gdk_cursor_unref( cursor );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue