Skip to content

Commit 9a4ab1a

Browse files
committed
Oooh now it works
1 parent 8ee1411 commit 9a4ab1a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/StickyNoteWindow.vala

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,18 @@ namespace Jorts {
253253
var mainbox = new Gtk.Box (Gtk.Orientation.VERTICAL,0);
254254
mainbox.append (scrolled);
255255

256-
var swoosh = new Gtk.Revealer () {
256+
// Revealer keep an empty space where the actionbar was. Idk how to fix
257+
/*var swoosh = new Gtk.Revealer () {
257258
child = actionbar
258259
};
259-
swoosh.set_transition_type (Gtk.RevealerTransitionType.CROSSFADE);
260+
swoosh.set_transition_type (Gtk.RevealerTransitionType.CROSSFADE);*/
261+
262+
mainbox.append (actionbar);
260263

261264
var handle = new Gtk.WindowHandle () {
262265
child = mainbox
263266
};
264267

265-
mainbox.append (swoosh);
266268
set_child (handle);
267269
show ();
268270

@@ -279,8 +281,8 @@ namespace Jorts {
279281
//The application tells us the show/hide bar state has changed!
280282
Application.gsettings.bind (
281283
"hide-bar",
282-
swoosh,
283-
"reveal_child",
284+
actionbar,
285+
"revealed",
284286
SettingsBindFlags.INVERT_BOOLEAN);
285287

286288
gtk_settings.notify["enable-animations"].connect (on_reduceanimation_changed);

0 commit comments

Comments
 (0)