plug-ins: use g_object_bind_property() to set widgets sensitive

depending on toggle buttons instead of libgimpwidgets' "set_sensitive"
hack.
This commit is contained in:
Michael Natterer
2011-05-11 11:41:26 +02:00
parent 6d421f9d4d
commit 77b615e899
16 changed files with 105 additions and 80 deletions

View File

@ -519,8 +519,9 @@ create_options_page (void)
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_widget_show (table);
gtk_widget_set_sensitive (table, mapvals.antialiasing);
g_object_set_data (G_OBJECT (toggle), "set_sensitive", table);
g_object_bind_property (toggle, "active",
table, "sensitive",
G_BINDING_SYNC_CREATE);
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 0,
_("_Depth:"), 0, 0,