[pygtk] Wrap new API added in GTK/GDK 2.18



commit 4aade731a77b06eb1db8f1023b0b8c4cdfc7f1fc
Author: Gian Mario Tagliaretti <gianmt gnome org>
Date:   Thu Dec 17 23:21:27 2009 +0100

    Wrap new API added in GTK/GDK 2.18

 configure.ac            |   17 ++
 gtk/Makefile.am         |   12 +
 gtk/gdk-2.18.defs       |   95 +++++++
 gtk/gdkcairo.override   |   20 ++
 gtk/gtk-2.18-types.defs |   17 ++
 gtk/gtk-2.18.defs       |  675 +++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 836 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3dda82c..fa11aa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -316,6 +316,23 @@ if test "x$have_pycairo" = "xtrue"; then
   AM_CONDITIONAL(HAVE_GTK_2_16, $have_gtk_216)
   AC_SUBST(HAVE_GTK_2_16)
   AC_DEFINE([HAVE_GTK_2_16], [$have_gtk_216], [If Gtk 2.16 was found])
+  
+  dnl check for gtk 2.18
+  PKG_CHECK_MODULES(GTK218, gtk+-2.0 >= 2.18.0,
+	  HAVE_GTK_218="yes", HAVE_GTK_218="no")
+
+  if test "x$HAVE_GTK_218" = "xyes"; then
+     gtk_version="2.18"
+     have_gtk_218=true
+     PYGTK_CODEGEN_DEFINES="$PYGTK_CODEGEN_DEFINES -DHAVE_GTK_2_18"
+  else
+     AC_MSG_RESULT(no)
+     have_gtk_218=false
+  fi
+
+  AM_CONDITIONAL(HAVE_GTK_2_18, $have_gtk_218)
+  AC_SUBST(HAVE_GTK_2_18)
+  AC_DEFINE([HAVE_GTK_2_18], [$have_gtk_218], [If Gtk 2.18 was found])
 
   dnl libglade
   PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= libglade_required_version],
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 2de4b90..c02a0e2 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -67,6 +67,11 @@ GTK_2_16_DEFS =
 	gtk-2.16.defs		\
 	gtk-2.16-types.defs
 
+GTK_2_18_DEFS =
+	gdk-2.18.defs		\
+	gtk-2.18.defs		\
+	gtk-2.18-types.defs
+
 if HAVE_GTK_2_10
 GDK_DEFS += gdk-2.10.defs 
 GTK_DEFS += gtk-2.10.defs 
@@ -94,6 +99,12 @@ GTK_DEFS += gtk-2.16.defs
 GTK_TYPES_DEFS += gtk-2.16-types.defs
 endif
 
+if HAVE_GTK_2_18
+GDK_DEFS += gdk-2.18.defs 
+GTK_DEFS += gtk-2.18.defs 
+GTK_TYPES_DEFS += gtk-2.18-types.defs
+endif
+
 CREATEDEFS = $(PYTHON) $(CODEGENDIR)/createdefs.py
 
 GDK_OVERRIDES = \
@@ -144,6 +155,7 @@ EXTRA_DIST += 			\
 	$(GTK_2_12_DEFS)	\
 	$(GTK_2_14_DEFS)	\
         $(GTK_2_16_DEFS)	\
+	$(GTK_2_18_DEFS)	\
 	$(GTK_OVERRIDES)
 
 
