[gtkmm] Gtk: Update .defs files for Gtk::Text
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk: Update .defs files for Gtk::Text
- Date: Tue, 14 May 2019 15:15:44 +0000 (UTC)
commit bc5f05b4124192d2278d2de2929f4098d6474d1b
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Tue May 14 17:12:08 2019 +0200
Gtk: Update .defs files for Gtk::Text
* tools/extra_defs_gen/generate_defs_gtk.cc:
* gtk/src/gtk_extra_objects.defs:
* gtk/src/gtk_signals.defs: Update for Gtk::Text.
gtk/src/gtk_extra_objects.defs | 6 +
gtk/src/gtk_signals.defs | 319 +++++++++++++++++++++++++++---
tools/extra_defs_gen/generate_defs_gtk.cc | 1 +
3 files changed, 301 insertions(+), 25 deletions(-)
---
diff --git a/gtk/src/gtk_extra_objects.defs b/gtk/src/gtk_extra_objects.defs
index f25d9de6..7dc6a945 100644
--- a/gtk/src/gtk_extra_objects.defs
+++ b/gtk/src/gtk_extra_objects.defs
@@ -257,6 +257,12 @@
(gtype-id "GTK_TYPE_TARGET_LIST")
)
+(define-object Text
+ (in-module "Gtk")
+ (c-name "GtkText")
+ (gtype-id "GTK_TYPE_TEXT")
+)
+
(define-object TextIter
(in-module "Gtk")
(c-name "GtkTextIter")
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 5ab77eb0..698cc4e3 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -9799,6 +9799,275 @@
(construct-only #f)
)
+;; From GtkText
+
+(define-signal populate-popup
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last")
+ (parameters
+ '("GtkWidget*" "p0")
+ )
+)
+
+(define-signal activate
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-signal move-cursor
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+ (parameters
+ '("GtkMovementStep" "p0")
+ '("gint" "p1")
+ '("gboolean" "p2")
+ )
+)
+
+(define-signal copy-clipboard
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-signal insert-at-cursor
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+ (parameters
+ '("const-gchar*" "p0")
+ )
+)
+
+(define-signal delete-from-cursor
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+ (parameters
+ '("GtkDeleteType" "p0")
+ '("gint" "p1")
+ )
+)
+
+(define-signal backspace
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-signal cut-clipboard
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-signal paste-clipboard
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-signal toggle-overwrite
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-signal preedit-changed
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+ (parameters
+ '("const-gchar*" "p0")
+ )
+)
+
+(define-signal insert-emoji
+ (of-object "GtkText")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-property buffer
+ (of-object "GtkText")
+ (prop-type "GParamObject")
+ (docs "Text buffer object which actually stores self text")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property max-length
+ (of-object "GtkText")
+ (prop-type "GParamInt")
+ (docs "Maximum number of characters for this self. Zero if no maximum")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "0")
+)
+
+(define-property visibility
+ (of-object "GtkText")
+ (prop-type "GParamBoolean")
+ (docs "FALSE displays the “invisible char” instead of the actual text (password mode)")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "TRUE")
+)
+
+(define-property invisible-char
+ (of-object "GtkText")
+ (prop-type "GParamUnichar")
+ (docs "The character to use when masking self contents (in “password mode”)")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "42")
+)
+
+(define-property invisible-char-set
+ (of-object "GtkText")
+ (prop-type "GParamBoolean")
+ (docs "Whether the invisible character has been set")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property activates-default
+ (of-object "GtkText")
+ (prop-type "GParamBoolean")
+ (docs "Whether to activate the default widget (such as the default button in a dialog) when Enter is
pressed")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property scroll-offset
+ (of-object "GtkText")
+ (prop-type "GParamInt")
+ (docs "Number of pixels of the self scrolled off the screen to the left")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+ (default-value "0")
+)
+
+(define-property truncate-multiline
+ (of-object "GtkText")
+ (prop-type "GParamBoolean")
+ (docs "Whether to truncate multiline pastes to one line.")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property overwrite-mode
+ (of-object "GtkText")
+ (prop-type "GParamBoolean")
+ (docs "Whether new text overwrites existing text")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property im-module
+ (of-object "GtkText")
+ (prop-type "GParamString")
+ (docs "Which IM module should be used")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "")
+)
+
+(define-property placeholder-text
+ (of-object "GtkText")
+ (prop-type "GParamString")
+ (docs "Show text in the self when it’s empty and unfocused")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "")
+)
+
+(define-property input-purpose
+ (of-object "GtkText")
+ (prop-type "GParamEnum")
+ (docs "Purpose of the text field")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "GTK_INPUT_PURPOSE_FREE_FORM")
+)
+
+(define-property input-hints
+ (of-object "GtkText")
+ (prop-type "GParamFlags")
+ (docs "Hints for the text field behaviour")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "GTK_INPUT_HINT_NONE")
+)
+
+(define-property attributes
+ (of-object "GtkText")
+ (prop-type "GParamBoxed")
+ (docs "A list of style attributes to apply to the text of the self")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property populate-all
+ (of-object "GtkText")
+ (prop-type "GParamBoolean")
+ (docs "Whether to emit ::populate-popup for touch popups")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property tabs
+ (of-object "GtkText")
+ (prop-type "GParamBoxed")
+ (docs "A list of tabstop locations to apply to the text of the self")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property enable-emoji-completion
+ (of-object "GtkText")
+ (prop-type "GParamBoolean")
+ (docs "Whether to suggest Emoji replacements")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property propagate-text-width
+ (of-object "GtkText")
+ (prop-type "GParamBoolean")
+ (docs "Whether the entry should grow and shrink with the content")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
;; From GtkTextBuffer
(define-signal changed
@@ -10767,22 +11036,6 @@
(flags "Run Last, Action")
)
-(define-signal move-viewport
- (of-object "GtkTextView")
- (return-type "void")
- (flags "Run Last, Action")
- (parameters
- '("GtkScrollStep" "p0")
- '("gint" "p1")
- )
-)
-
-(define-signal set-anchor
- (of-object "GtkTextView")
- (return-type "void")
- (flags "Run Last, Action")
-)
-
(define-signal insert-at-cursor
(of-object "GtkTextView")
(return-type "void")
@@ -10826,21 +11079,43 @@
(flags "Run Last, Action")
)
-(define-signal toggle-cursor-visible
+(define-signal preedit-changed
(of-object "GtkTextView")
(return-type "void")
(flags "Run Last, Action")
+ (parameters
+ '("const-gchar*" "p0")
+ )
)
-(define-signal preedit-changed
+(define-signal insert-emoji
+ (of-object "GtkTextView")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-signal move-viewport
(of-object "GtkTextView")
(return-type "void")
(flags "Run Last, Action")
(parameters
- '("const-gchar*" "p0")
+ '("GtkScrollStep" "p0")
+ '("gint" "p1")
)
)
+(define-signal set-anchor
+ (of-object "GtkTextView")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
+(define-signal toggle-cursor-visible
+ (of-object "GtkTextView")
+ (return-type "void")
+ (flags "Run Last, Action")
+)
+
(define-signal extend-selection
(of-object "GtkTextView")
(return-type "gboolean")
@@ -10853,12 +11128,6 @@
)
)
-(define-signal insert-emoji
- (of-object "GtkTextView")
- (return-type "void")
- (flags "Run Last, Action")
-)
-
(define-property pixels-above-lines
(of-object "GtkTextView")
(prop-type "GParamInt")
diff --git a/tools/extra_defs_gen/generate_defs_gtk.cc b/tools/extra_defs_gen/generate_defs_gtk.cc
index be50d28f..7c9de811 100644
--- a/tools/extra_defs_gen/generate_defs_gtk.cc
+++ b/tools/extra_defs_gen/generate_defs_gtk.cc
@@ -213,6 +213,7 @@ int main(int /* argc */, char** /* argv */)
<< get_defs( GTK_TYPE_TOOLBAR )
<< get_defs( GTK_TYPE_TOOL_ITEM )
<< get_defs( GTK_TYPE_TOOL_BUTTON )
+ << get_defs( GTK_TYPE_TEXT )
<< get_defs( GTK_TYPE_TEXT_BUFFER )
<< get_defs( GTK_TYPE_TEXT_MARK )
<< get_defs( GTK_TYPE_TEXT_TAG )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]