[gimp/wip/Jehan/layers-dockable-refresh: 23/58] app: use the new lock icons.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/layers-dockable-refresh: 23/58] app: use the new lock icons.
- Date: Fri, 22 Oct 2021 21:36:49 +0000 (UTC)
commit 12a309cade4782160dbd4bb824bf367595eb6d21
Author: Jehan <jehan girinstud io>
Date: Tue Mar 9 11:08:00 2021 +0100
app: use the new lock icons.
app/widgets/gimpdrawabletreeview.c | 6 +++---
app/widgets/gimpitemtreeview.c | 8 ++++----
app/widgets/gimplayertreeview.c | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/app/widgets/gimpdrawabletreeview.c b/app/widgets/gimpdrawabletreeview.c
index ad3ae0b7d9..1c64cef4bd 100644
--- a/app/widgets/gimpdrawabletreeview.c
+++ b/app/widgets/gimpdrawabletreeview.c
@@ -118,11 +118,11 @@ gimp_drawable_tree_view_class_init (GimpDrawableTreeViewClass *klass)
item_view_class->set_image = gimp_drawable_tree_view_set_image;
- item_view_class->lock_content_icon_name = GIMP_ICON_TOOL_PAINTBRUSH;
+ item_view_class->lock_content_icon_name = GIMP_ICON_LOCK_CONTENT;
item_view_class->lock_content_tooltip = _("Lock pixels");
- item_view_class->lock_position_icon_name = GIMP_ICON_TOOL_MOVE;
+ item_view_class->lock_position_icon_name = GIMP_ICON_LOCK_POSITION;
item_view_class->lock_position_tooltip = _("Lock position and size");
- item_view_class->lock_visibility_icon_name = GIMP_ICON_VISIBLE;
+ item_view_class->lock_visibility_icon_name = GIMP_ICON_LOCK_VISIBILITY;
item_view_class->lock_visibility_tooltip = _("Lock visibility");
}
diff --git a/app/widgets/gimpitemtreeview.c b/app/widgets/gimpitemtreeview.c
index c32183f404..2acb49c684 100644
--- a/app/widgets/gimpitemtreeview.c
+++ b/app/widgets/gimpitemtreeview.c
@@ -435,12 +435,12 @@ gimp_item_tree_view_constructed (GObject *object)
item_view);
column = gtk_tree_view_column_new ();
- lock_image = gtk_image_new_from_icon_name ("system-lock-screen", button_icon_size);
+ lock_image = gtk_image_new_from_icon_name (GIMP_ICON_LOCK, button_icon_size);
gtk_tree_view_column_set_widget (column, lock_image);
gtk_widget_show (lock_image);
gtk_tree_view_insert_column (tree_view->view, column, 1);
- item_view->priv->lock_cell = gimp_cell_renderer_toggle_new (GIMP_ICON_MULTI_LOCK);
+ item_view->priv->lock_cell = gimp_cell_renderer_toggle_new (GIMP_ICON_LOCK_MULTI);
g_object_set (item_view->priv->lock_cell,
"xpad", 0,
"ypad", 0,
@@ -699,7 +699,7 @@ gimp_item_tree_view_style_updated (GtkWidget *widget)
"icon-name", GIMP_ICON_VISIBLE,
NULL);
g_object_set (view->priv->lock_cell,
- "icon-name", GIMP_ICON_MULTI_LOCK,
+ "icon-name", GIMP_ICON_LOCK_MULTI,
NULL);
GTK_WIDGET_CLASS (parent_class)->style_updated (widget);
@@ -2111,7 +2111,7 @@ gimp_item_tree_view_get_n_locks (GimpItemTreeView *view,
GList *list;
gint n_locks = 0;
- *icon_name = GIMP_ICON_MULTI_LOCK;
+ *icon_name = GIMP_ICON_LOCK_MULTI;
for (list = view->priv->locks; list; list = list->next)
{
diff --git a/app/widgets/gimplayertreeview.c b/app/widgets/gimplayertreeview.c
index b82b1e8d76..fe843bf182 100644
--- a/app/widgets/gimplayertreeview.c
+++ b/app/widgets/gimplayertreeview.c
@@ -531,7 +531,7 @@ gimp_layer_tree_view_constructed (GObject *object)
/* Lock alpha toggle */
gimp_item_tree_view_add_lock (GIMP_ITEM_TREE_VIEW (tree_view),
- GIMP_ICON_TRANSPARENCY,
+ GIMP_ICON_LOCK_ALPHA,
(GimpIsLockedFunc) gimp_layer_get_lock_alpha,
(GimpCanLockFunc) gimp_layer_can_lock_alpha,
(GimpSetLockFunc) gimp_layer_set_lock_alpha,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]