create app notification widget
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Granite |
Fix Committed
|
Wishlist
|
Artem Anufrij |
Bug Description
Not sure if we want to copy Android and call this "Granite.
var close_button = new Gtk.Button.
});
var button = new Gtk.Button.
});
var notification_box = new Gtk.Grid ();
var notification_frame = new Gtk.Frame (null);
Then you stick that in an overlay and show/hide when necessary. Things to consider:
* Do we want to hard code the availability of a single button? I'm pretty sure we don't want to be able to pack arbitrary widgets. Is there a case for two buttons or should we recommend that developers use an alert in that case?
* Should these time out? On Android toasts time out
Related branches
- Adam Bieńkowski (community): Approve (code)
- Artem Anufrij (community): Approve (code style)
-
Diff: 221 lines (+171/-1)3 files modifieddemo/GraniteDemo.vala (+42/-1)
lib/CMakeLists.txt (+1/-0)
lib/Widgets/Toast.vala (+128/-0)
Changed in granite: | |
importance: | Undecided → Wishlist |
Changed in granite: | |
assignee: | nobody → Artem Anufrij (artem-anufrij) |
status: | Confirmed → In Progress |
Changed in granite: | |
milestone: | none → loki+1-beta1 |
Changed in granite: | |
status: | In Progress → Fix Committed |
One action and a dismiss makes sense to me. And a default timeout also makes sense.