[ekiga] Changed icon names from "gtk-foo" to "foo" when the piece of code was supposed to be gui-independent



commit 000a8348ec0062cac20dbe07d3dadeb4d86a2825
Author: Julien Puydt <jpuydt free fr>
Date:   Thu Jun 14 22:34:10 2012 +0200

    Changed icon names from "gtk-foo" to "foo" when the piece of code was supposed to be gui-independent
    
    Let the gui code translate to what it wants!

 lib/engine/addressbook/contact-core.cpp            |    2 +-
 .../components/call-history/history-book.cpp       |    2 +-
 .../components/local-roster/local-cluster.cpp      |    2 +-
 lib/engine/components/local-roster/local-heap.cpp  |    4 ++--
 .../components/local-roster/local-presentity.cpp   |    4 ++--
 .../local-roster/local-roster-bridge.cpp           |    2 +-
 lib/engine/components/opal/opal-account.cpp        |    4 ++--
 lib/engine/components/opal/opal-bank.cpp           |    8 ++++----
 8 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/lib/engine/addressbook/contact-core.cpp b/lib/engine/addressbook/contact-core.cpp
index 558bbb4..09347bd 100644
--- a/lib/engine/addressbook/contact-core.cpp
+++ b/lib/engine/addressbook/contact-core.cpp
@@ -57,7 +57,7 @@ Ekiga::ContactCore::populate_menu (MenuBuilder &builder)
 {
   bool populated = false;
 
-  builder.add_action ("gtk-search", _("_Find"), &on_search);
+  builder.add_action ("search", _("_Find"), &on_search);
   populated = true;
 
   for (std::list<SourcePtr >::const_iterator iter = sources.begin ();
diff --git a/lib/engine/components/call-history/history-book.cpp b/lib/engine/components/call-history/history-book.cpp
index be2fbef..40752e5 100644
--- a/lib/engine/components/call-history/history-book.cpp
+++ b/lib/engine/components/call-history/history-book.cpp
@@ -133,7 +133,7 @@ History::Book::add (const std::string & name,
 bool
 History::Book::populate_menu (Ekiga::MenuBuilder &builder)
 {
-  builder.add_action ("gtk-clear",
+  builder.add_action ("clear",
 		      _("Clear List"), boost::bind (&History::Book::clear, this));
   return true;
 }
diff --git a/lib/engine/components/local-roster/local-cluster.cpp b/lib/engine/components/local-roster/local-cluster.cpp
index c19b2ab..a331847 100644
--- a/lib/engine/components/local-roster/local-cluster.cpp
+++ b/lib/engine/components/local-roster/local-cluster.cpp
@@ -79,7 +79,7 @@ Local::Cluster::existing_groups () const
 bool
 Local::Cluster::populate_menu (Ekiga::MenuBuilder& builder)
 {
-  builder.add_action ("gtk-new", _("New contact"),
+  builder.add_action ("new", _("New contact"),
 		      boost::bind (&Local::Cluster::on_new_presentity, this));
 
   return true;
diff --git a/lib/engine/components/local-roster/local-heap.cpp b/lib/engine/components/local-roster/local-heap.cpp
index 30a9528..883c388 100644
--- a/lib/engine/components/local-roster/local-heap.cpp
+++ b/lib/engine/components/local-roster/local-heap.cpp
@@ -115,7 +115,7 @@ Local::Heap::get_name () const
 bool
 Local::Heap::populate_menu (Ekiga::MenuBuilder &builder)
 {
-  builder.add_action ("gtk-new", _("New contact"),
+  builder.add_action ("new", _("New contact"),
 		      boost::bind (&Local::Heap::new_presentity, this, "", ""));
   return true;
 }
@@ -125,7 +125,7 @@ bool
 Local::Heap::populate_menu_for_group (const std::string name,
 				      Ekiga::MenuBuilder& builder)
 {
-  builder.add_action ("gtk-edit", _("Rename"),
+  builder.add_action ("edit", _("Rename"),
 		      boost::bind (&Local::Heap::on_rename_group, this, name));
   return true;
 }
diff --git a/lib/engine/components/local-roster/local-presentity.cpp b/lib/engine/components/local-roster/local-presentity.cpp
index 403b4b2..b154b11 100644
--- a/lib/engine/components/local-roster/local-presentity.cpp
+++ b/lib/engine/components/local-roster/local-presentity.cpp
@@ -237,9 +237,9 @@ Local::Presentity::populate_menu (Ekiga::MenuBuilder &builder)
   if (populated)
     builder.add_separator ();
 
-  builder.add_action ("gtk-edit", _("_Edit"),
+  builder.add_action ("edit", _("_Edit"),
 		      boost::bind (&Local::Presentity::edit_presentity, this));
-  builder.add_action ("gtk-remove", _("_Remove"),
+  builder.add_action ("remove", _("_Remove"),
 		      boost::bind (&Local::Presentity::remove, this));
 
   return true;
diff --git a/lib/engine/components/local-roster/local-roster-bridge.cpp b/lib/engine/components/local-roster/local-roster-bridge.cpp
index 963b045..1517f61 100644
--- a/lib/engine/components/local-roster/local-roster-bridge.cpp
+++ b/lib/engine/components/local-roster/local-roster-bridge.cpp
@@ -90,7 +90,7 @@ Local::ContactDecorator::populate_menu (Ekiga::ContactPtr contact,
 
     if (!heap->has_presentity_with_uri (uri)) {
 
-      builder.add_action ("gtk-add", _("Add to local roster"),
+      builder.add_action ("add", _("Add to local roster"),
 			  boost::bind (&Local::Heap::new_presentity, heap.get (),
 			  contact->get_name (), uri));
       populated = true;
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 3d45117..8a5cb46 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -396,9 +396,9 @@ bool Opal::Account::populate_menu (Ekiga::MenuBuilder &builder)
 
   builder.add_separator ();
 
-  builder.add_action ("gtk-edit", _("_Edit"),
+  builder.add_action ("edit", _("_Edit"),
 		      boost::bind (&Opal::Account::edit, this));
-  builder.add_action ("gtk-remove", _("_Remove"),
+  builder.add_action ("remove", _("_Remove"),
 		      boost::bind (&Opal::Account::remove, this));
 
   if (type == DiamondCard) {
diff --git a/lib/engine/components/opal/opal-bank.cpp b/lib/engine/components/opal/opal-bank.cpp
index f2b11e5..b74efdc 100644
--- a/lib/engine/components/opal/opal-bank.cpp
+++ b/lib/engine/components/opal/opal-bank.cpp
@@ -73,13 +73,13 @@ Opal::Bank::Bank (Ekiga::ServiceCore &_core): core(_core)
 bool
 Opal::Bank::populate_menu (Ekiga::MenuBuilder & builder)
 {
-  builder.add_action ("gtk-add", _("_Add an Ekiga.net Account"),
+  builder.add_action ("add", _("_Add an Ekiga.net Account"),
 		      boost::bind (&Opal::Bank::new_account, this, Opal::Account::Ekiga, "", ""));
-  builder.add_action ("gtk-add", _("_Add an Ekiga Call Out Account"),
+  builder.add_action ("add", _("_Add an Ekiga Call Out Account"),
 		      boost::bind (&Opal::Bank::new_account, this, Opal::Account::DiamondCard, "", ""));
-  builder.add_action ("gtk-add", _("_Add a SIP Account"),
+  builder.add_action ("add", _("_Add a SIP Account"),
 		      boost::bind (&Opal::Bank::new_account, this, Opal::Account::SIP, "", ""));
-  builder.add_action ("gtk-add", _("_Add an H.323 Account"),
+  builder.add_action ("add", _("_Add an H.323 Account"),
 		      boost::bind (&Opal::Bank::new_account, this, Opal::Account::H323, "", ""));
 
   return true;



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