Raise on mouse click

2003-02-03  Glynn Foster  <glynn.foster@sun.com>

	* src/about.c: Raise on mouse click
This commit is contained in:
Glynn Foster 2003-02-03 22:58:14 +00:00 committed by Glynn Foster
parent aecf10685d
commit ec7cb56de2
2 changed files with 9 additions and 39 deletions

View File

@ -1,3 +1,7 @@
2003-02-03 Glynn Foster <glynn.foster@sun.com>
* src/about.c: Raise on mouse click
2003-02-03 Glynn Foster <glynn.foster@sun.com> 2003-02-03 Glynn Foster <glynn.foster@sun.com>
* data/Makefile.am, data/hawaii-shirt.png, * data/Makefile.am, data/hawaii-shirt.png,

View File

@ -69,7 +69,6 @@ zenity_move_clothes_event (GnomeCanvasItem *item, GdkEvent *event, gpointer data
{ {
static double x, y; static double x, y;
double new_x, new_y; double new_x, new_y;
GdkCursor *fleur;
static int dragging; static int dragging;
double item_x, item_y; double item_x, item_y;
@ -80,44 +79,11 @@ zenity_move_clothes_event (GnomeCanvasItem *item, GdkEvent *event, gpointer data
switch (event->type) { switch (event->type) {
case GDK_BUTTON_PRESS: case GDK_BUTTON_PRESS:
switch (event->button.button) {
case 1:
if (event->button.state & GDK_SHIFT_MASK)
gtk_object_destroy (GTK_OBJECT (item));
else {
x = item_x; x = item_x;
y = item_y; y = item_y;
gnome_canvas_item_ungrab (item, event->button.time);
fleur = gdk_cursor_new (GDK_FLEUR);
#if 0
gnome_canvas_item_grab (item,
GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK,
fleur,
event->button.time);
#endif
gdk_cursor_unref (fleur);
dragging = TRUE;
}
break;
case 2:
if (event->button.state & GDK_SHIFT_MASK)
gnome_canvas_item_lower_to_bottom (item);
else
gnome_canvas_item_lower (item, 1);
break;
case 3:
if (event->button.state & GDK_SHIFT_MASK)
gnome_canvas_item_raise_to_top (item); gnome_canvas_item_raise_to_top (item);
else dragging = TRUE;
gnome_canvas_item_raise (item, 1);
break;
default:
break;
}
break; break;
case GDK_MOTION_NOTIFY: case GDK_MOTION_NOTIFY: