[gtkmm] Gtk: Regenerate .defs and docs.xml files, update gtk_vfuncs.defs



commit 4e30e14faaa41be181b98d93c5004c42eed2d0c2
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Tue Jan 31 18:40:01 2017 +0100

    Gtk: Regenerate .defs and docs.xml files, update gtk_vfuncs.defs

 gtk/src/gtk_docs.xml     |  188 +++++++++++++++++++---------------------------
 gtk/src/gtk_methods.defs |   69 +++++++----------
 gtk/src/gtk_signals.defs |   36 +++++-----
 gtk/src/gtk_vfuncs.defs  |   26 ++++---
 4 files changed, 138 insertions(+), 181 deletions(-)
---
diff --git a/gtk/src/gtk_docs.xml b/gtk/src/gtk_docs.xml
index 93246b4..7f649b5 100644
--- a/gtk/src/gtk_docs.xml
+++ b/gtk/src/gtk_docs.xml
@@ -28227,6 +28227,37 @@ Since: 2.6
 <return></return>
 </function>
 
+<function name="gtk_check_button_get_draw_indicator">
+<description>
+Returns Whether or not the indicator part of the button gets drawn.
+
+
+</description>
+<parameters>
+<parameter name="check_button">
+<parameter_description> a #GtkCheckButton
+</parameter_description>
+</parameter>
+</parameters>
+<return> The value of the GtkCheckButton:draw-indicator property.
+</return>
+</function>
+
+<function name="gtk_check_button_get_inconsistent">
+<description>
+
+</description>
+<parameters>
+<parameter name="check_button">
+<parameter_description> a #GtkCheckButton
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if @check_button is currently in an 'in between' state,
+%FALSE otherwise.
+</return>
+</function>
+
 <function name="gtk_check_button_new">
 <description>
 Creates a new #GtkCheckButton.
@@ -28274,6 +28305,51 @@ mnemonic character
 </return>
 </function>
 
+<function name="gtk_check_button_set_draw_indicator">
+<description>
+Sets whether the indicator part of the button is drawn. This is important for
+cases where the check button should have the functinality of a check button,
+but the visuals of a regular button, like in a #GtkStackSwitcher.
+
+</description>
+<parameters>
+<parameter name="check_button">
+<parameter_description> a #GtkCheckButton
+</parameter_description>
+</parameter>
+<parameter name="draw_indicator">
+<parameter_description> Whether or not to draw the indicator part of the button
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_check_button_set_inconsistent">
+<description>
+If the user has selected a range of elements (such as some text or
+spreadsheet cells) that are affected by a check button, and the
+current values in that range are inconsistent, you may want to
+display the toggle in an &quot;in between&quot; state. Normally you would
+turn off the inconsistent state again if the user checks the
+check button. This has to be done manually,
+gtk_check_button_set_inconsistent only affects visual appearance,
+not the semantics of the button.
+
+</description>
+<parameters>
+<parameter name="check_button">
+<parameter_description> a #GtkCheckButton
+</parameter_description>
+</parameter>
+<parameter name="inconsistent">
+<parameter_description> %TRUE if state is inconsistent
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_check_menu_item_get_active">
 <description>
 Returns whether the check menu item is active. See
@@ -79000,40 +79076,6 @@ the toggle button is pressed in and %FALSE if it is raised.
 </return>
 </function>
 
-<function name="gtk_toggle_button_get_inconsistent">
-<description>
-Gets the value set by gtk_toggle_button_set_inconsistent().
-
-
-</description>
-<parameters>
-<parameter name="toggle_button">
-<parameter_description> a #GtkToggleButton
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if the button is displayed as inconsistent, %FALSE otherwise
-</return>
-</function>
-
-<function name="gtk_toggle_button_get_mode">
-<description>
-Retrieves whether the button is displayed as a separate indicator
-and label. See gtk_toggle_button_set_mode().
-
-
-</description>
-<parameters>
-<parameter name="toggle_button">
-<parameter_description> a #GtkToggleButton
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if the togglebutton is drawn as a separate indicator
-and label.
-</return>
-</function>
-
 <function name="gtk_toggle_button_new">
 <description>
 Creates a new toggle button. A widget should be packed into the button, as in gtk_button_new().
