[ekiga] Simplified the panel_changed_cb function in the main window code



commit 5cd3e807ad5257e105c04e460bbaf6b9312c7480
Author: Julien Puydt <jpuydt gnome org>
Date:   Thu Oct 7 17:10:08 2010 +0200

    Simplified the panel_changed_cb function in the main window code

 src/gui/main_window.cpp |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index 75182fc..afa1077 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -2053,14 +2053,10 @@ video_settings_changed_cb (GtkAdjustment * /*adjustment*/,
 static void
 panel_section_changed_cb (G_GNUC_UNUSED GtkNotebook *notebook,
                           G_GNUC_UNUSED gpointer page,
-                          G_GNUC_UNUSED gint page_num,
-                          gpointer data)
+                          gint page_num,
+                          G_GNUC_UNUSED gpointer data)
 {
-  EkigaMainWindow *mw = EKIGA_MAIN_WINDOW (data);
-  gint current_page = 0;
-
-  current_page = gtk_notebook_get_current_page (GTK_NOTEBOOK (mw->priv->main_notebook));
-  gm_conf_set_int (USER_INTERFACE_KEY "main_window/panel_section", current_page);
+  gm_conf_set_int (USER_INTERFACE_KEY "main_window/panel_section", page_num);
 }
 
 



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