[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Manual Menu Stock Items, Moving/Hiding Mouse
From:       Daniel Pekelharing <legendstar () gmail ! com>
Date:       2005-05-28 7:48:45
Message-ID: 1117266525.3898.7.camel () AMD-2600
[Download RAW message or body]

Hi all,

A few Questions:

How do I use stock items/icons in manually constructed menus? I know I a
menu item is derived from GtkBin so I could manually put the icons and a
label in a box into the item.. I just want to know if there's a
shortcut.

Is there a gtk/gdk function for moving the mouse pointer? At the moment
I have my own function using xlib:

void gtk_warp_pointer(GtkWidget *window, gint x, gint y)
{
        Display *display =
(Display*)gdk_x11_drawable_get_xdisplay(window->window);
        XWarpPointer(display, None,
gdk_x11_drawable_get_xid(window->window), 0, 0, 0, 0, x, y);
}

Obviously this isn't portable, I don't really plan on porting, but In
case I ever did it would make it lots easier if there was a portable
function.

Also how do I hide the mouse pointer?

Thanks!
-- 
Daniel Pekelharing

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic