Commit 42ec8900 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

menu: rename show_uri to launch_uri

parent 9c897461
......@@ -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,
......
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment