Commit f1954342 authored by Murray Cumming's avatar Murray Cumming

CellEditable: Added editing_canceled property.

* tools/extra_defs_gen/generate_defs_gtk.cc: Added GtkCellEditable.
* gtk/src/gtk_signals.defs: Added the GtkCellEditable entries.
* gtk/src/gtk_other.defs: Remove entries that are no longer needed,
because they are now in gtk_signals.defs or gtk_methods.defs
* gtk/src/gtk_methods.defs: Hand-edit some GtkAboutDialog entries to correct
the constness of some return types.
* gtk/src/celleditable.hg: Added editing_canceled property.
parent bcbc0b53
2010-09-24 Murray Cumming <murrayc@murrayc.com>
CellEditable: Added editing_canceled property.
* tools/extra_defs_gen/generate_defs_gtk.cc: Added GtkCellEditable.
* gtk/src/gtk_signals.defs: Added the GtkCellEditable entries.
* gtk/src/gtk_other.defs: Remove entries that are no longer needed,
because they are now in gtk_signals.defs or gtk_methods.defs
* gtk/src/gtk_methods.defs: Hand-edit some GtkAboutDialog entries to correct
the constness of some return types.
* gtk/src/celleditable.hg: Added editing_canceled property.
2010-09-24 Murray Cumming <murrayc@murrayc.com>
gtkmm: Added some missing properties.
......
......@@ -47,6 +47,8 @@ public:
_WRAP_SIGNAL(void editing_done(), "editing_done")
_WRAP_SIGNAL(void remove_widget(), "remove_widget")
_WRAP_PROPERTY("editing-canceled", bool)
protected:
_WRAP_VFUNC(void start_editing(GdkEvent* event), start_editing)
......
......@@ -3010,7 +3010,7 @@
(define-method get_authors
(of-object "GtkAboutDialog")
(c-name "gtk_about_dialog_get_authors")
(return-type "const-gchar**")
(return-type "gchar-const-*-const-*")
)
(define-method set_authors
......@@ -3025,7 +3025,7 @@
(define-method get_documenters
(of-object "GtkAboutDialog")
(c-name "gtk_about_dialog_get_documenters")
(return-type "const-gchar**")
(return-type "gchar-const-*-const-*")
)
(define-method set_documenters
......@@ -3040,7 +3040,7 @@
(define-method get_artists
(of-object "GtkAboutDialog")
(c-name "gtk_about_dialog_get_artists")
(return-type "const-gchar**")
(return-type "gchar-const-*-const-*")
)
(define-method set_artists
......
; GtkCellEditable (written by hand because we can't instantiate an interface):
(define-signal editing_done
(of-object "GtkCellEditable")
(return-type "void")
(when "last")
)
(define-signal remove_widget
(of-object "GtkCellEditable")
(return-type "void")
(when "last")
)
; GtkEditable
(define-signal insert_text
(of-object "GtkEditable")
(return-type "void")
(when "last")
(parameters
'("const-gchar*" "text")
'("gint" "length")
'("gint*" "position")
)
)
(define-signal delete_text
(of-object "GtkEditable")
(return-type "void")
(when "last")
(parameters
'("gint" "start_pos")
'("gint" "end_pos")
)
)
(define-signal changed
(of-object "GtkEditable")
(return-type "void")
(when "last")
)
;; For some reason h2defs.py doesn't provide this:
(define-function gtk_drag_get_data
(c-name "gtk_drag_get_data")
(return-type "none")
(parameters
'("GtkWidget*" "widget")
'("GdkDragContext*" "context")
'("GdkAtom" "target")
'("guint32" "time")
)
)
;; GtkSettings properties that are only installed when GtkSettings is used by other objects.
(define-property gtk-toolbar-style
......@@ -105,50 +48,3 @@
(construct-only #f)
)
;; From GtkPrintOperationPreview (TODO: vfuncs):
(define-signal ready
(of-object "GtkPrintOperationPreview")
(return-type "void")
(when "last")
(parameters
'("GtkPrintContext*" "p0")
)
)
(define-signal got-page-size
(of-object "GtkPrintOperationPreview")
(return-type "void")
(when "last")
(parameters
'("GtkPrintContext*" "p0")
'("GtkPageSetup*" "p1")
)
)
; h2defs.py does not seem to get these:
(define-method get_authors
(of-object "GtkAboutDialog")
(c-name "gtk_about_dialog_get_authors")
(return-type "gchar-const-*-const-*")
)
(define-method get_documenters
(of-object "GtkAboutDialog")
(c-name "gtk_about_dialog_get_documenters")
(return-type "gchar-const-*-const-*")
)
(define-method get_artists
(of-object "GtkAboutDialog")
(c-name "gtk_about_dialog_get_artists")
(return-type "gchar-const-*-const-*")
)
......@@ -5845,6 +5845,29 @@
(construct-only #f)
)
;; From GtkCellEditable
(define-signal editing-done
(of-object "GtkCellEditable")
(return-type "void")
(when "last")
)
(define-signal remove-widget
(of-object "GtkCellEditable")
(return-type "void")
(when "last")
)
(define-property editing-canceled
(of-object "GtkCellEditable")
(prop-type "GParamBoolean")
(docs "Indicates that editing has been canceled")
(readable #t)
(writable #t)
(construct-only #f)
)
;; From GtkCellLayout
;; From GtkCellRenderer
......
......@@ -73,6 +73,7 @@ int main(int argc, char** argv)
<< get_defs( GTK_TYPE_CHECK_BUTTON )
<< get_defs( GTK_TYPE_CHECK_MENU_ITEM )
<< get_defs( GTK_TYPE_CLIST ) /* Deprecated */
<< get_defs( GTK_TYPE_CELL_EDITABLE )
<< get_defs( GTK_TYPE_CELL_LAYOUT )
<< get_defs( GTK_TYPE_CELL_RENDERER )
<< get_defs( GTK_TYPE_CELL_RENDERER_ACCEL )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment