From f94e9d26b5205766ca61f8ed473a14003ceba2fe Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 13 Dec 2022 07:49:02 -0500 Subject: [PATCH] gtk: Update all callers --- gtk/gtkaboutdialog.c | 4 ++-- gtk/gtkfilechooserwidget.c | 4 ++-- gtk/gtklabel.c | 4 ++-- gtk/gtklinkbutton.c | 4 ++-- gtk/gtkprintoperation-portal.c | 4 ++-- gtk/gtkprintoperation-unix.c | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 5227a14f67..0e634e78fc 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -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); diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 5e3c7a91f8..183551700d 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -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); diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 98e7d3da70..4228fb38ae 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -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); diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index f991e192b6..f8e27ca2d6 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -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); diff --git a/gtk/gtkprintoperation-portal.c b/gtk/gtkprintoperation-portal.c index b003143982..61e4071df4 100644 --- a/gtk/gtkprintoperation-portal.c +++ b/gtk/gtkprintoperation-portal.c @@ -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); } diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c index 2cc6eb5c1f..1108927bb2 100644 --- a/gtk/gtkprintoperation-unix.c +++ b/gtk/gtkprintoperation-unix.c @@ -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); }