forked from AuroraMiddleware/gtk
testsuite: Remove a GtkColorButton special case
The comment above explains neatly why subclassing GtkButton for GtkColorButton was a bad idea. Nowadays it's a GtkWidget subclass containing a GtkButton so let's remove the special case here.
This commit is contained in:
parent
73cad1e784
commit
2f8284a386
@ -509,13 +509,6 @@ test_type (gconstpointer data)
|
||||
g_str_equal (pspec->name, "draw-indicator"))
|
||||
continue;
|
||||
|
||||
/* Really a bug in the way GtkButton and its subclasses interact:
|
||||
* setting label etc on a subclass destroys the content, breaking
|
||||
* e.g. GtkColorButton pretty badly
|
||||
*/
|
||||
if (type == GTK_TYPE_COLOR_BUTTON && pspec->owner_type == GTK_TYPE_BUTTON)
|
||||
continue;
|
||||
|
||||
/* Too many special cases involving -set properties */
|
||||
if (g_str_equal (g_type_name (pspec->owner_type), "GtkCellRendererText") ||
|
||||
g_str_equal (g_type_name (pspec->owner_type), "GtkTextTag"))
|
||||
|
Loading…
Reference in New Issue
Block a user