[gtkmm] PlacesSidebar: Wrap "show-location" symbols
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] PlacesSidebar: Wrap "show-location" symbols
- Date: Thu, 15 May 2014 12:13:47 +0000 (UTC)
commit f6887fa66bc7ccc97840fc9b861caaebc87ab511
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Thu May 15 13:55:09 2014 +0200
PlacesSidebar: Wrap "show-location" symbols
* Wrap ::show-location signal.
* Wrap "show-location" property.
* Wrap gtk_places_sidebar_get_show_location() and
gtk_places_sidebar_set_show_location() accessor methods.
gtk/src/gtk_methods.defs | 15 +++++++++++++++
gtk/src/gtk_signals.defs | 15 +++++++++++++++
gtk/src/placessidebar.hg | 5 +++++
3 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 9babb70..8b8bab9 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -18632,6 +18632,21 @@
)
)
+(define-method get_show_enter_location
+ (of-object "GtkPlacesSidebar")
+ (c-name "gtk_places_sidebar_get_show_enter_location")
+ (return-type "gboolean")
+)
+
+(define-method set_show_enter_location
+ (of-object "GtkPlacesSidebar")
+ (c-name "gtk_places_sidebar_set_show_enter_location")
+ (return-type "none")
+ (parameters
+ '("gboolean" "show_enter_location")
+ )
+)
+
(define-method set_local_only
(of-object "GtkPlacesSidebar")
(c-name "gtk_places_sidebar_set_local_only")
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 2e72daa..bb88dd8 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -6227,6 +6227,12 @@
(when "first")
)
+(define-signal show-enter-location
+ (of-object "GtkPlacesSidebar")
+ (return-type "void")
+ (when "first")
+)
+
(define-signal drag-action-requested
(of-object "GtkPlacesSidebar")
(return-type "gint")
@@ -6294,6 +6300,15 @@
(construct-only #f)
)
+(define-property show-enter-location
+ (of-object "GtkPlacesSidebar")
+ (prop-type "GParamBoolean")
+ (docs "Whether the sidebar includes a builtin shortcut to manually enter a location")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
(define-property local-only
(of-object "GtkPlacesSidebar")
(prop-type "GParamBoolean")
diff --git a/gtk/src/placessidebar.hg b/gtk/src/placessidebar.hg
index a03c8a4..b9e792c 100644
--- a/gtk/src/placessidebar.hg
+++ b/gtk/src/placessidebar.hg
@@ -102,6 +102,9 @@ public:
_WRAP_METHOD(void set_local_only(bool local_only = true), gtk_places_sidebar_set_local_only)
_WRAP_METHOD(bool get_local_only() const, gtk_places_sidebar_get_local_only)
+ _WRAP_METHOD(void set_show_enter_location(bool show_enter_location = true),
gtk_places_sidebar_set_show_enter_location)
+ _WRAP_METHOD(bool get_show_enter_location() const, gtk_places_sidebar_get_show_enter_location)
+
// We use no_default_handler with _WRAP_SIGNAL because the C *Class struct is hidden for GtkPlacesSidebar.
#m4 _CONVERSION(`GFile*',`const Glib::RefPtr<Gio::File>&', `Glib::wrap($3, true)')
@@ -118,6 +121,7 @@ public:
_WRAP_SIGNAL(void show_connect_to_server(), "show_connect_to_server", no_default_handler)
_WRAP_SIGNAL(void show_error_message(const Glib::ustring& primary, const Glib::ustring& secondary),
"show_error_message", no_default_handler)
+ _WRAP_SIGNAL(void show_enter_location(), "show_enter_location", no_default_handler)
_WRAP_PROPERTY("local-only", bool)
@@ -125,6 +129,7 @@ public:
_WRAP_PROPERTY("open-flags", PlacesOpenFlags)
_WRAP_PROPERTY("show-connect-to-server", bool)
_WRAP_PROPERTY("show-desktop", bool)
+ _WRAP_PROPERTY("show-enter-location", bool)
};
} // namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]