@@ -79102,60 +79144,6 @@ This action causes the #GtkToggleButton::toggled signal and the
 <return></return>
 </function>
 
-<function name="gtk_toggle_button_set_inconsistent">
-<description>
-If the user has selected a range of elements (such as some text or
-spreadsheet cells) that are affected by a toggle button, and the
-current values in that range are inconsistent, you may want to
-display the toggle in an “in between” state. This function turns on
-“in between” display.  Normally you would turn off the inconsistent
-state again if the user toggles the toggle button. This has to be
-done manually, gtk_toggle_button_set_inconsistent() only affects
-visual appearance, it doesn’t affect the semantics of the button.
-
-
-</description>
-<parameters>
-<parameter name="toggle_button">
-<parameter_description> a #GtkToggleButton
-</parameter_description>
-</parameter>
-<parameter name="setting">
-<parameter_description> %TRUE if state is inconsistent
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
-<function name="gtk_toggle_button_set_mode">
-<description>
-Sets whether the button is displayed as a separate indicator and label.
-You can call this function on a checkbutton or a radiobutton with
-@draw_indicator = %FALSE to make the button look like a normal button.
-
-This can be used to create linked strip of buttons that work like
-a #GtkStackSwitcher.
-
-This function only affects instances of classes like #GtkCheckButton
-and #GtkRadioButton that derive from #GtkToggleButton,
-not instances of #GtkToggleButton itself.
-
-</description>
-<parameters>
-<parameter name="toggle_button">
-<parameter_description> a #GtkToggleButton
-</parameter_description>
-</parameter>
-<parameter name="draw_indicator">
-<parameter_description> if %TRUE, draw the button as a separate indicator
-and label; if %FALSE, draw the button like a normal button
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gtk_toggle_button_toggled">
 <description>
 Emits the #GtkToggleButton::toggled signal on the
@@ -88918,30 +88906,6 @@ style property is determined by the value type of @pspec.
 <return></return>
 </function>
 
-<function name="gtk_widget_class_list_style_properties">
-<description>
-Returns all style properties of a widget class.
-
-Since: 2.2
-
-</description>
-<parameters>
-<parameter name="klass">
-<parameter_description> a #GtkWidgetClass
-</parameter_description>
-</parameter>
-<parameter name="n_properties">
-<parameter_description> location to return the number of style properties found
-</parameter_description>
-</parameter>
-</parameters>
-<return> a
-newly allocated array of #GParamSpec*. The array must be
-freed with g_free().
-
-</return>
-</function>
-
 <function name="gtk_widget_class_set_accessible_role">
 <description>
 Sets the default #AtkRole to be set on accessibles created for
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 537f6b9..7ea06c5 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -6994,6 +6994,36 @@
   )
 )
 
+(define-method set_draw_indicator
+  (of-object "GtkCheckButton")
+  (c-name "gtk_check_button_set_draw_indicator")
+  (return-type "none")
+  (parameters
+    '("gboolean" "draw_indicator")
+  )
+)
+
+(define-method get_draw_indicator
+  (of-object "GtkCheckButton")
+  (c-name "gtk_check_button_get_draw_indicator")
+  (return-type "gboolean")
+)
+
+(define-method set_inconsistent
+  (of-object "GtkCheckButton")
+  (c-name "gtk_check_button_set_inconsistent")
+  (return-type "none")
+  (parameters
+    '("gboolean" "inconsistent")
+  )
+)
+
+(define-method get_inconsistent
+  (of-object "GtkCheckButton")
+  (c-name "gtk_check_button_get_inconsistent")
+  (return-type "gboolean")
+)
+
 
 
 ;; From gtkcheckmenuitem.h
@@ -27224,21 +27254,6 @@
   )
 )
 
