[gtkmm] gtkmm: Added new methods wrapping new C functions.



commit 77b23f05b696fe8fd673367c4c4b54e75ab6ebf8
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Aug 30 16:23:22 2010 +0200

    gtkmm: Added new methods wrapping new C functions.
    
    	* 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: Rename remove_all() to remove_all_messages().
    	* gtk/src/table.hg: Added get_size().
    	* gtk/src/viewport.hg: Added get_view_window().
    	* gtk/src/widget.hg: Added send_focus_change().

 ChangeLog                  |   12 ++++++++++++
 gtk/src/button.hg          |    7 +++----
 gtk/src/expander.hg        |   19 +++++++++++--------
 gtk/src/notebook.hg        |    3 +++
 gtk/src/printunixdialog.hg |    5 +++--
 gtk/src/statusbar.hg       |    8 ++++----
 gtk/src/textview.hg        |    1 -
 gtk/src/viewport.hg        |    3 +++
 gtk/src/widget.hg          |    1 +
 9 files changed, 40 insertions(+), 19 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ca8e7fb..ac286a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2010-08-30  Murray Cumming  <murrayc murrayc com>
 
+	gtkmm: Added new methods wrapping new C functions.
+
+	* 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: Rename remove_all() to remove_all_messages().
+	* gtk/src/table.hg: Added get_size().
+	* gtk/src/viewport.hg: Added get_view_window().
+	* gtk/src/widget.hg: Added send_focus_change().
+
+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 707b0a2..70d84af 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
@@ -98,10 +98,10 @@ 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")
@@ -127,4 +127,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 6b34e60..b76b52c 100644
--- a/gtk/src/notebook.hg
+++ b/gtk/src/notebook.hg
@@ -121,6 +121,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)
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 42b0bad..92e601d 100644
--- a/gtk/src/statusbar.hg
+++ b/gtk/src/statusbar.hg
@@ -44,7 +44,7 @@ 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
 
@@ -52,11 +52,11 @@ public:
   guint push(const Glib::ustring& text, guint context_id = 0);
   _WRAP_METHOD(void pop(guint context_id = 0), gtk_statusbar_pop)
 
-  //We don't use _WRAP_METHOD() here because we want to change the parameter order.
-  //TODO: Documentation.
+  //TODO: Documentation
   void remove_message(guint message_id, guint context_id = 0);
+  _IGNORE(gtk_statusbar_remove)
 
-  _WRAP_METHOD(void remove_all(guint context_id = 0), gtk_statusbar_remove_all)
+  _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)
diff --git a/gtk/src/textview.hg b/gtk/src/textview.hg
index aa166bc..165ebb7 100644
--- a/gtk/src/textview.hg
+++ b/gtk/src/textview.hg
@@ -135,7 +135,6 @@ public:
                                             int window_x, int window_y,
                                             int& buffer_x, int& buffer_y) const, gtk_text_view_window_to_buffer_coords)
 
-
   _WRAP_METHOD(Adjustment* get_hadjustment(), gtk_text_view_get_hadjustment)
   _WRAP_METHOD(const Adjustment* get_hadjustment() const, gtk_text_view_get_hadjustment, constversion)
 
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 69f99fc..fe43f09 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -175,6 +175,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]