pygtk r3027 - in trunk: . gtk
- From: gianmt svn gnome org
- To: svn-commits-list gnome org
- Subject: pygtk r3027 - in trunk: . gtk
- Date: Tue, 26 Aug 2008 21:35:16 +0000 (UTC)
Author: gianmt
Date: Tue Aug 26 21:35:16 2008
New Revision: 3027
URL: http://svn.gnome.org/viewvc/pygtk?rev=3027&view=rev
Log:
Include latest 2.14 API added in GTK+ itself
Modified:
trunk/ChangeLog
trunk/gtk/gtk-2.14.defs
Modified: trunk/gtk/gtk-2.14.defs
==============================================================================
--- trunk/gtk/gtk-2.14.defs (original)
+++ trunk/gtk/gtk-2.14.defs Tue Aug 26 21:35:16 2008
@@ -18,6 +18,99 @@
+;; From gtkadjustment.h
+
+(define-method get_lower
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_get_lower")
+ (return-type "gdouble")
+)
+
+(define-method set_lower
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_set_lower")
+ (return-type "none")
+ (parameters
+ '("gdouble" "lower")
+ )
+)
+
+(define-method get_upper
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_get_upper")
+ (return-type "gdouble")
+)
+
+(define-method set_upper
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_set_upper")
+ (return-type "none")
+ (parameters
+ '("gdouble" "upper")
+ )
+)
+
+(define-method get_step_increment
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_get_step_increment")
+ (return-type "gdouble")
+)
+
+(define-method set_step_increment
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_set_step_increment")
+ (return-type "none")
+ (parameters
+ '("gdouble" "step_increment")
+ )
+)
+
+(define-method get_page_increment
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_get_page_increment")
+ (return-type "gdouble")
+)
+
+(define-method set_page_increment
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_set_page_increment")
+ (return-type "none")
+ (parameters
+ '("gdouble" "page_increment")
+ )
+)
+
+(define-method get_page_size
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_get_page_size")
+ (return-type "gdouble")
+)
+
+(define-method set_page_size
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_set_page_size")
+ (return-type "none")
+ (parameters
+ '("gdouble" "page_size")
+ )
+)
+
+(define-method configure
+ (of-object "GtkAdjustment")
+ (c-name "gtk_adjustment_configure")
+ (return-type "none")
+ (parameters
+ '("gdouble" "value")
+ '("gdouble" "lower")
+ '("gdouble" "upper")
+ '("gdouble" "step_increment")
+ '("gdouble" "page_increment")
+ '("gdouble" "page_size")
+ )
+)
+
+
+
;; From gtkbuilder.h
(define-method add_objects_from_file
@@ -124,6 +217,23 @@
(return-type "GtkWidget*")
)
+;; From gtkcombobox.h
+
+(define-method set_button_sensitivity
+ (of-object "GtkComboBox")
+ (c-name "gtk_combo_box_set_button_sensitivity")
+ (return-type "none")
+ (parameters
+ '("GtkSensitivityType" "sensitivity")
+ )
+)
+
+(define-method get_button_sensitivity
+ (of-object "GtkComboBox")
+ (c-name "gtk_combo_box_get_button_sensitivity")
+ (return-type "GtkSensitivityType")
+)
+
;; From gtkcontainer.h
@@ -177,6 +287,73 @@
+;; From gtkfilechooser.h
+
+(define-method get_file
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_get_file")
+ (return-type "GFile*")
+)
+
+(define-method set_file
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_set_file")
+ (return-type "gboolean")
+ (parameters
+ '("GFile*" "file")
+ '("GError**" "error")
+ )
+)
+
+(define-method select_file
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_select_file")
+ (return-type "gboolean")
+ (parameters
+ '("GFile*" "file")
+ '("GError**" "error")
+ )
+)
+
+(define-method unselect_file
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_unselect_file")
+ (return-type "none")
+ (parameters
+ '("GFile*" "file")
+ )
+)
+
+(define-method get_files
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_get_files")
+ (return-type "GSList*")
+)
+
+(define-method set_current_folder_file
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_set_current_folder_file")
+ (return-type "gboolean")
+ (parameters
+ '("GFile*" "file")
+ '("GError**" "error")
+ )
+)
+
+(define-method get_current_folder_file
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_get_current_folder_file")
+ (return-type "GFile*")
+)
+
+(define-method get_preview_file
+ (of-object "GtkFileChooser")
+ (c-name "gtk_file_chooser_get_preview_file")
+ (return-type "GFile*")
+)
+
+
+
;; From gtkfontsel.h
(define-method get_ok_button
@@ -580,12 +757,35 @@
;; From gtkstatusicon.h
+(define-function status_icon_new_from_gicon
+ (c-name "gtk_status_icon_new_from_gicon")
+ (return-type "GtkStatusIcon*")
+ (parameters
+ '("GIcon*" "icon")
+ )
+)
+
(define-method get_x11_window_id
(of-object "GtkStatusIcon")
(c-name "gtk_status_icon_get_x11_window_id")
(return-type "guint32")
)
+(define-method get_gicon
+ (of-object "GtkStatusIcon")
+ (c-name "gtk_status_icon_get_gicon")
+ (return-type "GIcon*")
+)
+
+(define-method set_from_gicon
+ (of-object "GtkStatusIcon")
+ (c-name "gtk_status_icon_set_from_gicon")
+ (return-type "none")
+ (parameters
+ '("GIcon*" "icon")
+ )
+)
+
;; From gtktooltip.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]