Permalink
Browse files

Rest of 2.18 defs - still need some overrides and tests for them

  • Loading branch information...
1 parent b0a89e4 commit a7fc38ed35c9fd44cb32d8e95e3151f907252be2 @auroraeosrose auroraeosrose committed Oct 8, 2009
Showing with 153 additions and 2 deletions.
  1. +1 −1 demos/phpgtk2-demo.php
  2. +152 −1 ext/gtk+/gtk-2.18.defs
View
@@ -190,7 +190,7 @@ protected function load_demos()
if ($GLOBALS['class'] === null) {
continue;
}
- $this->demos[$file] = null;
+ $this->demos[$file] = new stdClass;
$this->demos[$file]->classname = $GLOBALS['class'];
$this->demos[$file]->description = $GLOBALS['description'];
$this->demos[$file]->file = $file;
View
@@ -74,7 +74,158 @@
)
)
+(define-method set_activatable
+ (of-object "GtkCellRendererToggle")
+ (c-name "gtk_cell_renderer_toggle_set_activatable")
+ (return-type "none")
+ (parameters
+ '("gboolean" "create_folders")
+ )
+)
+
+(define-method get_activatable
+ (of-object "GtkCellRendererToggle")
+ (c-name "gtk_cell_renderer_toggle_get_activatable")
+ (return-type "boolean")
+)
+
+;; From gtkentrybuffer.h
+
+(define-method delete_text
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_delete_text")
+ (return-type "guint")
+ (parameters
+ '("guint" "position")
+ '("gint" "n_chars")
+ )
+)
+
+(define-method emit_deleted_text
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_emit_deleted_text")
+ (return-type "none")
+ (parameters
+ '("guint" "position")
+ '("gint" "n_chars")
+ )
+)
+
+(define-method emit_inserted_text
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_emit_inserted_text")
+ (return-type "none")
+ (parameters
+ '("guint" "position")
+ '("const-gchar*" "chars")
+ '("guint" "n_chars")
+ )
+)
+
+(define-method get_bytes
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_get_bytes")
+ (return-type "gsize")
+)
+
+(define-method get_length
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_get_length")
+ (return-type "guint")
+)
+
+(define-method get_max_length
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_get_max_length")
+ (return-type "gint")
+)
+
+(define-method get_text
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_get_text")
+ (return-type "const-gchar*")
+)
+
+(define-method insert_text
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_insert_text")
+ (return-type "guint")
+ (parameters
+ '("guint" "position")
+ '("const-gchar*" "chars")
+ '("guint" "n_chars")
+ )
+)
+(define-function gtk_entry_buffer_new
+ (c-name "gtk_entry_buffer_new")
+ (is-constructor-of "GtkEntryBuffer")
+ (caller-owns-return #t)
+ (return-type "GObject*")
+)
+
+(define-method set_max_length
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_set_max_length")
+ (return-type "none")
+ (parameters
+ '("gint" "max_length")
+ )
+)
+
+(define-method set_text
+ (of-object "GtkEntryBuffer")
+ (c-name "gtk_entry_buffer_set_text")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "chars")
+ '("guint" "n_chars")
+ )
+)
+
+;; From gtkentry.h
+
+(define-method set_buffer
+ (of-object "GtkEntry")
+ (c-name "gtk_entry_set_buffer")
+ (return-type "none")
+ (parameters
+ '("GtkEntryBuffer*" "buffer")
+ )
+)
+
+(define-method get_buffer
+ (of-object "GtkEntry")
+ (c-name "gtk_entry_get_buffer")
+ (return-type "GtkEntryBuffer*")
+)
+
+(define-function new_with_buffer
+ (is-constructor-of "GtkEntry")
+ (c-name "gtk_entry_new_with_buffer")
+ (caller-owns-return #t)
+ (return-type "GtkWidget*")
+ (parameters
+ '("GtkEntryBuffer*" "buffer")
+ )
+)
+
+;; From gtkfilechooser.h
+
+(define-method set_create_folders
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_set_create_folders")
+ (return-type "none")
+ (parameters
+ '("gboolean" "create_folders")
+ )
+)
+
+(define-method get_create_folders
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_get_create_folders")
+ (return-type "boolean")
+)
;; From gtkiconview.h
@@ -150,7 +301,7 @@
(return-type "GtkWidget*")
)
-(define-method bar_response
+(define-method response
(of-object "GtkInfoBar")
(c-name "gtk_info_bar_response")
(return-type "none")

0 comments on commit a7fc38e

Please sign in to comment.