[ekiga] Simplified the accounts window api
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Simplified the accounts window api
- Date: Thu, 20 Jun 2013 19:22:36 +0000 (UTC)
commit 904deff6c919452bf7b6877113983033c5307826
Author: Julien Puydt <jpuydt free fr>
Date: Thu Jun 20 18:42:10 2013 +0200
Simplified the accounts window api
lib/engine/gui/gtk-frontend/accounts-window.cpp | 10 ----------
lib/engine/gui/gtk-frontend/accounts-window.h | 3 ---
lib/engine/gui/gtk-frontend/gtk-frontend.cpp | 6 +++---
3 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/accounts-window.cpp b/lib/engine/gui/gtk-frontend/accounts-window.cpp
index d253276..8dbbc63 100644
--- a/lib/engine/gui/gtk-frontend/accounts-window.cpp
+++ b/lib/engine/gui/gtk-frontend/accounts-window.cpp
@@ -707,13 +707,3 @@ accounts_window_new (Ekiga::ServiceCore &core)
return GTK_WIDGET (self);
}
-
-GtkWidget *
-accounts_window_new_with_key (Ekiga::ServiceCore &_core,
- const std::string _key)
-{
- AccountsWindow *self = ACCOUNTS_WINDOW (accounts_window_new (_core));
- gm_window_set_key (GM_WINDOW (self), _key.c_str ());
-
- return GTK_WIDGET (self);
-}
diff --git a/lib/engine/gui/gtk-frontend/accounts-window.h b/lib/engine/gui/gtk-frontend/accounts-window.h
index fe18127..d294d2c 100644
--- a/lib/engine/gui/gtk-frontend/accounts-window.h
+++ b/lib/engine/gui/gtk-frontend/accounts-window.h
@@ -89,7 +89,4 @@ GType accounts_window_get_type ();
*/
GtkWidget *accounts_window_new (Ekiga::ServiceCore &core);
-GtkWidget *accounts_window_new_with_key (Ekiga::ServiceCore &core,
- const std::string _key);
-
#endif
diff --git a/lib/engine/gui/gtk-frontend/gtk-frontend.cpp b/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
index 404f39e..2404e1d 100644
--- a/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
+++ b/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
@@ -140,9 +140,9 @@ GtkFrontend::build ()
"/apps/" PACKAGE_NAME "/general/user_interface/addressbook_window");
accounts_window =
- boost::shared_ptr<GtkWidget> (accounts_window_new_with_key (core, "/apps/" PACKAGE_NAME
"/general/user_interface/accounts_window"),
-
- gtk_widget_destroy);
+ boost::shared_ptr<GtkWidget> (accounts_window_new (core), gtk_widget_destroy);
+ gm_window_set_key(GM_WINDOW (accounts_window.get ()),
+ "/apps/" PACKAGE_NAME "/general/user_interface/accounts_window");
// BEWARE: uses the main window during runtime
assistant_window =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]