[gnome-system-monitor] Revert gsettings binding change to avoid tab change on prefs tab change
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Revert gsettings binding change to avoid tab change on prefs tab change
- Date: Tue, 23 Jul 2013 20:02:30 +0000 (UTC)
commit d587c3d8be36d5b67fe86025bbb5f9cba7f05717
Author: Robert Roth <robert roth off gmail com>
Date: Tue Jul 23 23:02:03 2013 +0300
Revert gsettings binding change to avoid tab change on prefs tab change
src/procdialogs.cpp | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
index c752947..b5548eb 100644
--- a/src/procdialogs.cpp
+++ b/src/procdialogs.cpp
@@ -468,8 +468,18 @@ procdialog_create_preferences_dialog (ProcmanApp *app)
g_signal_connect (G_OBJECT (prefs_dialog), "response",
G_CALLBACK (prefs_dialog_button_pressed), app);
- g_settings_bind(app->settings, "current-tab", notebook, "page", G_SETTINGS_BIND_GET_NO_CHANGES);
+ switch (g_settings_get_int (app->settings, "current-tab")) {
+ case PROCMAN_TAB_PROCESSES:
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), 0);
+ break;
+ case PROCMAN_TAB_RESOURCES:
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), 1);
+ break;
+ case PROCMAN_TAB_DISKS:
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), 2);
+ break;
+ }
gtk_builder_connect_signals (builder, NULL);
g_object_unref (G_OBJECT (builder));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]