mirror of https://github.com/GNOME/gimp.git
app: set overrided system extensions as unsensitive.
When a user extension with same id as a system extension is installed, set the system extension unsensitive in the GUI (as well as extensions with missing requirements, though it is not implemented yet). The reason why I broke this change in 2 commits (with the previous commit) is because it will allow to easily cherry-pick the core code commits whereas the GTK+ code will have to be reimplemented for gimp-2-10 since this widget uses GTK+3 API.
This commit is contained in:
parent
4d745743e8
commit
acdf169d97
|
@ -170,8 +170,11 @@ gimp_extension_list_set (GimpExtensionList *list,
|
|||
|
||||
onoff = gtk_switch_new ();
|
||||
gtk_switch_set_active (GTK_SWITCH (onoff),
|
||||
gimp_extension_manager_is_active (list->p->manager,
|
||||
gimp_object_get_name (extension)));
|
||||
gimp_extension_manager_is_running (list->p->manager,
|
||||
extension));
|
||||
gtk_widget_set_sensitive (onoff,
|
||||
gimp_extension_manager_can_run (list->p->manager,
|
||||
extension));
|
||||
gtk_box_pack_end (GTK_BOX (hbox), onoff, FALSE, FALSE, 1);
|
||||
gtk_widget_show (onoff);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue