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

This commit is contained in:
Michael Natterer 2011-02-15 20:55:57 +01:00
parent 31b4d3801e
commit 0d22fee220
1 changed files with 5 additions and 5 deletions

View File

@ -969,14 +969,14 @@ _wrap_gimp_color_button_new(PyGObject *self, PyObject *args, PyObject *kwargs)
return -1; return -1;
if (pygobject_construct(self, if (pygobject_construct(self,
"title", title, "title", title,
"type", type, "type", type,
"color", color, "color", color,
"area-width", width,
"area-height", height,
NULL)) NULL))
return -1; return -1;
gtk_widget_set_size_request(GIMP_COLOR_BUTTON(self->obj)->color_area,
width, height);
return 0; return 0;
} }
%% %%