gtk: Update all callers

This commit is contained in:
Matthias Clasen 2022-12-13 07:49:02 -05:00
parent 69cc4b42cf
commit f94e9d26b5
6 changed files with 12 additions and 12 deletions

View File

@ -935,10 +935,10 @@ gtk_about_dialog_activate_link (GtkAboutDialog *about,
GtkFileLauncher *launcher;
GFile *file;
launcher = gtk_file_launcher_new ();
file = g_file_new_for_uri (uri);
launcher = gtk_file_launcher_new (file);
gtk_file_launcher_launch (launcher, GTK_WINDOW (about), file, NULL, NULL, NULL);
gtk_file_launcher_launch (launcher, GTK_WINDOW (about), NULL, NULL, NULL);
g_object_unref (launcher);
g_object_unref (file);

View File

@ -1375,8 +1375,8 @@ open_folder_cb (GSimpleAction *action,
info = g_list_model_get_item (G_LIST_MODEL (impl->selection_model), impl->browse_files_popover_item);
file = _gtk_file_info_get_file (info);
launcher = gtk_file_launcher_new ();
gtk_file_launcher_open_containing_folder (launcher, toplevel, file, NULL, NULL, NULL);
launcher = gtk_file_launcher_new (file);
gtk_file_launcher_open_containing_folder (launcher, toplevel, NULL, NULL, NULL);
g_object_unref (launcher);
g_clear_object (&info);

View File

@ -2109,8 +2109,8 @@ gtk_label_activate_link (GtkLabel *self,
return FALSE;
file = g_file_new_for_uri (uri);
launcher = gtk_file_launcher_new ();
gtk_file_launcher_launch (launcher, GTK_WINDOW (toplevel), file, NULL, NULL, NULL);
launcher = gtk_file_launcher_new (file);
gtk_file_launcher_launch (launcher, GTK_WINDOW (toplevel), NULL, NULL, NULL);
g_object_unref (launcher);
g_object_unref (file);

View File

@ -485,8 +485,8 @@ gtk_link_button_activate_link (GtkLinkButton *link_button)
toplevel = GTK_WIDGET (gtk_widget_get_root (GTK_WIDGET (link_button)));
file = g_file_new_for_uri (link_button->uri);
launcher = gtk_file_launcher_new ();
gtk_file_launcher_launch (launcher, GTK_WINDOW (toplevel), file, NULL, NULL, NULL);
launcher = gtk_file_launcher_new (file);
gtk_file_launcher_launch (launcher, GTK_WINDOW (toplevel), NULL, NULL, NULL);
g_object_unref (launcher);
g_object_unref (file);

View File

@ -681,8 +681,8 @@ gtk_print_operation_portal_launch_preview (GtkPrintOperation *op,
GtkFileLauncher *launcher;
file = g_file_new_for_path (filename);
launcher = gtk_file_launcher_new ();
gtk_file_launcher_launch (launcher, parent, file, NULL, NULL, NULL);
launcher = gtk_file_launcher_new (file);
gtk_file_launcher_launch (launcher, parent, NULL, NULL, NULL);
g_object_unref (launcher);
g_object_unref (file);
}

View File

@ -312,8 +312,8 @@ gtk_print_operation_unix_launch_preview (GtkPrintOperation *op,
g_clear_error (&error);
file = g_file_new_for_path (filename);
launcher = gtk_file_launcher_new ();
gtk_file_launcher_launch (launcher, parent, file, NULL, NULL, NULL);
launcher = gtk_file_launcher_new (file);
gtk_file_launcher_launch (launcher, parent, NULL, NULL, NULL);
g_object_unref (launcher);
g_object_unref (file);
}