[gnome-screenshot] screenshot: simplify some code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot] screenshot: simplify some code
- Date: Thu, 26 Jan 2012 21:37:50 +0000 (UTC)
commit 160df654ece83e3a82113987864a65290df479e4
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jan 26 13:46:11 2012 -0500
screenshot: simplify some code
src/screenshot-utils.c | 18 +++---------------
src/screenshot-utils.h | 3 ---
2 files changed, 3 insertions(+), 18 deletions(-)
---
diff --git a/src/screenshot-utils.c b/src/screenshot-utils.c
index b0091be..929354a 100644
--- a/src/screenshot-utils.c
+++ b/src/screenshot-utils.c
@@ -694,18 +694,6 @@ screenshot_show_error_dialog (GtkWindow *parent,
}
void
-screenshot_show_gerror_dialog (GtkWindow *parent,
- const gchar *message,
- GError *error)
-{
- g_return_if_fail (parent == NULL || GTK_IS_WINDOW (parent));
- g_return_if_fail (message != NULL);
- g_return_if_fail (error != NULL);
-
- screenshot_show_error_dialog (parent, message, error->message);
-}
-
-void
screenshot_display_help (GtkWindow *parent)
{
GError *error = NULL;
@@ -716,9 +704,9 @@ screenshot_display_help (GtkWindow *parent)
if (error)
{
- screenshot_show_gerror_dialog (parent,
- _("Error loading the help page"),
- error);
+ screenshot_show_error_dialog (parent,
+ _("Error loading the help page"),
+ error->message);
g_error_free (error);
}
}
diff --git a/src/screenshot-utils.h b/src/screenshot-utils.h
index e614611..54d6d33 100644
--- a/src/screenshot-utils.h
+++ b/src/screenshot-utils.h
@@ -30,9 +30,6 @@ GdkPixbuf *screenshot_get_pixbuf (GdkRectangle *rectangle);
void screenshot_show_error_dialog (GtkWindow *parent,
const gchar *message,
const gchar *detail);
-void screenshot_show_gerror_dialog (GtkWindow *parent,
- const gchar *message,
- GError *error);
void screenshot_play_sound_effect (const gchar *event_id,
const gchar *event_desc);
void screenshot_display_help (GtkWindow *parent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]