[gtkmm] Gtk: Regenerate docs.xml and .defs files
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk: Regenerate docs.xml and .defs files
- Date: Tue, 21 May 2019 09:28:31 +0000 (UTC)
commit a2862947aab1679574d9dace014986a2dcb5785b
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Tue May 21 11:24:25 2019 +0200
Gtk: Regenerate docs.xml and .defs files
and update gtk_extra_objects.defs.
gtk/src/gtk_docs.xml | 82 ++++++++++++++++++++++++++------
gtk/src/gtk_extra_objects.defs | 24 ++++++++++
gtk/src/gtk_methods.defs | 105 +++++++++++++----------------------------
gtk/src/gtk_signals.defs | 20 ++++++++
4 files changed, 145 insertions(+), 86 deletions(-)
---
diff --git a/gtk/src/gtk_docs.xml b/gtk/src/gtk_docs.xml
index bb327e11..8a4c0c70 100644
--- a/gtk/src/gtk_docs.xml
+++ b/gtk/src/gtk_docs.xml
@@ -22089,20 +22089,6 @@ Upon errors %FALSE will be returned and @error will be assigned a
</return>
</function>
-<function name="gtk_button_clicked">
-<description>
-Emits a #GtkButton::clicked signal to the given #GtkButton.
-
-</description>
-<parameters>
-<parameter name="button">
-<parameter_description> The #GtkButton you want to send the signal to.
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_button_get_icon_name">
<description>
Returns the icon name set via gtk_button_set_icon_name().
@@ -47506,6 +47492,38 @@ Returns the direction the popup will be pointing at when popped up.
</return>
</function>
+<function name="gtk_menu_button_get_icon_name">
+<description>
+Gets the name of the icon shown in the button.
+
+
+</description>
+<parameters>
+<parameter name="menu_button">
+<parameter_description> a #GtkMenuButton
+</parameter_description>
+</parameter>
+</parameters>
+<return> the name of the icon shown in the button
+</return>
+</function>
+
+<function name="gtk_menu_button_get_label">
+<description>
+Gets the label shown in the button
+
+
+</description>
+<parameters>
+<parameter name="menu_button">
+<parameter_description> a #GtkMenuButton
+</parameter_description>
+</parameter>
+</parameters>
+<return> the label shown in the button
+</return>
+</function>
+
<function name="gtk_menu_button_get_menu_model">
<description>
Returns the #GMenuModel used to generate the popup.
@@ -47640,6 +47658,42 @@ as if you passed %GTK_ARROW_DOWN (although you won’t see any arrows).
<return></return>
</function>
+<function name="gtk_menu_button_set_icon_name">
+<description>
+Sets the name of an icon to show inside the menu button.
+
+</description>
+<parameters>
+<parameter name="menu_button">
+<parameter_description> a #GtkMenuButton
+</parameter_description>
+</parameter>
+<parameter name="icon_name">
+<parameter_description> the icon name
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_menu_button_set_label">
+<description>
+Sets the label to show inside the menu button.
+
+</description>
+<parameters>
+<parameter name="menu_button">
+<parameter_description> a #GtkMenuButton
+</parameter_description>
+</parameter>
+<parameter name="icon_name">
+<parameter_description> the label
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_menu_button_set_menu_model">
<description>
Sets the #GMenuModel from which the popup will be constructed,
diff --git a/gtk/src/gtk_extra_objects.defs b/gtk/src/gtk_extra_objects.defs
index 7dc6a945..bbca6675 100644
--- a/gtk/src/gtk_extra_objects.defs
+++ b/gtk/src/gtk_extra_objects.defs
@@ -42,6 +42,12 @@
(gtype-id "GTK_TYPE_COLOR_CHOOSER")
)
+(define-object CssProvider
+ (in-module "Gtk")
+ (c-name "GtkCssProvider")
+ (gtype-id "GTK_TYPE_CSS_PROVIDER")
+)
+
(define-object CssSection
(in-module "Gtk")
(c-name "GtkCssSection")
@@ -154,12 +160,24 @@
(gtype-id "GTK_TYPE_ICON_INFO")
)
+(define-object LinkButton
+ (in-module "Gtk")
+ (c-name "GtkLinkButton")
+ (gtype-id "GTK_TYPE_LINK_BUTTON")
+)
+
(define-object MediaFile
(in-module "Gtk")
(c-name "GtkMediaFile")
(gtype-id "GTK_TYPE_MEDIA_FILE")
)
+(define-object MessageDialog
+ (in-module "Gtk")
+ (c-name "GtkMessageDialog")
+ (gtype-id "GTK_TYPE_MESSAGE_DIALOG")
+)
+
(define-object MediaStream
(in-module "Gtk")
(c-name "GtkMediaStream")
@@ -245,6 +263,12 @@
(gtype-id "GTK_TYPE_SINGLE_SELECTION")
)
+(define-object SizeGroup
+ (in-module "Gtk")
+ (c-name "GtkSizeGroup")
+ (gtype-id "GTK_TYPE_SIZE_GROUP")
+)
+
(define-object Snapshot
(in-module "Gtk")
(c-name "GtkSnapshot")
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index e616b394..a179fd51 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -137,13 +137,6 @@
(gtype-id "GTK_TYPE_CELL_RENDERER_TOGGLE")
)
-(define-object CssProvider
- (in-module "Gtk")
- (parent "GObject")
- (c-name "GtkCssProvider")
- (gtype-id "GTK_TYPE_CSS_PROVIDER")
-)
-
(define-object EntryBuffer
(in-module "Gtk")
(parent "GObject")
@@ -301,20 +294,6 @@
(gtype-id "GTK_TYPE_SEARCH_ENGINE_QUARTZ")
)
-(define-object Settings
- (in-module "Gtk")
- (parent "GObject")
- (c-name "GtkSettings")
- (gtype-id "GTK_TYPE_SETTINGS")
-)
-
-(define-object SizeGroup
- (in-module "Gtk")
- (parent "GObject")
- (c-name "GtkSizeGroup")
- (gtype-id "GTK_TYPE_SIZE_GROUP")
-)
-
(define-object StyleContext
(in-module "Gtk")
(parent "GObject")
@@ -499,11 +478,11 @@
(gtype-id "GTK_TYPE_PROGRESS_BAR")
)
-(define-object PasswordEntry
+(define-object MenuButton
(in-module "Gtk")
(parent "GtkWidget")
- (c-name "GtkPasswordEntry")
- (gtype-id "GTK_TYPE_PASSWORD_ENTRY")
+ (c-name "GtkMenuButton")
+ (gtype-id "GTK_TYPE_MENU_BUTTON")
)
(define-object LevelBar
@@ -898,13 +877,6 @@
(gtype-id "GTK_TYPE_RADIO_BUTTON")
)
-(define-object MenuButton
- (in-module "Gtk")
- (parent "GtkToggleButton")
- (c-name "GtkMenuButton")
- (gtype-id "GTK_TYPE_MENU_BUTTON")
-)
-
(define-object ScaleButton
(in-module "Gtk")
(parent "GtkButton")
@@ -912,27 +884,6 @@
(gtype-id "GTK_TYPE_SCALE_BUTTON")
)
-(define-object VolumeButton
- (in-module "Gtk")
- (parent "GtkScaleButton")
- (c-name "GtkVolumeButton")
- (gtype-id "GTK_TYPE_VOLUME_BUTTON")
-)
-
-(define-object LockButton
- (in-module "Gtk")
- (parent "GtkButton")
- (c-name "GtkLockButton")
- (gtype-id "GTK_TYPE_LOCK_BUTTON")
-)
-
-(define-object LinkButton
- (in-module "Gtk")
- (parent "GtkButton")
- (c-name "GtkLinkButton")
- (gtype-id "GTK_TYPE_LINK_BUTTON")
-)
-
(define-object ComboBox
(in-module "Gtk")
(parent "GtkBin")
@@ -1031,13 +982,6 @@
(gtype-id "GTK_TYPE_WINDOW")
)
-(define-object ShortcutsWindow
- (in-module "Gtk")
- (parent "GtkWindow")
- (c-name "GtkShortcutsWindow")
- (gtype-id "GTK_TYPE_SHORTCUTS_WINDOW")
-)
-
(define-object Dialog
(in-module "Gtk")
(parent "GtkWindow")
@@ -1059,13 +1003,6 @@
(gtype-id "GTK_TYPE_PAGE_SETUP_UNIX_DIALOG")
)
-(define-object MessageDialog
- (in-module "Gtk")
- (parent "GtkDialog")
- (c-name "GtkMessageDialog")
- (gtype-id "GTK_TYPE_MESSAGE_DIALOG")
-)
-
(define-object FontChooserDialog
(in-module "Gtk")
(parent "GtkDialog")
@@ -5167,12 +5104,6 @@
)
)
-(define-method clicked
- (of-object "GtkButton")
- (c-name "gtk_button_clicked")
- (return-type "none")
-)
-
(define-method set_relief
(of-object "GtkButton")
(c-name "gtk_button_set_relief")
@@ -15516,6 +15447,36 @@
(return-type "gboolean")
)
+(define-method set_icon_name
+ (of-object "GtkMenuButton")
+ (c-name "gtk_menu_button_set_icon_name")
+ (return-type "none")
+ (parameters
+ '("const-char*" "icon_name")
+ )
+)
+
+(define-method get_icon_name
+ (of-object "GtkMenuButton")
+ (c-name "gtk_menu_button_get_icon_name")
+ (return-type "const-char*")
+)
+
+(define-method set_label
+ (of-object "GtkMenuButton")
+ (c-name "gtk_menu_button_set_label")
+ (return-type "none")
+ (parameters
+ '("const-char*" "label")
+ )
+)
+
+(define-method get_label
+ (of-object "GtkMenuButton")
+ (c-name "gtk_menu_button_get_label")
+ (return-type "const-char*")
+)
+
;; From gtkmenu.h
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 698cc4e3..a71ca591 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -6092,6 +6092,26 @@
(construct-only #f)
)
+(define-property icon-name
+ (of-object "GtkMenuButton")
+ (prop-type "GParamString")
+ (docs "The name of the icon used to automatically populate the button")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "")
+)
+
+(define-property label
+ (of-object "GtkMenuButton")
+ (prop-type "GParamString")
+ (docs "The label for the button")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "")
+)
+
;; From GtkMenuItem
(define-signal activate
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]