added a "item_activate_func" to the struct and the constructor so we can

2002-02-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpitemlistview.[ch]: added a "item_activate_func"
	to the struct and the constructor so we can distinguish double
	click from right click in the callbacks.

	* app/widgets/gimpvectorslistview.[ch]: added a "item_stroke_func".

	* app/widgets/gimpchannellistview.c: reorder the "To Selection" button.

	* app/gui/dialogs-constructors.c: changed accordingly.

	* app/gui/menus.c: added separators and some new items to the
	vectors menu. Use the SELECTION_REPLACE, _ADD, ... icons for
	the resp. menu items.

	* app/gui/vectors-commands.[ch]: added empty callbacks for the new
	menu items, put the stroke stuff to an own function which is used
	as "item_stroke_func" when creating GimpVectorsListViews.
This commit is contained in:
Michael Natterer
2002-02-26 14:40:30 +00:00
committed by Michael Natterer
parent 52d07c9646
commit 17c27e5ee0
19 changed files with 556 additions and 160 deletions

View File

@ -51,6 +51,7 @@
#include "widgets/gimpdocumentview.h"
#include "widgets/gimplistitem.h"
#include "widgets/gimppreview.h"
#include "widgets/gimpvectorslistview.h"
#include "about-dialog.h"
#include "brush-editor.h"
@ -735,6 +736,7 @@ dialogs_layer_list_view_new (GimpDialogFactory *factory,
(GimpConvertItemFunc) gimp_layer_new_from_drawable,
(GimpNewItemFunc) layers_new_layer_query,
(GimpEditItemFunc) layers_edit_layer_query,
(GimpActivateItemFunc) layers_edit_layer_query,
gimp_item_factory_from_path ("<Layers>"));
dockable = dialogs_dockable_new (view,
@ -773,6 +775,7 @@ dialogs_channel_list_view_new (GimpDialogFactory *factory,
(GimpConvertItemFunc) NULL,
(GimpNewItemFunc) channels_new_channel_query,
(GimpEditItemFunc) channels_edit_channel_query,
(GimpActivateItemFunc) channels_edit_channel_query,
gimp_item_factory_from_path ("<Channels>"));
dockable = dialogs_dockable_new (view,
@ -801,9 +804,10 @@ dialogs_vectors_list_view_new (GimpDialogFactory *factory,
GimpContext *context,
gint preview_size)
{
GimpImage *gimage;
GtkWidget *view;
GtkWidget *dockable;
GimpImage *gimage;
GimpVectorsListView *vectors_view;
GtkWidget *view;
GtkWidget *dockable;
gimage = gimp_context_get_image (context);
@ -822,8 +826,13 @@ dialogs_vectors_list_view_new (GimpDialogFactory *factory,
(GimpConvertItemFunc) NULL,
(GimpNewItemFunc) vectors_new_vectors_query,
(GimpEditItemFunc) vectors_edit_vectors_query,
(GimpActivateItemFunc) vectors_vectors_tool,
gimp_item_factory_from_path ("<Vectors>"));
vectors_view = GIMP_VECTORS_LIST_VIEW (view);
vectors_view->stroke_item_func = vectors_stroke_vectors;
dockable = dialogs_dockable_new (view,
"Paths List", "Paths",
NULL,