Commit 7123168f authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

there's no need to keep a reference to the anchor button.

2005-06-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimplayertreeview.[ch]: there's no need to keep a
	reference to the anchor button.
parent e3800a40
2005-06-15 Sven Neumann <sven@gimp.org>
* app/widgets/gimplayertreeview.[ch]: there's no need to keep a
reference to the anchor button.
2005-06-15 Sven Neumann <sven@gimp.org>
* app/core/gimpimagefile.c (gimp_imagefile_load_thumb):
......
......@@ -382,6 +382,7 @@ gimp_layer_tree_view_constructor (GType type,
{
GimpContainerTreeView *tree_view;
GimpLayerTreeView *layer_view;
GtkWidget *button;
GObject *object;
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
......@@ -425,15 +426,13 @@ gimp_layer_tree_view_constructor (GType type,
/* hide basically useless edit button */
gtk_widget_hide (GIMP_ITEM_TREE_VIEW (layer_view)->edit_button);
layer_view->anchor_button =
gimp_editor_add_action_button (GIMP_EDITOR (layer_view), "layers",
"layers-anchor", NULL);
button = gimp_editor_add_action_button (GIMP_EDITOR (layer_view), "layers",
"layers-anchor", NULL);
gimp_container_view_enable_dnd (GIMP_CONTAINER_VIEW (layer_view),
GTK_BUTTON (layer_view->anchor_button),
GTK_BUTTON (button),
GIMP_TYPE_LAYER);
gtk_box_reorder_child (GTK_BOX (GIMP_EDITOR (layer_view)->button_box),
layer_view->anchor_button, 5);
button, 5);
return object;
}
......
......@@ -45,8 +45,6 @@ struct _GimpLayerTreeView
GtkWidget *preserve_trans_toggle;
GtkAdjustment *opacity_adjustment;
GtkWidget *anchor_button;
gint model_column_mask;
gint model_column_mask_visible;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment