libegg r856 - in trunk: . libegg/toolpalette
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: libegg r856 - in trunk: . libegg/toolpalette
- Date: Thu, 28 Feb 2008 13:22:47 +0000 (GMT)
Author: jhs
Date: Thu Feb 28 13:22:46 2008
New Revision: 856
URL: http://svn.gnome.org/viewvc/libegg?rev=856&view=rev
Log:
2008-02-28 Johannes Schmid <jhs gnome org>
* libegg/toolpalette/eggtoolpalette.c:
(egg_tool_palette_get_drag_target_item),
(egg_tool_palette_get_drag_target_group),
(egg_tool_palette_get_drag_item):
* libegg/toolpalette/eggtoolpalette.h:
Added two methods for advanced drag & drop and
make GtkSelectionData* argument const
Modified:
trunk/ChangeLog
trunk/libegg/toolpalette/eggtoolpalette.c
trunk/libegg/toolpalette/eggtoolpalette.h
Modified: trunk/libegg/toolpalette/eggtoolpalette.c
==============================================================================
--- trunk/libegg/toolpalette/eggtoolpalette.c (original)
+++ trunk/libegg/toolpalette/eggtoolpalette.c Thu Feb 28 13:22:46 2008
@@ -76,6 +76,16 @@
{ "application/x-egg-tool-palette-group", GTK_TARGET_SAME_APP, 0 },
};
+GtkTargetEntry egg_tool_palette_get_drag_target_item ()
+{
+ return dnd_targets[0];
+}
+
+GtkTargetEntry egg_tool_palette_get_drag_target_group ()
+{
+ return dnd_targets[1];
+}
+
G_DEFINE_TYPE (EggToolPalette,
egg_tool_palette,
GTK_TYPE_CONTAINER);
@@ -782,7 +792,7 @@
GtkWidget*
egg_tool_palette_get_drag_item (EggToolPalette *palette,
- GtkSelectionData *selection)
+ const GtkSelectionData *selection)
{
EggToolPaletteDragData *data;
Modified: trunk/libegg/toolpalette/eggtoolpalette.h
==============================================================================
--- trunk/libegg/toolpalette/eggtoolpalette.h (original)
+++ trunk/libegg/toolpalette/eggtoolpalette.h Thu Feb 28 13:22:46 2008
@@ -88,7 +88,7 @@
gint x,
gint y);
GtkWidget* egg_tool_palette_get_drag_item (EggToolPalette *palette,
- GtkSelectionData *selection);
+ const GtkSelectionData *selection);
void egg_tool_palette_set_drag_source (EggToolPalette *palette);
void egg_tool_palette_add_drag_dest (EggToolPalette *palette,
@@ -97,6 +97,9 @@
EggToolPaletteDragTargets targets,
GdkDragAction actions);
+GtkTargetEntry egg_tool_palette_get_drag_target_item ();
+GtkTargetEntry egg_tool_palette_get_drag_target_group ();
+
G_END_DECLS
#endif /* __EGG_TOOL_PALETTE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]