mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Fix some gtk warnings (#1038)
* fix gtk deprecation warning: gtk_misc_set_alignment * fix gtk deprecation warning: gtk_alignment_new * fix gtk deprecation warning: gtk_tree_view_set_rules_hint * fix gtk deprecation warning: gtk_image_new_from_stock * fixup! fix gtk deprecation warning: gtk_alignment_new * fix gtk deprecation warning: gtk_dialog_set_alternative_button_order * fix gtk deprecation warning: gtk_show_uri * fix gtk deprecation warning: gtk_widget_set_margin_left * fix gtk deprecation warning: gtk_button_set_alignment * fix gtk deprecation warning: g_type_class_add_private * fix gtk deprecation warning: gtk_menu_popup * fix gtk deprecation warning: gtk_misc_set_padding * chore: uncrustify * fix: silence G_TYPE_INSTANCE_GET_PRIVATE warning Deprecaed starting in glib 2.58 * chore: uncrustify
This commit is contained in:
@@ -398,7 +398,11 @@ void gtr_open_uri(char const* uri)
|
||||
|
||||
if (!opened)
|
||||
{
|
||||
#if GTK_CHECK_VERSION(3, 22, 0)
|
||||
opened = gtk_show_uri_on_window(NULL, uri, GDK_CURRENT_TIME, NULL);
|
||||
#else
|
||||
opened = gtk_show_uri(NULL, uri, GDK_CURRENT_TIME, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!opened)
|
||||
|
||||
Reference in New Issue
Block a user