[baobab] Expose the corresponding Location as a prop
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Expose the corresponding Location as a prop
- Date: Tue, 31 Jul 2012 16:32:06 +0000 (UTC)
commit 126deef5585559f116fbb5c490c5c75bd3c9250d
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Jul 31 18:29:43 2012 +0200
Expose the corresponding Location as a prop
src/baobab-location-widget.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-location-widget.vala b/src/baobab-location-widget.vala
index 09535a4..8de9537 100644
--- a/src/baobab-location-widget.vala
+++ b/src/baobab-location-widget.vala
@@ -26,7 +26,9 @@ namespace Baobab {
private static Gtk.SizeGroup usage_size_group = null;
private static Gtk.SizeGroup button_size_group = null;
- public delegate void LocationAction (Location location);
+ public Location? location { get; private set; }
+
+ public delegate void LocationAction (Location l);
void ensure_size_groups () {
if (name_size_group == null) {
@@ -36,7 +38,9 @@ namespace Baobab {
}
}
- public LocationWidget (Location location, LocationAction action) {
+ public LocationWidget (Location location_, LocationAction action) {
+ location = location_;
+
orientation = Gtk.Orientation.HORIZONTAL;
column_spacing = 12;
margin = 6;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]