[gnome-commander] Added has_action() to GnomeCmdUserActions class



commit a19d35f10795c0fa0cfeee07ef23ab419d43530c
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Fri Sep 4 23:00:53 2009 +0200

    Added has_action() to GnomeCmdUserActions class

 src/gnome-cmd-user-actions.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.h b/src/gnome-cmd-user-actions.h
index 8691b0f..2188944 100644
--- a/src/gnome-cmd-user-actions.h
+++ b/src/gnome-cmd-user-actions.h
@@ -164,7 +164,9 @@ class GnomeCmdUserActions
     void load(const gchar *section);
     void write(const gchar *section);
 
-    void clear ()                                                           {   action.clear();               }
+    void clear()                                                            {   action.clear();               }
+
+    gboolean has_action(const gchar *a)                                     {  return action_func[a]!=NULL;   }
 
     gboolean register_action(guint state, guint keyval, const gchar *name, const char *user_data=NULL);
     gboolean register_action(guint keyval, const gchar *name, const char *user_data=NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]