[california] Reset selection state when dialog closes
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california] Reset selection state when dialog closes
- Date: Tue, 11 Mar 2014 19:08:43 +0000 (UTC)
commit a082eb34f165dd34cf1a4e07ce567530e8fbfe0b
Author: Jim Nelson <jim yorba org>
Date: Tue Mar 11 12:07:51 2014 -0700
Reset selection state when dialog closes
Regression due to work in commit 56ed3fb.
src/host/host-main-window.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/host/host-main-window.vala b/src/host/host-main-window.vala
index 39adeb1..c4d7619 100644
--- a/src/host/host-main-window.vala
+++ b/src/host/host-main-window.vala
@@ -87,12 +87,12 @@ public class MainWindow : Gtk.ApplicationWindow {
dialog.modal = true;
((Gtk.Box) dialog.get_content_area()).pack_start(child, true, true, 0);
- // make sure it's closed and cleaned up when all's said and done
- child.dismissed.connect(() => dialog.destroy());
-
// when the dialog closes, reset View.Controllable state (selection is maintained while
- // use is viewing/editing Interaction)
- dialog.close.connect(() => current_view.unselect_all());
+ // use is viewing/editing Interaction) and destroy widgets
+ child.dismissed.connect(() => {
+ current_view.unselect_all();
+ dialog.destroy();
+ });
dialog.show_all();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]