[ekiga/ds-gtk-application] GActorMenu: Put different stores in different menu sections.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] GActorMenu: Put different stores in different menu sections.
- Date: Sat, 1 Nov 2014 16:48:48 +0000 (UTC)
commit cf5ef94f279c346ac426060ce288e236f82f15e3
Author: Damien Sandras <dsandras seconix com>
Date: Sat Nov 1 17:46:43 2014 +0100
GActorMenu: Put different stores in different menu sections.
lib/engine/gui/gtk-core/gactor-menu.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/gui/gtk-core/gactor-menu.cpp b/lib/engine/gui/gtk-core/gactor-menu.cpp
index 84ece30..144572f 100644
--- a/lib/engine/gui/gtk-core/gactor-menu.cpp
+++ b/lib/engine/gui/gtk-core/gactor-menu.cpp
@@ -101,10 +101,11 @@ Ekiga::GActorMenu::get_model (const Ekiga::GActorMenuStore & store)
{
int c = 0;
std::string content = as_xml ();
+
for (Ekiga::GActorMenuStore::const_iterator it = store.begin ();
it != store.end ();
it++) {
- content = content + "<section>" + (*it)->as_xml () + "<section>";
+ content = content + (*it)->as_xml ();
c += (*it)->size ();
}
content = "<?xml_content version=\"1.0\"?>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]