diff --git a/gtk/gdk-2.18.defs b/gtk/gdk-2.18.defs
new file mode 100644
index 0000000..fc3ec22
--- /dev/null
+++ b/gtk/gdk-2.18.defs
@@ -0,0 +1,95 @@
+;; -*- scheme -*-
+; object definitions ...
+
+
+
+;; From gdkcairo.h
+
+(define-function cairo_reset_clip
+  (c-name "gdk_cairo_reset_clip")
+  (return-type "none")
+  (parameters
+    '("cairo_t*" "cr")
+    '("GdkDrawable*" "drawable")
+  )
+)
+
+
+
+;; From gdkwindow.h
+
+(define-function offscreen_window_get_pixmap
+  (c-name "gdk_offscreen_window_get_pixmap")
+  (return-type "GdkPixmap*")
+  (parameters
+    '("GdkWindow*" "window")
+  )
+)
+
+(define-function offscreen_window_set_embedder
+  (c-name "gdk_offscreen_window_set_embedder")
+  (return-type "none")
+  (parameters
+    '("GdkWindow*" "window")
+    '("GdkWindow*" "embedder")
+  )
+)
+
+(define-function offscreen_window_get_embedder
+  (c-name "gdk_offscreen_window_get_embedder")
+  (return-type "GdkWindow*")
+  (parameters
+    '("GdkWindow*" "window")
+  )
+)
+
+
+
+;; From gdkregion.h
+
+(define-method rect_equal
+  (of-object "GdkRegion")
+  (c-name "gdk_region_rect_equal")
+  (return-type "gboolean")
+  (parameters
+    '("const-GdkRectangle*" "rectangle")
+  )
+)
+
+
+
+;; From gdkwindow.h
+
+(define-method ensure_native
+  (of-object "GdkWindow")
+  (c-name "gdk_window_ensure_native")
+  (return-type "gboolean")
+)
+
+(define-method flush
+  (of-object "GdkWindow")
+  (c-name "gdk_window_flush")
+  (return-type "none")
+)
+
+(define-method geometry_changed
+  (of-object "GdkWindow")
+  (c-name "gdk_window_geometry_changed")
+  (return-type "none")
+)
+
+(define-method get_cursor
+  (of-object "GdkWindow")
+  (c-name "gdk_window_get_cursor")
+  (return-type "GdkCursor*")
+)
+
+(define-method restack
+  (of-object "GdkWindow")
+  (c-name "gdk_window_restack")
+  (return-type "none")
+  (parameters
+    '("GdkWindow*" "sibling")
+    '("gboolean" "above")
+  )
+)
diff --git a/gtk/gdkcairo.override b/gtk/gdkcairo.override
index 54132d4..db2a944 100644
--- a/gtk/gdkcairo.override
+++ b/gtk/gdkcairo.override
@@ -125,6 +125,24 @@ _wrap_gdk_cairo_region(PyObject *self, PyObject *args, PyObject *kwargs)
     return Py_None;
 }
 
