GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 43accc1d authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

need to connect to the cell renderer's "clicked" signal because "toggled"

2003-03-19  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcomponenteditor.c: need to connect to the cell
	renderer's "clicked" signal because "toggled" is not emitted any
	longer.

	* app/widgets/gimpdrawabletreeview.c: removed debugging output.

	* app/widgets/gimpitemtreeview.[ch]: added "const gchar *reorder_desc"
	to the class scruct and use it as undo_desc for DND reordering.

	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpvectorstreeview.c: set reorder_desc.
parent 0b401af4
2003-03-19 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcomponenteditor.c: need to connect to the cell
renderer's "clicked" signal because "toggled" is not emitted any
longer.
* app/widgets/gimpdrawabletreeview.c: removed debugging output.
* app/widgets/gimpitemtreeview.[ch]: added "const gchar *reorder_desc"
to the class scruct and use it as undo_desc for DND reordering.
* app/widgets/gimpchanneltreeview.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimpvectorstreeview.c: set reorder_desc.
2003-03-19 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcellrenderertoggle.[ch]
......@@ -21,11 +21,6 @@
#include "config.h"
#ifdef __GNUC__
#warning GTK_DISABLE_DEPRECATED
#endif
#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
#include "libgimpmath/gimpmath.h"
......@@ -128,6 +123,7 @@ gimp_channel_tree_view_class_init (GimpChannelTreeViewClass *klass)
item_view_class->raise_to_top_desc = _("Raise Channel to Top");
item_view_class->lower_desc = _("Lower Channel");
item_view_class->lower_to_bottom_desc = _("Lower Channel to Bottom");
item_view_class->reorder_desc = _("Reorder Channel");
}
static void
......
......@@ -60,8 +60,9 @@ static void gimp_component_editor_set_image (GimpImageEditor *editor
static void gimp_component_editor_create_components (GimpComponentEditor *editor);
static void gimp_component_editor_clear_components (GimpComponentEditor *editor);
static void gimp_component_editor_toggled (GtkCellRendererToggle *cellrenderertoggle,
static void gimp_component_editor_clicked (GtkCellRendererToggle *cellrenderertoggle,
gchar *path,
GdkModifierType state,
GimpComponentEditor *editor);
static gboolean gimp_component_editor_select (GtkTreeSelection *selection,
GtkTreeModel *model,
......@@ -165,8 +166,8 @@ gimp_component_editor_init (GimpComponentEditor *editor)
"active", COLUMN_VISIBLE,
NULL);
g_signal_connect (editor->eye_cell, "toggled",
G_CALLBACK (gimp_component_editor_toggled),
g_signal_connect (editor->eye_cell, "clicked",
G_CALLBACK (gimp_component_editor_clicked),
editor);
gtk_tree_view_insert_column_with_attributes (editor->view,
......@@ -412,8 +413,9 @@ gimp_component_editor_clear_components (GimpComponentEditor *editor)
}
static void
gimp_component_editor_toggled (GtkCellRendererToggle *cellrenderertoggle,
gimp_component_editor_clicked (GtkCellRendererToggle *cellrenderertoggle,
gchar *path_str,
GdkModifierType state,
GimpComponentEditor *editor)
{
GtkTreePath *path;
......
......@@ -206,6 +206,9 @@ gimp_drawable_tree_view_constructor (GType type,
return object;
}
/* GimpContainerView methods */
static void
gimp_drawable_tree_view_set_container (GimpContainerView *view,
GimpContainer *container)
......@@ -250,6 +253,9 @@ gimp_drawable_tree_view_insert_item (GimpContainerView *view,
return iter;
}
/* GimpItemTreeView methods */
static void
gimp_drawable_tree_view_set_image (GimpItemTreeView *item_view,
GimpImage *gimage)
......@@ -283,6 +289,9 @@ gimp_drawable_tree_view_set_image (GimpItemTreeView *item_view,
}
}
/* callbacks */
static gboolean
gimp_drawable_tree_view_select (GtkTreeSelection *selection,
GtkTreeModel *model,
......@@ -320,9 +329,6 @@ gimp_drawable_tree_view_select (GtkTreeSelection *selection,
retval = FALSE;
}
g_print ("gimp_drawable_tree_view_select: floating sel present (%d)\n",
retval);
g_object_unref (renderer);
}
......
......@@ -676,7 +676,7 @@ gimp_item_tree_view_drop (GimpContainerTreeView *tree_view,
GIMP_ITEM (src_object),
dest_index,
TRUE,
_("Reorder Item"));
item_view_class->reorder_desc);
}
gimp_image_flush (item_view->gimage);
......
......@@ -110,6 +110,7 @@ struct _GimpItemTreeViewClass
const gchar *raise_to_top_desc;
const gchar *lower_desc;
const gchar *lower_to_bottom_desc;
const gchar *reorder_desc;
};
......
......@@ -203,6 +203,7 @@ gimp_layer_tree_view_class_init (GimpLayerTreeViewClass *klass)
item_view_class->raise_to_top_desc = _("Raise Layer to Top");
item_view_class->lower_desc = _("Lower Layer");
item_view_class->lower_to_bottom_desc = _("Lower Layer to Bottom");
item_view_class->reorder_desc = _("Reorder Layer");
gimp_rgba_set (&black_color, 0.0, 0.0, 0.0, GIMP_OPACITY_OPAQUE);
gimp_rgba_set (&white_color, 1.0, 1.0, 1.0, GIMP_OPACITY_OPAQUE);
......
......@@ -119,6 +119,7 @@ gimp_vectors_tree_view_class_init (GimpVectorsTreeViewClass *klass)
item_view_class->raise_to_top_desc = _("Raise Path to Top");
item_view_class->lower_desc = _("Lower Path");
item_view_class->lower_to_bottom_desc = _("Lower Path to Bottom");
item_view_class->reorder_desc = _("Reorder Path");
}
static void
......
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