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

@ -972,11 +972,11 @@ _wrap_gimp_color_button_new(PyGObject *self, PyObject *args, PyObject *kwargs)
"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;
}
%%