[gimp] pygimp: use the new width/height properties instead of poking into the button



commit 0d22fee22010ea135e1ded48c263a4702848aa6d
Author: Michael Natterer <mitch gimp org>
Date:   Tue Feb 15 20:55:57 2011 +0100

    pygimp: use the new width/height properties instead of poking into the button

 plug-ins/pygimp/gimpui.override |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpui.override b/plug-ins/pygimp/gimpui.override
index 8800389..566b919 100644
--- a/plug-ins/pygimp/gimpui.override
+++ b/plug-ins/pygimp/gimpui.override
@@ -969,14 +969,14 @@ _wrap_gimp_color_button_new(PyGObject *self, PyObject *args, PyObject *kwargs)
        return -1;
 
     if (pygobject_construct(self,
-                            "title", title,
-                            "type", type,
-                            "color", color,
+                            "title",       title,
+                            "type",        type,
+                            "color",       color,
+                            "area-width",  width,
+			    "area-height", height,
                             NULL))
         return -1;
 
-    gtk_widget_set_size_request(GIMP_COLOR_BUTTON(self->obj)->color_area,
-                                width, height);
     return 0;
 }
 %%



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