[california/wip/732029-gtk-312] Slight code improvements
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california/wip/732029-gtk-312] Slight code improvements
- Date: Fri, 15 Aug 2014 22:46:10 +0000 (UTC)
commit 1908661dca1910af3de52f8eabb585cf1b68afe4
Author: Jim Nelson <jim yorba org>
Date: Fri Aug 15 15:43:53 2014 -0700
Slight code improvements
src/toolkit/toolkit-deck-window.vala | 5 ++++-
src/toolkit/toolkit-rotating-button-box.vala | 5 ++---
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/toolkit/toolkit-deck-window.vala b/src/toolkit/toolkit-deck-window.vala
index 6c26f60..08c4331 100644
--- a/src/toolkit/toolkit-deck-window.vala
+++ b/src/toolkit/toolkit-deck-window.vala
@@ -8,6 +8,10 @@ namespace California.Toolkit {
/**
* A GtkDialog with no visible action area that holds { link Deck}s.
+ *
+ * This is designed for UI panes that want to control their own interaction with the user (in
+ * particular, button placement) but need all the benefits interaction-wise of GtkDialog.
+ *
*/
public class DeckWindow : Gtk.Dialog {
@@ -57,4 +61,3 @@ public class DeckWindow : Gtk.Dialog {
}
-
diff --git a/src/toolkit/toolkit-rotating-button-box.vala b/src/toolkit/toolkit-rotating-button-box.vala
index bb3dad9..552e274 100644
--- a/src/toolkit/toolkit-rotating-button-box.vala
+++ b/src/toolkit/toolkit-rotating-button-box.vala
@@ -131,11 +131,10 @@ public class RotatingButtonBox : Gtk.Stack {
}
}
- if (show && !shown) {
+ if (show && !shown)
add_named(button_box, family);
- } else if (shown) {
+ else if (shown)
remove(button_box);
- }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]