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
|
@ -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;
|
||||||
}
|
}
|
||||||
%%
|
%%
|
||||||
|
|
Loading…
Reference in New Issue