[ekiga] Accounts: Fix icons and buttons.



commit 496934ce8b940062d89b661c737174fcd15b1d14
Author: Damien Sandras <dsandras beip be>
Date:   Sun Jun 3 12:49:58 2012 +0200

    Accounts: Fix icons and buttons.
    
    Use more intuitive icons for accounts actions.
    Fixed buttons sensitivity updates in the accounts window.

 lib/engine/components/opal/opal-account.cpp |    4 ++--
 src/gui/accounts.cpp                        |   12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 970a00a..3d45117 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -388,10 +388,10 @@ void Opal::Account::remove ()
 bool Opal::Account::populate_menu (Ekiga::MenuBuilder &builder)
 {
   if (enabled)
-    builder.add_action ("disable", _("_Disable"),
+    builder.add_action ("user-offline", _("_Disable"),
                         boost::bind (&Opal::Account::disable, this));
   else
-    builder.add_action ("gtk-apply", _("_Enable"),
+    builder.add_action ("user-available", _("_Enable"),
                         boost::bind (&Opal::Account::enable, this));
 
   builder.add_separator ();
diff --git a/src/gui/accounts.cpp b/src/gui/accounts.cpp
index 70f083f..4125f25 100644
--- a/src/gui/accounts.cpp
+++ b/src/gui/accounts.cpp
@@ -299,12 +299,12 @@ void account_toggled_cb (G_GNUC_UNUSED GtkCellRendererToggle* renderer,
 
     if (is_enabled) {
 
-      Ekiga::Activator builder ("disable");
+      Ekiga::Activator builder ("user-offline");
       account->populate_menu (builder);
     } else {
 
 
-      Ekiga::Activator builder ("enable");
+      Ekiga::Activator builder ("user-available");
       account->populate_menu (builder);
     }
   }
@@ -681,16 +681,16 @@ gm_accounts_window_new (Ekiga::ServiceCore &core)
   gtk_button_box_set_layout (GTK_BUTTON_BOX (button_box), GTK_BUTTONBOX_CENTER);
   button = gtk_button_new_with_mnemonic (_("_Enable"));
   gtk_box_pack_start (GTK_BOX (button_box), button, FALSE, FALSE, 3);
-  aw->toolbar.add_button ("enable", GTK_BUTTON (button));
+  aw->toolbar.add_button ("user-available", GTK_BUTTON (button));
   button = gtk_button_new_with_mnemonic (_("_Disable"));
   gtk_box_pack_start (GTK_BOX (button_box), button, FALSE, FALSE, 3);
-  aw->toolbar.add_button ("disable", GTK_BUTTON (button));
+  aw->toolbar.add_button ("user-offline", GTK_BUTTON (button));
   button = gtk_button_new_with_mnemonic (_("Edi_t"));
   gtk_box_pack_start (GTK_BOX (button_box), button, FALSE, FALSE, 3);
-  aw->toolbar.add_button ("edit", GTK_BUTTON (button));
+  aw->toolbar.add_button ("gtk-edit", GTK_BUTTON (button));
   button = gtk_button_new_with_mnemonic (_("_Remove"));
   gtk_box_pack_start (GTK_BOX (button_box), button, FALSE, FALSE, 3);
-  aw->toolbar.add_button ("remove", GTK_BUTTON (button));
+  aw->toolbar.add_button ("gtk-remove", GTK_BUTTON (button));
   gtk_box_pack_start (GTK_BOX (hbox), button_box, FALSE, FALSE, 10);
 
   populate_menu (window); // This will add static and dynamic actions



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