[gnome-control-center] mouse: Remove unused "start_page" code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] mouse: Remove unused "start_page" code
- Date: Wed, 16 Mar 2011 13:49:03 +0000 (UTC)
commit 30fdeafef5c5feb679458ef9211caa8a78b07ce7
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 16 13:18:47 2011 +0000
mouse: Remove unused "start_page" code
panels/mouse/gnome-mouse-properties.c | 23 +----------------------
1 files changed, 1 insertions(+), 22 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index 09f7b4f..da95b56 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -357,8 +357,7 @@ dialog_response_cb (GtkDialog *dialog, gint response_id, gpointer user_data)
GtkWidget *
gnome_mouse_properties_init (GtkBuilder *dialog)
{
- GtkWidget *dialog_win, *w;
- gchar *start_page = NULL;
+ GtkWidget *dialog_win;
mouse_settings = g_settings_new ("org.gnome.settings-daemon.peripherals.mouse");
touchpad_settings = g_settings_new ("org.gnome.settings-daemon.peripherals.touchpad");
@@ -371,26 +370,6 @@ gnome_mouse_properties_init (GtkBuilder *dialog)
dialog_win = WID ("mouse_properties_dialog");
g_signal_connect (dialog_win, "response",
G_CALLBACK (dialog_response_cb), NULL);
-
- if (start_page != NULL) {
- gchar *page_name;
-
- page_name = g_strconcat (start_page, "_vbox", NULL);
- g_free (start_page);
-
- w = WID (page_name);
- if (w != NULL) {
- GtkNotebook *nb;
- gint pindex;
-
- nb = GTK_NOTEBOOK (WID ("prefs_widget"));
- pindex = gtk_notebook_page_num (nb, w);
- if (pindex != -1)
- gtk_notebook_set_current_page (nb, pindex);
- }
- g_free (page_name);
- }
-
} else {
dialog_win = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]