diff options
author | Ali Abdallah <ali.slackware@gmail.com> | 2009-06-20 17:50:41 +0000 |
---|---|---|
committer | Ali Abdallah <ali.slackware@gmail.com> | 2009-06-20 17:50:41 +0000 |
commit | 4d4d8bfc3c5398509e2400ce46d71ad1bedca497 (patch) | |
tree | 5dd94c5d690c3c1cbfdf47609efef0a71090afc7 | |
parent | 350430889e9a6043698c1cbd078273607816b232 (diff) | |
download | ixfce4-power-manager-4d4d8bfc3c5398509e2400ce46d71ad1bedca497.tar.gz |
* libxfpm/xfpm-common.c Remove no longer used function, that's it
for Today :).
(Old svn revision: 7623)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | libxfpm/xfpm-common.c | 16 | ||||
-rw-r--r-- | libxfpm/xfpm-common.h | 4 | ||||
-rw-r--r-- | src/xfpm-engine.c | 3 |
4 files changed, 6 insertions, 21 deletions
@@ -1,4 +1,8 @@ 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"; |