summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-23 09:19:17 +0200
committerraveit65 <[email protected]>2017-07-23 09:19:17 +0200
commit87d0816704303908ece73bfb9ab84e33a4458a8b (patch)
treee79c5f22c79df541c3947a62a55095dff5b5542a /src
parent46addda709978a877faaeb66f966812fecc4bb49 (diff)
downloadengrampa-87d0816704303908ece73bfb9ab84e33a4458a8b.tar.bz2
engrampa-87d0816704303908ece73bfb9ab84e33a4458a8b.tar.xz
use a more common gtk+ function
Diffstat (limited to 'src')
-rw-r--r--src/fr-window.c2
-rw-r--r--src/gtk-utils.c16
-rw-r--r--src/gtk-utils.h4
3 files changed, 2 insertions, 20 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 79e16ab..e453d35 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2253,7 +2253,7 @@ open_folder (GtkWindow *parent,
if (folder == NULL)
return;
- if (! show_uri (gtk_window_get_screen (parent), folder, GDK_CURRENT_TIME, &error)) {
+ if (! gtk_show_uri (gtk_window_get_screen (parent), folder, GDK_CURRENT_TIME, &error)) {
GtkWidget *d;
char *utf8_name;
char *message;
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 6f8c2b1..a770619 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -731,20 +731,6 @@ get_folder_pixbuf_size_for_list (GtkWidget *widget)
return MAX (icon_width, icon_height);
}
-gboolean
-show_uri (GdkScreen *screen,
- const char *uri,
- guint32 timestamp,
- GError **error)
-{
- gboolean result;
-
- result = gtk_show_uri (screen, uri, timestamp, error);
-
- return result;
-}
-
-
void
show_help_dialog (GtkWindow *parent,
const char *section)
@@ -753,7 +739,7 @@ show_help_dialog (GtkWindow *parent,
GError *error = NULL;
uri = g_strconcat ("help:engrampa", section ? "/" : NULL, section, NULL);
- if (! show_uri (gtk_window_get_screen (parent), uri, GDK_CURRENT_TIME, &error)) {
+ if (! gtk_show_uri (gtk_window_get_screen (parent), uri, GDK_CURRENT_TIME, &error)) {
GtkWidget *dialog;
dialog = _gtk_message_dialog_new (parent,
diff --git a/src/gtk-utils.h b/src/gtk-utils.h
index 8c5c36a..1ec56e8 100644
--- a/src/gtk-utils.h
+++ b/src/gtk-utils.h
@@ -77,10 +77,6 @@ GdkPixbuf * get_mime_type_pixbuf (const char *mime_type,
int icon_size,
GtkIconTheme *icon_theme);
int get_folder_pixbuf_size_for_list (GtkWidget *widget);
-gboolean show_uri (GdkScreen *screen,
- const char *uri,
- guint32 timestamp,
- GError **error);
void show_help_dialog (GtkWindow *parent,
const char *section);
GtkBuilder *