/usr/share/pygtk/2.0/defs/gtk-2.24.defs is in python-gtk2-dev 2.24.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | ;; From gtkcombobox.h
(define-function combo_box_new_with_entry
(c-name "gtk_combo_box_new_with_entry")
(return-type "GtkWidget*")
)
(define-function combo_box_new_with_model_and_entry
(c-name "gtk_combo_box_new_with_model_and_entry")
(return-type "GtkWidget*")
(parameters
'("GtkTreeModel*" "model")
)
)
(define-method get_has_entry
(of-object "GtkComboBox")
(c-name "gtk_combo_box_get_has_entry")
(return-type "gboolean")
)
(define-method set_entry_text_column
(of-object "GtkComboBox")
(c-name "gtk_combo_box_set_entry_text_column")
(return-type "none")
(parameters
'("gint" "text_column")
)
)
(define-method get_entry_text_column
(of-object "GtkComboBox")
(c-name "gtk_combo_box_get_entry_text_column")
(return-type "gint")
)
;; From gtkcomboboxtext.h
(define-function combo_box_text_get_type
(c-name "gtk_combo_box_text_get_type")
(return-type "GType")
)
(define-function combo_box_text_new
(c-name "gtk_combo_box_text_new")
(is-constructor-of "GtkComboBoxText")
(return-type "GtkWidget*")
)
(define-function combo_box_text_new_with_entry
(c-name "gtk_combo_box_text_new_with_entry")
(return-type "GtkWidget*")
)
(define-method append_text
(of-object "GtkComboBoxText")
(c-name "gtk_combo_box_text_append_text")
(return-type "none")
(parameters
'("const-gchar*" "text")
)
)
(define-method insert_text
(of-object "GtkComboBoxText")
(c-name "gtk_combo_box_text_insert_text")
(return-type "none")
(parameters
'("gint" "position")
'("const-gchar*" "text")
)
)
(define-method prepend_text
(of-object "GtkComboBoxText")
(c-name "gtk_combo_box_text_prepend_text")
(return-type "none")
(parameters
'("const-gchar*" "text")
)
)
(define-method remove
(of-object "GtkComboBoxText")
(c-name "gtk_combo_box_text_remove")
(return-type "none")
(parameters
'("gint" "position")
)
)
(define-method get_active_text
(of-object "GtkComboBoxText")
(c-name "gtk_combo_box_text_get_active_text")
(return-type "gchar*")
)
;; From gtknotebook.h
(define-method set_group_name
(of-object "GtkNotebook")
(c-name "gtk_notebook_set_group_name")
(return-type "none")
(parameters
'("const-gchar*" "group_name")
)
)
(define-method get_group_name
(of-object "GtkNotebook")
(c-name "gtk_notebook_get_group_name")
(return-type "const-gchar*")
)
;; From gtkrange.h
(define-method set_round_digits
(of-object "GtkRange")
(c-name "gtk_range_set_round_digits")
(return-type "none")
(parameters
'("gint" "round_digits")
)
)
(define-method get_round_digits
(of-object "GtkRange")
(c-name "gtk_range_get_round_digits")
(return-type "gint")
)
|