[baobab] More work on the first page look
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] More work on the first page look
- Date: Mon, 23 Jul 2012 20:19:01 +0000 (UTC)
commit 29a4814e6eef2d791043524865192d596da2a0f6
Author: Paolo Borelli <paolo borelli nice-software com>
Date: Mon Jul 23 22:17:08 2012 +0200
More work on the first page look
Add separator and set a css class. Note you will need
an updated gnome-themes-standard to get the proper css.
src/baobab-window.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index f127adc..8865d65 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -348,10 +348,20 @@ namespace Baobab {
location_list.show_all ();
}
+ void update_separator (ref Gtk.Widget? separator, Gtk.Widget widget, Gtk.Widget? before_widget) {
+ if (before_widget != null && separator == null) {
+ separator = new Gtk.Separator (Gtk.Orientation.HORIZONTAL);
+ } else {
+ separator = null;
+ }
+ }
+
void setup_home_page () {
location_list = new Egg.ListBox ();
location_scroll.add_with_viewport (location_list);
location_list.set_adjustment (location_scroll.get_vadjustment ());
+ location_list.get_style_context ().add_class ("baobab-main-view");
+ location_list.set_separator_funcs (update_separator);
location_monitor = LocationMonitor.get ();
location_monitor.changed.connect (() => { update_locations (); });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]