From 31c5e23a0b6c91c2765b9e111c29c6debf86004a Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Thu, 5 Mar 2009 08:11:54 +0000 Subject: Adding clear-color swatch to complement no-color. (bzr r7422) --- src/interface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/interface.cpp') diff --git a/src/interface.cpp b/src/interface.cpp index e7a3d6f28..f03df2917 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -77,7 +77,8 @@ typedef enum { IMAGE_DATA, APP_X_INKY_COLOR, APP_X_COLOR, - APP_X_NOCOLOR + APP_X_NOCOLOR, + APP_X_XCOLOR } ui_drop_target_info; static GtkTargetEntry ui_drop_target_entries [] = { @@ -90,6 +91,7 @@ static GtkTargetEntry ui_drop_target_entries [] = { {(gchar *)"application/x-inkscape-color", 0, APP_X_INKY_COLOR}, #endif // ENABLE_MAGIC_COLORS {(gchar *)"application/x-inkscape-nocolor", 0, APP_X_NOCOLOR }, + {(gchar *)"application/x-inkscape-xcolor", 0, APP_X_XCOLOR }, {(gchar *)"application/x-color", 0, APP_X_COLOR } }; @@ -1236,6 +1238,7 @@ sp_ui_drag_data_received(GtkWidget *widget, break; case APP_X_NOCOLOR: + case APP_X_XCOLOR: { gchar* c = g_strdup("none"); // temp int destX = 0; -- cgit v1.2.3