Re: drag icon for CList
- From: Gavin Jefferies <gj262 yahoo com>
- To: gtk-perl-list gnome org
- Subject: Re: drag icon for CList
- Date: 09 May 2002 09:50:35 -0700
This stems from clists setting their own drag widget.
Gtk source (1.2.8) gtk/gtkclist.c:
static void
gtk_clist_drag_begin (GtkWidget *widget,
GdkDragContext *context)
{
....
if (GTK_CLIST_USE_DRAG_ICONS (clist))
gtk_drag_set_icon_default (context);
}
Modify test.pl as follows and it works:
$l1->signal_connect("drag_begin", \&drag_begin);
if ($l1->get('use_drag_icons')) {
$l1->set('use_drag_icons', 0);
}
$w1->signal_connect("delete_event", sub { Gtk->exit(0); });
Nice problem to start the day with.
Thanks
Gavin
--
http://emptytreeseedy.sf.net/
lanzz lanzz org writes:
i'm trying to set a drag icon widget for a CList from a drag-begin
signal handler, however it doesn't work. the popup window for the icon
widget receives exactly four events - map, expose, configure and unmap,
all at once when the drag happens. the drag displays the default drag
icon. i use the exact same function to set a drag icon widget for a
Tree, and it works. attached is an example of Tree drag icon widget
working and a CList one not working. any ideas about what i am doing
wrong or what should i try?
lanzz
--
$_=q<$_=q<,>;s/,/$_/;print;>;s/,/$_/;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]