mirror of https://github.com/GNOME/gimp.git
pygimp: use the new width/height properties instead of poking into the button
This commit is contained in:
parent
31b4d3801e
commit
0d22fee220
|
@ -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;
|
||||
}
|
||||
%%
|
||||
|
|
Loading…
Reference in New Issue