Xlib: unexpected async reply (sequence 0x804)!
Hi one of my program sometimes give me this message Xlib: unexpected async reply (sequence 0x804)! in the program there is a fork() the program gets data from ineternet whi this message -- * Universe Creation and God wrote: tar -Uvh BigBeng.tar.gz #...unpacking..## * Mauro Venanzi linux ru250233 hall2001 athlon-xp rm 135009 on Suse 8.1 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gdk's buffer
malo p wrote: I'd like to access the gdk'buffer to modify it and save it then. Is it possible? and can you tell me how ? please. I speak of the display buffer of gdk of course. Hi, you can get a GdkImage for a window with gdk_image_get(), and send it back to the server with gdk_draw_image(). If you get an image for the root window, you'll get the whole screen. John == Madame de Pompadour Images of a Mistress 16 October 2002 - 12 January 2003 For information and tickets: http://www.nationalgallery.org.uk/exhibitions/pompadour/default.htm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Newbie Question: How to capture motion_notify_event in tables?
Hi, I'm trying to write a gui with a ruler, grid lines, and some widgets. So my approach was to create a table and attach a ruler on it. For the grid lines, I used gdk to draw segments on the table. My problem now is that I can't seems to capture the motion_notify_event in the table in order for the ruler indicator to move, and I can't use a drawing area widget because its not a container. So can anybody suggest how to do this? Thanks. -- Alfredo P. Ricafort [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Newbie Question: How to capture motion_notify_event in tables?
I'm trying to write a gui with a ruler, grid lines, and some widgets. So my approach was to create a table and attach a ruler on it. For the grid lines, I used gdk to draw segments on the table. My problem now is that I can't seems to capture the motion_notify_event in the table in order for the ruler indicator to move, and I can't use a drawing area widget because its not a container. So can anybody suggest how to do this? why do you need a container? --p ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Xlib: unexpected async reply (sequence 0x804)!
one of my program sometimes give me this message Xlib: unexpected async reply (sequence 0x804)! in the program there is a fork() the program gets data from ineternet please read the GTK+ FAQ. --p ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Drag and drop files
Hi, Using GTK2+. I have thought of making drag and drop of files from/to an application I make, to/from e.g. Netscape Messenger to make/get an e-mail attachment. I've looked at gtk_drag_xxx, but I haven't been able to find out how I can drag/drop files. Do anyone have experience with this? I would be glad to get a pointer in the right direction and of course a code-example would be great. Best regards Egon Andersen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Row height in treeview
Nope, it's just a function of whatever's in the row. Extra whitespace should be the same as for GtkLabel and whatever else, it's making room for possible descenders from p and y and g for example, and on top for capital letters. You could shrink the font in your gtkrc. My font size is smaller than the default icon size in a treeview/list. SPECS font=Tahoma; 8pt; custom-ft2-bytecode-enabled; RH8/ The icons are 22x22, but even when there aren't any icons in a treeview/list it still takes as much space as with those icons in it. Is it possible to make those icons 16x16 instead of 22x22? - Rich _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Newbie Question: How to capture motion_notify_event in tables?
On Tue, 2003-01-07 at 00:30, Paul Davis wrote: why do you need a container? I need to add other widgets as well in the table. -- Alfredo P. Ricafort [EMAIL PROTECTED] Home ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Get clicks OUTSIDE the window
Havoc Pennington wrote: You have to gdk_grab_pointer() and gtk_grab_add() during the time that the modal window is active. I realized that (and the modal window too, or I couldn't gdk_grab modalwin-window ... :-) ). The Gtk source was useful. But not sufficient. The situation is: I have a GtkEntry. When the user right-clicks it, the modal window (containing two spinbuttons and two buttons) pops up over it. In the best case, the button_press_event for the entry stays active for two clicks (the second when the popup is already displayed!), in the worst case event handler for the popup window is never called (so I have to switch to a terminal and kill the app). In the Gtk sources (in gtkcombo.c) I saw a comment regarding not explicitly grabbing button presses, but couldn't understand it... The other strange thing is that when the cursor is over the spinbutton entries, it changes (this means that spinbuttons are getting some events, IIUC), but the buttons won't PRELIGHT when it's over them (so they don't get some events, apparently). I tried grabbing a lot of different events (button presses, mouse movements, etc) - at most I got an X error saying invalid value when using GDK_ALL_EVENTS_MASK . The relevant code is: static gboolean _popup_event(GtkWidget *widget, GdkEvent *event, gpointer user_data) { gboolean rv=FALSE; switch(event-type) { case GDK_DESTROY: gdk_pointer_ungrab(GDK_CURRENT_TIME); gdk_keyboard_ungrab(GDK_CURRENT_TIME); gtk_grab_remove(widget); break; case GDK_BUTTON_PRESS: { // Close window if click is outside GdkEventButton *e=(GdkEventButton*)event; GtkRequisition req; gtk_widget_size_request(widget, req); if(0e-x || 0e-y || e-x req.width || e-y req.height) { gtk_widget_destroy(widget); rv=TRUE; } } break; default: break; } return rv; } static void gtk_widget_pop_on(GtkWidget *popup, GtkWidget *ref, gboolean over, gboolean exp_x, gboolean exp_y) { gint x, y, maxx=gdk_screen_width(), maxy=gdk_screen_height(), w, h; GtkRequisition req; g_assert(popup!=NULL); g_assert(ref!=NULL); g_assert(GTK_IS_WINDOW(popup)); // avoid NULL==popup-window if(!GTK_WIDGET_REALIZED(popup)) gtk_widget_realize(popup); gdk_window_get_origin(ref-window, x, y); if(!over) { // Upper left corner just under 'ref' widget gtk_widget_size_request(ref, req); y+=req.height; } // Anyway, it must stay on screen gtk_widget_size_request(popup, req); w=req.width; h=req.height; x=MIN(x, MAX(0, maxx-w)); y=MIN(y, MAX(0, maxy-h)); gtk_widget_popup(popup, x, y); if(exp_x) w=maxx-x; if(exp_y) h=maxy-y; gtk_widget_set_usize(popup, w, h); gtk_object_set_data(GTK_OBJECT(popup), master, ref); gdk_pointer_grab(popup-window, FALSE, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_POINTER_MOTION_MASK, NULL, NULL, GDK_CURRENT_TIME); gdk_keyboard_grab(popup-window, TRUE, GDK_CURRENT_TIME); gtk_grab_add(popup); gtk_signal_connect(GTK_OBJECT(popup), event, _popup_event, NULL); } gboolean on_search_res_date_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { gboolean rv=FALSE; if(event-button==3) { gtk_widget_pop_on(create_date_edit(), widget, TRUE, FALSE, FALSE); rv=TRUE; } return rv; } I tried propagating event-time, too, but it didn't work :-( I bet it's something obvious, once understood... Tks. BYtE, Diego. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTK+(Win32) default font
How does GTK+ (Win32) determine the font it should use for menus, buttons etc? Recently all my GTK+ programs have started using a small hard to read font, where they were before using a normal sized one, and I haven't been able to work out how to reset it. Thanks ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
How can I save my picture from Drawing area ?
Hello, I would like tosave my picture but my picture width is morethan Drawing area size. I want tosave it continuously. Can I save it to "postscript" file type? Thanks
gtk+ 2.2.0 configure
I am trying to configure the gtk+2.2.0 on rh linux 8. I did not have any trouble installing the dependent libraries. however, when configuring gtk with ./configure --prefix/opt/gtk it does good until it gets to a step creating m4macro. Then, it throws an error stating that it cannot find the input file m4marcros/Makefile.in. Any ideas? Greg ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list