From 4d4d8bfc3c5398509e2400ce46d71ad1bedca497 Mon Sep 17 00:00:00 2001 From: Ali Abdallah <ali.slackware@gmail.com> Date: Sat, 20 Jun 2009 17:50:41 +0000 Subject: [PATCH] * libxfpm/xfpm-common.c Remove no longer used function, that's it for Today :). (Old svn revision: 7623) --- ChangeLog | 4 ++++ libxfpm/xfpm-common.c | 16 ---------------- libxfpm/xfpm-common.h | 4 ---- src/xfpm-engine.c | 3 ++- 4 files changed, 6 insertions(+), 21 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5d0babda..e5e4af78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-06-20: 19:50 Ali aliov@xfce.org + * libxfpm/xfpm-common.c Remove no longer used function, that's it + for Today :). + 2009-06-20: 19:50 Ali aliov@xfce.org * Fix default values shown in the settings dialog. * fix issue reading default values from xfconf. diff --git a/libxfpm/xfpm-common.c b/libxfpm/xfpm-common.c index bc3a4333..c7bf3fef 100644 --- a/libxfpm/xfpm-common.c +++ b/libxfpm/xfpm-common.c @@ -77,22 +77,6 @@ xfpm_load_icon (const char *icon_name, gint size) return icon; } -gint xfpm_shutdown_string_to_int (const gchar *string) -{ - if ( xfpm_strequal("Nothing", string) ) - return 0; - else if ( xfpm_strequal("Suspend", string) ) - return 1; - else if (xfpm_strequal("Hibernate", string) ) - return 2; - else if (xfpm_strequal ("Shutdown", string) ) - return 3; - else if (xfpm_strequal ("Ask", string) ) - return 4; - - return -1; /* error here */ -} - void xfpm_lock_screen (void) { diff --git a/libxfpm/xfpm-common.h b/libxfpm/xfpm-common.h index 7d28b4c7..04d0894a 100644 --- a/libxfpm/xfpm-common.h +++ b/libxfpm/xfpm-common.h @@ -35,10 +35,6 @@ GtkBuilder *xfpm_builder_new_from_file (const gchar *file, GdkPixbuf* xfpm_load_icon (const gchar *icon_name, gint size) G_GNUC_MALLOC; - -const gchar *xfpm_int_to_shutdown_string (gint val) G_GNUC_PURE; - -gint xfpm_shutdown_string_to_int (const gchar *string) G_GNUC_PURE; void xfpm_lock_screen (void); diff --git a/src/xfpm-engine.c b/src/xfpm-engine.c index fb138609..2aa242d5 100644 --- a/src/xfpm-engine.c +++ b/src/xfpm-engine.c @@ -149,7 +149,8 @@ xfpm_engine_do_shutdown (XfpmEngine * engine) /* * Map of int to strings shutdown values */ -const gchar *xfpm_int_to_shutdown_string (gint val) +static const gchar * G_GNUC_PURE +xfpm_int_to_shutdown_string (gint val) { if ( val == XFPM_DO_NOTHING ) return "Nothing"; -- GitLab