[ekiga] GActorMenu: Show all available actions.



commit 6304fa2b45d18f1b17c0d41d00b9261875c1c499
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Jan 11 15:16:55 2015 +0100

    GActorMenu: Show all available actions.

 lib/engine/gui/gtk-core/gactor-menu.cpp |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/lib/engine/gui/gtk-core/gactor-menu.cpp b/lib/engine/gui/gtk-core/gactor-menu.cpp
index 7393c9f..d331e22 100644
--- a/lib/engine/gui/gtk-core/gactor-menu.cpp
+++ b/lib/engine/gui/gtk-core/gactor-menu.cpp
@@ -222,14 +222,12 @@ Ekiga::GActorMenu::as_xml (const std::string & id,
 
   for (it = obj.begin(); it != obj.end(); ++it) {
 
-    if ((*it)->is_enabled ()) {
-      xml_content +=
-        "      <item>"
-        "        <attribute name=\"label\" translatable=\"yes\">"+(*it)->get_description ()+"</attribute>"
-        "        <attribute name=\"action\">" + context + "."+(*it)->get_name ()+"</attribute>"
-        "      </item>";
-      n++;
-    }
+    xml_content +=
+      "      <item>"
+      "        <attribute name=\"label\" translatable=\"yes\">"+(*it)->get_description ()+"</attribute>"
+      "        <attribute name=\"action\">" + context + "."+(*it)->get_name ()+"</attribute>"
+      "      </item>";
+    n++;
   }
 
   xml_content +=


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