[gnote] Allow separators in popover
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Allow separators in popover
- Date: Sat, 12 Dec 2015 18:31:07 +0000 (UTC)
commit 9eedb0831afe5510e246a013e567d031897e8d8f
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Dec 12 20:16:38 2015 +0200
Allow separators in popover
src/recentchanges.cpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 4ea3093..0325e9f 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -745,7 +745,13 @@ namespace gnote {
int top = 0;
Gtk::Grid *grid = create_inner_popover_grid(top);
FOREACH(Gtk::Widget *item, items) {
- grid->attach(*manage(item), 0, top++, 1, 1);
+ if(item) {
+ grid->attach(*manage(item), 0, top++, 1, 1);
+ }
+ else {
+ main_grid->attach(*grid, 0, main_top++, 1, 1);
+ grid = create_inner_popover_grid(top);
+ }
}
if(top > 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]