[gtkmm/gtkmm-2-22] gtkmm: Added new methods wrapping new C functions.



commit 5a546e23e02a8fce0fd034e976d4a8957d228b1c
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Aug 30 16:13:41 2010 +0200

    gtkmm: Added new methods wrapping new C functions.
    
    * gtk/src/button.hg: Added get_event_window().
    * gtk/src/expander.hg: Added get/set_label_fill() and property.
    * gtk/src/notebook.hg: Added get_tab_hborder() and get_tab_vborder().
    * gtk/src/printunixdialog.hg: Added get_manual_capabilities().
    * gtk/src/statusbar.hg: Added remove_all_messages().
    * gtk/src/table.hg: Added get_size().
    * gtk/src/textview.hg: Added get_hadjustment(), get_vadjustment(),
      im_context_filter_keypress(), reset_im_context().
    * gtk/src/viewport.hg: Added get_view_window().
    * gtk/src/widget.hg: Added get_view_window().

 ChangeLog                  |   15 +++++++++++++++
 gtk/src/button.hg          |    8 +++++---
 gtk/src/expander.hg        |   19 +++++++++++--------
 gtk/src/notebook.hg        |    5 ++++-
 gtk/src/printunixdialog.hg |    5 +++--
 gtk/src/statusbar.hg       |   11 ++++++++---
 gtk/src/table.hg           |    2 ++
 gtk/src/textview.hg        |    8 ++++++++
 gtk/src/viewport.hg        |    3 +++
 gtk/src/widget.hg          |    1 +
 10 files changed, 60 insertions(+), 17 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f48c3fd..fad8943 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2010-08-30  Murray Cumming  <murrayc murrayc com>
 
+	gtkmm: Added new methods wrapping new C functions.
+
+	* gtk/src/button.hg: Added get_event_window().
+	* gtk/src/expander.hg: Added get/set_label_fill() and property.
+	* gtk/src/notebook.hg: Added get_tab_hborder() and get_tab_vborder().
+	* gtk/src/printunixdialog.hg: Added get_manual_capabilities().
+	* gtk/src/statusbar.hg: Added remove_all_messages().
+	* gtk/src/table.hg: Added get_size().
+	* gtk/src/textview.hg: Added get_hadjustment(), get_vadjustment(),
+  im_context_filter_keypress(), reset_im_context().
+	* gtk/src/viewport.hg: Added get_view_window().
+	* gtk/src/widget.hg: Added get_view_window().
+
+2010-08-30  Murray Cumming  <murrayc murrayc com>
+
 	gdkmm: Window: Wrap new C functions.
 
 	* gdk/src/window.hg: Added get_composited(), is_input_only(), is_shaped(),
diff --git a/gtk/src/button.hg b/gtk/src/button.hg
index 3958b6e..3eda31c 100644
--- a/gtk/src/button.hg
+++ b/gtk/src/button.hg
@@ -1,7 +1,7 @@
 /* $Id: button.hg,v 1.10 2006/08/21 19:07:14 jjongsma Exp $ */
 
 /* box.h
- * 
+ *
  * Copyright (C) 1998-2002 The gtkmm Development Team
  *
  * This library is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
  */
 
 #m4 _PUSH(SECTION_CC_PRE_INCLUDES)
-// So we can still wrap the (deprecated) gtk_button_pressed(), gtk_button_clicked(), 
+// So we can still wrap the (deprecated) gtk_button_pressed(), gtk_button_clicked(),
 // and gtk_button_enter functions.
 #undef GTK_DISABLE_DEPRECATED
 #m4 _POP()
@@ -108,6 +108,9 @@ public:
   _WRAP_METHOD(void set_image_position(PositionType position), gtk_button_set_image_position)
   _WRAP_METHOD(PositionType get_image_position() const, gtk_button_get_image_position)
 
+  _WRAP_METHOD(Glib::RefPtr<Gdk::Window> get_event_window(), gtk_button_get_event_window, refreturn)
+  _WRAP_METHOD(Glib::RefPtr<const Gdk::Window> get_event_window() const, gtk_button_get_event_window, refreturn, constversion)
+
   _WRAP_SIGNAL(void pressed(), "pressed")
   _WRAP_SIGNAL(void released(), "released")
   _WRAP_SIGNAL(void clicked(), "clicked")
