Re: jerky viewport scrolling performance GTK+
Hi GTK-ers, for those interested in my jerky scroll problem: here is the .tgz with the .tif file that shows it on my supposedly fast 3 GHz system. http://www.ai.rug.nl/~lambert/overslag/jerky-image-viewer.tgz The binary is here: cd jerky-image-viewer/src/ project2(my intelligent name for the binary) You may want to do a make on your own system. All help is appreciated. Best regards, Lambert _ Talk with your online friends with MSN Messenger http://messenger.msn.nl/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: jerky viewport scrolling performance GTK+
Not sure if this is your problem, but I had very helpful mails a few month ago from Owen and Sven when I asked about diagonal scrolling slowness. Here's the one from Soeren: Soeren Sandmann wrote: John Cupitt [EMAIL PROTECTED] writes: One of the app's widgets is an image display window, and one of the tools is a panner. Pure left/right and up/down pans are fast and smooth, but diagonal drags are very choppy. I think this is because gtk is sending me the bounding box of all exposes since the last repaint, and for a diagonal drag, the bounding box of a thin strip down the right and a thin strip across the bottom is the entire window. Has anyone come across this before, and is there an easy solution? If your problem is as you describe (which may well be the case), then look at the region field in the expose event. That field will contain a GdkRegion indicating the exact area that needs to be painted. You can use gdk_region_get_rectangles() to convert the region to a list of rectangles that needs to be repainted. Soren Lambert Schomaker wrote: Hi GTK-ers, for those interested in my jerky scroll problem: here is the .tgz with the .tif file that shows it on my supposedly fast 3 GHz system. http://www.ai.rug.nl/~lambert/overslag/jerky-image-viewer.tgz The binary is here: cd jerky-image-viewer/src/ project2(my intelligent name for the binary) You may want to do a make on your own system. All help is appreciated. Best regards, Lambert _ Talk with your online friends with MSN Messenger http://messenger.msn.nl/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
error C2143: syntax error : missing ')' before '*' and others in Visual C++ 6.0
I tried to build a project using GTK+-2.2.0 in Visual C++ on Windows2000 and I get following errors: c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2371: 'GtkSelectionData' : redefinition; different basic types c:\wingtk\include\gtk\gtkwidget.h(114) : see declaration of 'GtkSelectionData'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing ';' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2146: syntax error : missing ';' before identifier 'data'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(36) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(36) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : error C2371: 'gchar' : redefinition; different basic types c:\wingtk\glib-2.2.0\glib\gtypes.h(41) : see declaration of 'gchar'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignoredc:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : error C2143: syntax error : missing ';' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2146: syntax error : missing ';' before identifier 'data'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(44) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(44) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(45) : error C2371: 'GtkSelectionData' : redefinition; different basic types c:\wingtk\include\gtk\gtkwidget.h(114) : see declaration of 'GtkSelectionData'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(45) : error C2143: syntax error : missing ';' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : warning C4142: benign redefinition of typec:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : error C2370: 'guint' : redefinition; different storage class c:\wingtk\glib-2.2.0\glib\gtypes.h(50) : see declaration of 'guint'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : error C2146: syntax error : missing ';' before identifier 'info'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(47) : error C2059: syntax error : 'type'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(47) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(48) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(48) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2146: syntax error : missing ';' before identifier 'user_data_or_owner'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : warning C4142: benign redefinition of typec:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2370: 'GdkAtom' : redefinition; different storage class c:\wingtk\include\gdk\gdktypes.h(77) : see declaration of 'GdkAtom'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2146: syntax error : missing ';' before identifier 'selection'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(56) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(62) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(62) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(63) : error C2371: 'GtkTargetEntry' : redefinition; different basic types c:\wingtk\include\gtk\gtkselection.h(41) : see declaration of 'GtkTargetEntry'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(63) : warning C4228:
Re: jerky viewport scrolling performance GTK+
On Fri, 2003-11-28 at 11:09 +0100, Lambert Schomaker wrote: Hi GTK-ers, for those interested in my jerky scroll problem: here is the .tgz with the .tif file that shows it on my supposedly fast 3 GHz system. http://www.ai.rug.nl/~lambert/overslag/jerky-image-viewer.tgz For what its worth, both horizontal scrolling and vertical scrolling are lovely and smooth on my 1Ghz 1.5GB system. Although there is a weird green square in the top corner of the image, is that meant to be there? iain -- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: more on g_strconcat problem
Hi, [EMAIL PROTECTED] writes: You haven't looked at much C code, have you? :) Rest assured that I did. http://www.lysator.liu.se/c/duffs-device.html for the infamous Duff Device. I consider Duff's device a very elegant hack and have even used it myself (for DirectFB's software renderer). Or just wander over to http://www.ioccc.org :) Obfuscated doesn't necessarily mean ugly. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: spreadsheet
Many many people like spreadsheet widget. But GTK developers want us to use the TreeView. Maybe you can try to use TreeView. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Cupitt Sent: Thursday, November 27, 2003 5:14 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: spreadsheet Hi, there was a GtkSheet widget for gtk1.2, but I think the gtk2 version was never released and supported. Try googling for GtkSheet, it might be a useful starting point anyway. There's also Gnumeric of course. I don't know how easy it would be to cut the sheet handling out of that. John [EMAIL PROTECTED] wrote: I want to create a spreadsheet-like user interface. As there exists no spreadsheet in gtk, I think the only way to get something spreadsheet-like in limited time is to use a table, e.g. with buttons representing the column headings and entries representing cells. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: jerky viewport scrolling performance GTK+
Hi Iain and others, thanks for the support. In order to notice what the problem is, you may want to use eog immediately after using my prog, looking at the same .tif: eog scrolls like a snowboard on snot. Since in our application, the images will even be bigger than the .tif example, and in color, the current implementation is not an option: a diagonal pan using a little hand cursor would be a pain in unspeakable places. Iain, the green square upper left is an upstart to some pixbuf image twiddling, which is irrelevant to the scroll problem. It is exactly this straightforwardness of gdk to get rgb+alpha why we want to use gtk/gdk. Anyway, we can always use the source of eog as a start but I would like to start simple and understand what is going on. Maybe the expose/region handling is a good idea, thank you John. Still somewhat puzzled, Lambert _ Talk with your online friends with MSN Messenger http://messenger.msn.nl/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
error C2143: syntax error : missing ')' before '*' and others in Visual C++ 6.0
I try to build a project using GTK+-2.2.0 in Visual C++ on Windows2000 and I get following errors: c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2371: 'GtkSelectionData' : redefinition; different basic types c:\wingtk\include\gtk\gtkwidget.h(114) : see declaration of 'GtkSelectionData'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2143: syntax error : missing ';' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2146: syntax error : missing ';' before identifier 'data'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(35) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(36) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(36) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : error C2371: 'gchar' : redefinition; different basic types c:\wingtk\glib-2.2.0\glib\gtypes.h(41) : see declaration of 'gchar'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignoredc:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(37) : error C2143: syntax error : missing ';' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2146: syntax error : missing ';' before identifier 'data'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(38) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(44) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(44) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(45) : error C2371: 'GtkSelectionData' : redefinition; different basic types c:\wingtk\include\gtk\gtkwidget.h(114) : see declaration of 'GtkSelectionData'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(45) : error C2143: syntax error : missing ';' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : warning C4142: benign redefinition of typec:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : error C2370: 'guint' : redefinition; different storage class c:\wingtk\glib-2.2.0\glib\gtypes.h(50) : see declaration of 'guint'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(46) : error C2146: syntax error : missing ';' before identifier 'info'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(47) : error C2059: syntax error : 'type'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(47) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(48) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(48) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2040: 'gpointer' : 'int ' differs in levels of indirection from 'void *'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2146: syntax error : missing ';' before identifier 'user_data_or_owner'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(49) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(53) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : warning C4142: benign redefinition of typec:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2370: 'GdkAtom' : redefinition; different storage class c:\wingtk\include\gdk\gdktypes.h(77) : see declaration of 'GdkAtom'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2146: syntax error : missing ';' before identifier 'selection'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(54) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(56) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(59) : error C2059: syntax error : ')'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(62) : error C2143: syntax error : missing ')' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(62) : error C2143: syntax error : missing '{' before '*'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(63) : error C2371: 'GtkTargetEntry' : redefinition; different basic types c:\wingtk\include\gtk\gtkselection.h(41) : see declaration of 'GtkTargetEntry'c:\wingtk\gtk+-2.2.0\gtk\gtkclipboard.h(63) : warning C4228:
Re: more on g_strconcat problem
Sven Neumann wrote: Obfuscated doesn't necessarily mean ugly. Not if well explained... But in that respect I have been a sinner more than once :-/ Speeking of DirectFB This project (free desktop) looks wery X centered, but it a lot of stuff is quite relevant for other open / free desktops. And both QT and GTK+ run to some extent on DirectFB. What is the relation between Free desktop and DirectFB? /LaH ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: jerky viewport scrolling performance GTK+
On Fri, 2003-11-28 at 20:15 +0100, Lambert Schomaker wrote: Hi Iain and others, thanks for the support. In order to notice what the problem is, you may want to use eog immediately after using my prog, looking at the same .tif: eog scrolls like a snowboard on snot. I didn't really notice any difference. iain -- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Cannot get key events in a GtkEntry?
Hi, I have a GtkEntry as a child widget to a GtkWindow that is set to be a GTK_WINDOW_POPUP. Is there any reason why it will not receive key events? I also try clicking on it and it will not take focus. I have it set to GTK_CAN_FOCUS and used gtk_widget_grab_focus() but it does not work. -- Sincerely, ,-_ \|/ -Capt. Taura M. , O=__--X-- ..__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNOO=_ UOOOBIOOOEOMMn. 'LONNNEEEOOO=.__..,,.. UUOOEUUbe '=OWNEEEO,=OEEEOO=,._ OOUUUIEEIOONNOIUbe.7ONWWOO '. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNWWWEEEOO. . NNWWWMMMWEINMMMNn=BBNNNWWWEEO=._ . http://furry.ao.net/~learfox/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list