[ekiga] Manage the preferences window using a smart pointer in the gtk+ frontend
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Manage the preferences window using a smart pointer in the gtk+ frontend
- Date: Wed, 19 Jun 2013 18:00:40 +0000 (UTC)
commit 630b99ca389591adf66199156e718db3d8453837
Author: Julien Puydt <jpuydt free fr>
Date: Wed Jun 19 17:45:44 2013 +0200
Manage the preferences window using a smart pointer in the gtk+ frontend
lib/engine/gui/gtk-frontend/gtk-frontend.cpp | 6 ++++--
lib/engine/gui/gtk-frontend/gtk-frontend.h | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/gtk-frontend.cpp b/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
index 7fe978c..003db75 100644
--- a/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
+++ b/lib/engine/gui/gtk-frontend/gtk-frontend.cpp
@@ -125,7 +125,9 @@ void GtkFrontend::build ()
chat_window =
boost::shared_ptr<GtkWidget> (chat_window_new (core, "/apps/" PACKAGE_NAME
"/general/user_interface/chat_window"),
gtk_widget_destroy);
- preferences_window = preferences_window_new (core);
+ preferences_window =
+ boost::shared_ptr<GtkWidget> (preferences_window_new (core),
+ gtk_widget_destroy);
status_icon = status_icon_new (core);
main_window = gm_main_window_new (core);
gtk_window_set_transient_for (GTK_WINDOW (assistant_window.get ()), GTK_WINDOW (main_window));
@@ -170,7 +172,7 @@ const GtkWidget *GtkFrontend::get_accounts_window () const
const GtkWidget *GtkFrontend::get_preferences_window () const
{
- return preferences_window;
+ return preferences_window.get ();
}
diff --git a/lib/engine/gui/gtk-frontend/gtk-frontend.h b/lib/engine/gui/gtk-frontend/gtk-frontend.h
index da373a1..1da79e4 100644
--- a/lib/engine/gui/gtk-frontend/gtk-frontend.h
+++ b/lib/engine/gui/gtk-frontend/gtk-frontend.h
@@ -83,7 +83,7 @@ private :
boost::shared_ptr<GtkWidget> assistant_window;
GtkWidget* main_window;
- GtkWidget *preferences_window;
+ boost::shared_ptr<GtkWidget> preferences_window;
boost::shared_ptr<GtkWidget> addressbook_window;
boost::shared_ptr<GtkWidget> accounts_window;
boost::shared_ptr<GtkWidget> call_window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]