mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
widgets: Restore GimpContainerEditor label
At some point, the code to show the label
for grids in dockable dialogues was removed.
(Possibly when GimpContainerGridView
was removed around 10e3a968
).
This patch restores that code to
GimpContainerEditor to display the label
when selecting items in gridview in the
dockable dialogues.
This commit is contained in:
parent
b72c289413
commit
b7e9634de3
1 changed files with 11 additions and 0 deletions
|
@ -244,6 +244,9 @@ gimp_container_editor_constructed (GObject *object)
|
||||||
gimp_assert_not_reached ();
|
gimp_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gimp_editor_set_show_name (GIMP_EDITOR (editor->view),
|
||||||
|
(editor->priv->view_type == GIMP_VIEW_TYPE_GRID));
|
||||||
|
|
||||||
if (GIMP_IS_LIST (editor->priv->container))
|
if (GIMP_IS_LIST (editor->priv->container))
|
||||||
gimp_container_view_set_reorderable (GIMP_CONTAINER_VIEW (editor->view),
|
gimp_container_view_set_reorderable (GIMP_CONTAINER_VIEW (editor->view),
|
||||||
! gimp_list_get_sort_func (GIMP_LIST (editor->priv->container)));
|
! gimp_list_get_sort_func (GIMP_LIST (editor->priv->container)));
|
||||||
|
@ -461,6 +464,14 @@ gimp_container_editor_select_items (GimpContainerView *view,
|
||||||
GIMP_OBJECT (viewable));
|
GIMP_OBJECT (viewable));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (viewable)
|
||||||
|
{
|
||||||
|
gchar *desc = gimp_viewable_get_description (viewable, NULL);
|
||||||
|
|
||||||
|
gimp_editor_set_name (GIMP_EDITOR (editor->view), desc);
|
||||||
|
g_free (desc);
|
||||||
|
}
|
||||||
|
|
||||||
if (gimp_editor_get_ui_manager (GIMP_EDITOR (editor->view)))
|
if (gimp_editor_get_ui_manager (GIMP_EDITOR (editor->view)))
|
||||||
gimp_ui_manager_update (gimp_editor_get_ui_manager (GIMP_EDITOR (editor->view)),
|
gimp_ui_manager_update (gimp_editor_get_ui_manager (GIMP_EDITOR (editor->view)),
|
||||||
gimp_editor_get_popup_data (GIMP_EDITOR (editor->view)));
|
gimp_editor_get_popup_data (GIMP_EDITOR (editor->view)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue