[gtkmm] Gtk::Window: Add some methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::Window: Add some methods.
- Date: Tue, 25 Sep 2012 21:09:38 +0000 (UTC)
commit 4f7bd5baa5b8b24596511964873515611f62a9d2
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Sep 25 23:09:03 2012 +0200
Gtk::Window: Add some methods.
* gtk/src/window.hg: Add set_startup_id(), is_active(),
has_toplevel_focus(), set_default_geometry(),
resize_to_geometry(), has_group().
Add the focus-visible and attached-to properties.
This is mostly fairly old GTK+ API that we have not noticed
until now.
ChangeLog | 11 +++++++++++
gtk/src/window.hg | 18 ++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bd67e6c..84f8cb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
2012-09-25 Murray Cumming <murrayc murrayc com>
+ Gtk::Window: Add some methods.
+
+ * gtk/src/window.hg: Add set_startup_id(), is_active(),
+ has_toplevel_focus(), set_default_geometry(),
+ resize_to_geometry(), has_group().
+ Add the focus-visible and attached-to properties.
+ This is mostly fairly old GTK+ API that we have not noticed
+ until now.
+
+2012-09-25 Murray Cumming <murrayc murrayc com>
+
Container: Add some methods.
* gtk/src/container.[hg|ccg]: Add forall(), propagate_draw(),
diff --git a/gtk/src/window.hg b/gtk/src/window.hg
index 97a2be9..0fc50b7 100644
--- a/gtk/src/window.hg
+++ b/gtk/src/window.hg
@@ -96,6 +96,8 @@ public:
_WRAP_PROPERTY("focus-on-map", bool)
_WRAP_PROPERTY("deletable", bool)
_WRAP_PROPERTY("application", Glib::RefPtr<Application>)
+ _WRAP_PROPERTY("focus-visible", bool)
+ _WRAP_PROPERTY("attached-to", Widget*)
_WRAP_SIGNAL(void set_focus(Widget* focus), "set_focus")
@@ -128,6 +130,8 @@ dnl
_WRAP_METHOD(void set_role(const Glib::ustring& role), gtk_window_set_role)
+ _WRAP_METHOD(void set_startup_id(const Glib::ustring& startup_id), gtk_window_set_startup_id)
+
_WRAP_METHOD(Glib::ustring get_role() const, gtk_window_get_role)
@@ -150,6 +154,9 @@ dnl
_WRAP_METHOD(void set_default(Gtk::Widget& default_widget), gtk_window_set_default)
void unset_default();
+ _WRAP_METHOD(Widget* get_default_widget(), gtk_window_get_default_widget)
+ _WRAP_METHOD(const Widget* get_default_widget() const, gtk_window_get_default_widget, constversion)
+
_WRAP_METHOD(bool activate_default(), gtk_window_activate_default)
_WRAP_METHOD(void set_transient_for(Window& parent), gtk_window_set_transient_for)
@@ -207,6 +214,9 @@ dnl
_WRAP_METHOD(void set_mnemonics_visible(bool setting = true), gtk_window_set_mnemonics_visible)
_WRAP_METHOD(bool get_mnemonics_visible() const, gtk_window_get_mnemonics_visible)
+ _WRAP_METHOD(void set_focus_visible(bool setting = true), gtk_window_set_focus_visible)
+ _WRAP_METHOD(bool get_focus_visible() const, gtk_window_get_focus_visible)
+
_WRAP_METHOD(void set_resizable(bool resizable = true), gtk_window_set_resizable)
_WRAP_METHOD(bool get_resizable() const, gtk_window_get_resizable)
@@ -225,6 +235,9 @@ dnl
_WRAP_METHOD(Glib::RefPtr<Gdk::Screen> get_screen(), gtk_window_get_screen, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Gdk::Screen> get_screen() const, gtk_window_get_screen, refreturn, constversion)
+ _WRAP_METHOD(bool is_active() const, gtk_window_is_active)
+ _WRAP_METHOD(bool has_toplevel_focus() const, gtk_window_has_toplevel_focus)
+
_WRAP_METHOD(void set_decorated(bool setting = true), gtk_window_set_decorated)
_WRAP_METHOD(bool get_decorated() const, gtk_window_get_decorated)
@@ -329,9 +342,14 @@ dnl
_WRAP_METHOD(bool parse_geometry(const Glib::ustring& geometry),
gtk_window_parse_geometry)
+ _WRAP_METHOD(void set_default_geometry(int width, int height), gtk_window_set_default_geometry)
+ _WRAP_METHOD(void resize_to_geometry(int width, int height), gtk_window_resize_to_geometry)
+
_WRAP_METHOD(Glib::RefPtr<WindowGroup> get_group(), gtk_window_get_group, refreturn)
_WRAP_METHOD(Glib::RefPtr<const WindowGroup> get_group() const, gtk_window_get_group, refreturn, constversion)
+ _WRAP_METHOD(bool has_group() const, gtk_window_has_group)
+
_WRAP_METHOD(WindowType get_window_type() const, gtk_window_get_window_type)
_WRAP_METHOD(void reshow_with_initial_size(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]