-(define-method set_mode
-  (of-object "GtkToggleButton")
-  (c-name "gtk_toggle_button_set_mode")
-  (return-type "none")
-  (parameters
-    '("gboolean" "draw_indicator")
-  )
-)
-
-(define-method get_mode
-  (of-object "GtkToggleButton")
-  (c-name "gtk_toggle_button_get_mode")
-  (return-type "gboolean")
-)
-
 (define-method set_active
   (of-object "GtkToggleButton")
   (c-name "gtk_toggle_button_set_active")
@@ -27260,21 +27275,6 @@
   (return-type "none")
 )
 
-(define-method set_inconsistent
-  (of-object "GtkToggleButton")
-  (c-name "gtk_toggle_button_set_inconsistent")
-  (return-type "none")
-  (parameters
-    '("gboolean" "setting")
-  )
-)
-
-(define-method get_inconsistent
-  (of-object "GtkToggleButton")
-  (c-name "gtk_toggle_button_get_inconsistent")
-  (return-type "gboolean")
-)
-
 
 
 ;; From gtktoggletoolbutton.h
@@ -32540,15 +32540,6 @@
   )
 )
 
-(define-method list_style_properties
-  (of-object "GtkWidgetClass")
-  (c-name "gtk_widget_class_list_style_properties")
-  (return-type "GParamSpec**")
-  (parameters
-    '("guint*" "n_properties")
-  )
-)
-
 (define-method style_get_valist
   (of-object "GtkWidget")
   (c-name "gtk_widget_style_get_valist")
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index d1c4227..536422b 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -848,6 +848,24 @@
 
 ;; From GtkCheckButton
 
+(define-property draw-indicator
+  (of-object "GtkCheckButton")
+  (prop-type "GParamBoolean")
+  (docs "If the indicator part of the button is displayed")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property inconsistent
+  (of-object "GtkCheckButton")
+  (prop-type "GParamBoolean")
+  (docs "If the check button is in an “in between” state")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 ;; From GtkCheckMenuItem
 
 (define-signal toggled
@@ -8471,24 +8489,6 @@
   (construct-only #f)
 )
 
-(define-property inconsistent
-  (of-object "GtkToggleButton")
-  (prop-type "GParamBoolean")
-  (docs "If the toggle button is in an “in between” state")
-  (readable #t)
-  (writable #t)
-  (construct-only #f)
-)
-
-(define-property draw-indicator
-  (of-object "GtkToggleButton")
-  (prop-type "GParamBoolean")
-  (docs "If the toggle part of the button is displayed")
-  (readable #t)
-  (writable #t)
-  (construct-only #f)
-)
-
 ;; From GtkToolbar
 
 (define-signal orientation-changed
diff --git a/gtk/src/gtk_vfuncs.defs b/gtk/src/gtk_vfuncs.defs
index ca3d8f9..0675213 100644
--- a/gtk/src/gtk_vfuncs.defs
+++ b/gtk/src/gtk_vfuncs.defs
@@ -32,6 +32,20 @@
 
 ; GtkCellArea
 
+(define-vfunc snapshot
+  (of-object "GtkCellArea")
+  (return-type "void")
+  (parameters
+    '("GtkCellAreaContext*" "context")
+    '("GtkWidget*" "widget")
+    '("GtkSnapshot*" "snapshot")
+    '("const-GdkRectangle*" "background_area")
+    '("const-GdkRectangle*" "cell_area")
+    '("GtkCellRendererState" "flags")
+    '("gboolean" "paint_focus")
+  )
+)
+
 (define-vfunc get_request_mode
   (of-object "GtkCellArea")
   (return-type "GtkSizeRequestMode")
@@ -250,18 +264,6 @@
   )
 )
 
-
-
-; GtkCheckButton
-
-(define-vfunc draw_indicator
-  (of-object "GtkCheckButton")
-  (return-type "none")
-  (parameters
-    '("cairo_t*" "cr")
-  )
-)
-
 ; GtkCheckMenuItem
 
 (define-vfunc snapshot_indicator


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