@@ -133,4 +136,3 @@ public:
  */
 
 } // namespace Gtk
-
diff --git a/gtk/src/expander.hg b/gtk/src/expander.hg
index 4735816..157735a 100644
--- a/gtk/src/expander.hg
+++ b/gtk/src/expander.hg
@@ -1,7 +1,7 @@
 /* $Id: expander.hg,v 1.9 2006/04/12 11:11:25 murrayc Exp $ */
 
 /* expander.h
- * 
+ *
  * Copyright (C) 2003 The gtkmm Development Team
  *
  * This library is free software; you can redistribute it and/or
@@ -33,8 +33,8 @@ namespace Gtk
  * expander triangle similar to the triangles used in a Gtk::TreeView.
  *
  * Normally you use an expander as you would use any other descendant
- * of Gtk::Bin; you create the child widget and use add() to add it to 
- * the expander.  When the expander is toggled, it will take care of 
+ * of Gtk::Bin; you create the child widget and use add() to add it to
+ * the expander.  When the expander is toggled, it will take care of
  * showing and hiding the child automatically.
  *
  * Special Usage: There are situations in which you may prefer to show and
@@ -61,7 +61,7 @@ public:
   /** Creates a new Expander.
    *
    * The Expander has an empty label.
-   * 
+   *
    * @newin{2,4}
    */
   _CTOR_DEFAULT;
@@ -73,10 +73,10 @@ public:
    * underlined. If you need a literal underscore character in a label, use '__' (two underscores).
    * The first underlined character represents a keyboard accelerator called a mnemonic.
    * Pressing Alt and that key activates the button.
-   * 
+   *
    * @param label The string for the label describing the Expander.
    * @param mnemonic Wether the label may contain underscores to set up accelerators.
-   
+
    * @newin{2,4}
    */
   explicit Expander(const Glib::ustring& label, bool mnemonic = false);
@@ -101,6 +101,9 @@ public:
   _WRAP_METHOD(Widget* get_label_widget(), gtk_expander_get_label_widget)
   _WRAP_METHOD(const Widget* get_label_widget() const, gtk_expander_get_label_widget, constversion)
 
+  _WRAP_METHOD(void set_label_fill(bool label_fill = true), gtk_expander_set_label_fill)
+  _WRAP_METHOD(bool get_label_fill() const, gtk_expander_get_label_fill)
+
   _IGNORE_SIGNAL("activate") //keybinding
 
   _WRAP_PROPERTY("expanded", bool)
@@ -108,9 +111,9 @@ public:
   _WRAP_PROPERTY("use_underline", bool)
   _WRAP_PROPERTY("use_markup", bool)
   _WRAP_PROPERTY("spacing", int)
-  _WRAP_PROPERTY("label_widget", Widget*)            
+  _WRAP_PROPERTY("label_widget", Widget*)
+  _WRAP_PROPERTY("label_fill", bool)
 };
 
 
 } // namespace Gtk
-
diff --git a/gtk/src/notebook.hg b/gtk/src/notebook.hg
index 12957f6..cb289cf 100644
--- a/gtk/src/notebook.hg
+++ b/gtk/src/notebook.hg
@@ -396,6 +396,9 @@ public:
   _WRAP_METHOD(void set_scrollable(bool scrollable = true), gtk_notebook_set_scrollable)
   _WRAP_METHOD(bool get_scrollable() const, gtk_notebook_get_scrollable)
 
+  _WRAP_METHOD(guint16 get_tab_hborder() const, gtk_notebook_get_tab_hborder)
+  _WRAP_METHOD(guint16 get_tab_vborder() const, gtk_notebook_get_tab_vborder)
+
   _WRAP_METHOD(void popup_enable(), gtk_notebook_popup_enable)
 
   _WRAP_METHOD(void popup_disable(), gtk_notebook_popup_disable)