+static PyObject *
+_wrap_gdk_cairo_reset_clip(PyObject *self, PyObject *args, PyObject *kwargs)
+{
+    static char *kwlist[] = { "cr", "drawable", NULL };
+    PyGObject *drawable;
+    PycairoContext *cr;
+
+    if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!O!:gtk.gdk.CairoContext.reset_clip", kwlist,
+				     &PycairoContext_Type, &cr, &PyGdkDrawable_Type,
+				     &drawable))
+        return NULL;
+    
+    gdk_cairo_reset_clip(cr->ctx, GDK_DRAWABLE(drawable->obj));
+    
+    Py_INCREF(Py_None);
+    return Py_None;
+}
+
 #if GTK_CHECK_VERSION(2, 9, 3)
 static PyObject *
 _wrap_gdk_cairo_set_source_pixmap(PyObject *self, PyObject *args,
@@ -152,6 +170,7 @@ static PyMethodDef _PyGdkCairoContext_methods[] = {
     { "set_source_color", (PyCFunction)_wrap_gdk_cairo_set_source_color, METH_VARARGS|METH_KEYWORDS },
     { "rectangle", (PyCFunction)_wrap_gdk_cairo_rectangle, METH_VARARGS|METH_KEYWORDS },
     { "region", (PyCFunction)_wrap_gdk_cairo_region, METH_VARARGS|METH_KEYWORDS },
+    { "reset_clip", (PyCFunction)_wrap_gdk_cairo_reset_clip, METH_VARARGS|METH_KEYWORDS },
 #if GTK_CHECK_VERSION(2, 9, 3)
     { "set_source_pixmap", (PyCFunction)_wrap_gdk_cairo_set_source_pixmap, METH_VARARGS|METH_KEYWORDS },
 #endif
@@ -214,6 +233,7 @@ ignore
   gdk_cairo_rectangle
   gdk_cairo_region
   gdk_cairo_set_source_pixmap
+  gdk_cairo_reset_clip
 
 %%
 init
diff --git a/gtk/gtk-2.18-types.defs b/gtk/gtk-2.18-types.defs
new file mode 100644
index 0000000..4ca0eaa
--- /dev/null
+++ b/gtk/gtk-2.18-types.defs
@@ -0,0 +1,17 @@
+;; -*- scheme -*-
+; object definitions ...
+
+(define-object EntryBuffer
+  (in-module "Gtk")
+  (parent "GObject")
+  (c-name "GtkEntryBuffer")
+  (gtype-id "GTK_TYPE_ENTRY_BUFFER")
+)
+
+(define-object InfoBar
+  (in-module "Gtk")
+  (parent "GtkHBox")
+  (c-name "GtkInfoBar")
+  (gtype-id "GTK_TYPE_INFO_BAR")
+)
+
diff --git a/gtk/gtk-2.18.defs b/gtk/gtk-2.18.defs
new file mode 100644
index 0000000..e2e5d5f
--- /dev/null
+++ b/gtk/gtk-2.18.defs
@@ -0,0 +1,675 @@
+;; -*- scheme -*-
+
+(include "gtk-2.18-types.defs")
+
+;; From gtkcellrenderer.h
+
+(define-method set_alignment
+  (of-object "GtkCellRenderer")
+  (c-name "gtk_cell_renderer_set_alignment")
+  (return-type "none")
+  (parameters
+    '("gfloat" "xalign")
+    '("gfloat" "yalign")
+  )
+)
+
+(define-method get_alignment
+  (of-object "GtkCellRenderer")
+  (c-name "gtk_cell_renderer_get_alignment")
+  (return-type "none")
+  (parameters
+    '("gfloat*" "xalign")
+    '("gfloat*" "yalign")
+  )
+)
+
+(define-method set_padding
+  (of-object "GtkCellRenderer")
+  (c-name "gtk_cell_renderer_set_padding")
+  (return-type "none")
+  (parameters
+    '("gint" "xpad")
+    '("gint" "ypad")
+  )
+)
+
+(define-method get_padding
+  (of-object "GtkCellRenderer")
+  (c-name "gtk_cell_renderer_get_padding")
+  (return-type "none")
+  (parameters
+    '("gint*" "xpad")
+    '("gint*" "ypad")
+  )
+)
+
+(define-method set_visible
+  (of-object "GtkCellRenderer")
+  (c-name "gtk_cell_renderer_set_visible")
+  (return-type "none")
+  (parameters
+    '("gboolean" "visible")
+  )
+)
+
+(define-method get_visible
+  (of-object "GtkCellRenderer")
+  (c-name "gtk_cell_renderer_get_visible")
+  (return-type "gboolean")
+)
+
+(define-method set_sensitive
+  (of-object "GtkCellRenderer")
+  (c-name "gtk_cell_renderer_set_sensitive")
+  (return-type "none")
+  (parameters
+    '("gboolean" "sensitive")
+  )
+)
+
+(define-method get_sensitive
+  (of-object "GtkCellRenderer")
+  (c-name "gtk_cell_renderer_get_sensitive")
+  (return-type "gboolean")
+)
+
+
+
+;; From gtkcellrenderertoggle.h
+
+(define-method get_activatable
+  (of-object "GtkCellRendererToggle")
+  (c-name "gtk_cell_renderer_toggle_get_activatable")
+  (return-type "gboolean")
+)
+
+(define-method set_activatable
+  (of-object "GtkCellRendererToggle")
+  (c-name "gtk_cell_renderer_toggle_set_activatable")
+  (return-type "none")
+  (parameters
+    '("gboolean" "setting")
+  )
+)
+
+
+
+;; From gtkentry.h
+
+(define-function new_with_buffer
+  (c-name "gtk_entry_new_with_buffer")
+  (return-type "GtkWidget*")
+  (parameters
+    '("GtkEntryBuffer*" "buffer")
+  )
+)
+
+(define-method get_buffer
+  (of-object "GtkEntry")
+  (c-name "gtk_entry_get_buffer")
+  (return-type "GtkEntryBuffer*")
+)
+
+(define-method set_buffer
+  (of-object "GtkEntry")
+  (c-name "gtk_entry_set_buffer")
+  (return-type "none")
+  (parameters
+    '("GtkEntryBuffer*" "buffer")
+  )
+)
+
+
+
+;; From gtkentrybuffer.h
+
+(define-function gtk_entry_buffer_get_type
+  (c-name "gtk_entry_buffer_get_type")
+  (return-type "GType")
+)
+
+(define-function gtk_entry_buffer_new
+  (c-name "gtk_entry_buffer_new")
+  (is-constructor-of "GtkEntryBuffer")
+  (return-type "GtkEntryBuffer*")
+  (parameters
+    '("const-gchar*" "initial_chars")
+    '("gint" "n_initial_chars")
+  )
+)
+
+(define-method get_bytes
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_get_bytes")
+  (return-type "gsize")
+)
+
+(define-method get_length
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_get_length")
+  (return-type "guint")
+)
+
+(define-method get_text
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_get_text")
+  (return-type "const-gchar*")
+)
+
+(define-method set_text
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_set_text")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "chars")
+    '("gint" "n_chars")
+  )
+)
+
+(define-method set_max_length
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_set_max_length")
+  (return-type "none")
+  (parameters
+    '("gint" "max_length")
+  )
+)
+
+(define-method get_max_length
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_get_max_length")
+  (return-type "gint")
+)
+
+(define-method insert_text
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_insert_text")
+  (return-type "guint")
+  (parameters
+    '("guint" "position")
+    '("const-gchar*" "chars")
+    '("gint" "n_chars")
+  )
+)
+
+(define-method delete_text
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_delete_text")
+  (return-type "guint")
+  (parameters
+    '("guint" "position")
+    '("gint" "n_chars")
+  )
+)
+
+(define-method emit_inserted_text
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_emit_inserted_text")
+  (return-type "none")
+  (parameters
+    '("guint" "position")
+    '("const-gchar*" "chars")
+    '("guint" "n_chars")
+  )
+)
+
+(define-method emit_deleted_text
+  (of-object "GtkEntryBuffer")
+  (c-name "gtk_entry_buffer_emit_deleted_text")
+  (return-type "none")
+  (parameters
+    '("guint" "position")
+    '("guint" "n_chars")
+  )
+)
+
+
+
+;; From gtkfilechooser.h
+
+(define-method set_create_folders
+  (of-object "GtkFileChooser")
+  (c-name "gtk_file_chooser_set_create_folders")
+  (return-type "none")
+  (parameters
+    '("gboolean" "create_folders")
+  )
+)
+
+(define-method get_create_folders
+  (of-object "GtkFileChooser")
+  (c-name "gtk_file_chooser_get_create_folders")
+  (return-type "gboolean")
+)
+
+
+
+;; From gtkiconview.h
+
+(define-method set_item_padding
+  (of-object "GtkIconView")
+  (c-name "gtk_icon_view_set_item_padding")
+  (return-type "none")
+  (parameters
+    '("gint" "item_padding")
+  )
+)
+
+(define-method get_item_padding
+  (of-object "GtkIconView")
+  (c-name "gtk_icon_view_get_item_padding")
+  (return-type "gint")
+)
+
+
+
+;; From gtkinfobar.h
+
+(define-function gtk_info_bar_get_type
+  (c-name "gtk_info_bar_get_type")
+  (return-type "GType")
+)
+
+(define-function gtk_info_bar_new
+  (c-name "gtk_info_bar_new")
+  (is-constructor-of "GtkInfoBar")
+  (return-type "GtkWidget*")
+)
+
+(define-function gtk_info_bar_new_with_buttons
+  (c-name "gtk_info_bar_new_with_buttons")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "first_button_text")
+  )
+  (varargs #t)
+)
+
+(define-method get_action_area
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_get_action_area")
+  (return-type "GtkWidget*")
+)
+
+(define-method get_content_area
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_get_content_area")
+  (return-type "GtkWidget*")
+)
+
+(define-method add_action_widget
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_add_action_widget")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "child")
+    '("gint" "response_id")
+  )
+)
+
+(define-method add_button
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_add_button")
+  (return-type "GtkWidget*")
+  (parameters
+    '("const-gchar*" "button_text")
+    '("gint" "response_id")
+  )
+)
+
+(define-method add_buttons
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_add_buttons")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "first_button_text")
+  )
+  (varargs #t)
+)
+
+(define-method set_response_sensitive
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_set_response_sensitive")
+  (return-type "none")
+  (parameters
+    '("gint" "response_id")
+    '("gboolean" "setting")
+  )
+)
+
+(define-method set_default_response
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_set_default_response")
+  (return-type "none")
+  (parameters
+    '("gint" "response_id")
+  )
+)
+
+(define-method response
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_response")
+  (return-type "none")
+  (parameters
+    '("gint" "response_id")
+  )
+)
+
+(define-method set_message_type
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_set_message_type")
+  (return-type "none")
+  (parameters
+    '("GtkMessageType" "message_type")
+  )
+)
+
+(define-method get_message_type
+  (of-object "GtkInfoBar")
+  (c-name "gtk_info_bar_get_message_type")
+  (return-type "GtkMessageType")
+)
+
+
+
+;; From gtklabel.h
+
+(define-method get_current_uri
+  (of-object "GtkLabel")
+  (c-name "gtk_label_get_current_uri")
+  (return-type "const-gchar*")
+)
+
+(define-method set_track_visited_links
+  (of-object "GtkLabel")
+  (c-name "gtk_label_set_track_visited_links")
+  (return-type "none")
+  (parameters
+    '("gboolean" "track_links")
+  )
+)
+
+(define-method get_track_visited_links
+  (of-object "GtkLabel")
+  (c-name "gtk_label_get_track_visited_links")
+  (return-type "gboolean")
+)
+
+
+
+;; From gtkmenu.h
+
+(define-method set_reserve_toggle_size
+  (of-object "GtkMenu")
+  (c-name "gtk_menu_set_reserve_toggle_size")
+  (return-type "none")
+  (parameters
+    '("gboolean" "reserve_toggle_size")
+  )
+)
+
+(define-method get_reserve_toggle_size
+  (of-object "GtkMenu")
+  (c-name "gtk_menu_get_reserve_toggle_size")
+  (return-type "gboolean")
+)
+
+
+
+;; From gtkprintoperation.h
+
+(define-method set_support_selection
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_set_support_selection")
+  (return-type "none")
+  (parameters
+    '("gboolean" "support_selection")
+  )
+)
+
+(define-method get_support_selection
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_get_support_selection")
+  (return-type "gboolean")
+)
+
+(define-method set_has_selection
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_set_has_selection")
+  (return-type "none")
+  (parameters
+    '("gboolean" "has_selection")
+  )
+)
+
+(define-method get_has_selection
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_get_has_selection")
+  (return-type "gboolean")
+)
+
+(define-method set_embed_page_setup
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_set_embed_page_setup")
+  (return-type "none")
+  (parameters
+    '("gboolean" "embed")
+  )
+)
+
+(define-method get_embed_page_setup
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_get_embed_page_setup")
+  (return-type "gboolean")
+)
+
+(define-method get_n_pages_to_print
+  (of-object "GtkPrintOperation")
+  (c-name "gtk_print_operation_get_n_pages_to_print")
+  (return-type "gint")
+)
+
+
+
+;; From gtkrange.h
+
+(define-method set_flippable
+  (of-object "GtkRange")
+  (c-name "gtk_range_set_flippable")
+  (return-type "none")
+  (parameters
+    '("gboolean" "flippable")
+  )
+)
+
+(define-method get_flippable
+  (of-object "GtkRange")
+  (c-name "gtk_range_get_flippable")
+  (return-type "gboolean")
+)
+
+
+
+;; From gtkstatusicon.h
+
+(define-method set_title
+  (of-object "GtkStatusIcon")
+  (c-name "gtk_status_icon_set_title")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "title")
+  )
+)
+
+(define-method get_title
+  (of-object "GtkStatusIcon")
+  (c-name "gtk_status_icon_get_title")
+  (return-type "const-gchar*")
+)
+
+
+
+;; From gtkwidget.h
+
+(define-method get_allocation
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_allocation")
+  (return-type "none")
+  (parameters
+    '("GtkAllocation*" "allocation")
+  )
+)
+
+(define-method set_allocation
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_set_allocation")
+  (return-type "none")
+  (parameters
+    '("const-GtkAllocation*" "allocation")
+  )
+)
+
+(define-method get_app_paintable
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_app_paintable")
+  (return-type "gboolean")
+)
+
+(define-method set_can_default
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_set_can_default")
+  (return-type "none")
+  (parameters
+    '("gboolean" "can_default")
+  )
+)
+
+(define-method get_can_default
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_can_default")
+  (return-type "gboolean")
+)
+
+(define-method set_can_focus
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_set_can_focus")
+  (return-type "none")
+  (parameters
+    '("gboolean" "can_focus")
+  )
+)
+
+(define-method get_can_focus
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_can_focus")
+  (return-type "gboolean")
+)
+
+(define-method get_double_buffered
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_double_buffered")
+  (return-type "gboolean")
+)
+
+(define-method set_has_window
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_set_has_window")
+  (return-type "none")
+  (parameters
+    '("gboolean" "has_window")
+  )
+)
+
+(define-method get_has_window
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_has_window")
+  (return-type "gboolean")
+)
+
+(define-method set_receives_default
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_set_receives_default")
+  (return-type "none")
+  (parameters
+    '("gboolean" "receives_default")
+  )
+)
+
+(define-method get_receives_default
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_receives_default")
+  (return-type "gboolean")
+)
+
+(define-method get_sensitive
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_sensitive")
+  (return-type "gboolean")
+)
+
+(define-method get_state
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_state")
+  (return-type "GtkStateType")
+)
+
+(define-method set_visible
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_set_visible")
+  (return-type "none")
+  (parameters
+    '("gboolean" "visible")
+  )
+)
+
+(define-method get_visible
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_get_visible")
+  (return-type "gboolean")
+)
+
+(define-method set_window
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_set_window")
+  (return-type "none")
+  (parameters
+    '("GdkWindow*" "window")
+  )
+)
+
+(define-method has_default
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_has_default")
+  (return-type "gboolean")
+)
+
+(define-method has_focus
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_has_focus")
+  (return-type "gboolean")
+)
+
+(define-method has_grab
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_has_grab")
+  (return-type "gboolean")
+)
+
+(define-method is_sensitive
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_is_sensitive")
+  (return-type "gboolean")
+)
+
+(define-method is_toplevel
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_is_toplevel")
+  (return-type "gboolean")
+)
+
+(define-method is_drawable
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_is_drawable")
+  (return-type "gboolean")
+)



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