[gtkmm] Add property and signal defs for GtkFontChooser*.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Add property and signal defs for GtkFontChooser*.
- Date: Fri, 2 Mar 2012 20:28:45 +0000 (UTC)
commit 1f8b8fc3f7503bcbb70d54758de46e4b7b2f4903
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Mar 2 21:10:17 2012 +0100
Add property and signal defs for GtkFontChooser*.
* tools/extra_defs_gen/generate_defs_gtk.cc: Add GTK_FONT_CHOOSER,
GTK_FONT_CHOOSER_DIALOG and GTK_FONT_CHOOSER_WIDGET.
* gtk/src/gtk_signals.defs: Update.
ChangeLog | 8 ++++
gtk/src/gtk_signals.defs | 51 +++++++++++++++++++++++++++++
tools/extra_defs_gen/generate_defs_gtk.cc | 3 ++
3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b70f541..4983893 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2012-03-02 Murray Cumming <murrayc murrayc com>
+ Add property and signal defs for GtkFontChooser*.
+
+ * tools/extra_defs_gen/generate_defs_gtk.cc: Add GTK_FONT_CHOOSER,
+ GTK_FONT_CHOOSER_DIALOG and GTK_FONT_CHOOSER_WIDGET.
+ * gtk/src/gtk_signals.defs: Update.
+
+2012-03-02 Murray Cumming <murrayc murrayc com>
+
Add ColorChooser and ColorChooserDialog, deprecating ColorSelection*.
* tools/extra_defs_gen/generate_defs_gtk.cc: Mention the new Color*
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index e721973..3104e81 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -4243,6 +4243,57 @@
(construct-only #f)
)
+;; From GtkFontChooser
+
+(define-signal font-activated
+ (of-object "GtkFontChooser")
+ (return-type "void")
+ (when "first")
+ (parameters
+ '("const-gchar*" "p0")
+ )
+)
+
+(define-property font
+ (of-object "GtkFontChooser")
+ (prop-type "GParamString")
+ (docs "Font description as a string, e.g. 'Sans Italic 12'")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property font-desc
+ (of-object "GtkFontChooser")
+ (prop-type "GParamBoxed")
+ (docs "Font description as a PangoFontDescription struct")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property preview-text
+ (of-object "GtkFontChooser")
+ (prop-type "GParamString")
+ (docs "The text to display in order to demonstrate the selected font")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property show-preview-entry
+ (of-object "GtkFontChooser")
+ (prop-type "GParamBoolean")
+ (docs "Whether the preview text entry is shown or not")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+;; From GtkFontChooserDialog
+
+;; From GtkFontChooserWidget
+
;; From GtkFontSelection
(define-property font-name
diff --git a/tools/extra_defs_gen/generate_defs_gtk.cc b/tools/extra_defs_gen/generate_defs_gtk.cc
index b118bd6..4a29aa2 100644
--- a/tools/extra_defs_gen/generate_defs_gtk.cc
+++ b/tools/extra_defs_gen/generate_defs_gtk.cc
@@ -120,6 +120,9 @@ int main(int argc, char** argv)
<< get_defs( GTK_TYPE_FILE_CHOOSER_WIDGET )
<< get_defs( GTK_TYPE_FIXED )
<< get_defs( GTK_TYPE_FONT_BUTTON )
+ << get_defs( GTK_TYPE_FONT_CHOOSER )
+ << get_defs( GTK_TYPE_FONT_CHOOSER_DIALOG )
+ << get_defs( GTK_TYPE_FONT_CHOOSER_WIDGET )
<< get_defs( GTK_TYPE_FONT_SELECTION )
<< get_defs( GTK_TYPE_FONT_SELECTION_DIALOG )
<< get_defs( GTK_TYPE_FRAME )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]