[gnome-panel] menu: rename show_uri to launch_uri
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] menu: rename show_uri to launch_uri
- Date: Mon, 5 Feb 2018 21:37:56 +0000 (UTC)
commit 42ec89002ae9e248f2279c53be779b0db8f577f1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Feb 5 20:47:44 2018 +0200
menu: rename show_uri to launch_uri
modules/menu/gp-menu-utils.c | 6 ++----
modules/menu/gp-menu-utils.h | 5 +----
modules/menu/gp-places-menu.c | 2 +-
3 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/modules/menu/gp-menu-utils.c b/modules/menu/gp-menu-utils.c
index 927c221..7dd291d 100644
--- a/modules/menu/gp-menu-utils.c
+++ b/modules/menu/gp-menu-utils.c
@@ -325,15 +325,13 @@ gp_menu_utils_app_info_launch (GDesktopAppInfo *app_info)
}
void
-gp_menu_utils_show_uri (const gchar *uri,
- GtkWindow *parent,
- guint32 timestamp)
+gp_menu_utils_launch_uri (const gchar *uri)
{
GError *error;
GtkWidget *dialog;
error = NULL;
- if (gtk_show_uri_on_window (parent, uri, timestamp, &error))
+ if (gtk_show_uri_on_window (NULL, uri, GDK_CURRENT_TIME, &error))
return;
dialog = gtk_message_dialog_new (NULL, 0,
diff --git a/modules/menu/gp-menu-utils.h b/modules/menu/gp-menu-utils.h
index 771f202..ef690a8 100644
--- a/modules/menu/gp-menu-utils.h
+++ b/modules/menu/gp-menu-utils.h
@@ -19,15 +19,12 @@
#define GP_MENU_UTILS_H
#include <gio/gdesktopappinfo.h>
-#include <gtk/gtk.h>
G_BEGIN_DECLS
void gp_menu_utils_app_info_launch (GDesktopAppInfo *app_info);
-void gp_menu_utils_show_uri (const gchar *uri,
- GtkWindow *parent,
- guint32 timestamp);
+void gp_menu_utils_launch_uri (const gchar *uri);
GIcon *gp_menu_utils_get_icon_for_file (GFile *file);
diff --git a/modules/menu/gp-places-menu.c b/modules/menu/gp-places-menu.c
index 029dfbb..b450bcd 100644
--- a/modules/menu/gp-places-menu.c
+++ b/modules/menu/gp-places-menu.c
@@ -58,7 +58,7 @@ static void
uri_activate_cb (GtkWidget *item,
const gchar *uri)
{
- gp_menu_utils_show_uri (uri, NULL, GDK_CURRENT_TIME);
+ gp_menu_utils_launch_uri (uri);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]