how i can hide cursor in this window (not GDK, it is GTK)? (code down don't
work but i can compile it without errors.)
do somebody can send me an example, maybe in gdk (with full source ready for
compile)?
thanks
#include <gtk/gtk.h>
int main( int argc,
char *argv[] )
{
GtkWidget *window;
GtkWidget *button;
GtkWidget *table;
gtk_init (&argc, &argv);
/* Create a new window */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (gtk_main_quit),
NULL);
gtk_window_maximize(GTK_WINDOW (window));
gtk_widget_show (window);
gchar bits[] = { 0 };
GdkColor color = { 0, 0, 0, 0 };
GdkPixmap *pixmap;
GdkCursor *cursor;
pixmap = gdk_bitmap_create_from_data(NULL, bits, 1, 1);
cursor = gdk_cursor_new_from_pixmap(pixmap, pixmap, &color, &color, 0, 0);
//gdk_window_set_cursor(GDK_WINDOW(window), cursor);
gtk_main ();
return 0;
}
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 21.1.2005
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list