[Xfce4-commits] <xfce-utils:master> Restore the terminal combobox state on launch.
Jérôme Guelfucci
noreply at xfce.org
Fri Oct 8 16:12:01 CEST 2010
Updating branch refs/heads/master
to 2f2bec9d212b7d675c8ddffe058cabca9aecf3b1 (commit)
from e88577994f8f08f2debcc918f1b77b0a2ba0da43 (commit)
commit 2f2bec9d212b7d675c8ddffe058cabca9aecf3b1
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Fri Oct 8 16:10:33 2010 +0200
Restore the terminal combobox state on launch.
xfrun/xfrun-dialog.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/xfrun/xfrun-dialog.c b/xfrun/xfrun-dialog.c
index 9a4d187..15d6d9a 100644
--- a/xfrun/xfrun-dialog.c
+++ b/xfrun/xfrun-dialog.c
@@ -189,8 +189,13 @@ xfrun_dialog_init(XfrunDialog *dialog)
gtk_box_pack_start(GTK_BOX(vbox), chk, FALSE, FALSE, 0);
if(gtk_tree_model_get_iter_first(dialog->priv->completion_model, &itr)) {
+ gboolean in_terminal = FALSE;
+
+ gtk_tree_model_get (dialog->priv->completion_model, &itr,
+ XFRUN_COL_IN_TERMINAL, &in_terminal, -1);
+
gtk_combo_box_set_active_iter(GTK_COMBO_BOX(comboboxentry), &itr);
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(chk), FALSE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(chk), in_terminal);
}
bbox = gtk_hbutton_box_new();
More information about the Xfce4-commits
mailing list