@@ -438,7 +441,7 @@ _DEPRECATE_IFDEF_START
   /** @deprecated Use Notebook::get_current_page(), Notebook::get_nth_page(), etc. instead.
    */
   PageList& pages();
-  
+
   /** @deprecated Use Notebook::get_current_page(), Notebook::get_nth_page(), etc. instead.
    */
   const PageList& pages() const;
diff --git a/gtk/src/printunixdialog.hg b/gtk/src/printunixdialog.hg
index b28f3dc..1dedad5 100644
--- a/gtk/src/printunixdialog.hg
+++ b/gtk/src/printunixdialog.hg
@@ -28,8 +28,8 @@ namespace Gtk
 {
 
 /** PrintUnixDialog implements a print dialog for platforms
- * which don't provide a native print dialog, like Unix. It can 
- * be used very much like any other GTK+ dialog, at the cost of 
+ * which don't provide a native print dialog, like Unix. It can
+ * be used very much like any other GTK+ dialog, at the cost of
  * the portability offered by the high-level printing API exposed
  * through PrintOperation.
  *
@@ -75,6 +75,7 @@ public:
   void add_custom_tab(const Widget& child, const Glib::ustring& tab_label);
   _WRAP_METHOD(void add_custom_tab(const Widget& child, const Widget& tab_label), gtk_print_unix_dialog_add_custom_tab)
   _WRAP_METHOD(void set_manual_capabilities(PrintCapabilities capabilities), gtk_print_unix_dialog_set_manual_capabilities)
+  _WRAP_METHOD(PrintCapabilities get_manual_capabilities() const, gtk_print_unix_dialog_get_manual_capabilities)
 
   _WRAP_METHOD(void get_support_selection(bool support_selection = true), gtk_print_unix_dialog_set_support_selection)
   _WRAP_METHOD(bool get_support_selection() const, gtk_print_unix_dialog_get_support_selection)
diff --git a/gtk/src/statusbar.hg b/gtk/src/statusbar.hg
index a409fb7..92e601d 100644
--- a/gtk/src/statusbar.hg
+++ b/gtk/src/statusbar.hg
@@ -1,7 +1,7 @@
 /* $Id: statusbar.hg,v 1.2 2003/10/12 09:38:11 murrayc Exp $ */
 
 /* statusbar.h
- * 
+ *
  * Copyright (C) 1998-2002 The gtkmm Development Team
  *
  * This library is free software; you can redistribute it and/or
@@ -44,14 +44,20 @@ namespace Gtk
 class Statusbar : public HBox
 {
   _CLASS_GTKOBJECT(Statusbar,GtkStatusbar,GTK_STATUSBAR,Gtk::HBox,GtkHBox)
-  _IGNORE(gtk_statusbar_push, gtk_statusbar_remove)
+  _IGNORE(gtk_statusbar_push)
 public:
   _CTOR_DEFAULT
 
   _WRAP_METHOD(guint get_context_id(const Glib::ustring& context_description), gtk_statusbar_get_context_id)
   guint push(const Glib::ustring& text, guint context_id = 0);
   _WRAP_METHOD(void pop(guint context_id = 0), gtk_statusbar_pop)
+
+  //TODO: Documentation
   void remove_message(guint message_id, guint context_id = 0);
+  _IGNORE(gtk_statusbar_remove)
+
+  _WRAP_METHOD(void remove_all_messages(guint context_id = 0), gtk_statusbar_remove_all)
+
   _WRAP_METHOD(void set_has_resize_grip(bool setting = true), gtk_statusbar_set_has_resize_grip)
   _WRAP_METHOD(bool get_has_resize_grip() const, gtk_statusbar_get_has_resize_grip)
 
@@ -68,4 +74,3 @@ public:
 };
 
 } /* namespace Gtk */
-
diff --git a/gtk/src/table.hg b/gtk/src/table.hg
index 59ad0fb..84f748b 100644
--- a/gtk/src/table.hg
+++ b/gtk/src/table.hg
@@ -177,6 +177,8 @@ public:
   _WRAP_METHOD(void set_homogeneous(bool homogeneous = true), gtk_table_set_homogeneous)
   _WRAP_METHOD(bool get_homogeneous() const, gtk_table_get_homogeneous)
 
+  _WRAP_METHOD(void get_size(guint& rows,  guint& columns) const, gtk_table_get_size)
+
   /** @deprecated Use Container::get_children() instead.
    */
   typedef Table_Helpers::TableList TableList;
diff --git a/gtk/src/textview.hg b/gtk/src/textview.hg
index c9d67ad..ddb084c 100644
--- a/gtk/src/textview.hg
+++ b/gtk/src/textview.hg
@@ -149,6 +149,11 @@ public:
                                             int window_x, int window_y,
                                             int& buffer_x, int& buffer_y) const, gtk_text_view_window_to_buffer_coords)
 
