gimp r25905 - in branches/soc-2008-python: . plug-ins/pygimp



Author: larsc
Date: Mon Jun  9 19:24:17 2008
New Revision: 25905
URL: http://svn.gnome.org/viewvc/gimp?rev=25905&view=rev

Log:
2008-06-09  Lars-Peter Clausen <lars metafoo de>
    Added wrapper for GimpColorProfileStore and GimpColorProfileCombobox
    * plug-ins/pygimp/gimpui.defs
    * plug-ins/pygimp/gimpui.override


Modified:
   branches/soc-2008-python/ChangeLog
   branches/soc-2008-python/plug-ins/pygimp/gimpui.defs
   branches/soc-2008-python/plug-ins/pygimp/gimpui.override

Modified: branches/soc-2008-python/plug-ins/pygimp/gimpui.defs
==============================================================================
--- branches/soc-2008-python/plug-ins/pygimp/gimpui.defs	(original)
+++ branches/soc-2008-python/plug-ins/pygimp/gimpui.defs	Mon Jun  9 19:24:17 2008
@@ -1429,8 +1429,8 @@
   (c-name "gimp_frame_new")
   (is-constructor-of "GimpFrame")
   (return-type "GtkWidget*")
-  (parameters
-    '("const-gchar*" "label")
+  (properties
+    '("label")
   )
 )
 
@@ -3243,7 +3243,6 @@
 )
 
 
-
 ;; From ../../libgimp/gimpaspectpreview.h
 
 (define-function gimp_aspect_preview_get_type
@@ -3701,11 +3700,11 @@
   (c-name "gimp_number_pair_entry_new")
   (is-constructor-of "GimpNumberPairEntry")
   (return-type "GtkWidget*")
-  (parameters
-    '("const-gchar*" "separators")
-    '("gboolean" "allow_simplification")
-    '("gdouble" "min_valid_value")
-    '("gdouble" "max_valid_value")
+  (properties
+    '("separators")
+    '("allow-simplification" (argname "allow_simplification"))
+    '("min-valid-value" (argname "min_valid_value"))
+    '("max-valid-value" (argname "max_valid_value"))
   )
 )
 
@@ -3810,3 +3809,108 @@
 )
 
 
+;; -*- scheme -*-
+; object definitions ...
+(define-object ColorProfileStore
+  (in-module "Gimp")
+  (parent "GtkListStore")
+  (c-name "GimpColorProfileStore")
+  (gtype-id "GIMP_TYPE_COLOR_PROFILE_STORE")
+)
+
+;; Enumerations and flags ...
+
+
+;; From gimpcolorprofilestore.h
+
+(define-function gimp_color_profile_store_get_type
+  (c-name "gimp_color_profile_store_get_type")
+  (return-type "GType")
+)
+
+(define-function gimp_color_profile_store_new
+  (c-name "gimp_color_profile_store_new")
+  (is-constructor-of "GimpColorProfileStore")
+  (return-type "GtkListStore*")
+  (properties
+    '("history")
+  )
+)
+
+(define-method add
+  (of-object "GimpColorProfileStore")
+  (c-name "gimp_color_profile_store_add")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "filename")
+    '("const-gchar*" "label")
+  )
+)
+
+
+;; -*- scheme -*-
+; object definitions ...
+(define-object ColorProfileComboBox
+  (in-module "Gimp")
+  (parent "GtkComboBox")
+  (c-name "GimpColorProfileComboBox")
+  (gtype-id "GIMP_TYPE_COLOR_PROFILE_COMBO_BOX")
+)
+
+;; Enumerations and flags ...
+
+
+;; From gimpcolorprofilecombobox.h
+
+(define-function gimp_color_profile_combo_box_get_type
+  (c-name "gimp_color_profile_combo_box_get_type")
+  (return-type "GType")
+)
+
+(define-function gimp_color_profile_combo_box_new
+  (c-name "gimp_color_profile_combo_box_new")
+  (is-constructor-of "GimpColorProfileComboBox")
+  (return-type "GtkWidget*")
+  (parameters
+    '("GtkWidget*" "dialog")
+    '("const-gchar*" "history")
+  )
+)
+
+(define-function gimp_color_profile_combo_box_new_with_model
+  (c-name "gimp_color_profile_combo_box_new_with_model")
+  (is-constructor-of "GimpColorProfileComboBox")
+  (return-type "GtkWidget*")
+  (properties
+    '("dialog")
+    '("model")
+  )
+)
+
+(define-method add
+  (of-object "GimpColorProfileComboBox")
+  (c-name "gimp_color_profile_combo_box_add")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "filename")
+    '("const-gchar*" "label")
+  )
+)
+
+(define-method set_active
+  (of-object "GimpColorProfileComboBox")
+  (c-name "gimp_color_profile_combo_box_set_active")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "filename")
+    '("const-gchar*" "label")
+  )
+)
+
+(define-method get_active
+  (of-object "GimpColorProfileComboBox")
+  (c-name "gimp_color_profile_combo_box_get_active")
+  (return-type "gchar*")
+)
+
+

Modified: branches/soc-2008-python/plug-ins/pygimp/gimpui.override
==============================================================================
--- branches/soc-2008-python/plug-ins/pygimp/gimpui.override	(original)
+++ branches/soc-2008-python/plug-ins/pygimp/gimpui.override	Mon Jun  9 19:24:17 2008
@@ -57,6 +57,9 @@
   *_valist
   gimp_resolution_*
 %%
+ignore
+  gimp_color_profile_combo_box_new
+%%
 override gimp_drawable_combo_box_new kwargs
 static gboolean
 pygimp_drawable_constraint_marshal(gint32 image_id, gint32 drawable_id,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]