[frogr] Use frogr_util_open_uri instead of gtk_show_uri for help URIs
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Use frogr_util_open_uri instead of gtk_show_uri for help URIs
- Date: Sat, 6 Aug 2011 22:29:32 +0000 (UTC)
commit f4526f2167a99ee41cf766e7f64b822bb19272d3
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Sun Aug 7 00:24:40 2011 +0200
Use frogr_util_open_uri instead of gtk_show_uri for help URIs
src/frogr-main-view.c | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 68aba29..e420724 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -1055,24 +1055,7 @@ _upload_pictures (FrogrMainView *self)
static void
_show_help_contents (FrogrMainView *self)
{
- FrogrMainViewPrivate *priv = NULL;
- GError *error = NULL;
-
- priv = FROGR_MAIN_VIEW_GET_PRIVATE (self);
-
- gtk_show_uri (NULL, "ghelp:frogr", gtk_get_current_event_time (), &error);
-
- if (error)
- {
- gchar *error_str = NULL;
-
- error_str = g_strdup_printf (_("Could not display help for Frogr:\n%s"),
- error->message);
- frogr_util_show_error_dialog (priv->window, error_str);
-
- g_free (error_str);
- g_error_free (error);
- }
+ frogr_util_open_uri ("ghelp:frogr");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]