+  _WRAP_METHOD(Gtk::Adjustment* get_hadjustment(), gtk_text_view_get_hadjustment)
+  _WRAP_METHOD(const Gtk::Adjustment* get_hadjustment() const, gtk_text_view_get_hadjustment, constversion)
+  _WRAP_METHOD(Gtk::Adjustment* get_vadjustment(), gtk_text_view_get_vadjustment)
+  _WRAP_METHOD(const Gtk::Adjustment* get_vadjustment() const, gtk_text_view_get_vadjustment, constversion)
+
   _WRAP_METHOD(Glib::RefPtr<Gdk::Window> get_window(TextWindowType win), gtk_text_view_get_window, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Gdk::Window> get_window(TextWindowType win) const, gtk_text_view_get_window, refreturn, constversion)
   _WRAP_METHOD(TextWindowType get_window_type(const Glib::RefPtr<Gdk::Window>& window), gtk_text_view_get_window_type)
@@ -163,6 +168,9 @@ public:
   _WRAP_METHOD(bool starts_display_line(const TextBuffer::iterator&  iter), gtk_text_view_starts_display_line)
   _WRAP_METHOD(bool move_visually(TextBuffer::iterator& iter, int count), gtk_text_view_move_visually)
 
+  _WRAP_METHOD(bool im_context_filter_keypress(GdkEventKey* event), gtk_text_view_im_context_filter_keypress)
+  _WRAP_METHOD(void reset_im_context(), gtk_text_view_reset_im_context)
+
   _WRAP_METHOD(void add_child_at_anchor(Widget& child, const Glib::RefPtr<TextBuffer::ChildAnchor>& anchor), gtk_text_view_add_child_at_anchor)
 
   _WRAP_METHOD(void add_child_in_window(Widget& child, TextWindowType which_window,
diff --git a/gtk/src/viewport.hg b/gtk/src/viewport.hg
index 8917888..789b70c 100644
--- a/gtk/src/viewport.hg
+++ b/gtk/src/viewport.hg
@@ -69,6 +69,9 @@ public:
   _WRAP_METHOD(Glib::RefPtr<Gdk::Window> get_bin_window(), gtk_viewport_get_bin_window, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Gdk::Window> get_bin_window() const, gtk_viewport_get_bin_window, refreturn, constversion)
 
+  _WRAP_METHOD(Glib::RefPtr<Gdk::Window> get_view_window(), gtk_viewport_get_view_window, refreturn)
+  _WRAP_METHOD(Glib::RefPtr<const Gdk::Window> get_view_window() const, gtk_viewport_get_view_window, refreturn, constversion)
+
   _WRAP_SIGNAL(void set_scroll_adjustments(Gtk::Adjustment* hadjustment,
                                            Gtk::Adjustment* vadjustment),
                "set_scroll_adjustments")
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 59a677e..464d643 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -184,6 +184,7 @@ public:
   //TODO: Use C++ type
   _WRAP_METHOD(bool event(GdkEvent* event), gtk_widget_event)
   _WRAP_METHOD(int send_expose(GdkEvent* event), gtk_widget_send_expose)
+  _WRAP_METHOD(bool send_focus_change(GdkEvent* event), gtk_widget_send_focus_change)
   _WRAP_METHOD(bool activate(), gtk_widget_activate)
 
   _WRAP_METHOD(void reparent(Widget & new_parent), gtk_widget_reparent)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]