From kereoz at yahoo.fr Wed Jun 14 11:41:09 2006 From: kereoz at yahoo.fr (Christophe HAUSER) Date: Wed, 14 Jun 2006 17:41:09 +0200 (CEST) Subject: GtkFixed Message-ID: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Hello, I've got a problem using GtkFixed. Using the following code, the window is empty when I launch the app. fixed = gtk_fixed_new(); Moz = gtk_moz_embed_new(); gtk_container_add (GTK_CONTAINER (window), fixed); gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); gtk_widget_show_all(window); Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail From tvb at gnome.org Wed Jun 14 14:01:31 2006 From: tvb at gnome.org (Tristan Van Berkom) Date: Wed, 14 Jun 2006 14:01:31 -0400 Subject: GtkFixed In-Reply-To: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> References: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Message-ID: <44904EFB.2060907@gnome.org> Christophe HAUSER wrote: > Hello, > > I've got a problem using GtkFixed. > Using the following code, the window is empty when I > launch the app. > > fixed = gtk_fixed_new(); > Moz = gtk_moz_embed_new(); > > gtk_container_add (GTK_CONTAINER (window), fixed); > gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); > > gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); > gtk_widget_show_all(window); Hmmm, looks like you have a fixed child with width/height = 0; try setting the size-request, since fixed doesnt allocate any size that you dont request. Cheers, -Tristan From M.Kahn at Astronautics.com Wed Jun 14 16:30:29 2006 From: M.Kahn at Astronautics.com (Michael Kahn) Date: Wed, 14 Jun 2006 15:30:29 -0500 Subject: Button background colors Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. I have tried using gtk_widget_set_style: GtkStyle *BtnStyle; BtnStyle = gtk_style_new(); BtnStyle->bg[0] = BGColor; /* BG Color is a GdkColor that works nicely setting colors in TextViews */ BtnStyle->bg[1] = BGColor; gtk_widget_set_style ( Button, BtnStyle ); I have tried using gtk_widget_modify_style: GtkRcStyle *ModStyle ModStyle = gtk_rc_style_new(); ModStyle->bg[0] = BGColor; ModStyle->bg[1] = BGColor; ModStyle->color_flags[0] |= GTK_RC_BG; ModStyle->color_flags[1] |= GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); I repeated the above process using foreground colors and then tried it setting both foreground and background. I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. Please tell me how I can set the background color of my GtkButtons to different colors. Thanks, Michael Kahn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.gnome.org/pipermail/gtk-list/attachments/20060614/82898735/attachment-0001.htm From paul at linuxaudiosystems.com Wed Jun 14 17:26:22 2006 From: paul at linuxaudiosystems.com (Paul Davis) Date: Wed, 14 Jun 2006 17:26:22 -0400 Subject: Button background colors In-Reply-To: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> Message-ID: <1150320382.1765.96.camel@localhost.localdomain> On Wed, 2006-06-14 at 15:30 -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file > because I am programming to requirements that specify different > background colors for different buttons. gtk_widget_set_name (buttonwidget, "myNameForThisSpecialButton"); then use "myNameForThisSpecialButton" in an RC file. From christiana at hipointcoffee.com Wed Jun 14 22:08:31 2006 From: christiana at hipointcoffee.com (Anna) Date: Wed, 14 Jun 2006 19:08:31 -0700 Subject: Button background colors In-Reply-To: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> Message-ID: <20060615020831.GP11914@rose.benjohnson.net> On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file because I am > programming to requirements that specify different background colors for > different buttons. > > I have tried using gtk_widget_modify_bg the button, using all combinations > of creating the button with and without a label. I use gtk_widget_modify_bg() without trouble. piece of a function: struct somethingorother pagestate_colors = { blah, blah, blah }; static void update_examples_from_state( GtkWidget * toggle ) { GdkColor color = pagestate_colors.scheme_bg_normal; gtk_widget_modify_bg( toggle, GTK_STATE_NORMAL, &color); gtk_widget_modify_bg( toggle, GTK_STATE_ACTIVE, &color); gtk_widget_modify_bg( toggle, GTK_STATE_PRELIGHT, &color); gtk_widget_modify_bg( toggle, GTK_STATE_SELECTED, &color); gtk_widget_modify_bg( toggle, GTK_STATE_INSENSITIVE, &color); } after running that you have to let the main event processing loop run a little to let your changes take effect. I am using using 2.6.8-1 but I can't imagine this functionality would have changed. - Anna From laowenbo at gmail.com Thu Jun 15 02:37:56 2006 From: laowenbo at gmail.com (lao wb) Date: Thu, 15 Jun 2006 14:37:56 +0800 Subject: Where to get more information about GDK Message-ID: Hello, i am a newcomer The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk, but look like there is no www.gdk.org, another site i can find is developer.gnome.org, while lack of enough examples. I really need examples to know how to use the tricky gdk_XXX APIs. Thanks in advance! laowenbo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.gnome.org/pipermail/gtk-list/attachments/20060615/32f7db26/attachment.htm From yeti at physics.muni.cz Thu Jun 15 04:47:38 2006 From: yeti at physics.muni.cz (David =?iso-8859-2?B?TmXoYXMgKFlldGkp?=) Date: Thu, 15 Jun 2006 10:47:38 +0200 Subject: Button background colors In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> Message-ID: <20060615084737.GM2858@potato.chello.upc.cz> On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > I use gtk_widget_modify_bg() without trouble. piece of a function: It works for people who use a decent Gtk+ theme. But themes and theme engines can easily make similar things stop working. Try just style "default" { bg_pixmap[NORMAL] = "someimage" } widget_class "*" style "default" in your gtkrc. I am afraid the requirement of particular colors goes directly against themeability. One cannot have both. Yeti -- Anonyms eat their boogers. From rvaughan at gmail.com Thu Jun 15 08:11:47 2006 From: rvaughan at gmail.com (Richard Vaughan) Date: Thu, 15 Jun 2006 13:11:47 +0100 Subject: Layered Drawing Areas Message-ID: Hi, Has anyone managed to get multiple drawing areas to layer transparently ontop of eachother? I am trying to create an app that looks like it will need 3 or four layers of information drawn ontop of each other - but I want to be able to work with the layers independantly, and I want to be able to see down to the bottom layer. Using a fixed container I can have the layers (at least it seems to do what I think I want), but when I draw in a layer it seems to blank out the 'destroyed' area. Is there a way of setting the transparency, or linking the background image for the layer above to the layer beneath it? If it changes anything I am using GPE on an Ipaq... Thanks, Richard From paul at linuxaudiosystems.com Thu Jun 15 08:56:23 2006 From: paul at linuxaudiosystems.com (Paul Davis) Date: Thu, 15 Jun 2006 08:56:23 -0400 Subject: Layered Drawing Areas In-Reply-To: References: Message-ID: <1150376183.1765.118.camel@localhost.localdomain> On Thu, 2006-06-15 at 13:11 +0100, Richard Vaughan wrote: > Hi, > > Has anyone managed to get multiple drawing areas to layer > transparently ontop of eachother? > > I am trying to create an app that looks like it will need 3 or four > layers of information drawn ontop of each other - but I want to be > able to work with the layers independantly, and I want to be able to > see down to the bottom layer. > > Using a fixed container I can have the layers (at least it seems to do > what I think I want), but when I draw in a layer it seems to blank out > the 'destroyed' area. Is there a way of setting the transparency, or > linking the background image for the layer above to the layer beneath > it? > > If it changes anything I am using GPE on an Ipaq... GnomeCanvas widget. GTK widgets do not (currently) support any notion of alpha transparency or z-order (stacking). The Canvas does. It has no relationships with Gnome other than those shared with GTK. GnomeCanvas is no longer "supported", but as yet its successor has not emerged and there are several contenders. --p From kereoz at yahoo.fr Thu Jun 15 10:17:17 2006 From: kereoz at yahoo.fr (Christophe HAUSER) Date: Thu, 15 Jun 2006 16:17:17 +0200 (CEST) Subject: GtkFixed In-Reply-To: <44904EFB.2060907@gnome.org> Message-ID: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> I tried setting the size-request, but the widget is still not shown...and I've got no error while compiling... I can run the app without any error, but I only see the main window... > Hmmm, looks like you have a fixed child with > width/height = 0; > try setting the size-request, since fixed doesnt > allocate any size > that you dont request. > > Cheers, > -Tristan > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail From kereoz at yahoo.fr Thu Jun 15 11:11:02 2006 From: kereoz at yahoo.fr (Christophe HAUSER) Date: Thu, 15 Jun 2006 17:11:02 +0200 (CEST) Subject: GtkFixed In-Reply-To: <20060615145020.HUVX16286.aamtaout03-winn.ispmail.ntl.com@smtp.ntlworld.com> Message-ID: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> I think it will help :) But about the size request, I wonder if my code is right : GtkRequisition *req ; req->height = 300; req->width = 400; gtk_widget_size_request(GTK_WIDGET(Moz), req); Maybe I forget something ? It doesn't work better with a button or any other widget, but when it is something else than a mozilla widget, I can see it very small :) It is not resized... > This may help or may not? > Sometimes I have found with GtkContainer derived > widgets the requested position/layout is overridden. > Do a search for _gtk_widget_get_aux_info in the gtk > code. > > Calls to gtk_widget_set_uposition and > gtk_widget_set_usize create a GtkWidgetAuxInfo > structure which holds the location and positional > information from the fore mentioned calls. Once > created these values are used as default in size > requests. > > Could the moz widget be using > gtk_widget_set_uposition or gtk_widget_set_usize > internally? > > Regards > > ----------------------------------------- > Email sent from www.ntlworld.com > Virus-checked using McAfee(R) Software > Visit www.ntlworld.com/security for more information > > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail From kereoz at yahoo.fr Thu Jun 15 11:26:43 2006 From: kereoz at yahoo.fr (Christophe HAUSER) Date: Thu, 15 Jun 2006 17:26:43 +0200 (CEST) Subject: GtkFixed In-Reply-To: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> Message-ID: <20060615152643.6260.qmail@web25911.mail.ukl.yahoo.com> Ok, I found the problem : I called the function gtk_widget_size_request instead of gtk_widget_set_size_request There is something strange : I didn't find gtk_widget_set_size_request in GTK documentation, but I found gtk_widget_size_request --- Christophe HAUSER a ?crit : > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > > > > Christophe HAUSER > http://kereoz.sup.fr > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la > meilleure protection possible contre les messages > non sollicit?s > http://mail.yahoo.fr Yahoo! Mail > _______________________________________________ > gtk-list mailing list > gtk-list at gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail From paul at linuxaudiosystems.com Thu Jun 15 11:52:39 2006 From: paul at linuxaudiosystems.com (Paul Davis) Date: Thu, 15 Jun 2006 11:52:39 -0400 Subject: GtkFixed In-Reply-To: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> References: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> Message-ID: <1150386759.22276.5.camel@localhost.localdomain> On Thu, 2006-06-15 at 17:11 +0200, Christophe HAUSER wrote: > I think it will help :) > But about the size request, I wonder if my code is > right : > > GtkRequisition *req ; > req->height = 300; > req->width = 400; > > gtk_widget_size_request(GTK_WIDGET(Moz), req); gtk_widget_set_size_request() From cole-anstey at ntlworld.com Thu Jun 15 10:53:16 2006 From: cole-anstey at ntlworld.com (cole-anstey at ntlworld.com) Date: Thu, 15 Jun 2006 14:53:16 +0000 Subject: GtkFixed Message-ID: <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> > > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > This may help or may not? Sometimes I have found with GtkContainer derived widgets the requested position/layout is overridden. Do a search for _gtk_widget_get_aux_info in the gtk code. Calls to gtk_widget_set_uposition and gtk_widget_set_usize create a GtkWidgetAuxInfo structure which holds the location and positional information from the fore mentioned calls. Once created these values are used as default in size requests. Could the moz widget be using gtk_widget_set_uposition or gtk_widget_set_usize internally? Regards ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From adc4444 at hotmail.com Thu Jun 15 14:07:09 2006 From: adc4444 at hotmail.com (DC A) Date: Thu, 15 Jun 2006 18:07:09 +0000 Subject: Problem in updating progress bar Message-ID: What could be the reason for using gtk_events_pending() and gtk_main_iteration() in the following code snippet: for( gflt=0; gflt<=1; ){ gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); //update while (gtk_events_pending ()) gtk_main_iteration (); gflt += 0.1; sleep(1); if ( gflt > 1 ) break; } why the code cannot update the progressbar without these two functions? I saw the API but still it is not clear to me. Thanks. --AD _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From yeti at physics.muni.cz Thu Jun 15 15:17:50 2006 From: yeti at physics.muni.cz (David =?iso-8859-2?B?TmXoYXMgKFlldGkp?=) Date: Thu, 15 Jun 2006 21:17:50 +0200 Subject: Problem in updating progress bar In-Reply-To: References: Message-ID: <20060615191750.GO30886@potato.chello.upc.cz> On Thu, Jun 15, 2006 at 06:07:09PM +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. Have yor read the FAQ too? http://www.gtk.org/faq/#AEN602 Also, are you aware gtk_progress_bar_update() is deprecated? gtk_progress_bar_set_fraction() -- which is the function to use -- only queues the drawing. The drawing then actually occurs in Gtk+ main loop, which does not have a chance to run without gtk_main_iteration(). Yeti -- Anonyms eat their boogers. From paul at linuxaudiosystems.com Thu Jun 15 15:45:35 2006 From: paul at linuxaudiosystems.com (Paul Davis) Date: Thu, 15 Jun 2006 15:45:35 -0400 Subject: Problem in updating progress bar In-Reply-To: References: Message-ID: <1150400735.22276.22.camel@localhost.localdomain> On Thu, 2006-06-15 at 18:07 +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. google for "event based programming main loop" programming GUIs is very different in its basic control flow model than writing simple non-user-driven procedural software. From M.Kahn at Astronautics.com Thu Jun 15 16:54:10 2006 From: M.Kahn at Astronautics.com (Michael Kahn) Date: Thu, 15 Jun 2006 15:54:10 -0500 Subject: Button background colors Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019481FF@HQMAIL1.aca.astronautics.com> A coworker came to my rescue on this one. I am a Linux developer and this application had to work under Windows. It turns out that if your Windows desktop theme is set to "Windows XP" then you cannot change the background color of your buttons. If you change your desktop theme to "Windows Classic" then the gtk_widget_modify_style approach works. The gtk_widget_set_style and other approaches may also work, but I haven't tested them. We have a short deadline on this app - I'll test it later. Thanks to everyone who gave it a look. What a surprise it turned out to be a Windows problem, not a GTK problem. Michael Kahn ________________________________ From: Michael Kahn Sent: Tuesday, June 13, 2006 8:49 PM To: 'gtk-list at gnome.org' Subject: Button background colors I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. I have tried using gtk_widget_set_style: GtkStyle *BtnStyle; BtnStyle = gtk_style_new(); BtnStyle->bg[0] = BGColor; /* BG Color is a GdkColor that works nicely setting colors in TextViews */ BtnStyle->bg[1] = BGColor; gtk_widget_set_style ( Button, BtnStyle ); I have tried using gtk_widget_modify_style: GtkRcStyle *ModStyle ModStyle = gtk_rc_style_new(); ModStyle->bg[0] = BGColor; ModStyle->bg[1] = BGColor; ModStyle->color_flags[0] |= GTK_RC_BG; ModStyle->color_flags[1] |= GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); I repeated the above process using foreground colors and then tried it setting both foreground and background. I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. Please tell me how I can set the background color of my GtkButtons to different colors. Thanks, Michael Kahn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.gnome.org/archives/gtk-list/attachments/20060615/b10dcc87/attachment-0001.htm From BillS at techsi.com Thu Jun 15 18:04:18 2006 From: BillS at techsi.com (Bill Sousan) Date: Thu, 15 Jun 2006 17:04:18 -0500 Subject: use of gtk rc files slows down display Message-ID: <000601c690c7$aa62c850$db00a8c0@techsi.local> I am using some existing rc files for my gtk application that I pulled off of the web and noticed a considerable slow down in the display versus when not using an rc file (the one passed to gtk_rc_parse() function). Are there considerations that I need to be aware of if I want to use to rc files to have a nice "skin" without the slowdown? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.gnome.org/archives/gtk-list/attachments/20060615/4a221f32/attachment.htm From diego at otello.alma.unibo.it Fri Jun 16 01:39:02 2006 From: diego at otello.alma.unibo.it (Diego Zuccato) Date: Fri, 16 Jun 2006 07:39:02 +0200 Subject: Problem in updating progress bar In-Reply-To: References: Message-ID: <449243F6.6010901@otello.alma.unibo.it> DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. 'Cause you're blocking the main loop (which handles all the updating). But that sleep(1) still blocks for a whole second any action: your GUI will act quite strangely! Could be really better to handle a timeout/idle callback. If all you have to do is some lengthy operation, you could use a thread that does it and updates a "percentage indicator" (a shared variable). In the main program (the GUI manager) you set up a timeout callback (the timeout is up to you: from .1 to tenths of seconds) that reads the shared variable and updates the progress bar. This way you won't have to bother about locks: just DON'T do anything GUI-related in the calc thread. BYtE, Diego. From prashan at sasken.com Fri Jun 16 06:58:40 2006 From: prashan at sasken.com (prashu) Date: Fri, 16 Jun 2006 03:58:40 -0700 (PDT) Subject: Regarding GTK player Message-ID: <4898493.post@talk.nabble.com> hi all... i am designing user inerface to mobiles for mobiles. For UI i selected GTK as framework. I am writting in C langauge. What actually i need is one playlist window which contains audio files from particular directory. on selecting file from playlist another window should open. which contains play and pause buttons. If any one have code of this thing , please mail to my id, prashan at sasken.com. with regards, Prashanth KM -- View this message in context: http://www.nabble.com/Regarding-GTK-player-t1797584.html#a4898493 Sent from the Gtk+ - General forum at Nabble.com. From adc4444 at hotmail.com Fri Jun 16 14:05:30 2006 From: adc4444 at hotmail.com (DC A) Date: Fri, 16 Jun 2006 18:05:30 +0000 Subject: Problem in updating progress bar In-Reply-To: <449243F6.6010901@otello.alma.unibo.it> Message-ID: Thank you all for explaining this problem. --DC _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From papel at free.fr Wed Jun 14 06:59:18 2006 From: papel at free.fr (Papel) Date: Wed, 14 Jun 2006 12:59:18 +0200 Subject: Gtk events ??? Message-ID: <448FEC06.9090600@free.fr> Hello, From a few days ago, i have a lot of problems with gtk events (MainLoop). I have created a GTK frame into a main widget and a box into this frame. I have reparent this widget (window) to a XWindow. I would like to send events (XEvents) to this widget. How I can do to send this XEvents to GtkEvents to the widget ??? I have tried : gtk_widget_event / gtk_main_iteration_do / gtk_main_do_event / etc... Thank you in advance MCB From dale_mellor at users.sourceforge.net Thu Jun 15 03:56:46 2006 From: dale_mellor at users.sourceforge.net (dale_mellor at users.sourceforge.net) Date: Thu, 15 Jun 2006 08:56:46 +0100 Subject: Button background colors In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> Message-ID: <17553.4798.584679.71190@p15122568.pureserver.info> I too use gtk_widget_modify_bg without trouble on a GtkButton object, using GTK version 2.9.2. Anna writes: > On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > > I am using Gtk 2.8.18. > > > > I would like to know how to set the background color in a GtkButton. > > > > I cannot set the background in a style, theme, or resource file because I am > > programming to requirements that specify different background colors for > > different buttons. > > > > I have tried using gtk_widget_modify_bg the button, using all combinations > > of creating the button with and without a label. > > I use gtk_widget_modify_bg() without trouble. piece of a function: > From jose.francisco.hevia at gmail.com Thu Jun 15 05:27:35 2006 From: jose.francisco.hevia at gmail.com (Jose Hevia) Date: Thu, 15 Jun 2006 11:27:35 +0200 Subject: Button background colors In-Reply-To: <20060615084737.GM2858@potato.chello.upc.cz> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> Message-ID: 2006/6/15, David Ne?as (Yeti) : > On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > > > I use gtk_widget_modify_bg() without trouble. piece of a function: > > It works for people who use a decent Gtk+ theme. But themes > and theme engines can easily make similar things stop working. > Try just > > style "default" { > bg_pixmap[NORMAL] = "someimage" > } > widget_class "*" style "default" > > in your gtkrc. > > I am afraid the requirement of particular colors goes > directly against themeability. One cannot have both. > > Yeti At first, I agreed with this. Now I know that it's possible to make an intelligent program that knows witch colors are you using and take action from it. 80 per cent of themes are almost white for buttons, I like dark ones. This could be detected by the program and decide: If you are using bright themes {select this colors.} else {select the other ones.} based in contrast between them Themeability is very important for Gtk, but using colors like scalable icons (look at these films with the "red button") without having to bother with complexity gives gtk a lot of power to give it away. Jose Hevia From kstachowski at o2.pl Thu Jun 15 18:59:50 2006 From: kstachowski at o2.pl (kamil stachowski) Date: Thu, 15 Jun 2006 22:59:50 +0000 Subject: drawing a generated bitmap Message-ID: <200606152259.50433.kstachowski@o2.pl> hello :) i understand this is a basic question and am sorry for my ignorance. i really haven't managed to find an answer though i've searched quite a time. i've actually got two problems (using nemerle (mono, i.e. gtk#)): 1. i'd like to generate a terrain heightmap and draw it onto a widget. should i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), try to convert it to an xpm (how?) or what other method would be most appropriate? (please, read the second question before answering this one) 2. i'd like to be able to fluently change the colours while the heightmap is already generated. in the old days (i haven't written much for quite a time) it was possible to just draw a bitmap onto the screen and keep redefining the colours, which was pretty fast and looked nice in its way. is it still doable? i'd need it for altering the water level on the map. any help would be appreciated :) From zhaolj at gmail.com Fri Jun 16 03:26:41 2006 From: zhaolj at gmail.com (Liangjing Zhao) Date: Fri, 16 Jun 2006 15:26:41 +0800 Subject: How to create a new customized GSource Message-ID: <9f5a93cb0606160026o65c6bc68gdd9b2a4ad88f4264@mail.gmail.com> Dear All, I have a problem when I create a new GSource structure. In fact, I would send some events to the main loop of my app from other threads only with the glib APIs. I create my own GSource structure and attach it with the default main context. But I always get a segment fault when the other thread send some thing to the main loop. I find every few information about using GSource. Where can I find an example of using GSource (not using g_idle_source_new, nor g_timeout_source_new) ? or Can you guys suggest me better solution about send event with my own data to main loop (main loop can not be stoped or blocked) only using glib APIs? Thanks in advance! -- Regards?? Liangjing From andyggill at gmail.com Fri Jun 16 09:50:40 2006 From: andyggill at gmail.com (andy gill) Date: Fri, 16 Jun 2006 14:50:40 +0100 Subject: opengl and gtk Message-ID: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree. what's the best (i.e. documented and supported) way of getting opengl and gtk to work together? cheers. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.gnome.org/archives/gtk-list/attachments/20060616/2571af03/attachment.htm From zhaolj at gmail.com Sat Jun 17 12:32:02 2006 From: zhaolj at gmail.com (Liangjing Zhao) Date: Sun, 18 Jun 2006 00:32:02 +0800 Subject: How to create a new customized GSource Message-ID: <9f5a93cb0606170932i455c53c0ved3aa0c501215662@mail.gmail.com> Dear All, Sorry, I am not sure if I post this question twice in this list. But it seems the first time was failed. I have a problem when I create a new GSource structure. In fact, I would send some events to the main loop of my app from other threads only with the glib APIs. I create my own GSource structure and attach it with the default main context. But I always get a segment fault when the other thread send some thing to the main loop. I find every few information about using GSource. Where can I find an example of using GSource (not using g_idle_source_new, nor g_timeout_source_new) ? or Can you guys suggest me better solution about send event with my own data to main loop (main loop can not be stoped or blocked) only using glib APIs? Thanks in advance! -- Regards?? Liangjing From christiana at hipointcoffee.com Sat Jun 17 16:17:12 2006 From: christiana at hipointcoffee.com (Anna) Date: Sat, 17 Jun 2006 13:17:12 -0700 Subject: Button background colors In-Reply-To: References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> Message-ID: <20060617201712.GF11914@rose.benjohnson.net> On Thu, Jun 15, 2006 at 11:27:35AM +0200, Jose Hevia wrote: > 2006/6/15, David Ne?as (Yeti) : > > On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > > > > > I use gtk_widget_modify_bg() without trouble. piece of a function: > > > > It works for people who use a decent Gtk+ theme. But themes > > and theme engines can easily make similar things stop working. > > Try just > > > > style "default" { > > bg_pixmap[NORMAL] = "someimage" > > } > > widget_class "*" style "default" > > > > in your gtkrc. > > > > I am afraid the requirement of particular colors goes > > directly against themeability. One cannot have both. > > > > Yeti > > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them > > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I have a "widget" (actually, a dialog with database interface) that allows users to create button background colors, and apply that "theme" to a "class" of buttons in the application. This was an important element to have in my app because the buttons, from the GTK+ point of view, are all more or less the same, and are created on-the-fly at the user's bequest. The user is allowed to group the buttons in any way they see fit. It works quite well with two great benefits: it gets around inflexabilities in themes and makes button color selection accessible to users who don't know how to use a text editor... much less use a syntax to create a complex theme. - Anna From yeti at physics.muni.cz Sat Jun 17 13:20:23 2006 From: yeti at physics.muni.cz (David =?iso-8859-2?B?TmXoYXMgKFlldGkp?=) Date: Sat, 17 Jun 2006 19:20:23 +0200 Subject: drawing a generated bitmap In-Reply-To: <200606152259.50433.kstachowski@o2.pl> References: <200606152259.50433.kstachowski@o2.pl> Message-ID: <20060617172023.GS30886@potato.chello.upc.cz> On Thu, Jun 15, 2006 at 10:59:50PM +0000, kamil stachowski wrote: > i understand this is a basic question and am sorry for my ignorance. i really > haven't managed to find an answer though i've searched quite a time. > > i've actually got two problems (using nemerle (mono, i.e. gtk#)): > > 1. i'd like to generate a terrain heightmap and draw it onto a widget. should > i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), > try to convert it to an xpm (how?) or what other method would be most > appropriate? (please, read the second question before answering this one) Don't draw pixel by pixel, it would be awfully slow. Use GdkPixbufs and gdk_draw_pixbuf(). > 2. i'd like to be able to fluently change the colours while the heightmap is > already generated. in the old days (i haven't written much for quite a time) > it was possible to just draw a bitmap onto the screen and keep redefining the > colours, which was pretty fast and looked nice in its way. is it still > doable? Something along these lines should be doable *if* you can get a indexed color visual, which you cannot count on. So I would just redraw it (incidentally I develop a program which uses false-color maps a lot and redrawing works good enough). Yeti -- Anonyms eat their boogers. From paul at linuxaudiosystems.com Sat Jun 17 17:35:12 2006 From: paul at linuxaudiosystems.com (Paul Davis) Date: Sat, 17 Jun 2006 17:35:12 -0400 Subject: Gtk events ??? In-Reply-To: <448FEC06.9090600@free.fr> References: <448FEC06.9090600@free.fr> Message-ID: <1150580112.8703.55.camel@localhost.localdomain> On Wed, 2006-06-14 at 12:59 +0200, Papel wrote: > Hello, > > From a few days ago, i have a lot of problems with gtk events (MainLoop). > I have created a GTK frame into a main widget and a box into this frame. > I have reparent this widget (window) to a XWindow. > I would like to send events (XEvents) to this widget. How I can do to > send this XEvents to GtkEvents to the widget ??? > > I have tried : gtk_widget_event / gtk_main_iteration_do / > gtk_main_do_event / etc... you're not thinking clearly. GTK is a multiplatform GUI toolkit. its backend is not just X Window, but includes the DirectFB (framebuffer) system on Linux, the GDI API (and others on win32) and recently Quartz/Aqua on OS X. sending GTK events doesn't mean sending events that are translated all the way down to the backend's notion of an "event". if you send a GTK "Button Press" event to a widget, GTK will do that entirely within its own event system, without any reference to the backend you are using. back to basics: why have you reparented the window inside a non-GTK XWindow? --p From yeti at physics.muni.cz Sat Jun 17 18:09:38 2006 From: yeti at physics.muni.cz (David =?iso-8859-2?B?TmXoYXMgKFlldGkp?=) Date: Sun, 18 Jun 2006 00:09:38 +0200 Subject: Button background colors Message-ID: <20060617220938.GW30886@potato.chello.upc.cz> On Thu Jun 15 05:27:35 2006, Jose Hevia wrote: > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them How this makes the look consistent with Bumblebee [the theme]? Colors are not the only part of look and feel and they are the easiest part. When the theme uses pixmap backgrounds you should [in most cases] take the pixmap, give it a tint and use it instead of a solid color. Etc. Hackish theme engines like the qt one do not make it easier either. > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I agree with the importance, but I don't agree with the statement it is solved. The only real solution would be taking your app specific widgets into account in the theme itself and drawing themed icons for it if necessary. Not very realistic. Instead we are left with a bunch of heuristics, workarounds and hacks that do something not too awful in some common cases. Yeti -- Anonyms eat their boogers. From masonduan1 at sina.com Sat Jun 17 22:10:29 2006 From: masonduan1 at sina.com (heavenscape) Date: Sat, 17 Jun 2006 19:10:29 -0700 (PDT) Subject: How to draw a rectangle on a GtkImage widget? Message-ID: <4920028.post@talk.nabble.com> Hi All, I am displaying an image in the main window with a thumbnail of the same image on one side. The thumbnail always shows the entire image while the main window shows just a part of the image because of zoom. Now I want to draw a rectange in the thumbnail to indicate which part of the image is currently displayed in the main window. How can I achieve this? Thanks!! -- View this message in context: http://www.nabble.com/How-to-draw-a-rectangle-on-a-GtkImage-widget--t1805314.html#a4920028 Sent from the Gtk+ - General forum at Nabble.com. From yeti at physics.muni.cz Sat Jun 17 18:19:08 2006 From: yeti at physics.muni.cz (David =?iso-8859-2?B?TmXoYXMgKFlldGkp?=) Date: Sun, 18 Jun 2006 00:19:08 +0200 Subject: Mailing list problems? Message-ID: <20060617221907.GX30886@potato.chello.upc.cz> Hello, a couple of days ago my e-mails took almost a day to deliver (and it still takes a long time). But that was a small problem, now when I look at the archives, e.g. http://mail.gnome.org/archives/gtk-list/ I see only ========================================================================== The gtk-list Archives You can get more information about this list. Archive View by: Downloadable version June 2006: [ Thread ] [ Subject ] [ Author ] [ Date ] [ Gzip'd Text 7 KB ] ========================================================================== IOW there is only June 2006 -- and even that is incomplete. Other Gtk+ lists look similarly empty. Did something bad happen to them? Yeti -- Anonyms eat their boogers. From dov.grobgeld at gmail.com Sun Jun 18 04:08:28 2006 From: dov.grobgeld at gmail.com (Dov Grobgeld) Date: Sun, 18 Jun 2006 11:08:28 +0300 Subject: opengl and gtk In-Reply-To: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> References: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> Message-ID: As far as I understand gtkglext is currently the prefered method of using GL within gtk. I have recently used it in a cross platform application that works fine both on Linux and on Win32. Regards, Dov On 6/16/06, andy gill wrote: > is there any officially supported way of integrating opengl into a > gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to > have varying levels of support for different platforms/language bindings, > and i don't quite understand why there isn't opengl support in the main > tree. > what's the best (i.e. documented and supported) way of getting opengl and > gtk to work together? > > cheers. > > _______________________________________________ > gtk-list mailing list > gtk-list at gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From kstachowski at o2.pl Sun Jun 18 07:28:31 2006 From: kstachowski at o2.pl (kamil stachowski) Date: Sun, 18 Jun 2006 11:28:31 +0000 Subject: drawing a generated bitmap Message-ID: <200606181128.31582.kstachowski@o2.pl> thank you for the answer :) > Don't draw pixel by pixel, it would be awfully slow. > Use GdkPixbufs and gdk_draw_pixbuf(). you mean "don't draw pixel by pixel using drawpoint", is that it? > Something along these lines should be doable *if* you can > get a indexed color visual, which you cannot count on. So > I would just redraw it (incidentally I develop a program > which uses false-color maps a lot and redrawing works good > enough). that's a pity but i'll have to cope with that if there's no other way. however, i ran into a problem with colourmaps. i was using gdk.image (has the putpixel method which treats the colours in a more traditional way, and seems to be fast enough for my needs) but didn't manage to change the colours it uses. i keep getting a blue gradient which is not precisely what i want. here's the code: def img=Image(ImageType.Fastest,Visual.System,500,500); for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) img.PutPixel(x,y,(x+y):>UInt32); def gc=GC(args.Event.Window); mutable col=Color(0xff,0,0); gc.Colormap.AllocColor(ref col,true,true); img.Colormap=gc.Colormap; args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); i don't seem to be able to spot anything red in the result. could you please tell me what i am doing wrong? From yeti at physics.muni.cz Sun Jun 18 08:16:35 2006 From: yeti at physics.muni.cz (David =?iso-8859-2?B?TmXoYXMgKFlldGkp?=) Date: Sun, 18 Jun 2006 14:16:35 +0200 Subject: drawing a generated bitmap In-Reply-To: <200606181128.31582.kstachowski@o2.pl> References: <200606181128.31582.kstachowski@o2.pl> Message-ID: <20060618121635.GZ30886@potato.chello.upc.cz> On Sun, Jun 18, 2006 at 11:28:31AM +0000, kamil stachowski wrote: > > Don't draw pixel by pixel, it would be awfully slow. > > Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? Yes, I do -- and I still mean it. > however, i ran into a problem with colourmaps. i was using gdk.image (has the > putpixel method which treats the colours in a more traditional way, and seems > to be fast enough for my needs) but didn't manage to change the colours it > uses. i keep getting a blue gradient which is not precisely what i want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could you please > tell me what i am doing wrong? Well, I can't speak Nemerle, but as far as I understand it, you first fill the image with arbitrary values no one knows which color they correspond to in the colormap, then allocate one very dark red color (full red is 0xffff in Gdk) but never use it -- the `pixel' field filled by AllocColor is the value to use with PutPixel -- and after all that you set the image's colormap. To draw you have to allocate the colors *first* -- and note if the display is not direct/true-color, it has a limited number of colors and you will not be able to allocate a new color for each unique (x+y):>UInt32 value. So, please save yourself all the hassle and just use GdkPixbuf. Yeti -- Anonyms eat their boogers. From riboaz at xs4all.nl Sun Jun 18 11:55:07 2006 From: riboaz at xs4all.nl (Richard Boaz) Date: Sun, 18 Jun 2006 17:55:07 +0200 Subject: drawing a generated bitmap In-Reply-To: <200606181128.31582.kstachowski@o2.pl> References: <200606181128.31582.kstachowski@o2.pl> Message-ID: <14003C28-5DE0-4295-9EC8-E2D3D0A8F9A0@xs4all.nl> hi, i do something like this in an application to draw probability density function plots. what i do is render the image to an internal RGB buffer, followed by gdk_draw_rgb_image() to render it to the internal pixmap (this pixmap subsequently rendered to the screen): width = DrawingArea->allocation.width; height = DrawingArea->allocation.height; rgbbuf = malloc(width * height * 3); memset(rgbbuf, 240, width * height * 3); // set the background to GREY=(240, 240, 240) DrawBufferImage(rgbbuf, width, height, data); gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); free(rgbbuf); inside the DrawBufferImage() routine, i examine the data, point by point, and assign each pixel to be the RGB combination corresponding to the colour defined/assigned for each data value. my input data also dictates an absolute starting size, so inside the DrawBufferImage() routine, i also magnify the image using a bi-cubic spline interpolation algorithm. the speed achieved in ultimately rendering the image is as fast as possible, and there is no real discernable delay between receiving the data to plot and rendering the image to the screen, i.e., it's instantaneous. plotting pixel by pixel (and magnifying to boot) can result in a quickly drawn image (depending on the number of data points, of course), if gone about in the right manner. cheers, richard On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > thank you for the answer :) > >> Don't draw pixel by pixel, it would be awfully slow. >> Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? > >> Something along these lines should be doable *if* you can >> get a indexed color visual, which you cannot count on. So >> I would just redraw it (incidentally I develop a program >> which uses false-color maps a lot and redrawing works good >> enough). > > that's a pity but i'll have to cope with that if there's no other way. > > however, i ran into a problem with colourmaps. i was using > gdk.image (has the > putpixel method which treats the colours in a more traditional way, > and seems > to be fast enough for my needs) but didn't manage to change the > colours it > uses. i keep getting a blue gradient which is not precisely what i > want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could > you please > tell me what i am doing wrong? > _______________________________________________ > gtk-list mailing list > gtk-list at gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From gaal at forum2.org Sun Jun 18 09:20:54 2006 From: gaal at forum2.org (Gaal Yahas) Date: Sun, 18 Jun 2006 16:20:54 +0300 Subject: Interrupt signal, GLib, threads Message-ID: <20060618132054.GL9396@sike.forum2.org> I have a GLib/GThread console application that runs fine on Linux and Solaris. But ever since I added threading, when the user hits ^C in the shell the signal is ignored. Does using GThread automatically mask signals? What do I do to get them back? When running my app under gdb, incidentally, ^C works as expected (that is, it drops me in a gdb prompt wherever I was). -- Gaal Yahas http://gaal.livejournal.com/ From kstachowski at o2.pl Sun Jun 18 10:35:39 2006 From: kstachowski at o2.pl (kamil stachowski) Date: Sun, 18 Jun 2006 14:35:39 +0000 Subject: drawing a generated bitmap In-Reply-To: References: <200606181128.31582.kstachowski@o2.pl> Message-ID: <200606181435.39660.kstachowski@o2.pl> hello :) thank you very much for your answer :) but i'm afraid i won't be able to use it. the access to the rgb class seems to be either very much limited in gtk sharp (mono) compared to the original and other bindings, or at least quite a way beyond my programming skills. i think i'm supposed to be using a gdk.pixbuf instead but than again i can't or don't know how to access the memory directly. anyways, in the meantime i've received another answer which made me finally grab the concept behind colour allocation and colour.pixel value. it seems that i eventually got an idea of what i'm actually writing :) still, thanks a lot for the answer once again:) Dnia niedziela, 18 czerwca 2006 15:27, napisa?e?: > hi, > > i do something like this in an application used to draw probability > density function plots. what i do is render the image to an internal > RGB buffer followed by gdk_draw_rgb_image() to render it to the > internal pixmap (this pixmap subsequently rendered to the screen): > > width = DrawingArea->allocation.width; > height = DrawingArea->allocation.height; > rgbbuf = malloc(width * height * 3); > memset(rgbbuf, 240, width * height * 3); // set the background to > GREY=(240, 240, 240) > DrawBufferImage(rgbbuf, width, height, data); > gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], > 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); > free(rgbbuf); > > my input data dictates an absolute starting size, so inside my > DrawBufferImage() routine, i also magnify the image using a bi-cubic > spline interpolation algorithm. the speed achieved in ultimately > rendering the image is as fast as possible, and there is no real > discernable delay between receiving the data to plot and rendering > the image to the screen, i.e., it's instantaneous. > > plotting pixel by pixel (and magnifying to boot) can result in a > quickly drawn image (depending on the number of data points, of > course), if gone about in the right manner. > > cheers, > > richard > > On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > > thank you for the answer :) > > > >> Don't draw pixel by pixel, it would be awfully slow. > >> Use GdkPixbufs and gdk_draw_pixbuf(). > > > > you mean "don't draw pixel by pixel using drawpoint", is that it? > > > >> Something along these lines should be doable *if* you can > >> get a indexed color visual, which you cannot count on. So > >> I would just redraw it (incidentally I develop a program > >> which uses false-color maps a lot and redrawing works good > >> enough). > > > > that's a pity but i'll have to cope with that if there's no other way. > > > > however, i ran into a problem with colourmaps. i was using > > gdk.image (has the > > putpixel method which treats the colours in a more traditional way, > > and seems > > to be fast enough for my needs) but didn't manage to change the > > colours it > > uses. i keep getting a blue gradient which is not precisely what i > > want. > > here's the code: > > > > def img=Image(ImageType.Fastest,Visual.System,500,500); > > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > > img.PutPixel(x,y,(x+y):>UInt32); > > > > def gc=GC(args.Event.Window); > > mutable col=Color(0xff,0,0); > > gc.Colormap.AllocColor(ref col,true,true); > > img.Colormap=gc.Colormap; > > > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > > > i don't seem to be able to spot anything red in the result. could > > you please > > tell me what i am doing wrong? > > _______________________________________________ > > gtk-list mailing list > > gtk-list at gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list From tomee at kadu.net Sun Jun 18 10:53:58 2006 From: tomee at kadu.net (Tomek Jarzynka) Date: Sun, 18 Jun 2006 16:53:58 +0200 Subject: No icons in Open File dialog Message-ID: <200606181653.59412.tomee@kadu.net> Hello, after playing around with unstable packages I messed up GTK - i.e. it doesn't display folder and file icons in the Open File dialog, only text. I've downgraded to the latest stable versions available for Mandriva 2006 (2.8.3) but still no icons appear. I can change the theme with gtk-chtheme (I am using KDE), but still there are no icons. I get no errors in the console. How do I fix that? Where to look for the icon configuration files that may be missing or corrupted? -- tomasz k. jarzynka / 601 706 601 / tomee(a-t)kadu(d-o-t)net "You laugh because I'm different. I laugh beacuse you're all the same." From nf2 at scheinwelt.at Sun Jun 18 18:53:56 2006 From: nf2 at scheinwelt.at (nf2) Date: Mon, 19 Jun 2006 00:53:56 +0200 Subject: libxdg-vfs and Gtk-Filechooser Message-ID: <4495D984.5090705@scheinwelt.at> Hi, The experimental "libxdg-vfs" provides a generic interface to VFS libraries. It tries to autodetect the current desktop and then connects to Gnome-VFS or KIO by launching the backend executables xdg_vfs_gnome or xdg_vfs_kde. http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html The target of "libxdg-vfs" would be giving applications access to ftp/smb shares etc... Of course this also involves bringing VFS access to filechoosers. AFAIK Gtk-Filechooser has pluggable backends (GtkFilesystem). It would be interesting if it could also run on top of "libxdg-vfs". The problem is, that i couldn't find any documentation how to implement a GtkFilesystem module. Could you please give me an introduction and maybe tell me about the specific requirements for a GtkFilesystem? Perhaps i need to provide more functions through "libxdg-vfs": listing and mounting Volumes, obtaining icon-paths,... Regards, Norbert From kstachowski at o2.pl Sun Jun 18 18:05:08 2006 From: kstachowski at o2.pl (kamil stachowski) Date: Sun, 18 Jun 2006 22:05:08 +0000 Subject: drawing a generated bitmap Message-ID: <200606182205.09332.kstachowski@o2.pl> > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm very sorry about the mess with my posts... this is the first time i'm using a mailing list... From kstachowski at o2.pl Sun Jun 18 10:15:34 2006 From: kstachowski at o2.pl (kamil stachowski) Date: Sun, 18 Jun 2006 14:15:34 +0000 Subject: drawing a generated bitmap Message-ID: <200606181415.34985.kstachowski@o2.pl> > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm sorry if this post appears as a new thread. it's my first time using a mailing list... From kstachowski at o2.pl Sun Jun 18 20:06:51 2006 From: kstachowski at o2.pl (kamil stachowski) Date: Mon, 19 Jun 2006 00:06:51 +0000 Subject: drawing a generated bitmap Message-ID: <200606190006.52079.kstachowski@o2.pl> hello :) sorry for writing to you at your private address instead of the gtk list but it seems that using a mailing list exceeds my computer skills :/ anyway, i'd like to thank you very much for your answer. it made me finally understand how stuff works. here's the answer i think i failed to post on the list: >> Well, I can't speak Nemerle, but as far as I understand it, >> you first fill the image with arbitrary values no one knows >> which color they correspond to in the colormap, then >> allocate one very dark red color (full red is 0xffff in >> Gdk) but never use it -- the `pixel' field filled by >> AllocColor is the value to use with PutPixel -- and after >> all that you set the image's colormap. >> To draw you have to allocate the colors *first* -- and note >> if the display is not direct/true-color, it has a limited >> number of colors and you will not be able to allocate a new >> color for each unique (x+y):>UInt32 value. > so that's the way it works! oh dear, thank you very much! you've saved me > headache for at least a week :) > the thing is that i got completely lost about the concept of colour > allocation and colour.pixel value. i've utterly failed to understand the > meaning of "hardware pixel" as it is put in the docs. > actually, this also why i sticked to image instead of pixbuf - i thought > image.putpixel's colour parameter was the traditional way, and was afraid to > use pixbuf.drawpoint's gc.foreground because i couldn't understand it. > but now the penny dropped, thank you a great lot :) i definitely owe you a > beer or two in case we ever met :) thanks again, kamil stachowski From masonduan1 at sina.com Mon Jun 19 05:09:51 2006 From: masonduan1 at sina.com (heavenscape) Date: Mon, 19 Jun 2006 02:09:51 -0700 (PDT) Subject: Is there any widget on which I can plot my own primitives? Message-ID: <4932993.post@talk.nabble.com> I have explored some widgets such as GtkImage and GnomeCanvas, but none of them provide the functions I need. Does anyone got any idea? Thanks! -- View this message in context: http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 Sent from the Gtk+ - General forum at Nabble.com. From masonduan1 at sina.com Mon Jun 19 05:16:43 2006 From: masonduan1 at sina.com (heavenscape) Date: Mon, 19 Jun 2006 02:16:43 -0700 (PDT) Subject: How to capture the mouse move and double click event? Message-ID: <4933077.post@talk.nabble.com> I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, I need to capture the coordination of the cursor. In VC++, this can be easily achieved by using the OnMouseMove() function. But in Gtk, I cannot find any similar signal to map. Does anyone got any idea? Thanks!! -- View this message in context: http://www.nabble.com/How-to-capture-the-mouse-move-and-double-click-event--t1810142.html#a4933077 Sent from the Gtk+ - General forum at Nabble.com. From z_b_r at poczta.fm Mon Jun 19 05:35:09 2006 From: z_b_r at poczta.fm (hm) Date: 19 Jun 2006 11:35:09 +0200 Subject: Drawing images ( with transparency ) one on another Message-ID: <20060619093509.DC2132E5C98@poczta.interia.pl> Hi, I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. thanks ---------------------------------------------------------------------- Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 From jean.brefort at normalesup.org Mon Jun 19 06:46:15 2006 From: jean.brefort at normalesup.org (Jean =?ISO-8859-1?Q?Br=E9fort?=) Date: Mon, 19 Jun 2006 12:46:15 +0200 Subject: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Message-ID: <1150713975.8915.1.camel@athlon.brefort.fr> Le lundi 19 juin 2006 ? 02:09 -0700, heavenscape a ?crit : > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. Which functions do you need? > Does anyone got any idea? Thanks! May be GtkDrawingArea? Regards, Jean From jean.brefort at normalesup.org Mon Jun 19 06:49:42 2006 From: jean.brefort at normalesup.org (Jean =?ISO-8859-1?Q?Br=E9fort?=) Date: Mon, 19 Jun 2006 12:49:42 +0200 Subject: How to capture the mouse move and double click event? In-Reply-To: <4933077.post@talk.nabble.com> References: <4933077.post@talk.nabble.com> Message-ID: <1150714182.8915.6.camel@athlon.brefort.fr> Le lundi 19 juin 2006 ? 02:16 -0700, heavenscape a ?crit : > I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, > I need to capture the coordination of the cursor. In VC++, this can be > easily achieved by using the OnMouseMove() function. But in Gtk, I cannot > find any similar signal to map. > > Does anyone got any idea? Thanks!! The "motion-notify-event" signal is most probably what you need. Regards, Jean From lieven at quasar3d.nl Mon Jun 19 07:26:42 2006 From: lieven at quasar3d.nl (LievenQ) Date: Mon, 19 Jun 2006 13:26:42 +0200 Subject: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Message-ID: Hi, Use the GtkDrawingArea. You can draw to it using Gdk or maybe Cairo (not sure if that's already in the stable version). Google gave me this tutorial: http:// www.gtk.org/tutorial/x2491.html Greets, Lieven van der Heide. On Mon, 19 Jun 2006 11:09:51 +0200, heavenscape wrote: > > I have explored some widgets such as GtkImage and GnomeCanvas, but none > of > them provide the functions I need. > > Does anyone got any idea? Thanks! > -- > View this message in context: > http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list at gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lieven at quasar3d.nl Mon Jun 19 08:13:33 2006 From: lieven at quasar3d.nl (LievenQ) Date: Mon, 19 Jun 2006 14:13:33 +0200 Subject: Different thickness depending on widget properties. Message-ID: Hi, I am currently working on the wimp theme engine, and I would like to have different thickness property values depending on whether the edge type is etched, or sunken. What would be the best approach on doing so? Also, I'm wondering why the GtkFrame is used for both visually grouping widgets together (like the windows groupbox), aswell as adding edges to widgets (like the drop down list in the combobox seems to be doing). They may have the same functionality (which is none, afaik ;)), and in the default theme they may look the same, but imho there really is a difference between a grouping frame and an edge, and when you're theming, it may be very likely that you want to theme them differently. So I think it would be easier if it were different widgets. Greets, Lieven van der Heide. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From yeti at physics.muni.cz Mon Jun 19 06:41:32 2006 From: yeti at physics.muni.cz (David =?iso-8859-2?B?TmXoYXMgKFlldGkp?=) Date: Mon, 19 Jun 2006 12:41:32 +0200 Subject: Drawing images ( with transparency ) one on another In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Message-ID: <20060619104132.GW2858@potato.chello.upc.cz> On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. Either use gdk_draw_pixbuf() if the correct order (first base, then the one with alpha channel) in expose event handler, or use gdk_pixbuf_composite() and draw the final image. Yeti -- Anonyms eat their boogers. From jmad at maerskdata.dk Mon Jun 19 14:33:25 2006 From: jmad at maerskdata.dk (Jens Madsen) Date: 19-Jun-2006 14:33:25 CEDT Subject: xevent ? Hi, I am converting some old x-windows software to GTK. It contains a handler for receiving xevents from other applications. What sort of GTK api should I use for receiving/sending the x-events ? Best regards Jens Madsen From simon at thegestalt.org Mon Jun 19 10:41:20 2006 From: simon at thegestalt.org (Simon Wistow) Date: Mon, 19 Jun 2006 15:41:20 +0100 Subject: Problems using GTK in Maya Message-ID: <20060619144120.GJ7044@thegestalt.org> I've attempted to write a dialog for Maya using GTK but it consistently causes segfaults. The dialog will launch and return successfully but the next button I press will causes a Maya crash with the message The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 62194 error_code 8 request_code 42 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) And so far I've been unable to geta back trace out of GDB or Totalview. I've narrowed it down to a test case string create_dialog { int argc = 0; char** argv = 0; // Initialize the widget set if (!gtk_init_check (&argc, &argv)) { return ""; } // drain the event loop while (gtk_events_pending ()) { gtk_main_iteration (); } return ""; } either with or without the event loop draining. Am I doing something fundamentally wrong? Do I need to do somethign with XEmbed? Is GTK just not suited to this? Do I need to sacrifice a different breed of chicken? I'm using GTK 2.69 for what it's worth. Simon -- X-Gleitschirmfliegen: macht Spaaaasss! From paul at linuxaudiosystems.com Mon Jun 19 12:33:38 2006 From: paul at linuxaudiosystems.com (Paul Davis) Date: Mon, 19 Jun 2006 12:33:38 -0400 Subject: xevent ? In-Reply-To: <1150734280.8703.98.camel@localhost.localdomain> References: <1150734280.8703.98.camel@localhost.localdomain> Message-ID: <1150734818.8703.101.camel@localhost.localdomain> On Mon, 2006-06-19 at 14:33 +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? basically, you can't. GTK is a cross platform toolkit, so it doesn't have an API that exposes backend details like XEvent. if you root around in the sources of gdk, especially the gdk-x11 directory, you will find some stuff that could be useful. but its not GTK and not even really GDK, since these APIs are designed to work on a variety of backends, including several that are not X Window related. --p From jose.francisco.hevia at gmail.com Mon Jun 19 06:49:45 2006 From: jose.francisco.hevia at gmail.com (Jose Hevia) Date: Mon, 19 Jun 2006 12:49:45 +0200 Subject: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Message-ID: 2006/6/19, heavenscape : > > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. > Does anyone got any idea? Thanks! Oh, yes, I'm looking my crystal ball, but I can't manage to get to know what kind of functions you need :-) But I'm sure you know, so please, give more info. Jose Hevia From masonduan1 at sina.com Mon Jun 19 21:48:00 2006 From: masonduan1 at sina.com (heavenscape) Date: Mon, 19 Jun 2006 18:48:00 -0700 (PDT) Subject: Trouble with GtkImage on button press event! Message-ID: <4947880.post@talk.nabble.com> I need to capture the button press event on a GtkImage widget, and I use the following code: w = lookup_widget(MainWnd,"image1"); gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); and I mapped the "Button press event" using glade, but it never worked. Anyone knows why? -- View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 Sent from the Gtk+ - General forum at Nabble.com. From yeti at physics.muni.cz Mon Jun 19 14:02:35 2006 From: yeti at physics.muni.cz (David =?iso-8859-2?B?TmXoYXMgKFlldGkp?=) Date: Mon, 19 Jun 2006 20:02:35 +0200 Subject: xevent ? In-Reply-To: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> References: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> Message-ID: <20060619180234.GF30886@potato.chello.upc.cz> On Mon, Jun 19, 2006 at 04:22:25PM +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? See gdk_add_client_message_filter() and related funcs. At least I think they are intended for this situation, fortunately I have never needed them. Yeti -- Anonyms eat their boogers. From masonduan1 at sina.com Mon Jun 19 23:36:45 2006 From: masonduan1 at sina.com (heavenscape) Date: Mon, 19 Jun 2006 20:36:45 -0700 (PDT) Subject: trouble getting the current size of GtkViewport Message-ID: <4948583.post@talk.nabble.com> I am displaying an image inside a GtkViewport (which is in a scrolled window), my main window resizes frequently (and so the viewport), and i want the image to rescale to fit the current size of the viewport. Anybody has any idea how to get the current size of the viewport? Thanks a lot!!!! -- View this message in context: http://www.nabble.com/trouble-getting-the-current-size-of-GtkViewport-t1815369.html#a4948583 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort at normalesup.org Tue Jun 20 01:49:52 2006 From: jean.brefort at normalesup.org (Jean =?ISO-8859-1?Q?Br=E9fort?=) Date: Tue, 20 Jun 2006 07:49:52 +0200 Subject: Trouble with GtkImage on button press event! In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Message-ID: <1150782592.14978.0.camel@athlon.brefort.fr> Le lundi 19 juin 2006 ? 18:48 -0700, heavenscape a ?crit : > I need to capture the button press event on a GtkImage widget, and I use the > following code: > > w = lookup_widget(MainWnd,"image1"); > gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); > > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? do you call glade_xml_signal_autoconnect in your code? > View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list at gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From andrew at operationaldynamics.com Tue Jun 20 01:48:53 2006 From: andrew at operationaldynamics.com (Andrew Cowie) Date: Tue, 20 Jun 2006 15:48:53 +1000 Subject: Trouble with GtkImage on button press event! In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Message-ID: <1150782533.17295.4.camel@procyon.operationaldynamics.com> On Mon, 2006-06-19 at 18:48 -0700, heavenscape wrote: > I need to capture the button press event on a GtkImage widget... > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? [gtk] Images themselves don't have [gdk] Windows underneath them, and only such Windows receive events. There is thus a "helper" class called GtkEventBox. You have to nest the Image inside an EventBox to which you can then hook up mouse button press events. http://developer.gnome.org/doc/API/2.0/gtk/GtkEventBox.html or http://java-gnome.sourceforge.net/docs/javadoc/org/gnu/gtk/EventBox.html AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Website: http://www.operationaldynamics.com/ Blog: http://research.operationaldynamics.com/blogs/andrew/ GPG key: 0945 9282 449C 0058 1FF5 2852 2D51 130C 57F6 E7BD From masonduan1 at sina.com Tue Jun 20 02:45:54 2006 From: masonduan1 at sina.com (heavenscape) Date: Mon, 19 Jun 2006 23:45:54 -0700 (PDT) Subject: How to capture the scroll event of the scrolled window? Message-ID: <4950061.post@talk.nabble.com> I need to track the scroll events of the GtkScrolledWindow, and i use following code: GtkWidget* w = lookup_widget(MainWnd,"scrolledwindow1"); gtk_widget_add_events (w, GDK_SCROLL_MASK); and I mapped the scroll child event with glade, but it does not work. Anyone knows why? -- View this message in context: http://www.nabble.com/How-to-capture-the-scroll-event-of-the-scrolled-window--t1815899.html#a4950061 Sent from the Gtk+ - General forum at Nabble.com. From prashan at sasken.com Tue Jun 20 04:45:44 2006 From: prashan at sasken.com (Kalli Math) Date: Tue, 20 Jun 2006 14:15:44 +0530 Subject: proggressbar.. Message-ID: <4497B5B8.1080000@sasken.com> how to design a progressbar, and add to my application window? with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From prashan at sasken.com Tue Jun 20 07:06:14 2006 From: prashan at sasken.com (Kalli Math) Date: Tue, 20 Jun 2006 16:36:14 +0530 Subject: Please help me.. Message-ID: <4497D6A6.20505@sasken.com> hi all... I am doing GUI for audio players using *GTK* as framework. i have to design a *playlist* which contains files from one* directory*, on selecting file from playlist another window should open,which contains play,* pause and stop buttons and one progress bar*. i have to write *events* for those play & all buttons. if anybody have idea of this please help me. or tell me where i get source code of this. with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From paul at linuxaudiosystems.com Tue Jun 20 07:51:07 2006 From: paul at linuxaudiosystems.com (Paul Davis) Date: Tue, 20 Jun 2006 07:51:07 -0400 Subject: proggressbar.. In-Reply-To: <4497B5B8.1080000@sasken.com> References: <4497B5B8.1080000@sasken.com> Message-ID: <1150804267.8703.134.camel@localhost.localdomain> On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? it is customary to show some indication that you've attempted to find an answer to such simple, basic questions before asking a mailing list. www.gtk.org has lots of documentation on the GTK API, and links to lots of example source code which you are expected to make use of to find useful, real world, working examples. if you don't understand even the basic idea behind using GTK (or any GUI toolkit), mailing lists are not the right place to begin. From linuxhippy at gmail.com Tue Jun 20 09:26:51 2006 From: linuxhippy at gmail.com (Clemens Eisserer) Date: Tue, 20 Jun 2006 15:26:51 +0200 Subject: Scrolling performance Message-ID: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Hi there, I recently updated to OpenSuSE 10.1 since some people suggested that Eclipse/GTK's performance is better with gtk 2.8. My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with latest NVidia binary drivers, renderaccel enabled. GTK applications tend to be very unresponsive compared to other toolkits: - Slow expose reaction. If I move a window above e.g. gtk-demo I see a repaint-lag of about 2-3cm. - Slow scrolling. Even fast scrolling inside of the filechooser is not smooth. I can see scrolling srtifacts which look like caused by asynchronous repainting of the scrolled area. - Slow layouting, especially for Text composnents: Moving e.g. the vertical splitters of gftp (one pane a table as content, other table is empty) is done with about 5fps. Even my old P233 with Windows2000 can do compareable GUI operations without any problems. Also reslayouting/repainting windows after window-size change is slow. - Sluggish Menu-behaviour. In gftp I can feel a ~400ms lag, therefor it takes about 400ms for the menu to catch up to my mouse-pointer if I move with about 500pixel/s. - Eclipse in general is just _very_ slow at all. If large popup menus go away you see the background about 300-500ms repainting itself. Netbeans (Swing based) is way faster, only after start its slow (till the java JIT compiled the hot spots). I know this is an opensource project, I know if something bothers me I can grab the code and enhance it or dontate some money to make someone else fix my problems. However I still go to school and currently have to do my diploma -> no money, no time. I know its unpolite to post such problems to the list, but bad performance has been discussed since ... I guess the 2.0 release. I still remember many projects refusing to upgarde with tables of micro-benchmarks. Till a long time improvements are promiesed, fast paths in pango, enhanced speed of cairo, better repaint handling and whatsoever. If I start a application which links against GTK-2.8 _feels_ exactly as good damn slow as GTK-2.0. The I start a GTK-1.2 based problem and can't trust my eyes ... what happend to GTK. At times of GTK-1.2 I preffered GTK since it felt a bit faster than QT-2.x but now QT is lightening fast compared to GTK-2.x not talking about high-performance libraries like FOX or FLTK. I used Mozilla/GTK1.2 builds as long as they were available, since even mozilla slowed down by only using GDK(2). I just don't get it why I need a 3ghz PC to not see repaint lags or 5fps layout updates. These things worked years ago ten times better than now (and no, this are not themes. GTK-1/QT-2 were themed too with tons of pixmaps). What has happend? I guess performance regression testing is something never here has heard of :-/ And where to start getting my hands on? I just can't work with this crap anymore, but since GTK is on the way to be used as the default toolkit ... it seems there's no way arround it. Which profiling tools do you recommend? Do you think using the intel compiler is worth a try? Where does all the time go to? I've done some sysprof-profiling and its shows than pango is not the evil. Are maybe the repaint algorythmns not optimal, repainting too often too large areas/hidden components? Sorry for wasting your time and your energy, a frustrated Clemens From mclasen at redhat.com Tue Jun 20 11:21:20 2006 From: mclasen at redhat.com (Matthias Clasen) Date: Tue, 20 Jun 2006 11:21:20 -0400 Subject: GLib 2.11.4 released Message-ID: <1150816880.15532.58.camel@golem.boston.redhat.com> GLib 2.11.4 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.4.tar.bz2 md5sum: 9d3a94baa4bfcd9a579b45eea6de3a8c glib-2.11.4.tar.gz md5sum: f7768bc7ed524c6b40cb87daccb6c2b2 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.3 to GLib 2.11.4 =================================================== * GBookmarkFile: - g_bookmark_file_remove_item returns a boolean * g_mkstemp accepts the XXXXXX in the middle of the template * Bugs fixed: 344868 g_key_file_to_data should separate groups * Updated translations (de,es,fr,gu,hi,ko,th) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=344868 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Christian Persch, Federico Mena Quintero Matthias Clasen June 20, 2006 From torriem at chem.byu.edu Tue Jun 20 11:27:09 2006 From: torriem at chem.byu.edu (Michael L Torrie) Date: Tue, 20 Jun 2006 09:27:09 -0600 Subject: Please help me.. In-Reply-To: <4497D6A6.20505@sasken.com> References: <4497D6A6.20505@sasken.com> Message-ID: <1150817229.26278.4.camel@isengard> On Tue, 2006-06-20 at 16:36 +0530, Kalli Math wrote: > hi all... > > I am doing GUI for audio players using *GTK* as framework. i have to > design a *playlist* which contains files from one* directory*, on > selecting file from playlist another window should open,which contains > play,* pause and stop buttons and one progress bar*. i have to write > *events* for those play & all buttons. if anybody have idea of this > please help me. or tell me where i get source code of this. Do you have a specific question? I doubt anyone here will write your program for you. > > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list at gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mitch at gimp.org Tue Jun 20 14:17:57 2006 From: mitch at gimp.org (Michael Natterer) Date: Tue, 20 Jun 2006 20:17:57 +0200 Subject: proggressbar.. In-Reply-To: <4497B5B8.1080000@sasken.com> References: <4497B5B8.1080000@sasken.com> Message-ID: <1150827477.31698.2.camel@localhost> I think it would help a bit if you a) asked specific questions b) didn't have 3 times as much advertizing as content in your mail c) didn't have this idiotic disclaimer On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list at gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt at gmail.com Tue Jun 20 14:20:51 2006 From: jcupitt at gmail.com (John Cupitt) Date: Tue, 20 Jun 2006 19:20:51 +0100 Subject: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Message-ID: <522c6460606201120g780d763dvf18c90f7fb461681@mail.gmail.com> On 6/20/06, Clemens Eisserer wrote: > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Hi Clemens, I've not tried suse 10.1, but older suses used to install a theme engine for gtk which tried to copy the current KDE theme. It always caused me problems: it was slow, very ugly, and had repaint errors. Maybe it's better than it used to be, but if you have not disabled it, I think it's worth trying without. I forget what the package you have to remove is called, maybe try something like rpm -q a | grep -i gtk | grep -i engine (untested) and see if it lists any theme engines. GTK on the default theme should be fast. John From patrick.jacquotf at free.fr Tue Jun 20 15:17:43 2006 From: patrick.jacquotf at free.fr (Patrick Jacquot) Date: Tue, 20 Jun 2006 21:17:43 +0200 Subject: Drawing images ( with transparency ) one on another In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Message-ID: <1150831063.12639.2.camel@proton> Le lundi 19 juin 2006 ? 11:35 +0200, hm a ?crit : > Hi, > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. > > thanks > > ---------------------------------------------------------------------- > Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 > One solution could be to prepare the composite image with the imagemagick library, then to display that composite image HTH -- Patrick From Valdis.Kletnieks at vt.edu Tue Jun 20 15:31:25 2006 From: Valdis.Kletnieks at vt.edu (Valdis.Kletnieks at vt.edu) Date: Tue, 20 Jun 2006 15:31:25 -0400 Subject: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 15:26:51 +0200." <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Message-ID: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> On Tue, 20 Jun 2006 15:26:51 +0200, Clemens Eisserer said: > Where does all the time go to? I've done some sysprof-profiling and > its shows than pango is not the evil. Are maybe the repaint > algorythmns not optimal, repainting too often too large areas/hidden > components? So where *does* the time go to, if not pango? The more detail you can provide, the easier it is to track down. For what it's worth, I'm using an older Dell C840 laptop (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer, and it's able to keep up just fine. (Although I admit that if I grab one 700x1000 window and start using the mouse to move it back and forth as fast as I can move the mouse, in front of 2 other 700x1000 windows, and the window manager is doing the moving window in translucent mode as well, that *will* spike the processor up to about 100% and only 8 or 10 redraws per second. I'm not saying it's *not* an issue for you, but simply pointing out that not everybody is seeing the problem - on my machine, GTK2 *is* a bit heavier than GTK1, but not to the point where it's a major issue. And in general, it's really hard to chase down performance regressions in an open-source project without somebody actually seeing the problem and willing to work in some detail to chase it down (been there myself - there's been more than a few times when I've been literally the only person who was both seeing a given bug in the Linux kernel and in a position to help debug it...) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 226 bytes Desc: not available Url : http://mail.gnome.org/archives/gtk-list/attachments/20060620/03177125/attachment.bin From linuxhippy at gmail.com Tue Jun 20 16:21:16 2006 From: linuxhippy at gmail.com (Clemens Eisserer) Date: Tue, 20 Jun 2006 22:21:16 +0200 Subject: Scrolling performance In-Reply-To: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> Message-ID: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Hi again, Maybe GTK is using X in a way it does not like? > of 2 other 700x1000 windows, and the window manager is doing the moving window > in translucent mode as well, that *will* spike the processor up to about 100% > and only 8 or 10 redraws per second. Well but then a composition manager is installed (as far as I know this is needed for transculesent windows), the window-content is cached in a pixmap and just this pixmap is drawn overe and over and the application does not receive a single expose event by X - So it has in fact nothing to do with GTK. Thanks for the tip with the theme, the only theme I've installed is called "Raleigh". > (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer Well but it should be enough to handle these simple tasks very fast. If QT can do it fast, GTK should be able too. I just wonder why QT performs that well (and many other toolkits I've used too like FOX or FLTK) but everytime it comes down to bad performance of GTK the following things happen: 1.) Not even one comment from a developer. Maybe there are not enough, maybe nobody cares, ore maybe they can't cope with critic? I don't know. 2.) Some fans respond that on their machines its working fast enough. Fighting against that one that brought up the topic to show him that their favourite Gui toolkit is not as weak as it looks. 3.) The discussion dies with or without a flame. -> no result, nothing changes. I see/saw quite frequently complaints about GTK's performance, I saw tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away from GTK-2 because they were concerned loosing users when switching to this toolkit. > So where *does* the time go to, if not pango? The more detail you can > provide, the easier it is to track down. I did some sysprof testing back when I tried to analyze why the Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default theme). It was almost a flat profile, but X spiked quite a lot. Doing the same test (invalidating eclispe's main window) shows about half (!!!) of the time is spent in X. The test with gftp (moving splitters) shows X using 67.1% of CPU whereas gftp itself only consumes 31%. I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). lg Clemens From myeates at jpl.nasa.gov Tue Jun 20 17:24:43 2006 From: myeates at jpl.nasa.gov (Mathew Yeates) Date: Tue, 20 Jun 2006 14:24:43 -0700 Subject: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix Message-ID: <4498679B.7000508@jpl.nasa.gov> Hi When I try and compile I get the error in my subject line. This is with a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Mathew From Valdis.Kletnieks at vt.edu Tue Jun 20 17:30:19 2006 From: Valdis.Kletnieks at vt.edu (Valdis.Kletnieks at vt.edu) Date: Tue, 20 Jun 2006 17:30:19 -0400 Subject: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 22:21:16 +0200." <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Message-ID: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> On Tue, 20 Jun 2006 22:21:16 +0200, Clemens Eisserer said: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. Maybe none of the developers are seeing your issue, and none of the usual bleeding-edge testers see it either. This makes it hard for them to fix it. > 2.) Some fans respond that on their machines its working fast enough. I'm suspecting you're addressing me with that comment. ;) My point was that it *isn't* the case where every single GTK2 system is seeing horrid performance, and that it always sucks in every case. You seem to be encountering an issue that is *not* present on every system. (On the other hand, if computers and users didn't keep finding new ways to trip over obscure corner cases, I'd be unemployed, so I'm not complaining ;) > I see/saw quite frequently complaints about GTK's performance, I saw > tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away > from GTK-2 because they were concerned loosing users when switching to > this toolkit. Because usually the person complaining disappears before providing useful info like this: > > So where *does* the time go to, if not pango? The more detail you can > > provide, the easier it is to track down. > I did some sysprof testing back when I tried to analyze why the > Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default > theme). It was almost a flat profile, but X spiked quite a lot. Doing > the same test (invalidating eclispe's main window) shows about half > (!!!) of the time is spent in X. The test with gftp (moving splitters) > shows X using 67.1% of CPU whereas gftp itself only consumes 31%. > I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). OK, *now* we have something that we can start looking into - we now know that at least part of the problem is that gftp is generating some very sub-optimal X requests. And we have a test case that reproduces easily (although on my box moving the main horizontal splitter in the gftp gui up and down result in about 70% gftp-gtk and 25% in the X server). I'll take a closer look at this later tonight - the kernel I have booted at the moment doesn't have oprofile support. (And no, I don't pretend to know the GTK innards well enough to fix this, but I've been doing systems debugging and tuning for enough decades that I certainly should be able to get a clear and coherent bugzilla out of it so that somebody else can run with it from there...) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 226 bytes Desc: not available Url : http://mail.gnome.org/archives/gtk-list/attachments/20060620/dd2bb0d3/attachment.bin From mleisher at crl.nmsu.edu Tue Jun 20 17:30:40 2006 From: mleisher at crl.nmsu.edu (Mark Leisher) Date: Tue, 20 Jun 2006 15:30:40 -0600 Subject: Scrolling performance In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Message-ID: <44986900.7080407@crl.nmsu.edu> Clemens Eisserer wrote: > >> (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer > Well but it should be enough to handle these simple tasks very fast. > If QT can do it fast, GTK should be able too. > > I just wonder why QT performs that well (and many other toolkits I've > used too like FOX or FLTK) but everytime it comes down to bad > performance of GTK the following things happen: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. > 2.) Some fans respond that on their machines its working fast enough. > Fighting against that one that brought up the topic to show him that > their favourite Gui toolkit is not as weak as it looks. > 3.) The discussion dies with or without a flame. > -> no result, nothing changes. I run GTK+ 2.8 on a 400MHz Pentium II box (512MB, Slackware 9) every day without any noticeable performance problems. At one time or another I have used pretty much all versions of GTK+ on this machine without any performance problems. In fact I just installed all the latest libraries last night and didn't experience any performance problems with any programs I linked to the new libraries. Your performance problem is most likely configuration or distribution-specific. Thus the lack of response from the developers. The discussion founders because nothing needs changing except perhaps your system, which your fellow travelers can only help with up to a point because most of us don't have your specific setup. I will say that it not a good sign that problems like yours can't be diagnosed easily. The accretion of mass and complexity in the OS and GUI is making it increasingly difficult to determine where to start troubleshooting. -- ------------------------------------------------------------------------ Mark Leisher Computing Research Lab They never open their mouths New Mexico State University without subtracting from the Box 30001, MSC 3CRL sum of human knowledge. Las Cruces, NM 88003 -- Thomas Bracket Reed (1839-1902) From tml at iki.fi Tue Jun 20 17:49:26 2006 From: tml at iki.fi (Tor Lillqvist) Date: Wed, 21 Jun 2006 00:49:26 +0300 Subject: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix In-Reply-To: <4498679B.7000508@jpl.nasa.gov> References: <4498679B.7000508@jpl.nasa.gov> Message-ID: <17560.28006.652000.134571@gargle.gargle.HOWL> Mathew Yeates writes: > When I try and compile I get the error in my subject line. This is with > a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Presumably you get the error when running your code, not compiling? Anyway, you probably have an older version of the GNU iconv Dll, iconv.dll, in your Windows System32 folder. (Or something totally unrelated that just happens to also be called iconv.dll.) Hide that other iconv.dll. If you later then notice that some 3rd-party app that has installed it in the system32 folder starts complaining about it missing, copy it to that app's executable's folder, where it should have been in the first place. --tml From jcupitt at gmail.com Tue Jun 20 17:57:34 2006 From: jcupitt at gmail.com (John Cupitt) Date: Tue, 20 Jun 2006 22:57:34 +0100 Subject: Scrolling performance In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Message-ID: <522c6460606201457k7a194a19n956616ccdaeb85da@mail.gmail.com> On 6/20/06, Clemens Eisserer wrote: > Thanks for the tip with the theme, the only theme I've installed is > called "Raleigh". I found the package: http://www.novell.com/products/linuxpackages/suselinux/gtk-qt-engine.html it is installed by default, so unless you've removed it, you are probably using it. Worth checking anyway. I used to use gtk2.4 apps under suse on a very old 450MHz PII machine and performance was not obviously worse than Qt (for me). John From linuxhippy at gmail.com Tue Jun 20 18:41:31 2006 From: linuxhippy at gmail.com (Clemens Eisserer) Date: Wed, 21 Jun 2006 00:41:31 +0200 Subject: Scrolling performance In-Reply-To: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> Message-ID: <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Hi again, > I'm suspecting you're addressing me with that comment. ;) Well, maybe ;) When I wrote the original post I was quite frustrated since I was unhappy about GTKs performance since a long time (I used FC3 (2.4) and FC4(2.6) and now OpenSuSE 10.1 (2.8), my laptop died (2.6ghz) and now I've to work on an Athlon-1000 where all gtk programs are the same oder of magnitude slower than on my laptop, I just can feel it much more because of the slowness of the machine itself. > Because usually the person complaining disappears before providing useful > info like this: Well I understand that this leads to frustration over the time. I am too one of those guys crying very loud, however I am a java-programmer working with Eclipse since about 2 years. I can choose between a slow GTK2 interface or an unuseable but fast Motif based, and that for the tool I work most of the time with :-/ So ... yes I am interested in investing time to at least help abit with informations ;) For now my timeframe is *very* limmited (my current project has its deadline about 2-3 weeks), but I am of course I am willed to help. I would also be willed to get my hands on code ... if someone would be patient enough to help me at the beginning ;) I did some oprofiling, however I don't have a vmlinz-file handy so its quite a bit useless: 5558 39.2930 no-vmlinux 2116 14.9593 libfb.so 1319 9.3248 nvidia_drv.so 1031 7.2888 Xorg 603 4.2630 libqt-mt.so.3.3.5 550 3.8883 libc-2.4.so 470 3.3227 libgobject-2.0.so.0.800.5 416 2.9410 libcairo.so.2.2.3 337 2.3825 libglib-2.0.so.0.800.5 304 2.1492 libgdk-x11-2.0.so.0.800.10 272 1.9229 libpango-1.0.so.0.1001.1 201 1.4210 libX11.so.6.2 177 1.2513 libpthread-2.4.so 155 1.0958 libgtk-x11-2.0.so.0.800.10 > I'll take a closer look at this later tonight - the kernel I have booted at the > moment doesn't have oprofile support. Thanks for looking into this. lg Clemens From Valdis.Kletnieks at vt.edu Tue Jun 20 19:43:26 2006 From: Valdis.Kletnieks at vt.edu (Valdis.Kletnieks at vt.edu) Date: Tue, 20 Jun 2006 19:43:26 -0400 Subject: Scrolling performance In-Reply-To: Your message of "Wed, 21 Jun 2006 00:41:31 +0200." <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Message-ID: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > I did some oprofiling, however I don't have a vmlinz-file handy so its > quite a bit useless: > 5558 39.2930 no-vmlinux Bummer. With a system time *that* high, I'm wondering if there's something odd going on here... a vmlinux to help split that out would certainly help a lot in debugging here.. > 2116 14.9593 libfb.so > 1319 9.3248 nvidia_drv.so > 1031 7.2888 Xorg > 603 4.2630 libqt-mt.so.3.3.5 > 550 3.8883 libc-2.4.so > 470 3.3227 libgobject-2.0.so.0.800.5 Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a generic GTK issue, not gftp, unless the 3 other apps I tested did the same wrong thing with it.. ;) samples % image name app name symbol name 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process 5232 6.7536 libfb.so libfb.so (no symbols) 4834 6.2398 Xorg Xorg (no symbols) 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy 2172 2.8037 vmlinux vmlinux get_page_from_freelist 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock 1359 1.7542 nvidia nvidia (no symbols) 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup (or, done by shared library: 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 10538 13.6027 vmlinux 5594 7.2209 libc-2.4.90.so 5377 6.9408 libgobject-2.0.so.0.1102.1 5232 6.7536 libfb.so 4953 6.3934 Xorg 4784 6.1753 nvidia_drv.so 3933 5.0768 libpthread-2.4.90.so At least in my case, the top hog appears to be too much work done scaling theme pixmaps over and over, when they're likely to be invalidated by another resize before the scaling is completed.... You probably mentioned it before, but what GTK2 theme are you using? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 226 bytes Desc: not available Url : http://mail.gnome.org/archives/gtk-list/attachments/20060620/7b887d4d/attachment.bin From suryakiran.gullapalli@gmail.com Thu Jun 1 00:10:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24B3A3B00BB for ; Thu, 1 Jun 2006 00:10:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04016-08 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by menubar.gnome.org (Postfix) with ESMTP id 9B3453B00B8 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so260553nzo for ; Wed, 31 May 2006 21:10:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=N+wbMTsUS0m6ybIQQ6WBzXon9fU/EEzIVq5El3whjJyUR4SAxxBUxIEOsBfVXkeL2YbImX2jAbHiSNiVELVdbozPa3i6O5WTSb6jawRIjg1MW1JZlhMea6gfJPV+YUdgdJ2gGLM2E/7KnKs55/7qEZslYRDyBuFifgtqtukaPXo= Received: by 10.36.160.15 with SMTP id i15mr231979nze; Wed, 31 May 2006 21:10:50 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Wed, 31 May 2006 21:10:50 -0700 (PDT) Message-ID: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Date: Thu, 1 Jun 2006 09:40:50 +0530 From: "Surya Kiran Gullapalli" To: "Tor Lillqvist" In-Reply-To: <17533.16487.144000.523256@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1980_31614517.1149135050887" References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.185, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.28 X-Spam-Level: Cc: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 04:10:54 -0000 ------=_Part_1980_31614517.1149135050887 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > > That's what supposed to happen when one uses the ms-windows theme. > I've got it. The stock icons are coming with other themes. Thanks, Surya ------=_Part_1980_31614517.1149135050887 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
That's what supposed to happen when one uses the ms-windows theme.

I've got it. The stock icons are coming with other themes.
Thanks,
Surya
------=_Part_1980_31614517.1149135050887-- From kaminaga@sm.sony.co.jp Thu Jun 1 02:40:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 71ACE3B00EB for ; Thu, 1 Jun 2006 02:40:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10435-03 for ; Thu, 1 Jun 2006 02:40:55 -0400 (EDT) Received: from ns4.sony.co.jp (NS4.Sony.CO.JP [137.153.0.44]) by menubar.gnome.org (Postfix) with ESMTP id 2A5ED3B00CB for ; Thu, 1 Jun 2006 02:40:54 -0400 (EDT) Received: from mail7.sony.co.jp ([43.0.1.209]) Received: from mail7.sony.co.jp (localhost [127.0.0.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516eqQM024123 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516epjT024108 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k516epY19677 for ; Thu, 1 Jun 2006 15:40:51 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k516fCXh017466 for ; Thu, 1 Jun 2006 15:41:12 +0900 (JST) Date: Thu, 01 Jun 2006 15:37:37 +0900 (JST) Message-Id: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> To: gtk-list@gnome.org From: Hiroki Kaminaga X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.184 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.184 X-Spam-Level: Subject: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 06:40:57 -0000 Hi, I'm trying to build GTK+ for ARM architecture, my target board is TI OMAP Starter Kit 5912 (OSK5912). >From the GTK+ FAQ, I built below package: pkg-config GNU make JPEG, PNG, TIFF libraries FreeType2 fontconfig (iconv was in glibc) gettext Glib Pango ATK and when I tryed to build GTK+, configure gave me below message: * * * checking for X... no configure: error: X development libraries not found * * * Is X required package? ARM has a limited resource, so if it is not necessary, I would like to avoid installing it. Thanks in Advance. (Hiroki Kaminaga) t -- From carlo-ag@libero.it Thu Jun 1 03:15:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CA9B63B0C35 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11982-05 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from relay-pt1.poste.it (relay-pt1.poste.it [62.241.4.164]) by menubar.gnome.org (Postfix) with ESMTP id C4C5A3B0109 for ; Thu, 1 Jun 2006 03:15:39 -0400 (EDT) Received: from [192.168.1.52] (151.37.218.171) by relay-pt1.poste.it (7.2.063) (authenticated as carlo.agrusti@poste.it) id 44119E620017FBFA for gtk-list@gnome.org; Thu, 1 Jun 2006 09:15:38 +0200 Message-ID: <447E9418.5010106@libero.it> Date: Thu, 01 Jun 2006 09:15:36 +0200 From: Carlo Agrusti User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> In-Reply-To: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> X-Enigmail-Version: 0.93.0.0 OpenPGP: id=9C055DBF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.476 tagged_above=-999 required=2 tests=[AWL=-0.785, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.476 X-Spam-Level: Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:15:41 -0000 Hiroki Kaminaga ha scritto lo scorso 01/06/2006 08:37: > Hi, > > I'm trying to build GTK+ for ARM architecture, my target board is > TI OMAP Starter Kit 5912 (OSK5912). > >>From the GTK+ FAQ, I built below package: > pkg-config > GNU make > JPEG, PNG, TIFF libraries > FreeType2 > fontconfig > (iconv was in glibc) > gettext > Glib > Pango > ATK > > and when I tryed to build GTK+, configure gave me below message: > * * * > checking for X... no > configure: error: X development libraries not found > * * * > > Is X required package? Yes, it is (unless you are using the old and unmaintained framebuffer back end). > ARM has a limited resource, so if it is not > necessary, I would like to avoid installing it. > Don't use full X server; if you enable KDrive, you will have a fully featured "tiny" X server for less than 1 MiB (compare it with a modern glibc environment and you will discover where your resources are used). From kaminaga@sm.sony.co.jp Thu Jun 1 03:46:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 793603B0C4E for ; Thu, 1 Jun 2006 03:46:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13720-10 for ; Thu, 1 Jun 2006 03:46:31 -0400 (EDT) Received: from ns6.sony.co.jp (NS6.Sony.CO.JP [137.153.0.32]) by menubar.gnome.org (Postfix) with ESMTP id 0334C3B0110 for ; Thu, 1 Jun 2006 03:46:29 -0400 (EDT) Received: from mail6.sony.co.jp ([43.0.1.208]) Received: from mail6.sony.co.jp (localhost [127.0.0.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRjJ023935; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRRt023922; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k517kQY24496; Thu, 1 Jun 2006 16:46:26 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k517kk68014618; Thu, 1 Jun 2006 16:46:47 +0900 (JST) Date: Thu, 01 Jun 2006 16:43:12 +0900 (JST) Message-Id: <20060601.164312.41633181.kaminaga@sm.sony.co.jp> To: carlo-ag@libero.it From: Hiroki Kaminaga In-Reply-To: <447E9418.5010106@libero.it> References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> <447E9418.5010106@libero.it> X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:46:32 -0000 From: Carlo Agrusti > Don't use full X server; if you enable KDrive, you will have a fully > featured "tiny" X server for less than 1 MiB (compare it with a modern > glibc environment and you will discover where your resources are used). Thank you! (Hiroki Kaminaga) t -- From kereoz@yahoo.fr Thu Jun 1 04:42:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F0E363B00DE for ; Thu, 1 Jun 2006 04:42:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17618-03 for ; Thu, 1 Jun 2006 04:42:36 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id C57323B00CD for ; Thu, 1 Jun 2006 04:42:35 -0400 (EDT) Received: (qmail 90880 invoked by uid 60001); 1 Jun 2006 08:42:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SOSnkJ16bagATwum4KefozXDgJ6fNTELp2hlhxrZ18sFApRnFZ2uY4nD+XvPhLcAJLolKMxgKsoCZk2C0xq2bxeC1M45xM6rsDN3nmiDPbam+/dTLt9nVK8hBL/wJXkIJI+1e1bGiFduHMquH1OHHZO/CZysGRmiQOduxm7a+bw= ; Message-ID: <20060601084234.90878.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 01 Jun 2006 10:42:34 CEST Date: Thu, 1 Jun 2006 10:42:34 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.36 tagged_above=-999 required=2 tests=[AWL=-0.319, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.36 X-Spam-Level: Subject: Re: Widgets overlap X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 08:42:39 -0000 Hi, First, thanks for your answers :) But I didn't ask the good question : in fact, I'd like to overlap a video output widget and a Mozilla gecko widget. I want to put the browser on top of the video output, so you can see the video through the brower. In a word, the browser should be transparent. I know this is possible to do such things when the video widget works with framebuffer. Some poeple did such things with DirectX already, and I'm looking for a way to do it with GTK. Christophe HAUSER http://kereoz.sup.fr ___________________________________________________________________________ Yahoo! Mail r閕nvente le mail ! D閏ouvrez le nouveau Yahoo! Mail et son interface r関olutionnaire. http://fr.mail.yahoo.com From katsuo_harada_evil_does@hotmail.com Thu Jun 1 11:17:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C53B13B0DB9 for ; Thu, 1 Jun 2006 11:17:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15140-10 for ; Thu, 1 Jun 2006 11:17:02 -0400 (EDT) Received: from hotmail.com (bay105-f37.bay105.hotmail.com [65.54.224.47]) by menubar.gnome.org (Postfix) with ESMTP id BC3F83B0DA9 for ; Thu, 1 Jun 2006 11:16:58 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Jun 2006 08:16:57 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 01 Jun 2006 15:16:55 GMT X-Originating-IP: [86.200.250.161] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Thu, 01 Jun 2006 17:16:55 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 01 Jun 2006 15:16:57.0804 (UTC) FILETIME=[6C7428C0:01C6858E] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.275 tagged_above=-999 required=2 tests=[AWL=0.891, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BG=0.077] X-Spam-Score: 0.275 X-Spam-Level: Subject: GLib 2.11.1 FreeBSD make fails X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 15:17:07 -0000 Hello, All! I've already posted a make issue here not so long time ago. Here we come again. For a history i'm building a desktop station based on FreeBSD 4.11-RELEASE (GENERIC) kernel. while building GLib-2.11.1 i've got the following errors : http://pages-perso.esil.univ-mrs.fr/~vdoljiko/pub/make.log +++++++ HERE COMES AN EXTRAIT ++++++++ [SNIP] Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r [COMMENT] Notice the presence of -lc_r option [/COMMENT] gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib [COMMENT] Notice the absence of the -lc_r option [/COMMENT] gcc: unrecognized option `-pthreads' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_signal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getspecific' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_exit' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_equal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setscope' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_broadcast' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_key_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setstacksize' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_unlock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_self' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_lock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_wait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_trylock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setdetachstate' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_join' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_timedwait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setspecific' *** Error code 1 Stop in /home/libs/glib-2.11.1/tests/refcount. *** Error code 1 Stop in /home/libs/glib-2.11.1/tests. *** Error code 1 Stop in /home/libs/glib-2.11.1. *** Error code 1 Stop in /home/libs/glib-2.11.1. ++++++++++++++ END +++++++++++++++++++++++++++ as you can see the problem comes IMHO from badly compiled libgthread because it was compiled without -lc_r option. libc_r.a is the implementation of threads on FreeBSD system. During configure of GLib-2.11.1 i've specified LIBS=-lc_r and even LDFLAGS=-lc_r (!!! :-) ) but libgthread IMHO wasn't properly compiled. It seems that libtool and compagny line invoked from Makefile preserves -lc_r option but the effective command doesn't include -lc_r option as you can see in the example above. BUT libgthread don't reference pthread functions as result we get the above errors. 2. as you can see the line Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r specifies -lc_r option BUT when executing the effective command this option is not present! WHY! i'm using GNU make latest specially build for freetype build. i've solved the problem by manually writing gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib -lc_r in Makefile in tests/refcount directory for each target (closures properties signals) and it worked, but i'm wondering if there won't be any problems on run-time ??? i should also say that the exactly the same problem occurs in test directory whiile compiling error-mutex-something.c what can you say about this ??? how should i proceed in order to build "proper" glib-2.11.1 ??? p.s while compiling pkg-config early i've got the same problems but in gthread subdirectory. was solved in the same manner by mannualy adding -lc_r option but not in make file but on the command line. as make checks for newer versions and dependencies it was sufficent. but in GLib-2.11.1 compiling mannually don't work because of rm -f before building each target. -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From dkasak@nusconsulting.com.au Thu Jun 1 22:11:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 095BB3B0196 for ; Thu, 1 Jun 2006 22:11:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23630-03 for ; Thu, 1 Jun 2006 22:11:15 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 9D4E63B010C for ; Thu, 1 Jun 2006 22:11:14 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k522CNvG022220; Fri, 2 Jun 2006 12:12:23 +1000 Message-ID: <447F9E48.6090304@nusconsulting.com.au> Date: Fri, 02 Jun 2006 12:11:20 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Surya Kiran Gullapalli , gtk-list@gnome.org References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> In-Reply-To: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 451465 - be5dc1df8278 X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=451465&m=be5dc1df8278 X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=451465&m=be5dc1df8278 X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=451465&m=be5dc1df8278 X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.428 tagged_above=-999 required=2 tests=[AWL=0.171, BAYES_00=-2.599] X-Spam-Score: -2.428 X-Spam-Level: Cc: Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 02:11:17 -0000 Surya Kiran Gullapalli wrote: > > That's what supposed to happen when one uses the ms-windows theme. > > > I've got it. The stock icons are coming with other themes. > Thanks, > Surya How are you installing / changing themes under Windows? I've been using a utility from http://members.lycos.co.uk/alexv6/ but if there are others, I'd like to know. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From lists@nabble.com Fri Jun 2 01:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A34C53B030A for ; Fri, 2 Jun 2006 01:41:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32639-07 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 15A363B0341 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm2Pf-0007IZ-7Z for gtk-list@gnome.org; Thu, 01 Jun 2006 22:41:35 -0700 Message-ID: <4674575.post@talk.nabble.com> Date: Thu, 1 Jun 2006 22:41:35 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <43ACACCA.70309@micahcarrick.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <43ACACCA.70309@micahcarrick.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 05:41:37 -0000 Maybe I am having the same question as you do. I am trying to display a 24bit image with size 2048X2048 pixels, and following is my code: //create a GdkPixbuf GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer GDK_COLORSPACE_RGB, //COLORSPACE FALSE, // has_alpha, 8, // int bits_per_sample, 2048, // int width, 2048, // int height, 2048*3, // sizeX*3; //int rowstride, NULL, //GdkPixbufDestroyNotify destroy_fn, NULL //gpointer destroy_fn_data); ); //display img GtkWidget* img = lookup_widget(MainWnd, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(img), //GtkImage *image, pb// GdkPixbuf *pixbuf ); the results i got is that: the image did appear, but the sizes are shrinked as 684 X 684 , and there are THREE same images tile in the viewport, the first and last ones are clipped. Can anyone tell me how to fix this? thanks!! -- View this message in context: http://www.nabble.com/Help-with-GdkPIxbuf-and-GtkImage...-t800118.html#a4674575 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Fri Jun 2 03:28:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 436273B08CC for ; Fri, 2 Jun 2006 03:28:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06135-06 for ; Fri, 2 Jun 2006 03:28:26 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1BD913B1044 for ; Fri, 2 Jun 2006 03:28:21 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm44x-0003Cd-RJ for gtk-list@gnome.org; Fri, 02 Jun 2006 00:28:19 -0700 Message-ID: <4675519.post@talk.nabble.com> Date: Fri, 2 Jun 2006 00:28:19 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <20060314073947.e7cba872.lists@elehack.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.527 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.527 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:28:29 -0000 Hi Michael, I am a beginner in Linux programming, and your suggestion works! But I am still having some problem that the CPU usage is always 100% after the program starts. Could you please look at my code below and give me some suggestion? Thanks a lot!!! Following is some of my code: // idle handler of the main loop gboolean OnIdle(int msgQid) { if(thread_signal) { RefreshImage(); } return TRUE; } int main (int argc, char *argv[]) { gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); //register an idle handler to update the image when the background thread emits a signal gdk_threads_enter(); g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a * PyGTK/GTKmm guy, so the C stuff * isn't my forte */ gdk_threads_leave(); MainWnd = create_MainWnd (); gtk_widget_show (MainWnd); gtk_main (); return 0; } -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Fri Jun 2 03:45:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F5423B1055 for ; Fri, 2 Jun 2006 03:45:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07057-07 for ; Fri, 2 Jun 2006 03:45:02 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id F1BFC3B104E for ; Fri, 2 Jun 2006 03:45:01 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp1-g19.free.fr (Postfix) with ESMTP id 9B0EE9A3E2; Fri, 2 Jun 2006 09:45:00 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4675519.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 09:47:58 +0200 Message-Id: <1149234479.10209.10.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.848 tagged_above=-999 required=2 tests=[AWL=-0.395, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.848 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:45:03 -0000 Le vendredi 02 juin 2006 00:28 -0700, heavenscape a 閏rit : > Hi Michael, > > I am a beginner in Linux programming, and your suggestion works! But I am > still having some problem that the CPU usage is always 100% after the > program starts. Could you please look at my code below and give me some > suggestion? > > Thanks a lot!!! > > Following is some of my code: > > // idle handler of the main loop > gboolean OnIdle(int msgQid) > { > if(thread_signal) > { > RefreshImage(); > } > return TRUE; > } Do you need to reexecute indefinitely this idle handler? If not use: return FALSE; > int main (int argc, char *argv[]) > { > gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, > argc, argv, > GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, > NULL); > > //register an idle handler to update the image when the background thread > emits a signal > gdk_threads_enter(); > g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a > * PyGTK/GTKmm guy, so the C stuff > * isn't my forte */ > gdk_threads_leave(); > > MainWnd = create_MainWnd (); > gtk_widget_show (MainWnd); > > gtk_main (); > return 0; > } > > -- > View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From lists@nabble.com Fri Jun 2 06:33:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D3563B03E4 for ; Fri, 2 Jun 2006 06:33:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18136-04 for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 6ACDD3B030A for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm6y0-0004Vq-NT for gtk-list@gnome.org; Fri, 02 Jun 2006 03:33:20 -0700 Message-ID: <4677462.post@talk.nabble.com> Date: Fri, 2 Jun 2006 03:33:20 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <1149234479.10209.10.camel@athlon.brefort.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 10:33:27 -0000 Yes! My background thread will send a message when it has finished something, so I do need the check the message status frequently. If my OnIdle function return false, it will never be called again, and therefore cannot monitor the message status any more. Is there any alternate solution? Thanks a lot!! -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4677462 Sent from the Gtk+ - General forum at Nabble.com. From george@clipper.ens.fr Fri Jun 2 09:36:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CE273B0401 for ; Fri, 2 Jun 2006 09:36:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29496-08 for ; Fri, 2 Jun 2006 09:36:35 -0400 (EDT) Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by menubar.gnome.org (Postfix) with ESMTP id 0462C3B03FE for ; Fri, 2 Jun 2006 09:36:34 -0400 (EDT) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id k52DaXPt088553 for ; Fri, 2 Jun 2006 15:36:33 +0200 (CEST) X-Envelope-To: Received: from (george@localhost) by clipper.ens.fr (8.13.1/jb-1.1) Date: Fri, 2 Jun 2006 15:36:33 +0200 From: Nicolas George To: gtk-list@gnome.org Message-ID: <20060602133633.GA9572@clipper.ens.fr> References: <1149104973.27709.4.camel@localhost.localdomain> <7bf6f2dc0606010816q15d512aejc30a6c93bc165e6@mail.gmail.com> <1149253312.4847.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <1149253312.4847.21.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.10 (nef2.ens.fr [129.199.96.32]); Fri, 02 Jun 2006 15:36:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[AWL=0.054, BAYES_00=-2.599] X-Spam-Score: -2.545 X-Spam-Level: Subject: Re: Color space transformations in GTK X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 13:36:38 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le quartidi 14 prairial, an CCXIV, Carlos Eduardo Rodrigues Diogenes a =E9c= rit=A0: > I think that it will help who want to play with colors in a quick way. I > don't find this in any other library, and I thinked that GTK+ could be a > good place for this, because it will become easiest to work with other > colors representations in GTK+ applications. Did you try lcms ? Despite being quite complete, it is also simple for simple tasks. --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (SunOS) iD8DBQFEgD7hsGPZlzblTJMRAh3AAJ4y7eJCapcSqGa0p/kKpw5km+O+2QCfR5Xv BafttugMjFnieL87fO646B4= =R3g0 -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From Valdis.Kletnieks@vt.edu Fri Jun 2 10:32:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B6FA03B0272 for ; Fri, 2 Jun 2006 10:32:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32747-03 for ; Fri, 2 Jun 2006 10:32:00 -0400 (EDT) Received: from turing-police.cc.vt.edu (pool-72-66-198-190.ronkva.east.verizon.net [72.66.198.190]) by menubar.gnome.org (Postfix) with ESMTP id B51C63B0238 for ; Fri, 2 Jun 2006 10:31:59 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k52EVr54003265; Fri, 2 Jun 2006 10:31:53 -0400 Message-Id: <200606021431.k52EVr54003265@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: heavenscape In-Reply-To: Your message of "Thu, 01 Jun 2006 22:41:35 PDT." <4674575.post@talk.nabble.com> From: Valdis.Kletnieks@vt.edu References: <43ACACCA.70309@micahcarrick.com> <4674575.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1149258713_2700P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 02 Jun 2006 10:31:53 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.827 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961, RCVD_IN_NJABL_DUL=1.946, SPF_SOFTFAIL=1.384] X-Spam-Score: 1.827 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:32:02 -0000 --==_Exmh_1149258713_2700P Content-Type: text/plain; charset=us-ascii On Thu, 01 Jun 2006 22:41:35 PDT, heavenscape said: > //create a GdkPixbuf > GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer > GDK_COLORSPACE_RGB, //COLORSPACE > FALSE, // has_alpha, > 8, // int bits_per_sample, > 2048, // int width, > 2048, // int height, > 2048*3, // sizeX*3; //int rowstride, > NULL, //GdkPixbufDestroyNotify destroy_fn, > NULL //gpointer destroy_fn_data); > ); > the results i got is that: the image did appear, but the sizes are shrinked > as 684 X 684 , and there are THREE same images tile in the viewport, the > first and last ones are clipped. 684 is 2048/3, plus rounding. Are you sure that when you *loaded* the image into your pDisplayBuf, you correctly calculated where the various bytes go? Assuming pixel values r, g, and b, storing them into your pDisplayBuf for a given x,y (0-based coordinates 0..2047) is like this: pDisplayBuf[x*3+y] = r; pDisplayBuf[x*3+y+1] = g; pDisplayBuf[x*3+y+2] = b; Hmm... using x+y instead of x*3+y will produce a 1/3 width image and 2/3 trash. Other possibility is you're using 3*y+x instead (confusion of x/y between your code and what Gdk expects). --==_Exmh_1149258713_2700P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEgEvZcC3lWbTT17ARAhTUAJ4zzY8i6PbLXYW709arggnJGSHTEgCg6YNz WALAkmi+KDAQus4gx/9nsnc= =/pC/ -----END PGP SIGNATURE----- --==_Exmh_1149258713_2700P-- From jean.brefort@normalesup.org Fri Jun 2 10:58:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 708E23B1174 for ; Fri, 2 Jun 2006 10:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01643-02 for ; Fri, 2 Jun 2006 10:58:23 -0400 (EDT) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id 73B6A3B1194 for ; Fri, 2 Jun 2006 10:58:18 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id CA2F254B3D; Fri, 2 Jun 2006 16:58:16 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 17:01:16 +0200 Message-Id: <1149260476.8914.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.89 tagged_above=-999 required=2 tests=[AWL=-0.360, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.89 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:58:41 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? You can use a timer, or display the message from your thread, or ... from the thread, you might use something as: gdk_threads_enter(); RefreshImage(); gdk_threads_leave(); From patrick.jacquotf@free.fr Fri Jun 2 14:47:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C93393B01E0 for ; Fri, 2 Jun 2006 14:47:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15276-10 for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 6763B3B01BA for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp6-g19.free.fr (Postfix) with ESMTP id 62746226CC; Fri, 2 Jun 2006 20:47:48 +0200 (CEST) From: Patrick Jacquot To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 20:47:40 +0200 Message-Id: <1149274060.8687.52.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 18:47:54 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? Usually, one establishes a callback function to to be called when a message is due to be serviced. I'm not fluent in GTK programming (nor in English), but all GUI systems work so. -- Patrick From gnome-gtk-list@m.gmane.org Sun Jun 4 19:35:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4EAE3B0429 for ; Sun, 4 Jun 2006 19:35:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18939-10 for ; Sun, 4 Jun 2006 19:35:11 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 0D3193B0409 for ; Sun, 4 Jun 2006 19:35:10 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fn27a-0002sx-IN for gtk-list@gnome.org; Mon, 05 Jun 2006 01:35:02 +0200 Received: from cpe-72-130-182-162.san.res.rr.com ([72.130.182.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 Received: from swbrown by cpe-72-130-182-162.san.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Steven Brown Date: Sun, 04 Jun 2006 16:27:05 -0700 Lines: 9 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe-72-130-182-162.san.res.rr.com User-Agent: Thunderbird 1.5.0.2 (X11/20060516) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.524 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.524 X-Spam-Level: Subject: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2006 23:35:12 -0000 I've been going through the glib docs trying to find a simple way to get my fd polled by glib's main loop and call me back, but I've not found anything near simple. Is there such a way? E.g., something like gdk_input_add (which says it's deprecated but doesn't say by what). I see that it could be implemented by a custom g_source_new and such, but doing so is a pretty huge amount of code for what should be a one-liner. I must be missing something obvious. From tristan.van.berkom@gmail.com Sun Jun 4 20:22:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7D323B0531 for ; Sun, 4 Jun 2006 20:22:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21420-01 for ; Sun, 4 Jun 2006 20:22:16 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id ABF0A3B05C2 for ; Sun, 4 Jun 2006 20:22:09 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i3so885889wra for ; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=rGr3/uC/YjBwRnO7oTslcMuIA9XLNEuzYxfx1mSmalOpfI5DfMvRkAHrJm5Uu4mO4fRWnEh4XiD/dS6k78RZC8DI+4xudasUUhtMNMAELaVGjCd2ZwBoZwXs7im6w9gxcnx+XmxCfeSUgDeWR1qP4mLIJ8IYyx0sU8kTo2Z5nKA= Received: by 10.54.111.13 with SMTP id j13mr4300960wrc; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) Received: from ?66.48.170.25? ( [66.48.170.25]) by mx.gmail.com with ESMTP id 33sm2256255wra.2006.06.04.17.22.06; Sun, 04 Jun 2006 17:22:08 -0700 (PDT) Message-ID: <44837CEA.9020604@gnome.org> Date: Sun, 04 Jun 2006 20:38:02 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Brown References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.196 tagged_above=-999 required=2 tests=[AWL=0.404, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.196 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 00:22:20 -0000 Steven Brown wrote: >I've been going through the glib docs trying to find a simple way to get >my fd polled by glib's main loop and call me back, but I've not found >anything near simple. Is there such a way? E.g., something like >gdk_input_add (which says it's deprecated but doesn't say by what). > >I see that it could be implemented by a custom g_source_new and such, >but doing so is a pretty huge amount of code for what should be a >one-liner. I must be missing something obvious. > > > Well its not a one-liner... but something close to a one-liner: ================================== GIOChannel *channel = g_io_channel_unix_new (fd_to_poll); guint source_id = g_io_add_watch (channel, /* args of add_watch... */); /* For convenience... pass ownership of the channel to the attached GIOWatchSource */ g_object_unref (channel); /* .... */ At this point your callback will be called under the conditions you specified... when you are finished with the polling... you should call g_source_remove(source_id); and this will get rid of the io channel object as well as your poll function. ================================== Cheers, -Tristan From mclasen@redhat.com Mon Jun 5 14:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 744343B09D3; Mon, 5 Jun 2006 14:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20278-06; Mon, 5 Jun 2006 14:15:01 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id D637E3B0988; Mon, 5 Jun 2006 14:15:00 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF08I024331; Mon, 5 Jun 2006 14:15:00 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF0I9021827; Mon, 5 Jun 2006 14:15:00 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55IExAV012588; Mon, 5 Jun 2006 14:14:59 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Mon, 05 Jun 2006 14:14:59 -0400 Message-Id: <1149531299.4071.35.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: Cc: Subject: GLib 2.11.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 18:15:03 -0000 GLib 2.11.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.2.tar.bz2 md5sum: 18464b85bfd589f83897623c637a1553 glib-2.11.2.tar.gz md5sum: f728cd295ac98d4b95d850fe91c05fd5 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.1 to GLib 2.11.2 =================================================== * Add g_ascii_stroll to parse signed 64bit integers * GMarkup: add a flag to treat CDATA as text * GHashTable: add functions to remove all entries * GMainLoop: add functions to find the currently running source, and determine if it is destroyed * Bug fixes: 342563 g_atomic_thread_init() needs to be called before other _g_*_thread_init() functions 343548 Potential use after free in callers of g_string_free() 168538 Wish: Clearing contents of GHashTables 321886 GTK+ cannot be reliably used in multi-threaded applications 341826 goption.c: 'strtoll' is C99's function 343899 g_ascii_formatd dosn't work as expected for all format strings 317793 Make GEnumValue strings const 337129 Compile warnings in G_IMPLEMENT_INTERFACE 303622 What is G_TYPE_CHAR? * Updated translations (bg,dz,eu,gl,ja,nl,th,vi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=341826,342563,343548,168538,168538,321886,343899,321886,317793,337129,303622 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Peter Kjellerstedt, Kazuki Iwamoto Leonard den Ottolander, Chris Wilson, Behdad Esfahbod, Matt Barnes, 貀stein Johansen, Tim Janik Morten Welinder Matthias Clasen June 5, 2006 From mclasen@redhat.com Mon Jun 5 16:21:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 09B113B0543; Mon, 5 Jun 2006 16:21:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28553-01; Mon, 5 Jun 2006 16:21:32 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 0F8903B0012; Mon, 5 Jun 2006 16:21:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLVn7006951; Mon, 5 Jun 2006 16:21:31 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLUBq020469; Mon, 5 Jun 2006 16:21:31 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55KLUAV025318; Mon, 5 Jun 2006 16:21:30 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 05 Jun 2006 16:21:30 -0400 Message-Id: <1149538890.4071.40.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_XI=0.077] X-Spam-Score: -2.429 X-Spam-Level: Cc: Subject: GTK+ 2.9.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 20:21:34 -0000 GTK+ 2.9.2 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.2.tar.gz md5sum: c63e7d0cf7c4e983206c3088a0fb8862 gtk+-2.9.2.tar.bz2 md5sum: 17629437af44fce03485101371c8f041 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.1 to 2.9.2 ============================================ * GtkPrintOperation - Support asynchronous pagination with the ::paginate signal - Add gtk_print_operation_cancel - Support application-specific widgets - Allow disabling features based on application capabilities - Optionally show progress - Change some function names in GtkPrintContext to be longer and better - Support preview, the default implementation spawns evince, but the api allows for an internal preview implementation * GtkCellView - Add a model property * GtkStatusIcon - Allow to obtain screen geometry * GtkTreeView - Many bug fixes, in particular for RTL handling - Separate sensitive and selectable properties of rows - Optionally allow rubberband selection * GtkButton - Add image-spacing style property - Add image-position property * GtkToolButton - Add icon-spacing style property * Make GTK+ work as an untrused X client * Bugs fixed: 343838 gtkprintoperationpreview.h guards 305530 Crashes while creating source code w/GtkFontSelection 341327 Memory corruption inside glib 341734 cursor blocked to dnd mode after using shift and dnd on a GtkCalendar 343453 G_DEFINE_TYPE messes up internal typenames of GdkWindow and GdkPixmap 136571 Problems running as untrusted client 168105 the right edge tab does not appear when switching tab 172535 Add support for UI builders in gtk+ 302556 GtkTreeView widget signals are badly documented 324480 Selecting first item with keyboard is difficult 340428 small cleanup 340444 don't run the custom page size dialogue 340839 Critical warnings in GtkTreeModelFilter 341898 gtk_tree_view_insert_column_with_attributes doesn't work with fixed_height_mode 342003 DnD: Conditional jump or move depends on uninitialised value 342072 Wrong drop location in GtkEntry 342096 GtkImage animation CRITICALS on switching themes 342513 widget class style property with type module 342529 gdk should set resolution on PangoCairoFontmap, not PangoCairoContext 342535 Add documentation for new GtkWidget style properties (including Since tags) 342543 can't compile gtk+ on opensolaris using sun cc 342569 Typo in decl of gdk_color_parse 342752 Need a way to specify custom tab label for custom page in Print dialog 342754 print-editor: font button dialog doesn't get focus if main window has a window group 342781 GtkPrintUnixDialog: Collate should be insensitive unless Copies is > 1 342783 GtkPrintUnixDialog: Range textinput area should be insensitive unless range radiobutton is selected 342894 Use after free inside gtk_text_view_set_buffer 342930 GtkButton should offer a way to position the image relative to the text 343088 Some typos in the PO file 343425 "grab-notify"-signal is not correctly propagated for internal children 343438 gtk_color_button_set_color() doesn't emit "color-set" signal 343475 page setup unix dialog confusion 343625 allow to get only some info from gtk_status_icon_get_geometry 343677 GtkWindow chains key-release to key-press 320431 Text too close when using East/West in a GtkToolButton 321523 GtkTreeView's test_expand_row signal emitting impractical on row expand all 342007 Warning in gtk_paned_compute_position 343233 gdk_rectangle_intersect doc 333284 expander animation not working in RTL mode 343444 change color of gtk-demo source-buffer comment color from red to DodgerBlue 343630 Small inconsistence in migration documentation 80127 Rubberbanding for GtkTreeView 341450 status icon + libnotify 341679 Allow absolute filenames in the options entries * Updated translations (bg,cy,de,el,es,et,eu,gl,gu,it,ja, nb,nl,pt_BR,th,vi) Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Alexander Larsson, Behdad Esfahbod, Benjamin Berg, Caolan McNamara, Carlos Garnacho Parro, Carol Spears, Christian Persch, Chris Wilson, Claudio Saavedra, Clytie Siddall, Damon Chaplin, Daniel Lindenaar, Dan Winship, Diana Fong, Ed Catmur, Emmanuele Bassi, Havoc Pennington, Henrique Romano, Hiroyuki Ikezoe, James Moger, Johan Dahlin, Kouhei Sutou, Kristian Rietveld, Markku Vire, Mart Raudsepp, Masatake Yamato, Michael Emmel, Michael Natterer, Murray Cumming, Olexiy Avramchenko, Paolo Borelli, Patrick Monnerat, Richard Hult, Sampo Savolainen, Sebastien Bacher, Srirama Sharma, Stefan Kost, Tim Janik, Tommi Komulainen, Tor Lillqvist, Yevgen Muntyan A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=342072,342096,342003,341734,305530,168105,342007,342529,342535,342543,342569,341679,342752,172535,342513,342781,342783,342754,136571,341450,333284,340428,340839,341898,321523,343088,343233,324480,342894,320431,342930,343453,343425,343438,343444,340444,343475,302556,343677,343625,80127,343838,341327,168105,343630 Matthias Clasen June 5, 2006 From katsuo_harada_evil_does@hotmail.com Mon Jun 5 17:23:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 859933B03A0 for ; Mon, 5 Jun 2006 17:23:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01136-07 for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from hotmail.com (bay105-f27.bay105.hotmail.com [65.54.224.37]) by menubar.gnome.org (Postfix) with ESMTP id 80FF43B086B for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 14:23:24 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 21:23:22 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Mon, 05 Jun 2006 23:23:22 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 21:23:24.0257 (UTC) FILETIME=[470DA510:01C688E6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.332 tagged_above=-999 required=2 tests=[AWL=-0.716, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.332 X-Spam-Level: Subject: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:23:28 -0000 Hello, i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 when running gtk-demo -> UI Manger demo i've got the following output http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log when trying File menu. is it a bug or not ??? -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Windows Live Messenger : venez tester la version b阾a ! http://www.ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73 From tomasek@ebed.etf.cuni.cz Mon Jun 5 17:57:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 048853B0963 for ; Mon, 5 Jun 2006 17:57:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03329-04 for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (ebed.etf.cuni.cz [195.113.5.3]) by menubar.gnome.org (Postfix) with ESMTP id 1BFA13B086C for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (localhost.localdomain [127.0.0.1]) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11) with ESMTP id k55LkIq0015361 for ; Mon, 5 Jun 2006 23:46:18 +0200 Received: (from tomasek@localhost) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11/Submit) id k55LkIAG015359 for gtk-list@gnome.org; Mon, 5 Jun 2006 23:46:18 +0200 Date: Mon, 5 Jun 2006 23:46:18 +0200 From: Petr Tomasek To: gtk-list@gnome.org Message-ID: <20060605214618.GA14951@ebed.etf.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Homepage: http://www.etf.cuni.cz/~tomasek/ X-Echelon: bomb Arafat Intifada bus kach drugs mafia boss heroin spy Semtex Saddam Al-Qaida Usama bin Ladin Bush Sharon X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.494 X-Spam-Level: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:57:53 -0000 On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > Hello, > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > when running gtk-demo -> UI Manger demo i've got the following output > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > when trying File menu. is it a bug or not ??? Did you also update the gtk2-engines? -- Petr Tomasek From katsuo_harada_evil_does@hotmail.com Mon Jun 5 18:13:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A06E33B08BD for ; Mon, 5 Jun 2006 18:13:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04035-10 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from hotmail.com (bay105-f10.bay105.hotmail.com [65.54.224.20]) by menubar.gnome.org (Postfix) with ESMTP id 1E6233B0929 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 15:13:06 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 22:13:05 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com In-Reply-To: <20060605214618.GA14951@ebed.etf.cuni.cz> From: "Vitaly D" To: tomasek@etf.cuni.cz, gtk-list@gnome.org Date: Tue, 06 Jun 2006 00:13:05 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 22:13:06.0099 (UTC) FILETIME=[385EA030:01C688ED] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.375 tagged_above=-999 required=2 tests=[AWL=-0.759, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.375 X-Spam-Level: Cc: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 22:13:11 -0000 >From: Petr Tomasek >To: gtk-list@gnome.org >Subject: Re: gtk+-2.9.2 bug or not ??? >Date: Mon, 5 Jun 2006 23:46:18 +0200 > >On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > > Hello, > > > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > > > when running gtk-demo -> UI Manger demo i've got the following output > > > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > > > when trying File menu. is it a bug or not ??? > >Did you also update the gtk2-engines? what is gtk2-engines ? i'm using FreeBSD 4.11 with XFree86 4.6.0 with latest pango (1.13.1) atk (1.10.3) cairo (1.1.6) freetype (2.2.1) if this helps. otherwise i don't know what is gtk2-engines Cheers _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From BillS@techsi.com Tue Jun 6 10:26:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 863103B0182 for ; Tue, 6 Jun 2006 10:26:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28454-01 for ; Tue, 6 Jun 2006 10:26:32 -0400 (EDT) Received: from mail.techsi.com (wsip-68-15-225-156.om.om.cox.net [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id B57E73B01B5 for ; Tue, 6 Jun 2006 10:26:31 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56EASAZ022954 for ; Tue, 6 Jun 2006 09:10:31 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 09:26:15 -0500 Message-ID: <00e901c68975$2e2455f0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EA_01C6894B.454E4DF0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.365 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.365 X-Spam-Level: Subject: Treeview - simulating / faking keyboard events to change selection / view X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 14:26:36 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I would like to simulate the functionality of the up and down, page up and down, and home and end keyboard keys to the treeview widget. So instead of writing all the scrolling functions myself, I would just like to use the existing ones within the treeview widget that are activated by keyboard events. So I would like to "trigger" the treeview widget into sensing that one of the keyboard buttons have been pressed that would scroll the treeview by line, page, or beginning or end of list. Thanks, Bill ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I would like to simulate the functionality of the up and down, page = up and down, and home and end keyboard keys to the treeview widget.  So = instead of writing all the scrolling functions myself, I would just like to use = the existing ones within the treeview widget that are activated by keyboard events.  So I would like to “trigger” the treeview = widget into sensing that one of the keyboard buttons have been pressed that would = scroll the treeview by line, page, or beginning or end of = list.

 

Thanks,

Bill

 

------=_NextPart_000_00EA_01C6894B.454E4DF0-- From johannes_vuori@web.de Mon Jun 5 12:46:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 916763B026A for ; Mon, 5 Jun 2006 12:46:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15064-06 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by menubar.gnome.org (Postfix) with ESMTP id 5D9E53B0429 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Reveived: from web.de by fmmailgate04.web.de (Postfix) with SMTP id 044A745BA for ; Mon, 5 Jun 2006 18:46:39 +0200 (CEST) Received: from [85.156.186.148] by freemailng1803.web.de with HTTP; Mon, 05 Jun 2006 18:46:38 +0200 Date: Mon, 05 Jun 2006 18:46:38 +0200 Message-Id: <814204608@web.de> MIME-Version: 1.0 From: johannes_vuori@web.de To: gtk-list@gnome.org Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.221 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, NO_REAL_NAME=0.961] X-Spam-Score: 0.221 X-Spam-Level: X-Mailman-Approved-At: Tue, 06 Jun 2006 11:17:41 -0400 Subject: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 16:46:51 -0000 Hi, I am developing a project with a friend. We are on the search for a good 2d graphics library, and I saw Your's. I would like to ask if the library for Windows and Linux use the same function names. So, if I would write this programm on a Linux system, would it be possible to simply install the Windows library on the Windows system, and without changing the names of the functions (of the library) in my programm, to compile it? Or are there slight/major changes we would have to do first? Is there also a c++ version for Windows? Yours sincerely, Johannes _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From tml@iki.fi Tue Jun 6 11:30:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7D50D3B0151 for ; Tue, 6 Jun 2006 11:30:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00836-04 for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 6E6E93B028A for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from pettson.tml.iki.fi (MMMDCCLXVIII.tun.saunalahti.fi [213.169.6.168]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 8AB222166B5; Tue, 6 Jun 2006 18:30:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17541.40860.218000.127270@gargle.gargle.HOWL> Date: Tue, 6 Jun 2006 18:30:36 +0300 To: johannes_vuori@web.de In-Reply-To: <814204608@web.de> References: <814204608@web.de> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.328 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.328 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 15:30:57 -0000 johannes_vuori@web.de writes: > I am developing a project with a friend. We are on the search for a > good 2d graphics library, Well, GTK+ isn't really a "2D graphics library". Maybe you are using the term loosely, or should you look on cairo instead? > I would like to ask if the library for Windows and Linux use the > same function names. Of course, it wouldn't make any sense otherwise, would it? (There are a few platform-specific functions that have x11 or win32 in their names, but they are very special-case.) > So, if I would write this programm on a Linux system, would it be > possible to simply install the Windows library on the Windows > system, and without changing the names of the functions (of the > library) in my programm, to compile it? If you program otherwise is portable, and if you take into consideration some relatively straightforward rules of thumb to follow, sure. (See http://www.iki.fi/tml/fosdem-2006.pdf ) It's best to build and test on both platforms continuously while developing the software, not just as a last-night effort, only to notice that you have made some fundamental nonportable design choice right at the start... > Is there also a c++ version for Windows? With C++ "version" I guess you mean gtkmm, which really isn't a "version", but a C++ binding on top of GTK+. Anyway, as far as I know, yes. Have never used it myself, though. --tml From BillS@techsi.com Tue Jun 6 18:09:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45303B02E8 for ; Tue, 6 Jun 2006 18:09:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25029-01 for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from mail.techsi.com (techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 7D7373B00BC for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56LrZAZ026420 for ; Tue, 6 Jun 2006 16:53:37 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 17:09:16 -0500 Message-ID: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01A0_01C6898B.F3EC31C0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.499 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.499 X-Spam-Level: Subject: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 22:09:28 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I need to indicate to the treeview widget how many rows to scroll up or down. Any suggestions on how to do this? I know I can position the cursor based on a path. However, that may be tricky in that the user may or may not have the sections within the tree expanded or not. Also, I would have to track how many rows are currently displayed within the current treeview. I other words, I need to emulate the user scrolling through the treeview by line, by page, or to the beginning or end. I think the begin or end would not be too bad. Thanks, Bill ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I need to indicate to the treeview widget how many rows to scroll = up or down.  Any suggestions on how to do this?  I know I can = position the cursor based on a path.  However, that may be tricky in that the = user may or may not have the sections within the tree expanded or not.  = Also, I would have to track how many rows are currently displayed within the = current treeview.

 

I other words, I need to = emulate the user scrolling through the treeview by line, by page, or to the = beginning or end.  I think the begin or end would not be too bad. =

 

Thanks,

Bill

 

------=_NextPart_000_01A0_01C6898B.F3EC31C0-- From tristan.van.berkom@gmail.com Tue Jun 6 22:03:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 713AF3B0B0A for ; Tue, 6 Jun 2006 22:03:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04432-05 for ; Tue, 6 Jun 2006 22:03:23 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by menubar.gnome.org (Postfix) with ESMTP id D29193B02D7 for ; Tue, 6 Jun 2006 22:03:22 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i12so280761wra for ; Tue, 06 Jun 2006 19:03:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MCzN6WRNDUHNO5h5KKbkczD+CTM0HLmY/6bgqc0T4C5mS7d+oONlRu0YSriqgEJ1voJGKRTu20Czmb2mSN30XDamoLYVDbg3g5mxYAC1GHnZo5g3K1n17wf+PRwcZ4om3AB//Xibs2oJvnB7udTlg8kvLvt40i+QFCqUYBhsAzA= Received: by 10.54.116.7 with SMTP id o7mr9068wrc; Tue, 06 Jun 2006 19:03:17 -0700 (PDT) Received: from ?66.48.170.73? ( [66.48.170.73]) by mx.gmail.com with ESMTP id g2sm1167040wra.2006.06.06.19.03.17; Tue, 06 Jun 2006 19:03:18 -0700 (PDT) Message-ID: <448637A8.7040007@gnome.org> Date: Tue, 06 Jun 2006 22:19:20 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Sousan References: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> In-Reply-To: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.222 tagged_above=-999 required=2 tests=[AWL=0.378, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.222 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 02:03:25 -0000 Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From kereoz@yahoo.fr Wed Jun 7 04:20:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C11D3B0343 for ; Wed, 7 Jun 2006 04:20:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26466-05 for ; Wed, 7 Jun 2006 04:20:04 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id 01BE63B0217 for ; Wed, 7 Jun 2006 04:20:03 -0400 (EDT) Received: (qmail 35942 invoked by uid 60001); 7 Jun 2006 08:19:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=niZGyLE9Dw8mE00kfBFaSxDwB15y4KEkapVjfVMgSDMdAH1E/ZhaTeKOFuupaoYqxWtRPTUPUlGIB6Pv5xb7h7lX7E/wWCvHddhgrZ0RjJuwK/ZA8ZfGsDS3z7jKxNXIw9umiOI3oZWHTQjPQ6Vs2r+d4icV0Uwk9rpN2O0dCHY= ; Message-ID: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 07 Jun 2006 10:19:59 CEST Date: Wed, 7 Jun 2006 10:19:59 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.011 tagged_above=-999 required=2 tests=[AWL=-0.425, BAYES_20=-0.74, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.011 X-Spam-Level: Subject: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 08:20:07 -0000 Hi, I've got questions about building the gtkmozembed widget. Do I need to build mozilla or firefox from sources ? Mozilla or firefox ? Is there a way t build only the widget ? I would like to compile a gtk app using gtkmozembed (gtk mozilla widget) for ARM, so I need to have light libs. Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tonikitoo@gmail.com Wed Jun 7 08:39:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BF753B0D02 for ; Wed, 7 Jun 2006 08:39:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12108-03 for ; Wed, 7 Jun 2006 08:39:22 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id A14753B0CE7 for ; Wed, 7 Jun 2006 08:39:21 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167152wri for ; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pmn1n8Xl2f8npFFsBp5bWT5cMk8+QQwzmdfNwjtEPx4SzHfhwJ2Vo3DTFuksX7t+yf65LUhdLJSQ+Z3yRqc+xL/yhH8A/VtCZ+LLevuZhjds3Id1CFNC0DntHXlO4aR7kNGKNFvCOi5kvYaGMNA2hgO3T68tEVs7PhWvlYsne48= Received: by 10.65.98.11 with SMTP id a11mr307127qbm; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:39:20 -0700 (PDT) Message-ID: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> Date: Wed, 7 Jun 2006 08:39:20 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.18 tagged_above=-999 required=2 tests=[AWL=0.189, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.18 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:39:23 -0000 you could try building xulrunner with the --with-gecko-profile=minimal set, from the branch MOZILLA_1_8_BRANCH [pulling] export MOZ_CO_TAG=MOZILLA_1_8_BRANCH cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk # type the password anonymous cd mozilla make -f client.mk checkout MOZ_CO_PROJECT=xulrunner [building] cd cp xulrunner/config/mozconfig . [add the following 4 line into your mozconfig] ac_add_options --prefix= ac_add_options --disable-javaxpcom ac_add_options --disable-js-static-build ac_add_options --with-embedding-profile=minimal make -f client.mk build_all make -s install this would provide you the minimal 'gecko' build for embedding purposes. Link against the .so libs created at yout/prefix/lib/mozilla/.so (according with the .pc files). regards On 6/7/06, Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? > Mozilla or firefox ? > Is there a way t build only the widget ? > > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. > -- --Antonio Gomes Nokia Technology Institute From tonikitoo@gmail.com Wed Jun 7 08:41:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96E843B0D2A for ; Wed, 7 Jun 2006 08:41:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12377-03 for ; Wed, 7 Jun 2006 08:41:35 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 83A903B0D01 for ; Wed, 7 Jun 2006 08:40:45 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167408wri for ; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SXNYjX2suiXxjuMwK8zSL9VKJKjxgoH1rxni5wMIOa8sVn7/yZ15daEQX7VbhIemOstEvrSzyN4C6DOFgZHTSAZzklftx7v19uSUOB9L5jCPvU/L+a6tLNymZj8HshTIVEJ4HGqu17GXcUUQ0zrzMdNEfFxbA3DceTBHSka6v48= Received: by 10.65.237.20 with SMTP id o20mr305181qbr; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:40:44 -0700 (PDT) Message-ID: <7eb9ad710606070540k31b59afci2e52d298787a6200@mail.gmail.com> Date: Wed, 7 Jun 2006 08:40:44 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.2 tagged_above=-999 required=2 tests=[AWL=0.169, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.2 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:41:51 -0000 you can follow their official website at http://developer.mozilla.org/en/docs/Configuring_Build_Options#Using_a_.mozconfig_Configuration_File On 6/7/06, Antonio Gomes wrote: > you could try building xulrunner with the --with-gecko-profile=minimal > set, from the branch MOZILLA_1_8_BRANCH > > [pulling] > export MOZ_CO_TAG=MOZILLA_1_8_BRANCH > > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk > # type the password anonymous > cd mozilla > make -f client.mk checkout MOZ_CO_PROJECT=xulrunner > > [building] > cd > cp xulrunner/config/mozconfig . > [add the following 4 line into your mozconfig] > ac_add_options --prefix= > ac_add_options --disable-javaxpcom > ac_add_options --disable-js-static-build > ac_add_options --with-embedding-profile=minimal > make -f client.mk build_all > make -s install > > this would provide you the minimal 'gecko' build for embedding > purposes. Link against the .so libs created at > yout/prefix/lib/mozilla/.so (according with the .pc files). > > regards > > On 6/7/06, Christophe HAUSER wrote: > > Hi, > > > > I've got questions about building the gtkmozembed > > widget. > > Do I need to build mozilla or firefox from sources ? > > Mozilla or firefox ? > > Is there a way t build only the widget ? > > > > I would like to compile a gtk app using gtkmozembed > > (gtk mozilla widget) for ARM, so I need to have light > > libs. > > > > -- > --Antonio Gomes > Nokia Technology Institute > -- --Antonio Gomes From tvb@gnome.org Wed Jun 7 09:07:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 69DD73B0CE0 for ; Wed, 7 Jun 2006 09:07:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14222-07 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id B8F923B0CB4 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id E61EA15A5E; Wed, 7 Jun 2006 09:07:23 -0400 (EDT) Message-ID: <4486D1CD.8070408@gnome.org> Date: Wed, 07 Jun 2006 09:17:01 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.48 tagged_above=-999 required=2 tests=[AWL=-0.034, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.48 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:07:28 -0000 Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? Heavens no ! the headers and gtkmozembed library is distributed with the system gecko, save yourself the trouble and use them. See the gnome 'devhelp' module's autofoo setup for an example of how to detect the correct gecko and get the right compile flags etc. Cheers, -Tristan From tvb@gnome.org Wed Jun 7 09:14:22 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0F433B0CDC for ; Wed, 7 Jun 2006 09:14:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14864-08 for ; Wed, 7 Jun 2006 09:14:20 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 258CD3B0D28 for ; Wed, 7 Jun 2006 09:14:18 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 34CE315A5E; Wed, 7 Jun 2006 09:14:14 -0400 (EDT) Message-ID: <4486D367.8070608@gnome.org> Date: Wed, 07 Jun 2006 09:23:51 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XF=0.077] X-Spam-Score: -2.441 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:14:22 -0000 Christophe HAUSER wrote: [...] > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. Sorry I missed this part... if you dont already have a gecko compiled and installed for your ARM machine... then you should look into compiling it, I havent heard of any "tiny gecko" in existence, although you can taylor your compile options I suppose and add stuff like --strip-all from your libs... If you do compile the gecko, follow the instructions at mozilla.org and find the right options to begin with: type "about:buildconfig" in the url window of any firefox to know the compile options, you want to use the compile options that suit your site (i.e. are you rendering fonts with xft ? are you using cairo backends ? what did the vendors compile with when compiling against a similar library suite to your ARM system). Cheers, -Tristan From bharat.gusain@st.com Wed Jun 7 06:05:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 56E0F3B0BCF for ; Wed, 7 Jun 2006 06:05:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01274-09 for ; Wed, 7 Jun 2006 06:05:22 -0400 (EDT) Received: from fra-del-03.spheriq.net (fra-del-03.spheriq.net [195.46.51.99]) by menubar.gnome.org (Postfix) with ESMTP id DE4263B0BA2 for ; Wed, 7 Jun 2006 06:05:21 -0400 (EDT) Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-03.spheriq.net with ESMTP id k57A5B4T000894 for ; Wed, 7 Jun 2006 10:05:11 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-02.spheriq.net with ESMTP id k57A575Q009985 for ; Wed, 7 Jun 2006 10:05:08 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id k57A567i024086 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 7 Jun 2006 10:05:07 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BFB19DA46 for ; Wed, 7 Jun 2006 10:05:05 +0000 (GMT) Received: from mail1.dlh.st.com (mail1.dlh.st.com [10.199.8.21]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 16D8C4741C for ; Wed, 7 Jun 2006 10:05:04 +0000 (GMT) Received: from dlhgn13dhcp15.dlh.st.com (dlhgn13dhcp15.dlh.st.com [10.199.13.15]) by mail1.dlh.st.com (MOS 3.5.8-GR) with ESMTP id CKW69700 (AUTH "bharat gusain"); Wed, 7 Jun 2006 15:35:02 +0530 (IST) From: Bharat Singh GUSAIN Organization: st To: gtk-list@gnome.org Date: Wed, 7 Jun 2006 15:32:26 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606071532.26772.bharat.gusain@st.com> X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.005 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DATE_IN_FUTURE_06_12=1.668, TW_GT=0.077] X-Spam-Score: 1.005 X-Spam-Level: * X-Mailman-Approved-At: Wed, 07 Jun 2006 09:14:49 -0400 Subject: YUV image display X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 10:05:23 -0000 hi all, i am new to GTK and is currently working on a webcam application developed in GTK for which i need some nice gui frontend and need to display the yuyv image formats also. but gtk only display images in rgb format. can anybody tell me that whether there is any calls in GTK which can display the yuv images. Thanx in advance Bharat From gnome-gtk-list@m.gmane.org Wed Jun 7 19:05:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CDEC93B04FF for ; Wed, 7 Jun 2006 19:05:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21300-02 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 83E5C3B0339 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fo75C-0003yi-Gn for gtk-list@gnome.org; Thu, 08 Jun 2006 01:05:04 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Wed, 7 Jun 2006 23:02:39 +0000 (UTC) Lines: 81 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_DP=0.077, TW_GT=0.077] X-Spam-Score: -1.998 X-Spam-Level: Subject: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:05:11 -0000 I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). After doing so, I get the following error messages when I run gtk applications: ~ [1] gedit gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control ~ [2] evince evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control I've done Web searches and I have tried a number of things, but none of them fix this problem. Is this the right list on which to ask this question? It seems Gtk related. Does anyone have a suggestion? I've attached some notes on some of the things that I have tried, just in case they offer a clue. Thanks for help. Dave Some additional notes follow: ========================================================= When running gtk applications, for example gedit, I get the following message:: gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control This means, apparently, that every gtk application on my system is broken. Examples: gedit, firefox, realplay, epiphany, evince, SciTE, This symbol seems to be defined in libgobject-2.0.a. I ran:: $ nm -A --defined-only lib* | grep g_object_compat_control | less and saw the following:: libgobject-2.0.a:gobject.o:000036fe T g_object_compat_control the "T" means "The symbol is in the text (code) section." Then, to find out what package libgobject-2.0.a is in, I did the following:: $ dpkg -S libgobject-2.0.a which displayed:: libglib2.0-dev: /usr/lib/libgobject-2.0.a So, I did:: $ sudo apt-get --reinstall install libglib2.0-dev But, for example, gedit still does not work. Next, I did the following: 1. Retrieved a new, fresh /etc/apt/sources.list from http://www.ubuntuforums.org/showpost.php?p=1090438 2. Did another update/upgrade:: $ sudo apt-get update $ sudo apt-get upgrade But, gedit, for example, still produces the same error message. From yeti@physics.muni.cz Wed Jun 7 19:24:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C49E93B036A for ; Wed, 7 Jun 2006 19:24:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22273-07 for ; Wed, 7 Jun 2006 19:24:27 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id F030C3B02BE for ; Wed, 7 Jun 2006 19:24:26 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k57NOOFK029666 for ; Thu, 8 Jun 2006 01:24:25 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 953C823D62; Thu, 8 Jun 2006 01:24:24 +0200 (CEST) Date: Thu, 8 Jun 2006 01:24:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060607232429.GD30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:24:28 -0000 On Wed, Jun 07, 2006 at 11:02:39PM +0000, Dave Kuhlman wrote: > I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. > I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). > After doing so, I get the following error messages when I run gtk applications: > > ~ [1] gedit > gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > ~ [2] evince > evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > > Does anyone have a suggestion? What ldd some-gtk-app prints? Namely the libgobject-2.0 is interesting. > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > $ nm -A --defined-only lib* | grep g_object_compat_control | less You cannot get symbols from shared libs with nm. Try something like eu-readelf --symbols libgobject-2.0.so.0.1000.3 instead to get symbol info from the dynamic lib. Static libs (.a) are not used for dynamic linking and thus irrelevant here. What libgobject-2.0* files you have there anyway? > ... > So, I did:: > > $ sudo apt-get --reinstall install libglib2.0-dev The NON-dev package is important for run-time, -dev is only important for compilation. So what libglib2.0 do you have installed? Is it at least 2.10.0? Yeti -- Anonyms eat their boogers. From gnome-gtk-list@m.gmane.org Wed Jun 7 20:08:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA87F3B04ED for ; Wed, 7 Jun 2006 20:08:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24955-07 for ; Wed, 7 Jun 2006 20:08:47 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id E38E63B0E52 for ; Wed, 7 Jun 2006 20:08:46 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fo84m-00068B-52 for gtk-list@gnome.org; Thu, 08 Jun 2006 02:08:40 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Thu, 8 Jun 2006 00:08:23 +0000 (UTC) Lines: 65 Message-ID: References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.242 tagged_above=-999 required=2 tests=[AWL=-0.167, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_GT=0.077] X-Spam-Score: -2.242 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 00:08:48 -0000 David Ne膷as (Yeti physics.muni.cz> writes: > > What > > ldd some-gtk-app > > prints? Namely the libgobject-2.0 is interesting. > David (Yeti) - Wow. I am really glad that I asked this question. Your reply was very educational. After posting my original message, I continued working on this problem. I remembered that, some time ago, I had compiled gtk+ on my machine. So I did $ make uninstall for each of pango, cairo, glib, and gtk+. Now, when I do (as you suggested): $ ldd gedit I do not see references to the libraries that I built in /usr/local/lib. I guess my problem was that these libraries were old and not up-to-date. > > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > > > $ nm -A --defined-only lib* | grep g_object_compat_control | less > > You cannot get symbols from shared libs with nm. Try > something like > > eu-readelf --symbols libgobject-2.0.so.0.1000.3 I do not have eu-readelf on my machine. I will have to go looking for it. > > instead to get symbol info from the dynamic lib. Static libs > (.a) are not used for dynamic linking and thus irrelevant > here. > > What libgobject-2.0* files you have there anyway? > I believe that the problem was that the version in /usr/local/lib was built from old source. When I removed it, my system started finding the more up-to- date version in /usr/lib. That fixed my problem. I do not need to build gtk+ from source right now, but will likely need to do so in the future. I will have to try to remember this problem, and the suggestions you (Yeti) gave me to track it down. I've saved your message where I will have it next time. Thanks again. Dave From yeti@physics.muni.cz Thu Jun 8 04:25:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF193B0DFE for ; Thu, 8 Jun 2006 04:25:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19030-01 for ; Thu, 8 Jun 2006 04:25:36 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 5B5A23B05CC for ; Thu, 8 Jun 2006 04:25:35 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k588PSGn010077 for ; Thu, 8 Jun 2006 10:25:29 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id BC2F123D63; Thu, 8 Jun 2006 10:25:28 +0200 (CEST) Date: Thu, 8 Jun 2006 10:25:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608082529.GH2166@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 08:25:37 -0000 On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > I do not have eu-readelf on my machine. I will have to go looking for it. It seems Debian does not contain elfutils. Granted, it used to have an idiosyncratic license, but now it is GNU GPL so hopefully it will get to Debian too. > I do not need to build gtk+ from source right now, but will likely need to do > so in the future. I will have to try to remember this problem I wrote this a hundered times but I will repeat it again and again... Do not install libraries to /usr/local while you have another version of the library installed by your distro, it is a reciepe for troubles. Use the packaging system. Take advantage of the packaging system. It is not so hard to build a package of a newer version if you have the source package of the current one. Also look at backports, the version you need can be already there. Yeti -- Anonyms eat their boogers. From kereoz@yahoo.fr Thu Jun 8 05:06:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E914A3B05CA for ; Thu, 8 Jun 2006 05:06:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21502-05 for ; Thu, 8 Jun 2006 05:06:33 -0400 (EDT) Received: from web25906.mail.ukl.yahoo.com (web25906.mail.ukl.yahoo.com [217.12.10.204]) by menubar.gnome.org (Postfix) with SMTP id C371F3B0427 for ; Thu, 8 Jun 2006 05:06:32 -0400 (EDT) Received: (qmail 11551 invoked by uid 60001); 8 Jun 2006 09:06:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yMPVnzoUVlcHS8vnCG1q+69Nrkmr9PvstPvpkyp4VhjDcDD/NUaosQ+ctN8+TRCwM3yVcymuVv2BKEkz+78Taqh16m4tmcP6P6EHx26vPh5se7LkU46jb+BLQFhgFwJllRnFnYQJWfWE0rfEI2wjtRHHGIy+synl5rqR7tQBaj8= ; Message-ID: <20060608090631.11549.qmail@web25906.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25906.mail.ukl.yahoo.com via HTTP; Thu, 08 Jun 2006 11:06:31 CEST Date: Thu, 8 Jun 2006 11:06:31 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org In-Reply-To: <4486D367.8070608@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.079 tagged_above=-999 required=2 tests=[AWL=0.443, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.079 X-Spam-Level: Subject: RE : Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 09:06:35 -0000 Thanks a lot :) Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From murrayc@murrayc.com Thu Jun 8 13:20:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C3163B07EB for ; Thu, 8 Jun 2006 13:20:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24076-02 for ; Thu, 8 Jun 2006 13:20:40 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (sd-green-bigip-98.dreamhost.com [208.97.132.98]) by menubar.gnome.org (Postfix) with ESMTP id 225883B0EFD for ; Thu, 8 Jun 2006 13:20:38 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id EE142129A8C for ; Thu, 8 Jun 2006 10:20:31 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-vTkKqJNWDGQR4LW1VhLx" Date: Thu, 08 Jun 2006 19:20:28 +0200 Message-Id: <1149787228.5749.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.444 tagged_above=-999 required=2 tests=[AWL=0.078, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.444 X-Spam-Level: Subject: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:20:44 -0000 --=-vTkKqJNWDGQR4LW1VhLx Content-Type: text/plain Content-Transfer-Encoding: 7bit Could someone point out what I'm doing wrong in the attached test case? It's meant to read a value from the rc file, to determine how a widget would be drawn, making the widget themed. I get this output: example button gtype name=ExampleButton example_button_class_init(): Registering example_thing style property. example_button_init(): example_thing from rc file=0 -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=custom_gtkrc Content-Type: text/plain; name=custom_gtkrc; charset=UTF-8 Content-Transfer-Encoding: 7bit style "example-style" { ExampleButton::example_thing = 10 } class "ExampleButton" style "example-style" --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=testrcfull.c Content-Type: text/x-csrc; name=testrcfull.c; charset=UTF-8 Content-Transfer-Encoding: 7bit #include typedef struct _ExampleButton ExampleButton; typedef struct _ExampleButtonClass ExampleButtonClass; struct _ExampleButton { GtkButton parent; /* private */ }; struct _ExampleButtonClass { GtkButtonClass parent_class; }; static void example_button_init (ExampleButton *object) { int example_thing = 0; gtk_widget_style_get(GTK_WIDGET(object), "example_thing", &example_thing, NULL); printf("example_button_init(): example_thing from rc file=%d\n", example_thing); } static void example_button_class_init (ExampleButtonClass *klass) { GtkWidgetClass *widget_klass = 0; widget_klass = GTK_WIDGET_CLASS (klass); printf("example_button_class_init(): Registering example_thing style property.\n"); gtk_widget_class_install_style_property(widget_klass, g_param_spec_int("example_thing", "Example Thing", "This is just a silly example.", G_MININT, G_MAXINT, 0, G_PARAM_READABLE) ); } G_DEFINE_TYPE (ExampleButton, example_button, GTK_TYPE_BUTTON); #define EXAMPLE_TYPE_BUTTON (example_button_get_type ()) #define EXAMPLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_TYPE_BUTTON, ExampleButton)) #define EXAMPLE_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EXAMPLE_BUTTON, ExampleButtonClass)) #define EXAMPLE_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_IS_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_BUTTON_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_BUTTON, ExampleButtonClass)) GtkWidget * example_button_new (void) { return g_object_new (EXAMPLE_TYPE_BUTTON, NULL); } int main( int argc, char *argv[] ) { GtkWidget *window = 0; GtkWidget *button = 0; gtk_init (&argc, &argv); GType gtype = example_button_get_type(); //Make sure that it is initialized. printf("example button gtype name=%s\n", g_type_name(gtype)); /* Without the gtk_window_new(), the RC file is never parsed. */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 200, 200); button = example_button_new(); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_rc_parse("custom_gtkrc"); gtk_main (); return 0; } --=-vTkKqJNWDGQR4LW1VhLx-- From tkomulai@gmail.com Thu Jun 8 13:55:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C39FF3B0670 for ; Thu, 8 Jun 2006 13:55:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26215-06 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by menubar.gnome.org (Postfix) with ESMTP id 1C0663B0718 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id m2so969661uge for ; Thu, 08 Jun 2006 10:55:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N/uF80Ph918v7qMbZwwC4m8meKdr58vk9243wbszTySV3jyA0b8R3dTqgp4Hn4dkDgd5RdsId8kyvevrz2CNZbJMYCVLeEEaV7C/KHshARrLSrba0urdFRwNtxLhTucxnKtW1uYecUM5neZXyU5rjMIqdi/rmdbnXiRSBseYAmY= Received: by 10.78.18.1 with SMTP id 1mr592938hur; Thu, 08 Jun 2006 10:55:38 -0700 (PDT) Received: by 10.78.41.17 with HTTP; Thu, 8 Jun 2006 10:55:38 -0700 (PDT) Message-ID: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> Date: Thu, 8 Jun 2006 20:55:38 +0300 From: "Tommi Komulainen" Sender: tkomulai@gmail.com To: gtk-list@gnome.org In-Reply-To: <1149787228.5749.5.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1149787228.5749.5.camel@localhost.localdomain> X-Google-Sender-Auth: 220f190103d8c34d X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=0.162, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.438 X-Spam-Level: Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:55:43 -0000 On 6/8/06, Murray Cumming wrote: > Could someone point out what I'm doing wrong in the attached test case? > It's meant to read a value from the rc file, to determine how a widget > would be drawn, making the widget themed. > > I get this output: > > example button gtype name=ExampleButton > example_button_class_init(): Registering example_thing style property. > example_button_init(): example_thing from rc file=0 Instance init is too early to get style properties (though I suppose you could call gtk_widget_ensure_style there), you need to wait until 'style-set' is called. You should implement the style-set default handler anyway to work with theme changes. Unless you change widget hierarchies based on the style property it should be enough to access the property in size-request, size-allocate and expose. -- Tommi Komulainen tommi.komulainen@iki.fi From paul@linuxaudiosystems.com Thu Jun 8 14:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28F3F3B0F8F for ; Thu, 8 Jun 2006 14:26:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27909-07 for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 5CC3C3B0F4E for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from dholak ([151.197.23.127]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0K00IO20K3LGR1@vms040.mailsrvcs.net> for gtk-list@gnome.org; Thu, 08 Jun 2006 13:26:28 -0500 (CDT) Date: Thu, 08 Jun 2006 14:26:45 -0400 From: Paul Davis In-reply-to: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> To: Tommi Komulainen Message-id: <1149791205.5323.0.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 18:26:35 -0000 On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > On 6/8/06, Murray Cumming wrote: > > Could someone point out what I'm doing wrong in the attached test case? > > It's meant to read a value from the rc file, to determine how a widget > > would be drawn, making the widget themed. > > > > I get this output: > > > > example button gtype name=ExampleButton > > example_button_class_init(): Registering example_thing style property. > > example_button_init(): example_thing from rc file=0 > > Instance init is too early to get style properties (though I suppose > you could call gtk_widget_ensure_style there), you need to wait until > 'style-set' is called. You should implement the style-set default > handler anyway to work with theme changes. > > Unless you change widget hierarchies based on the style property it > should be enough to access the property in size-request, size-allocate > and expose. or call widget::ensure_style() From adam@ajtee.plus.com Thu Jun 8 15:45:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0B4A3B0FBE for ; Thu, 8 Jun 2006 15:45:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00491-09 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by menubar.gnome.org (Postfix) with ESMTP id 69ECB3B0766 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from [212.159.108.21] (helo=[192.168.0.3]) by pih-relay04.plus.net with esmtp (Exim) id 1FoQRs-0000el-NZ for gtk-list@gnome.org; Thu, 08 Jun 2006 20:45:44 +0100 Message-ID: <44887E68.8030004@ajtee.plus.com> Date: Thu, 08 Jun 2006 20:45:44 +0100 From: Adam Tee User-Agent: Thunderbird 1.5.0.4 (X11/20060606) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.399 X-Spam-Level: Subject: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 19:45:48 -0000 Hi all, I have a couple of questions regarding keybindings in my application. Is there anyway of overriding a window managers keybindings in an application ? The second concerns menued items which have been configured using an array of GtkActionEntries. Can I changed the associated keybindings on the fly, i.e. after loading a keymap file ? The menus are defined in a xml file. Thanks Adam Maintainer GNU Denemo, a GTK+ Front-End to GNU Lilypond From murrayc@murrayc.com Thu Jun 8 16:07:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A46153B021A for ; Thu, 8 Jun 2006 16:07:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02092-04 for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by menubar.gnome.org (Postfix) with ESMTP id 529653B000E for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id 5B020129A8D; Thu, 8 Jun 2006 13:07:47 -0700 (PDT) From: Murray Cumming To: paul@linuxaudiosystems.com In-Reply-To: <1149791205.5323.0.camel@localhost.localdomain> References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> <1149791205.5323.0.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 08 Jun 2006 22:07:43 +0200 Message-Id: <1149797263.5749.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.482 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599] X-Spam-Score: -2.482 X-Spam-Level: Cc: Tommi Komulainen , gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:07:50 -0000 On Thu, 2006-06-08 at 14:26 -0400, Paul Davis wrote: > On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > > On 6/8/06, Murray Cumming wrote: > > > Could someone point out what I'm doing wrong in the attached test case? > > > It's meant to read a value from the rc file, to determine how a widget > > > would be drawn, making the widget themed. > > > > > > I get this output: > > > > > > example button gtype name=ExampleButton > > > example_button_class_init(): Registering example_thing style property. > > > example_button_init(): example_thing from rc file=0 > > > > Instance init is too early to get style properties (though I suppose > > you could call gtk_widget_ensure_style there), you need to wait until > > 'style-set' is called. You should implement the style-set default > > handler anyway to work with theme changes. > > > > Unless you change widget hierarchies based on the style property it > > should be enough to access the property in size-request, size-allocate > > and expose. > > or call widget::ensure_style() Thanks. gtk_widget_ensure_style() doesn't make any difference for me, but I can successfully read the value in the realize handler. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From ben@benjohnson.net Thu Jun 8 16:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C31863B1008 for ; Thu, 8 Jun 2006 16:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03294-10 for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: from server018.dfw.nationwide.net (unknown [206.123.129.81]) by menubar.gnome.org (Postfix) with SMTP id 7FA0B3B021A for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: (qmail 21060 invoked from network); 8 Jun 2006 20:30:05 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 08 Jun 2006 20:30:05 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id B3A5BE4067 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02308-05 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id 9152AE4068; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Date: Thu, 8 Jun 2006 13:30:04 -0700 From: Anna To: gtk-list@gnome.org Message-ID: <20060608203003.GG6681@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608082529.GH2166@potato.chello.upc.cz> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:30:22 -0000 On Thu, Jun 08, 2006 at 10:25:29AM +0200, David Ne?as (Yeti) wrote: > On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > > > I do not have eu-readelf on my machine. I will have to go looking for it. > > It seems Debian does not contain elfutils. Granted, it used > to have an idiosyncratic license, but now it is GNU GPL so > hopefully it will get to Debian too. darling:~# cat /etc/debian_version 3.1 darling:~# dpkg -S /usr/bin/readelf binutils: /usr/bin/readelf maybe 'readelf' on Debian the same as eu-readelf? - Anna From yeti@physics.muni.cz Thu Jun 8 16:38:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 160683B1008 for ; Thu, 8 Jun 2006 16:38:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03782-07 for ; Thu, 8 Jun 2006 16:38:03 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 852DA3B036E for ; Thu, 8 Jun 2006 16:38:01 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Kbt6q023889 for ; Thu, 8 Jun 2006 22:37:56 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 53BF923D9A; Thu, 8 Jun 2006 22:37:55 +0200 (CEST) Date: Thu, 8 Jun 2006 22:38:00 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608203800.GI30886@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> <20060608203003.GG6681@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608203003.GG6681@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:38:08 -0000 On Thu, Jun 08, 2006 at 01:30:04PM -0700, Anna wrote: > > darling:~# cat /etc/debian_version > 3.1 > darling:~# dpkg -S /usr/bin/readelf > binutils: /usr/bin/readelf > > maybe 'readelf' on Debian the same as eu-readelf? This is binutils' readelf. They are different but both should work for the discussed purpose. Yeti -- Anonyms eat their boogers. From BillS@techsi.com Thu Jun 8 17:36:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA1DA3B000E for ; Thu, 8 Jun 2006 17:36:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07163-08 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 38CAB3B0194 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k58LKsAZ017367; Thu, 8 Jun 2006 16:20:57 -0500 From: "Bill Sousan" To: "'Tristan Van Berkom'" Date: Thu, 8 Jun 2006 16:36:03 -0500 Message-ID: <003601c68b43$8dcba100$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJ1Fpwdt0TDWdPQL6ky+QryalI6ABbv/jQ In-Reply-To: <448637A8.7040007@gnome.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.109 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_05=-1.11, TW_GT=0.077] X-Spam-Score: -1.109 X-Spam-Level: Cc: gtk-list@gnome.org Subject: RE: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:36:14 -0000 Thanks! One question, however, how can you change the column header font? I was able to make the rows nice and fat. However, I can't figure out how to change the column title size (its font type). Thanks, Bill -----Original Message----- From: Tristan Van Berkom [mailto:tristan.van.berkom@gmail.com] Sent: Tuesday, June 06, 2006 9:19 PM To: Bill Sousan Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From yeti@physics.muni.cz Thu Jun 8 17:39:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 94A863B0408 for ; Thu, 8 Jun 2006 17:39:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07377-08 for ; Thu, 8 Jun 2006 17:39:10 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9387F3B0105 for ; Thu, 8 Jun 2006 17:39:09 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Ld71R001243 for ; Thu, 8 Jun 2006 23:39:08 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 8BFE723D9A; Thu, 8 Jun 2006 23:39:07 +0200 (CEST) Date: Thu, 8 Jun 2006 23:39:12 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608213912.GK30886@potato.chello.upc.cz> References: <448637A8.7040007@gnome.org> <003601c68b43$8dcba100$db00a8c0@techsi.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003601c68b43$8dcba100$db00a8c0@techsi.local> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:39:13 -0000 On Thu, Jun 08, 2006 at 04:36:03PM -0500, Bill Sousan wrote: > Thanks! One question, however, how can you change the column header font? > I was able to make the rows nice and fat. However, I can't figure out how > to change the column title size (its font type). The default column header widget is inaccessible, but gtk_tree_view_column_set_widget() can put any widget you wish there. Yeti -- Anonyms eat their boogers. From mekstran@scl.ameslab.gov Fri Jun 9 10:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CD183B1106 for ; Fri, 9 Jun 2006 10:26:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30922-04 for ; Fri, 9 Jun 2006 10:26:31 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id AE19D3B02F7 for ; Fri, 9 Jun 2006 10:26:23 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 09 Jun 2006 09:26:22 -0500 id 0005389C.4489850E.00007C9B In-Reply-To: <44887E68.8030004@ajtee.plus.com> References: <44887E68.8030004@ajtee.plus.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6ec3650a2d223d4ab126ac1b931be9f0@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Date: Fri, 9 Jun 2006 09:25:52 -0500 To: Adam Tee X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, TW_KB=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 14:26:35 -0000 On Jun 8, 2006, at 2:45 PM, Adam Tee wrote: > Is there anyway of overriding a window managers keybindings in an > application ? AFAIK, no. I could be wrong here, but I believe the window manager sees the keys before they ever get to the application, and eats them. Some window managers may potentially support a "pass-through" mode, but I don't know (I don't know that I've ever seen such a features, except I seem to remember one in an older version of wmii that was user-activated, not program-activated). Besides, overriding the WM's keybindings would be detrimental to users - they expect the WM keybindings to work the same in all applications. Especially those of us using highly kbd-driven WM's. > The second concerns menued items which have been configured using an > array of GtkActionEntries. Can I changed the associated keybindings on > the fly, i.e. after loading a keymap file ? The menus are defined in a > xml file. Can't help you there. I'm a bit fuzzy on the details of managing accellerator myself. - Michael From mattias.nissler@gmx.de Fri Jun 9 09:07:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA523B01CA for ; Fri, 9 Jun 2006 09:07:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25743-04 for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 5D6DE3B031E for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: (qmail invoked by alias); 09 Jun 2006 13:06:59 -0000 Received: from T56c9.t.pppool.de (EHLO [192.168.2.32]) [89.55.86.201] by mail.gmx.net (mp027) with SMTP; 09 Jun 2006 15:06:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Jun 2006 15:06:56 +0200 Message-Id: <1149858416.14903.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Jun 2006 11:58:55 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 13:07:02 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, I think its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From r.floret@laposte.net Sat Jun 10 12:21:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 807953B01CB for ; Sat, 10 Jun 2006 12:21:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14072-01 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from mx.laposte.net (mx.laposte.net [81.255.54.11]) by menubar.gnome.org (Postfix) with ESMTP id 67CF63B0158 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from [192.168.0.3] (81.248.212.147) by mx.laposte.net (7.2.060.1) (authenticated as r.floret) id 448702A20026ED87 for gtk-list@gnome.org; Sat, 10 Jun 2006 18:19:51 +0200 From: regis To: gtk-list@gnome.org In-Reply-To: <1149858416.14903.2.camel@localhost> References: <1149858416.14903.2.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Sat, 10 Jun 2006 20:19:40 +0400 Message-Id: <1149956380.11938.1.camel@Regis> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.264 tagged_above=-999 required=2 tests=[AWL=0.101, BAYES_00=-2.599, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: -0.264 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 16:21:03 -0000 Le vendredi 09 juin 2006 15:06 +0200, Mattias Nissler a 閏rit : > Hallo, > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > standard gtk+ file chooser dialog, I think its default size is really > too small. Is there some style option I can put into a rc file or some > other way to make the default size larger? Why don't you try gtk_widget_set_size_request(dialog,width,height) ? R間is From murrayc@murrayc.com Sat Jun 10 17:12:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E24673B0007 for ; Sat, 10 Jun 2006 17:12:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28035-01 for ; Sat, 10 Jun 2006 17:12:33 -0400 (EDT) Received: from swarthymail-a1.dreamhost.com (sd-green-bigip-176.dreamhost.com [208.97.132.176]) by menubar.gnome.org (Postfix) with ESMTP id F34183B0494 for ; Sat, 10 Jun 2006 17:12:31 -0400 (EDT) Received: from noname (p5497E4C3.dip.t-dialin.net [84.151.228.195]) by swarthymail-a1.dreamhost.com (Postfix) with ESMTP id 1835F90ED6 for ; Sat, 10 Jun 2006 14:12:29 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Jun 2006 23:12:24 +0200 Message-Id: <1149973944.5715.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599] X-Spam-Score: -2.481 X-Spam-Level: Subject: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 21:12:36 -0000 Is there any particular reason why GtkClipboardRichTextReceivedFunc provides the text as const guint8*: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc instead of the const gchar* that GtkClipboardTextReceivedFunc provides: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardTextReceivedFunc ? -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From mattias.nissler@gmx.de Sun Jun 11 07:03:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D1743B00F2 for ; Sun, 11 Jun 2006 07:03:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05206-10 for ; Sun, 11 Jun 2006 07:03:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 9BCA03B057C for ; Sun, 11 Jun 2006 07:03:15 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 11:02:40 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp039) with SMTP; 11 Jun 2006 13:02:40 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Sun, 11 Jun 2006 13:02:32 +0200 Message-Id: <1150023752.27952.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.492 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.492 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 11:03:17 -0000 > Le vendredi 09 juin 2006 锟5:06 +0200, Mattias Nissler a 锟絠t : > > Hallo, > > > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > > standard gtk+ file chooser dialog, I think its default size is really > > too small. Is there some style option I can put into a rc file or some > > other way to make the default size larger? > > Why don't you try gtk_widget_set_size_request(dialog,width,height) ? > Well, I am not writing a GTK program, but I'm using programs that (my guess) don't resize the file dialog boxes, so they stay at their default size. So I'd like to change the default size to something more usable. Mattias From chris@cvine.freeserve.co.uk Sun Jun 11 08:32:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C364D3B010F for ; Sun, 11 Jun 2006 08:32:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09209-04 for ; Sun, 11 Jun 2006 08:32:54 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id DACC13B0091 for ; Sun, 11 Jun 2006 08:32:53 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3107 [172.22.158.37]) by mwinf3110.me.freeserve.com (SMTP Server) with ESMTP id ED6444800A4E for ; Sun, 11 Jun 2006 14:31:29 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id DEB8D4800089; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) Received: from boulder.homenet (user-3382.l6.c5.dsl.pol.co.uk [84.65.109.54]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id ADB754800087; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) X-ME-UUID: 20060611123119711.ADB754800087@mwinf3107.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5BCVI7p002398; Sun, 11 Jun 2006 13:31:18 +0100 From: Chris Vine To: gtk-list@gnome.org Date: Sun, 11 Jun 2006 13:31:17 +0100 User-Agent: KMail/1.9.1 References: <1149973944.5715.10.camel@localhost.localdomain> In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606111331.18048.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.293 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.293 X-Spam-Level: Cc: Murray Cumming Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 12:32:55 -0000 On Saturday 10 June 2006 22:12, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >RichTextReceivedFunc > > instead of the const gchar* that GtkClipboardTextReceivedFunc provides: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >TextReceivedFunc ? Probably the use of guint8 has something to do with the rich text specification, although if so it would appear to be no more than a statement of intention as I did not think that glib supports anything but systems with 8-bit char types. At any rate there could only be a difference if the gchar (or guchar) type is formed other than by an octet. It seems inconceivable that modern systems would have char types smaller than an octet, but conceivable that they could be larger (sizeof(char), sizeof(wchar_t) and sizeof(long) can all be the same, for example). Chris From michael@zolnott.de Sun Jun 11 14:29:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D9A243B028A for ; Sun, 11 Jun 2006 14:29:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27506-08 for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 40D703B023D for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (mwinf3002 [172.22.159.24]) by mwinf3010.me.freeserve.com (SMTP Server) with ESMTP id A1EF85C0336E for ; Sun, 11 Jun 2006 20:28:38 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 951E11C00146 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 583001C00142 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) X-ME-UUID: 20060611182828361.583001C00142@mwinf3002.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id CC22B2355F; Fri, 9 Jun 2006 23:55:26 +0100 (BST) Date: Fri, 9 Jun 2006 23:55:26 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060609225524.GC726@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.16 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.507 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.507 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:29:14 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEifxcXDV4oK/n3xIRAjSiAJ4mNyWu+1/oCesRm39Hu+coAoTjgACg2iQW Ba0/mrxfPfoc07kenuGRSV4= =JYWo -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- From michael@zolnott.de Sun Jun 11 14:53:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36F563B02CD for ; Sun, 11 Jun 2006 14:53:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28561-02 for ; Sun, 11 Jun 2006 14:53:19 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id F36443B02A7 for ; Sun, 11 Jun 2006 14:53:17 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3113 [172.22.158.41]) by mwinf3105.me.freeserve.com (SMTP Server) with ESMTP id EDF821C01BEE for ; Sun, 11 Jun 2006 20:28:36 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id A35105C00087 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id 4868F5C00084 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) X-ME-UUID: 20060611182826296.4868F5C00084@mwinf3113.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 0EA072356B; Sat, 10 Jun 2006 23:59:06 +0100 (BST) Date: Sat, 10 Jun 2006 23:59:06 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060610225904.GA6852@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.324 tagged_above=-999 required=2 tests=[AWL=-0.183, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.324 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:53:23 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEi064XDV4oK/n3xIRAnh3AJ9IxGDAYCsDMbrCeB5MUQmb+k2jqACgz7qH 0flJ2aY7euqfiqe2jXibZRs= =ChBT -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- From yeti@physics.muni.cz Sun Jun 11 18:08:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 211243B0697 for ; Sun, 11 Jun 2006 18:08:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05325-01 for ; Sun, 11 Jun 2006 18:08:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9C4F63B0350 for ; Sun, 11 Jun 2006 18:08:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5BKghIY010616 for ; Sun, 11 Jun 2006 22:42:44 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0B40B23D59; Sun, 11 Jun 2006 22:42:43 +0200 (CEST) Date: Sun, 11 Jun 2006 22:42:47 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060611204247.GD30886@potato.chello.upc.cz> References: <20060609225524.GC726@zolnott06.zolnott> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060609225524.GC726@zolnott06.zolnott> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 22:08:21 -0000 On Fri, Jun 09, 2006 at 11:55:26PM +0100, Michael Ott wrote: > I try to compile an application under winxp. Under Linux i work with > some gnome lib (for printing) and this i cannot do under win32. > > But i got an error before: > I use only libglade-2.0 and gtk+-2.0 under win32. > > When i try to compile i get on the following line: > > sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); Do not use sprintf(), use g_snprintf() or g_strdup_printf() (and see below). > i got the following error: > > 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passing arg 2 of `sprintf' makes pointer from integer without a cast The error probably comes from implicitly declared _(). When a C function is not declared, the compiler invents an implicit declaration with int return value -- and you definitely want to tell it to make a lot noise instead, for gcc it's -Werror-implicit-function-declaration and for MSVC it's #pragma warning(error:4013) _() is a common convenience macro defined #define _(x) gettext(x) but it's up to you to define it. Why you mark "%02d.%02d.%d" as translatable anyway? Either the format is fixed and then it must not be translated, or you want it translatable for some reason, but then you never know how c_str needs to be long, so use g_strdup_printf(). Yeti -- Anonyms eat their boogers. From mclasen@redhat.com Mon Jun 12 12:04:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41C3B3B000C; Mon, 12 Jun 2006 12:04:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09149-04; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 7270D3B009D; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc9030255; Mon, 12 Jun 2006 12:03:37 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc3007778; Mon, 12 Jun 2006 12:03:37 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CG3blQ018463; Mon, 12 Jun 2006 12:03:37 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 12:03:36 -0400 Message-Id: <1150128216.15532.14.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_LQ=0.077, TW_RX=0.077, TW_TR=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GLib 2.11.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 16:04:32 -0000 GLib 2.11.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.3.tar.bz2 md5sum: 41931c4965f7e1848f81b800914905cd glib-2.11.3.tar.gz md5sum: cd78ebc535e29cdef0fed9487aa21dac This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.2 to GLib 2.11.3 =================================================== * GBookmarkFile: - g_bookmark_file_move_item: Return TRUE in case of an empty target * Bugs fixed: 343919 gunicollate.c: strxfrm bug on VC8 * Updated translations (fi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343919 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Kazuki Iwamoto, Tor Lillqvist Matthias Clasen June 12, 2006 From mitch@gimp.org Mon Jun 12 14:02:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888803B0461 for ; Mon, 12 Jun 2006 14:02:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21914-06 for ; Mon, 12 Jun 2006 14:02:17 -0400 (EDT) Received: from mitch.gimp.org (unknown [88.134.1.244]) by menubar.gnome.org (Postfix) with ESMTP id 0C81D3B0132 for ; Mon, 12 Jun 2006 12:07:15 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FpMpr-0003Vw-00; Sun, 11 Jun 2006 12:06:23 +0200 From: Michael Natterer To: Murray Cumming In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> References: <1149973944.5715.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 11 Jun 2006 12:06:16 +0200 Message-Id: <1150020377.3010.29.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.572 tagged_above=-999 required=2 tests=[AWL=-0.919, BAYES_00=-2.599, RCVD_IN_NJABL_DUL=1.946] X-Spam-Score: -1.572 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 18:02:20 -0000 On Sat, 2006-06-10 at 23:12 +0200, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc Because the format of the serialized rich text data is arbitrary. Basically it's a blob of binary data of size "length", and not text. ciao, --mitch From mclasen@redhat.com Mon Jun 12 15:43:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 851123B00E5; Mon, 12 Jun 2006 15:43:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-06; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 5B16F3B0010; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWav007572; Mon, 12 Jun 2006 15:35:32 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWUd001833; Mon, 12 Jun 2006 15:35:32 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CJZWlQ009694; Mon, 12 Jun 2006 15:35:32 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 15:35:31 -0400 Message-Id: <1150140931.15532.18.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.541 X-Spam-Level: Cc: Subject: GTK+ 2.8.19 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 19:43:04 -0000 GTK+ 2.8.19 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.19.tar.bz2 md5sum: 1a03dbed4b794194a610e9d7eb175b06 gtk+-2.8.19.tar.gz md5sum: 604d3263498994c58af378f0ec076e6f This is a bugfix release in the 2.8.x series. It fixes a rare memory corruption issue when using the deprecated GdkFont API. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.18 to GTK+ 2.8.19 =================================================== Bugs fixed: 341327 Memory corruption inside glib 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 343425 "grab-notify"-signal is not correctly propagated for internal children 344244 Window resizing not working when keeping the aspect fixed 344496 CRLF converting via Clipboard Updated translations (ne) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343425,341327,344244,337491,344496 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Markku Vire, Sampo Savolainen, Tim Janik, Tor Lillqvist, Chris Wilson June 12, 2006 Matthias Clasen From mclasen@redhat.com Tue Jun 13 02:09:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 72FE93B00AF; Tue, 13 Jun 2006 02:09:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12183-04; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id B2F773B000C; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D681s3022181; Tue, 13 Jun 2006 02:08:01 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D67uRP017686; Tue, 13 Jun 2006 02:07:56 -0400 Received: from [172.16.83.145] (vpn83-145.boston.redhat.com [172.16.83.145]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5D67tQC015619; Tue, 13 Jun 2006 02:07:56 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Organization: Red Hat Date: Tue, 13 Jun 2006 02:09:42 -0400 Message-Id: <1150178982.4081.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.2.1 (2.7.2.1-4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_KB=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GTK+ 2.9.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:09:16 -0000 GTK+ 2.9.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.3.tar.bz2 md5sum: d73039a3b5847c352f5740ac908be7d2 gtk+-2.9.3.tar.gz md5sum: 0156eef91d2bbb23f1b6ccb49335fae5 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.2 to 2.9.3 ============================================ * GtkPrintOperation: - Introduce an allow-async property - Introduce a GtkPrintOperationAction enumeration - Rename pdf_target to export_filename - Allow to hide "Print to PDF" in the low-level API * GtkNotebook: - Add a destroy notify to gtk_notebook_set_window_creation_hook. * GtkTreeView: - Support grid lines * GtkRange: - Add a number of new stle properties which allow more fexible stepper theming * Bugs fixed: 153212 Have the Paste kbd shortcut jump to the location in the buffer 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 339739 gtk/gtkprintoperation-win32.c: 3 compile error 342339 GtkRange::stepper-spacing style property not implemented correctly 343945 Buttons of a GtkAssistant are not accessible 344148 Wrong reqs for ATK 344209 gtk_notebook_set_window_creation_hook() has no destroy func. 344232 GtkEntry's "Delete" context menu item is sensitive on a non-editable GtkEntry 344244 Window resizing not working when keeping the aspect fixed 344288 gtk_print_operation_preview_is_selected must return a value 344386 gdk-2.0-uninstalled.pc.in and gdkconfig.h 344496 CRLF converting via Clipboard 344504 GtkPrintCapabilities not in gtktypebuiltins.h 344505 Wrong signal registration for create_custom_widget 344512 cvs build issue 344513 pdf print module's print_stream not calling destroy notify 344518 NULL unref in page setup dialogue 344543 gtk_progress_bar_pulse calls gtk_progress_bar_paint directly 344560 gtk_print_settings_[sg]et_scale shouldn't be in percent 344607 memory leaks in gtkrecentchooserdefault.c and gtkrecentchoosermenu.c 344624 Memory leak in gtk_tree_model_filter_finalize: User data not freed 337603 Possible off-by-one in gdk_pango_layout_line_get_clip_region 344239 Wrong filename for gtk-find stock item. 344528 comma at end of GtkPrintOperationAction enum causes mozilla compilation error 344290 horizontal-padding not take into account when placing submenus 344558 document print dialogue response codes 339592 Add print-to-postscript 342249 Allow to draw upper and lower sides of GtkRange's trough differently 344530 gtk_recent_chooser_widget_new_for_manager and gtk_recent_chooser_menu_new_for_manager should allow NULL manager arg * Updated translations (es,fi,gu,ko,th,wa) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=153212,337491,339739,342339,343945,344148,344209,344232,344244,344288,344386,344496,344504,344505,344512,344513,344518,344543,344560,344607,344624,337603,344239,344528,344290,344558,339592,342249,344530 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Behdad Esfahbod, Bastian Nocera, Alexander Larsson, J黵g Billeter, Murray Cumming, Milosz Derezynski, Tor Lillqvist, Kazuki Iwamoto, Chris Wilson, Michael Natterer, Benjamin Berg, Marko Anastasov, Christian Persch, Masatake Yamamoto, Elijah Newren, John Finlay, Emmanuele Bassi, David Malcolm, John Darrington, Christian Weiske, Yvgen Muntyan, Martyn Russell, Kristian Rietveld June 13, 2006 Matthias Clasen From suryakiran.gullapalli@gmail.com Tue Jun 13 02:17:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ECF3B015D for ; Tue, 13 Jun 2006 02:17:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12730-02 for ; Tue, 13 Jun 2006 02:17:09 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 1E5ED3B00AF for ; Tue, 13 Jun 2006 02:17:08 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2351869nzo for ; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AjdeG/my9aZKptVxVu2SIogubCWxKAr3HX1opiXSepv2WV/xdlS7lqfXrYoQlSpChmZcBUDN5LhZopltI7Ei+MXADb5GyUs2yol7NRqVgmzN3F04gW/KosoogyTrCbFXpCbVoZwCa32PIFzGvURU4zgEsm1eSsPmN/+VaRtR7AM= Received: by 10.36.56.4 with SMTP id e4mr5918423nza; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Message-ID: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> Date: Tue, 13 Jun 2006 11:46:23 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9016_20460533.1150179383165" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.859 tagged_above=-999 required=2 tests=[AWL=-0.132, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.859 X-Spam-Level: Subject: Font Path X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:17:15 -0000 ------=_Part_9016_20460533.1150179383165 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_9016_20460533.1150179383165 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_9016_20460533.1150179383165-- From suryakiran.gullapalli@gmail.com Tue Jun 13 06:52:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5924B3B000A for ; Tue, 13 Jun 2006 06:52:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20305-10 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 78A063B00C9 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2460005nzo for ; Tue, 13 Jun 2006 03:50:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UcWT8tNT7p4SbjxzYU7oPici9Ro4C0nxkQ0RGHY/Ox9lpXzzZIEYgNNa4PMdAJvSOypndwVY9RDFl5b+ipj4/a3Fo9hblR+xxl8x2fO7IQqHgwcFB5ScMUIHWv7eSQXZ4OML/pwhL6o75U8+bodUFhK/ChF1yUImiQujKV861Uc= Received: by 10.36.8.4 with SMTP id 4mr10540719nzh; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Message-ID: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> Date: Tue, 13 Jun 2006 16:20:52 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_559_15776072.1150195852962" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.114 tagged_above=-999 required=2 tests=[AWL=-0.876, BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.114 X-Spam-Level: Subject: Theme engine tutorial. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 10:52:23 -0000 ------=_Part_559_15776072.1150195852962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_559_15776072.1150195852962 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_559_15776072.1150195852962-- From andi_sz_2000@yahoo.com Mon Jun 12 11:51:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C6323B00D4 for ; Mon, 12 Jun 2006 11:51:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08963-02 for ; Mon, 12 Jun 2006 11:51:53 -0400 (EDT) Received: from web51612.mail.yahoo.com (web51612.mail.yahoo.com [68.142.224.85]) by menubar.gnome.org (Postfix) with SMTP id 8A69F3B00D8 for ; Mon, 12 Jun 2006 11:51:52 -0400 (EDT) Received: (qmail 98982 invoked by uid 60001); 12 Jun 2006 15:51:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=twFPqLknw7rC+J3lu/TUPVojwbQkB+djl+EvcOmiR4QyNT69l3nofSk9rPpvx7m2zLc/2k70C+kP5pQqlLOHFuJGzNgOWOW1XOfn0p/woPoIAGZx4v0s0di6G84r+aCvTf57YEqin+6hSK+/3QOTRp1Y6dxXdhIifQLJExfDXAA= ; Message-ID: <20060612155104.98980.qmail@web51612.mail.yahoo.com> Received: from [85.204.36.18] by web51612.mail.yahoo.com via HTTP; Mon, 12 Jun 2006 08:51:04 PDT Date: Mon, 12 Jun 2006 08:51:04 -0700 (PDT) From: Andrea Szenasi To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, FROM_HAS_ULINE_NUMS=0.291, HOT_NASTY=0.157] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:25 -0400 Subject: question: connecting to mysql X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrea Szenasi List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 15:51:57 -0000 Hi all, i am a beginner in GTK PHP and i have problem connecting to MySQL 5.0.18. I am using GTK-PHP2 with PHP5. I use @mysql_connect, so i cant see the error message. But if I use just mysql_connect, then i got the following error message: Fatal:error: Call to undefined function mysql_connect() in XXX on line XXX . With PHP5 (classic, no GTK), the connection is working, so I have no idea what's the problem. Thanks in advance, Andi From mattias.nissler@gmx.de Sun Jun 11 06:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1F53B0095 for ; Sun, 11 Jun 2006 06:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05002-04 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 4B79D3B00D3 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 10:13:59 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp020) with SMTP; 11 Jun 2006 12:13:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Jun 2006 12:13:52 +0200 Message-Id: <1150020832.27952.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.494 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 10:43:38 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From behdad.esfahbod@gmail.com Mon Jun 12 18:10:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C1AE3B00A5 for ; Mon, 12 Jun 2006 18:10:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00834-05 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 337843B00F5 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h26so959411wxd for ; Mon, 12 Jun 2006 15:09:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:sender; b=HkVpdki0/g3XkGcHUm613LiH99RNWp83QpOiB04twtI9/oyY5QJs7xgUW9ugXUYWTW0FQESua3SiFes9GpwcHFnulMB+jmu6Frg1gjSTz94Z0WNKazKYJCx/0yCrKVvi+sIhO9793kd+R7hBbKFWLBqlIyo5yetvED1gx6HIjnc= Received: by 10.70.36.1 with SMTP id j1mr6891335wxj; Mon, 12 Jun 2006 14:44:52 -0700 (PDT) Received: from to-dhcp26.toronto.redhat.com ( [63.250.163.171]) by mx.gmail.com with ESMTP id h18sm3879342wxd.2006.06.12.14.44.50; Mon, 12 Jun 2006 14:44:51 -0700 (PDT) From: Behdad Esfahbod To: Pango Release Lists , gtk-app-devel-list@gnome.org, gtk-devel-list@gnome.org, gtk-i18n-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HZBsNn3KdPR3jVVwB9gO" Date: Mon, 12 Jun 2006 17:44:37 -0400 Message-Id: <1150148678.10765.8.camel@home> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Sender: Behdad Esfahbod X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Cc: Subject: Pango-1.13.2 released [unstable] X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 22:10:14 -0000 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pango-1.13.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ or http://download.gnome.org/sources/pango/1.13/ 28a6ea9d43c4cd398e7352032f775401 pango-1.13.2.tar.bz2 17d78473c05fece044c6a3b44519b61f pango-1.13.2.tar.gz This is a development release leading up to Pango-1.14.0, which will be released just in time for GNOME-2.16. Notes: * This is unstable development release. While it has had fairly extensive testing, there are likely bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of Pango-1.12. If you have problems, you'll need to reinstall Pango-1.12.x * Bugs should be reported to http://bugzilla.gnome.org. About Pango =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x. Pango is designed to be modular; the core Pango layout engine can be used with different font backends. There are three basic backends, with multiple options for rendering with each. - Client side fonts using the FreeType and fontconfig libraries. Rendering can be with with Cairo or Xft libraries, or directly to an in-memory buffer with no additional libraries. - Native fonts on Microsoft Windows. (Optionally using Uniscribe for complex-text handling). Rendering can be done via Cairo or directly using the native Win32 API. - Native fonts on MacOS X, rendering via Cairo. The integration of Pango with Cairo (http://cairographics.org) provides a complete solution with high quality text handling and graphics rendering. Dynamically loaded modules then handle text layout for particular combinations of script and font backend. Pango ships with a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported. As well as the low level layout rendering routines, Pango includes PangoLayout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text. More information about Pango is available from http://www.pango.org/. Pango 1.13.2 depends on version 2.10.0 or newer of the GLib library and version 1.1.2 or newer of the cairo library (if the cairo backend is desired); more information about GLib and cairo can be found at http://www.gtk.org/ and http://cairographics.org/ respectively. Overview of changes between 1.13.1 and 1.13.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * Improved hexbox drawing, and font metrics calculations. * Synthesize italic variants on win32 [Hans Breuer] * New public API: - pango_cairo_show_error_underline - pango_cairo_error_underline_path - pango_font_describe_with_absolute_size * Misc fixes. * Bugs fixed in this release: Bug 326960 =E2=80=93 hex box drawing for win32 and atsui backends of cairo Bug 343717 =E2=80=93 License information in unclear. Bug 343355 =E2=80=93 Add pango_cairo_show_error_underline & pango_cairo_error_underline_path Bug 343966 =E2=80=93 pango Cygwin build fixes Patch from Cygwin Ports maintainer. Bug 343796 =E2=80=93 Italic Chinese character can't be show correctly in Win32. Bug 314114 =E2=80=93 max_x_advance not appropriate for approximate_(char|digit)_width Bug 341138 =E2=80=93 Using TTC font, Gtk2 programs begin to eating big mem= ory and have many cpu usage. Patch from Yong Li. Bug 336153 =E2=80=93 Mark to mark positioning (Lookup Type 6) isn't correc= t when using MarkAttchmentType Patch from Tin Myo Htet. Bug 333984 =E2=80=93 pango_language_from_string improvements Bug 125378 =E2=80=93 Better underline thickness handling Bug 339730 =E2=80=93 Pango needlessly falls back away from a Type 1 font i= nto a TTF font Bug 342562 =E2=80=93 Support absolute sizes in pango_font_description_to/from_string Bug 341922 =E2=80=93 pango should handle more characters as zero width Patch from Roozbeh Pournader Bug 342525 =E2=80=93 With PangoFc and PangoWin32, approximate digit width = is not what it says Bug 342079 =E2=80=93 pangoatsui-private.h missing from release Behdad Esfahbod 12 June 2006 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEjeBFn+4E5dNTERURApTwAJ9OvqbaG1xnQYzGPC9u0WPi30b6ggCfXNvZ oFfMwctzkAaKRETc/0aDRj0= =Wl7j -----END PGP SIGNATURE----- --=-HZBsNn3KdPR3jVVwB9gO-- From ibaldo@adinet.com.uy Tue Jun 13 14:57:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 16B3A3B03F2 for ; Tue, 13 Jun 2006 14:57:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02939-02 for ; Tue, 13 Jun 2006 14:57:02 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 2FFFE3B00C4 for ; Tue, 13 Jun 2006 14:57:01 -0400 (EDT) Received: from [201.217.132.210] (201.217.132.210) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009A5526 for gtk-list@gnome.org; Tue, 13 Jun 2006 15:56:17 -0300 Message-ID: <448F0A43.8030606@adinet.com.uy> Date: Tue, 13 Jun 2006 15:56:03 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.182 tagged_above=-999 required=2 tests=[AWL=-0.645, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.182 X-Spam-Level: Subject: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 18:57:07 -0000 Hello. I must be doing something wrong but I don't know what is it, I can't believe that it is a bug in libglade since it should hit a lot of applications and people and I am not very experienced with GTK2 (I used GTK1 some long time ago though). It seems that libglade is not connecting the realize event of the drawing area but I can't believe it. Can someone tell what I am doing wrong or what I am missing? I googled for this, read a lot of documentation, invested like 4 hours and still don't get it. I know I can do some workarounds to what I am trying to do, but I think that it is better to learn. Your toughts are very appreciated. Here is my testglade.c file: /* Compile with: gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags --libs) -export-dynamic */ #include #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GladeXML *gxml; gtk_init(&argc, &argv); gxml = glade_xml_new("test.glade", NULL, NULL); glade_xml_signal_autoconnect(gxml); gtk_main(); return 0; } Here is my test.glade file: True window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True I made a testgtk.c file too to see if I can get the realize event and this works (I used a notebook because thats what I am doing in my real application which uses libglade): /* Compile with: gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) */ #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GtkWidget *window, *nb, *lbl, *da; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); da = gtk_drawing_area_new (); gtk_widget_set_size_request (da, 100, 100); g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); lbl = gtk_label_new ("A notebook with a Drawing Area"); nb = gtk_notebook_new (); gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), GTK_WIDGET(lbl)); gtk_container_add (GTK_CONTAINER (window), nb); gtk_widget_show_all (window); gtk_main(); return 0; } Goodbye. P.s.: I posted this email to gtk-app-devel-list yesterday but it didn't show up... -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From ibaldo@adinet.com.uy Tue Jun 13 21:16:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EA96E3B00D4; Tue, 13 Jun 2006 21:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12110-07; Tue, 13 Jun 2006 21:16:26 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 6CF0B3B0147; Tue, 13 Jun 2006 21:16:25 -0400 (EDT) Received: from [201.217.133.125] (201.217.133.125) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009C939E; Tue, 13 Jun 2006 22:15:32 -0300 Message-ID: <448F404C.4020209@adinet.com.uy> Date: Tue, 13 Jun 2006 19:46:36 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org References: <448DEC68.9000706@adinet.com.uy> In-Reply-To: <448DEC68.9000706@adinet.com.uy> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.142 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.142 X-Spam-Level: Cc: Subject: Re: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 01:16:32 -0000 Hello. Sorry for the crosspost, I tought that gtk-app-devel-list wasn't working but what isn't working is my ISP, for some reason I don't receive the emails of this mailing lists so I have to watch the archives :-(, and since I sent this email to gtk-list too I think that it is apropiate to close this thread there as well since maybe someone answers it without knowing that I already discovered my problem. I will not disturb on gtk-list anymore. Well, now I get it! libglade first creates all widgets and *shows* them because that is what is told on the XML file, after that it autoconnects all the events, but it is already too late for the realize event since the widgets are already realized :-). Silly me... I couldn't figure it before. Solution: don't enable the visible attribute on widgets that you want to catch the realize event and show this widgets manually with your own code after all signals are autoconnected. Thank you and goodbye. P.s.: now I need to figure out why the unrealize signal isn't emitted, but maybe because I use gtk_main_quit instead of destroying the main window... El 12/06/06 19:36, Ivan Baldo escribi: > Hello. > I must be doing something wrong but I don't know what is it, I > can't believe that it is a bug in libglade since it should hit a lot > of applications and people and I am not very experienced with GTK2 (I > used GTK1 some long time ago though). > It seems that libglade is not connecting the realize event of the > drawing area but I can't believe it. > Can someone tell what I am doing wrong or what I am missing? I > googled for this, read a lot of documentation, invested like 4 hours > and still don't get it. I know I can do some workarounds to what I am > trying to do, but I think that it is better to learn. Your toughts are > very appreciated. > Here is my testglade.c file: > > /* > Compile with: > gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags > --libs) -export-dynamic > */ > > #include > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GladeXML *gxml; > gtk_init(&argc, &argv); > gxml = glade_xml_new("test.glade", NULL, NULL); > glade_xml_signal_autoconnect(gxml); > gtk_main(); > return 0; > } > > > Here is my test.glade file: > > > > > > > > True > window1 > GTK_WINDOW_TOPLEVEL > GTK_WIN_POS_NONE > False > True > False > True > False > False > GDK_WINDOW_TYPE_HINT_NORMAL > GDK_GRAVITY_NORTH_WEST > True > False > > > > True > last_modification_time="Mon, 12 Jun 2006 22:21:03 GMT"/> > > > > > > > > I made a testgtk.c file too to see if I can get the realize event > and this works (I used a notebook because thats what I am doing in my > real application which uses libglade): > /* > Compile with: > gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) > */ > > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GtkWidget *window, *nb, *lbl, *da; > gtk_init(&argc, &argv); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > da = gtk_drawing_area_new (); > gtk_widget_set_size_request (da, 100, 100); > g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); > lbl = gtk_label_new ("A notebook with a Drawing Area"); > nb = gtk_notebook_new (); > gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), > GTK_WIDGET(lbl)); > gtk_container_add (GTK_CONTAINER (window), nb); > gtk_widget_show_all (window); > gtk_main(); > return 0; > } > > Goodbye. > P.s.: I still don't know where to post this, I think the correct place > is here iin gtk-app-devel-list but maybe it should be gtk-list? > > -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From kereoz@yahoo.fr Wed Jun 14 11:41:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525F23B029F for ; Wed, 14 Jun 2006 11:41:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01059-03 for ; Wed, 14 Jun 2006 11:41:52 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id E2C1F3B01CF for ; Wed, 14 Jun 2006 11:41:51 -0400 (EDT) Received: (qmail 57560 invoked by uid 60001); 14 Jun 2006 15:41:09 -0000 Message-ID: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 14 Jun 2006 17:41:09 CEST Date: Wed, 14 Jun 2006 17:41:09 +0200 (CEST) From: Christophe HAUSER Subject: GtkFixed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.215 tagged_above=-999 required=2 tests=[AWL=0.384, BAYES_00=-2.599] X-Spam-Score: -2.215 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 15:41:54 -0000 Hello, I've got a problem using GtkFixed. Using the following code, the window is empty when I launch the app. fixed = gtk_fixed_new(); Moz = gtk_moz_embed_new(); gtk_container_add (GTK_CONTAINER (window), fixed); gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); gtk_widget_show_all(window); Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tvb@gnome.org Wed Jun 14 13:52:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36FAE3B0081 for ; Wed, 14 Jun 2006 13:52:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17448-10 for ; Wed, 14 Jun 2006 13:52:53 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id DB2C83B000E for ; Wed, 14 Jun 2006 13:52:52 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 4948015A7F; Wed, 14 Jun 2006 13:51:46 -0400 (EDT) Message-ID: <44904EFB.2060907@gnome.org> Date: Wed, 14 Jun 2006 14:01:31 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER Subject: Re: GtkFixed References: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_HELO_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 17:52:54 -0000 Christophe HAUSER wrote: > Hello, > > I've got a problem using GtkFixed. > Using the following code, the window is empty when I > launch the app. > > fixed = gtk_fixed_new(); > Moz = gtk_moz_embed_new(); > > gtk_container_add (GTK_CONTAINER (window), fixed); > gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); > > gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); > gtk_widget_show_all(window); Hmmm, looks like you have a fixed child with width/height = 0; try setting the size-request, since fixed doesnt allocate any size that you dont request. Cheers, -Tristan From M.Kahn@Astronautics.com Wed Jun 14 16:31:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03783B013D for ; Wed, 14 Jun 2006 16:31:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15984-10 for ; Wed, 14 Jun 2006 16:31:23 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 7DC8E3B0135 for ; Wed, 14 Jun 2006 16:31:22 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68FF1.5E830686" Subject: Button background colors Date: Wed, 14 Jun 2006 15:30:29 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaP8WA158meoUl2QFmwJ7Wu6VRUvQ== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.082 tagged_above=-999 required=2 tests=[AWL=0.439, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.082 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 20:31:25 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 =20 ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

 

------_=_NextPart_001_01C68FF1.5E830686-- From paul@linuxaudiosystems.com Wed Jun 14 17:26:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CF6E3B02DC for ; Wed, 14 Jun 2006 17:26:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23464-07 for ; Wed, 14 Jun 2006 17:26:36 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id AC98D3B0388 for ; Wed, 14 Jun 2006 17:26:35 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0V00LGSCVCHRK9@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Jun 2006 16:26:01 -0500 (CDT) Date: Wed, 14 Jun 2006 17:26:22 -0400 From: Paul Davis Subject: Re: Button background colors In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150320382.1765.96.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 21:26:42 -0000 On Wed, 2006-06-14 at 15:30 -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file > because I am programming to requirements that specify different > background colors for different buttons. gtk_widget_set_name (buttonwidget, "myNameForThisSpecialButton"); then use "myNameForThisSpecialButton" in an RC file. From ben@benjohnson.net Wed Jun 14 22:09:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B08C13B00F3 for ; Wed, 14 Jun 2006 22:09:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05224-06 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: from server019.dfw.nationwide.net (server019.dfw.nationwide.net [206.123.129.82]) by menubar.gnome.org (Postfix) with SMTP id 604B53B0018 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: (qmail 20394 invoked from network); 15 Jun 2006 02:08:31 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 15 Jun 2006 02:08:31 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 0AA77E4067 for ; Wed, 14 Jun 2006 19:08:32 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21661-10 for ; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id A3C6BE4071; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Date: Wed, 14 Jun 2006 19:08:31 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615020831.GP11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.551 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599] X-Spam-Score: -2.551 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 02:09:12 -0000 On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file because I am > programming to requirements that specify different background colors for > different buttons. > > I have tried using gtk_widget_modify_bg the button, using all combinations > of creating the button with and without a label. I use gtk_widget_modify_bg() without trouble. piece of a function: struct somethingorother pagestate_colors = { blah, blah, blah }; static void update_examples_from_state( GtkWidget * toggle ) { GdkColor color = pagestate_colors.scheme_bg_normal; gtk_widget_modify_bg( toggle, GTK_STATE_NORMAL, &color); gtk_widget_modify_bg( toggle, GTK_STATE_ACTIVE, &color); gtk_widget_modify_bg( toggle, GTK_STATE_PRELIGHT, &color); gtk_widget_modify_bg( toggle, GTK_STATE_SELECTED, &color); gtk_widget_modify_bg( toggle, GTK_STATE_INSENSITIVE, &color); } after running that you have to let the main event processing loop run a little to let your changes take effect. I am using using 2.6.8-1 but I can't imagine this functionality would have changed. - Anna From laowenbo@gmail.com Thu Jun 15 02:38:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EC5B3B02E7 for ; Thu, 15 Jun 2006 02:38:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17015-01 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id B09DC3B0118 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so183376pyd for ; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr2447571pyi; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.109.19 with HTTP; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 14:37:56 +0800 From: "lao wb" To: gtk-list@gnome.org Subject: Where to get more information about GDK MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1639_31450020.1150353476125" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -0.659 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 06:38:34 -0000 ------=_Part_1639_31450020.1150353476125 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, i am a newcomer The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk, but look like there is no www.gdk.org, another site i can find is developer.gnome.org, while lack of enough examples. I really need examples to know how to use the tricky gdk_XXX APIs. Thanks in advance! laowenbo ------=_Part_1639_31450020.1150353476125 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,
i am a newcomer
The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk,  but look like there is no www.gdk.org , another site i can find is developer.gnome.org, while lack of enough examples.  I  really  need examples  to  know how to use the tricky gdk_XXX APIs. Thanks  in advance!

laowenbo
------=_Part_1639_31450020.1150353476125-- From yeti@physics.muni.cz Thu Jun 15 04:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 407AC3B03BB for ; Thu, 15 Jun 2006 04:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23572-06 for ; Thu, 15 Jun 2006 04:48:08 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 74E203B00F7 for ; Thu, 15 Jun 2006 04:48:07 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5F8laRp032159 for ; Thu, 15 Jun 2006 10:47:37 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id DBA3623D5E; Thu, 15 Jun 2006 10:47:36 +0200 (CEST) Date: Thu, 15 Jun 2006 10:47:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615084737.GM2858@potato.chello.upc.cz> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 08:48:10 -0000 On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > I use gtk_widget_modify_bg() without trouble. piece of a function: It works for people who use a decent Gtk+ theme. But themes and theme engines can easily make similar things stop working. Try just style "default" { bg_pixmap[NORMAL] = "someimage" } widget_class "*" style "default" in your gtkrc. I am afraid the requirement of particular colors goes directly against themeability. One cannot have both. Yeti -- Anonyms eat their boogers. From rvaughan@gmail.com Thu Jun 15 08:11:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F45E3B03E8 for ; Thu, 15 Jun 2006 08:11:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05367-05 for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 422B93B03BB for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so845715uge for ; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr1254247ugm; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.97.17 with HTTP; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 13:11:47 +0100 From: "Richard Vaughan" To: gtk-list@gnome.org Subject: Layered Drawing Areas MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.026 tagged_above=-999 required=2 tests=[AWL=1.068, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: 0.026 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:11:53 -0000 Hi, Has anyone managed to get multiple drawing areas to layer transparently ontop of eachother? I am trying to create an app that looks like it will need 3 or four layers of information drawn ontop of each other - but I want to be able to work with the layers independantly, and I want to be able to see down to the bottom layer. Using a fixed container I can have the layers (at least it seems to do what I think I want), but when I draw in a layer it seems to blank out the 'destroyed' area. Is there a way of setting the transparency, or linking the background image for the layer above to the layer beneath it? If it changes anything I am using GPE on an Ipaq... Thanks, Richard From paul@linuxaudiosystems.com Thu Jun 15 08:56:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA8FA3B05A7 for ; Thu, 15 Jun 2006 08:56:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10559-01 for ; Thu, 15 Jun 2006 08:56:36 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B95773B04A2 for ; Thu, 15 Jun 2006 08:56:11 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W00MXXJXDED5C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 07:56:02 -0500 (CDT) Date: Thu, 15 Jun 2006 08:56:23 -0400 From: Paul Davis Subject: Re: Layered Drawing Areas In-reply-to: To: Richard Vaughan Message-id: <1150376183.1765.118.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:56:47 -0000 On Thu, 2006-06-15 at 13:11 +0100, Richard Vaughan wrote: > Hi, > > Has anyone managed to get multiple drawing areas to layer > transparently ontop of eachother? > > I am trying to create an app that looks like it will need 3 or four > layers of information drawn ontop of each other - but I want to be > able to work with the layers independantly, and I want to be able to > see down to the bottom layer. > > Using a fixed container I can have the layers (at least it seems to do > what I think I want), but when I draw in a layer it seems to blank out > the 'destroyed' area. Is there a way of setting the transparency, or > linking the background image for the layer above to the layer beneath > it? > > If it changes anything I am using GPE on an Ipaq... GnomeCanvas widget. GTK widgets do not (currently) support any notion of alpha transparency or z-order (stacking). The Canvas does. It has no relationships with Gnome other than those shared with GTK. GnomeCanvas is no longer "supported", but as yet its successor has not emerged and there are several contenders. --p From kereoz@yahoo.fr Thu Jun 15 10:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A85B3B05A7 for ; Thu, 15 Jun 2006 10:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16151-02 for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id 36F783B05BC for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: (qmail 4610 invoked by uid 60001); 15 Jun 2006 14:17:18 -0000 Message-ID: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 16:17:17 CEST Date: Thu, 15 Jun 2006 16:17:17 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <44904EFB.2060907@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.274 tagged_above=-999 required=2 tests=[AWL=0.325, BAYES_00=-2.599] X-Spam-Score: -2.274 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 14:17:33 -0000 I tried setting the size-request, but the widget is still not shown...and I've got no error while compiling... I can run the app without any error, but I only see the main window... > Hmmm, looks like you have a fixed child with > width/height = 0; > try setting the size-request, since fixed doesnt > allocate any size > that you dont request. > > Cheers, > -Tristan > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:11:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDA413B0427 for ; Thu, 15 Jun 2006 11:11:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18523-06 for ; Thu, 15 Jun 2006 11:11:29 -0400 (EDT) Received: from web25909.mail.ukl.yahoo.com (web25909.mail.ukl.yahoo.com [217.12.10.207]) by menubar.gnome.org (Postfix) with SMTP id C78DB3B0261 for ; Thu, 15 Jun 2006 11:11:28 -0400 (EDT) Received: (qmail 17522 invoked by uid 60001); 15 Jun 2006 15:11:03 -0000 Message-ID: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25909.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:11:02 CEST Date: Thu, 15 Jun 2006 17:11:02 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615145020.HUVX16286.aamtaout03-winn.ispmail.ntl.com@smtp.ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.242, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:11:31 -0000 I think it will help :) But about the size request, I wonder if my code is right : GtkRequisition *req ; req->height = 300; req->width = 400; gtk_widget_size_request(GTK_WIDGET(Moz), req); Maybe I forget something ? It doesn't work better with a button or any other widget, but when it is something else than a mozilla widget, I can see it very small :) It is not resized... > This may help or may not? > Sometimes I have found with GtkContainer derived > widgets the requested position/layout is overridden. > Do a search for _gtk_widget_get_aux_info in the gtk > code. > > Calls to gtk_widget_set_uposition and > gtk_widget_set_usize create a GtkWidgetAuxInfo > structure which holds the location and positional > information from the fore mentioned calls. Once > created these values are used as default in size > requests. > > Could the moz widget be using > gtk_widget_set_uposition or gtk_widget_set_usize > internally? > > Regards > > ----------------------------------------- > Email sent from www.ntlworld.com > Virus-checked using McAfee(R) Software > Visit www.ntlworld.com/security for more information > > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:27:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E921A3B05D7 for ; Thu, 15 Jun 2006 11:27:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19172-08 for ; Thu, 15 Jun 2006 11:27:23 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id D9EB83B05DE for ; Thu, 15 Jun 2006 11:27:22 -0400 (EDT) Received: (qmail 6262 invoked by uid 60001); 15 Jun 2006 15:26:43 -0000 Message-ID: <20060615152643.6260.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:26:43 CEST Date: Thu, 15 Jun 2006 17:26:43 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.311 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.311 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:27:26 -0000 Ok, I found the problem : I called the function gtk_widget_size_request instead of gtk_widget_set_size_request There is something strange : I didn't find gtk_widget_set_size_request in GTK documentation, but I found gtk_widget_size_request --- Christophe HAUSER a 閏rit : > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > > > > Christophe HAUSER > http://kereoz.sup.fr > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la > meilleure protection possible contre les messages > non sollicit閟 > http://mail.yahoo.fr Yahoo! Mail > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From paul@linuxaudiosystems.com Thu Jun 15 11:54:59 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8F83D3B0623 for ; Thu, 15 Jun 2006 11:54:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21029-03 for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 5B6DC3B063D for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W0030XS358E42@vms042.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 10:52:17 -0500 (CDT) Date: Thu, 15 Jun 2006 11:52:39 -0400 From: Paul Davis Subject: Re: RE : Re: RE : Re: GtkFixed In-reply-to: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> To: Christophe HAUSER Message-id: <1150386759.22276.5.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:54:59 -0000 On Thu, 2006-06-15 at 17:11 +0200, Christophe HAUSER wrote: > I think it will help :) > But about the size request, I wonder if my code is > right : > > GtkRequisition *req ; > req->height = 300; > req->width = 400; > > gtk_widget_size_request(GTK_WIDGET(Moz), req); gtk_widget_set_size_request() From cole-anstey@ntlworld.com Thu Jun 15 13:44:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A2983B0314 for ; Thu, 15 Jun 2006 13:44:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25557-02 for ; Thu, 15 Jun 2006 13:44:03 -0400 (EDT) Received: from queue01-winn.ispmail.ntl.com (queue01-winn.ispmail.ntl.com [81.103.221.55]) by menubar.gnome.org (Postfix) with ESMTP id 62F8D3B0126 for ; Thu, 15 Jun 2006 13:44:02 -0400 (EDT) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20060615145316.CKIP28076.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 Received: from smtp.ntlworld.com ([81.103.221.25]) by aamtaout04-winn.ispmail.ntl.com with SMTP id <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 X-Mailer: Openwave WebEngine, version 2.8.17 (webedge20-101-1107-20041027) X-Originating-IP: [146.82.1.162] From: To: Subject: Re: RE : Re: GtkFixed Date: Thu, 15 Jun 2006 14:53:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.572 tagged_above=-999 required=2 tests=[AWL=-0.718, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -0.572 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 17:44:04 -0000 > > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > This may help or may not? Sometimes I have found with GtkContainer derived widgets the requested position/layout is overridden. Do a search for _gtk_widget_get_aux_info in the gtk code. Calls to gtk_widget_set_uposition and gtk_widget_set_usize create a GtkWidgetAuxInfo structure which holds the location and positional information from the fore mentioned calls. Once created these values are used as default in size requests. Could the moz widget be using gtk_widget_set_uposition or gtk_widget_set_usize internally? Regards ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From adc4444@hotmail.com Thu Jun 15 14:07:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9713A3B0397 for ; Thu, 15 Jun 2006 14:07:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26238-06 for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 7FBC63B007F for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 Jun 2006 11:07:10 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Thu, 15 Jun 2006 18:07:09 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com From: "DC A" To: gtk-list@gnome.org Subject: Problem in updating progress bar Date: Thu, 15 Jun 2006 18:07:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Jun 2006 18:07:10.0440 (UTC) FILETIME=[85713E80:01C690A6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.162 tagged_above=-999 required=2 tests=[AWL=-2.069, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 18:07:45 -0000 What could be the reason for using gtk_events_pending() and gtk_main_iteration() in the following code snippet: for( gflt=0; gflt<=1; ){ gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); //update while (gtk_events_pending ()) gtk_main_iteration (); gflt += 0.1; sleep(1); if ( gflt > 1 ) break; } why the code cannot update the progressbar without these two functions? I saw the API but still it is not clear to me. Thanks. --AD _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From yeti@physics.muni.cz Thu Jun 15 16:27:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 733223B01A1 for ; Thu, 15 Jun 2006 16:27:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31273-10 for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 575F33B006C for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5FJHlVX028614 for ; Thu, 15 Jun 2006 21:17:48 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 2DC7C23D5E; Thu, 15 Jun 2006 21:17:47 +0200 (CEST) Date: Thu, 15 Jun 2006 21:17:50 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Problem in updating progress bar Message-ID: <20060615191750.GO30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:27:57 -0000 On Thu, Jun 15, 2006 at 06:07:09PM +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. Have yor read the FAQ too? http://www.gtk.org/faq/#AEN602 Also, are you aware gtk_progress_bar_update() is deprecated? gtk_progress_bar_set_fraction() -- which is the function to use -- only queues the drawing. The drawing then actually occurs in Gtk+ main loop, which does not have a chance to run without gtk_main_iteration(). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Thu Jun 15 16:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F7FB3B01A1 for ; Thu, 15 Jun 2006 16:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00430-05 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id BFC843B0237 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0X009IA2VD7944@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 14:45:14 -0500 (CDT) Date: Thu, 15 Jun 2006 15:45:35 -0400 From: Paul Davis Subject: Re: Problem in updating progress bar In-reply-to: To: DC A Message-id: <1150400735.22276.22.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:53:34 -0000 On Thu, 2006-06-15 at 18:07 +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. google for "event based programming main loop" programming GUIs is very different in its basic control flow model than writing simple non-user-driven procedural software. From M.Kahn@Astronautics.com Thu Jun 15 16:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 740B13B03D2 for ; Thu, 15 Jun 2006 16:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00479-06 for ; Thu, 15 Jun 2006 16:54:44 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 79F013B0311 for ; Thu, 15 Jun 2006 16:54:43 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C690BD.DA53493A" Subject: RE: Button background colors Date: Thu, 15 Jun 2006 15:54:10 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019481FF@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSABaKA0g From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:54:47 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A coworker came to my rescue on this one. I am a Linux developer and this application had to work under Windows. It turns out that if your Windows desktop theme is set to "Windows XP" then you cannot change the background color of your buttons. If you change your desktop theme to "Windows Classic" then the gtk_widget_modify_style approach works. The gtk_widget_set_style and other approaches may also work, but I haven't tested them. We have a short deadline on this app - I'll test it later. =20 Thanks to everyone who gave it a look. What a surprise it turned out to be a Windows problem, not a GTK problem. =20 Michael Kahn =20 ________________________________ From: Michael Kahn=20 Sent: Tuesday, June 13, 2006 8:49 PM To: 'gtk-list@gnome.org' Subject: Button background colors =20 I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A coworker came to my rescue on = this one.  I am a Linux developer and this application had to work under Windows.  It turns out that if your Windows desktop theme is set to = “Windows XP” then you cannot change the background color of your = buttons.  If you change your desktop theme to “Windows Classic” then the = gtk_widget_modify_style approach works.  The gtk_widget_set_style  and other = approaches may also work, but I haven’t tested them.  We have a short = deadline on this app – I’ll test it later.

 

Thanks to everyone who gave it a look.  What a surprise it turned out to be a Windows problem, not a = GTK problem.

 

  Michael = Kahn

 


From: = Michael Kahn
Sent: Tuesday, June 13, = 2006 8:49 PM
To: = 'gtk-list@gnome.org'
Subject: Button = background colors

 

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C690BD.DA53493A-- From BillS@techsi.com Thu Jun 15 18:05:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348F23B01FF for ; Thu, 15 Jun 2006 18:05:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02711-10 for ; Thu, 15 Jun 2006 18:05:22 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 09F4F3B018C for ; Thu, 15 Jun 2006 18:05:21 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k5FLp1AZ024125 for ; Thu, 15 Jun 2006 16:51:06 -0500 From: "Bill Sousan" To: Subject: use of gtk rc files slows down display Date: Thu, 15 Jun 2006 17:04:18 -0500 Message-ID: <000601c690c7$aa62c850$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C6909D.C18CC050" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.603 tagged_above=-999 required=2 tests=[AWL=-0.682, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.603 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 22:05:25 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using some existing rc files for my gtk application that I pulled off of the web and noticed a considerable slow down in the display versus when not using an rc file (the one passed to gtk_rc_parse() function). Are there considerations that I need to be aware of if I want to use to rc files to have a nice "skin" without the slowdown? Thanks, Bill ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using some existing rc files for my gtk = application that I pulled off of the web and noticed a considerable slow down in the = display versus when not using an rc file (the one passed to gtk_rc_parse() function).  Are there considerations that I need to be aware of if = I want to use to rc files to have a nice “skin” without the = slowdown?

 

Thanks,

Bill

 

 

------=_NextPart_000_0007_01C6909D.C18CC050-- From diego@otello.alma.unibo.it Fri Jun 16 01:40:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C38C23B006C for ; Fri, 16 Jun 2006 01:40:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18193-03 for ; Fri, 16 Jun 2006 01:40:09 -0400 (EDT) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 852AC3B0011 for ; Fri, 16 Jun 2006 01:39:59 -0400 (EDT) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 44DB0122256; Fri, 16 Jun 2006 03:38:40 -0400 (EDT) Message-ID: <449243F6.6010901@otello.alma.unibo.it> Date: Fri, 16 Jun 2006 07:39:02 +0200 From: Diego Zuccato User-Agent: Thunderbird 1.5.0.2 (X11/20060422) MIME-Version: 1.0 To: DC A Subject: Re: Problem in updating progress bar References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.558 tagged_above=-999 required=2 tests=[AWL=0.041, BAYES_00=-2.599] X-Spam-Score: -2.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 05:40:28 -0000 DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. 'Cause you're blocking the main loop (which handles all the updating). But that sleep(1) still blocks for a whole second any action: your GUI will act quite strangely! Could be really better to handle a timeout/idle callback. If all you have to do is some lengthy operation, you could use a thread that does it and updates a "percentage indicator" (a shared variable). In the main program (the GUI manager) you set up a timeout callback (the timeout is up to you: from .1 to tenths of seconds) that reads the shared variable and updates the progress bar. This way you won't have to bother about locks: just DON'T do anything GUI-related in the calc thread. BYtE, Diego. From lists@nabble.com Fri Jun 16 07:14:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12D983B0007 for ; Fri, 16 Jun 2006 07:14:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26539-04 for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id C61543B002C for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FrCGc-0008HH-NC for gtk-list@gnome.org; Fri, 16 Jun 2006 04:13:34 -0700 Message-ID: <4898493.post@talk.nabble.com> Date: Fri, 16 Jun 2006 03:58:40 -0700 (PDT) From: prashu To: gtk-list@gnome.org Subject: Regarding GTK player MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: prashan@sasken.com X-Nabble-From: prashu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.316 tagged_above=-999 required=2 tests=[AWL=2.285, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.316 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 11:14:35 -0000 hi all... i am designing user inerface to mobiles for mobiles. For UI i selected GTK as framework. I am writting in C langauge. What actually i need is one playlist window which contains audio files from particular directory. on selecting file from playlist another window should open. which contains play and pause buttons. If any one have code of this thing , please mail to my id, prashan@sasken.com. with regards, Prashanth KM -- View this message in context: http://www.nabble.com/Regarding-GTK-player-t1797584.html#a4898493 Sent from the Gtk+ - General forum at Nabble.com. From adc4444@hotmail.com Fri Jun 16 14:07:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C2A253B026A for ; Fri, 16 Jun 2006 14:07:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11049-01 for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 5D7A93B030D for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 16 Jun 2006 11:05:35 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Fri, 16 Jun 2006 18:05:30 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com In-Reply-To: <449243F6.6010901@otello.alma.unibo.it> From: "DC A" To: diego@otello.alma.unibo.it, gtk-list@gnome.org Subject: Re: Problem in updating progress bar Date: Fri, 16 Jun 2006 18:05:30 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 16 Jun 2006 18:05:35.0606 (UTC) FILETIME=[77547960:01C6916F] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.156 tagged_above=-999 required=2 tests=[AWL=-2.063, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.156 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 18:07:54 -0000 Thank you all for explaining this problem. --DC _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From papel@free.fr Wed Jun 14 07:03:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB43B01B1 for ; Wed, 14 Jun 2006 07:03:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16109-06 for ; Wed, 14 Jun 2006 07:03:40 -0400 (EDT) Received: from swip.net (mailfe04.tele2.fr [212.247.154.108]) by menubar.gnome.org (Postfix) with ESMTP id 9DBBD3B0093 for ; Wed, 14 Jun 2006 07:03:39 -0400 (EDT) X-T2-Posting-ID: 4qjjVdH8TQlq0xUsIYMW3y8I4nzdJt8e7HSuCLByD9Y= X-Cloudmark-Score: 0.000000 [] Received: from [80.170.52.241] (HELO localhost) by mailfe04.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 212846123 for gtk-list@gnome.org; Wed, 14 Jun 2006 13:03:02 +0200 Message-ID: <448FEC06.9090600@free.fr> Date: Wed, 14 Jun 2006 12:59:18 +0200 From: Papel User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.12) Gecko/20050920 X-Accept-Language: fr, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk events ??? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.898 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -0.898 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 11:03:42 -0000 Hello, From a few days ago, i have a lot of problems with gtk events (MainLoop). I have created a GTK frame into a main widget and a box into this frame. I have reparent this widget (window) to a XWindow. I would like to send events (XEvents) to this widget. How I can do to send this XEvents to GtkEvents to the widget ??? I have tried : gtk_widget_event / gtk_main_iteration_do / gtk_main_do_event / etc... Thank you in advance MCB From root@gateshead-online.co.uk Thu Jun 15 03:57:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B35803B0155 for ; Thu, 15 Jun 2006 03:57:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20648-07 for ; Thu, 15 Jun 2006 03:57:12 -0400 (EDT) Received: from gateshead-online.co.uk (p15122568.pureserver.info [217.160.177.192]) by menubar.gnome.org (Postfix) with ESMTP id 1EC033B02FA for ; Thu, 15 Jun 2006 03:57:09 -0400 (EDT) Received: from root by gateshead-online.co.uk with local (Exim 4.30) id 1Fqmic-0008Bj-Jf for gtk-list@gnome.org; Thu, 15 Jun 2006 08:56:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17553.4798.584679.71190@p15122568.pureserver.info> Date: Thu, 15 Jun 2006 08:56:46 +0100 To: gtk-list@gnome.org From: dale_mellor@users.sourceforge.net Subject: Re: Button background colors In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> X-Mailer: VM 7.18 under Emacs 21.4.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.503 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961] X-Spam-Score: -1.503 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 07:57:14 -0000 I too use gtk_widget_modify_bg without trouble on a GtkButton object, using GTK version 2.9.2. Anna writes: > On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > > I am using Gtk 2.8.18. > > > > I would like to know how to set the background color in a GtkButton. > > > > I cannot set the background in a style, theme, or resource file because I am > > programming to requirements that specify different background colors for > > different buttons. > > > > I have tried using gtk_widget_modify_bg the button, using all combinations > > of creating the button with and without a label. > > I use gtk_widget_modify_bg() without trouble. piece of a function: > From jose.francisco.hevia@gmail.com Thu Jun 15 05:27:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B20D43B0270 for ; Thu, 15 Jun 2006 05:27:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25836-07 for ; Thu, 15 Jun 2006 05:27:38 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8A7003B0353 for ; Thu, 15 Jun 2006 05:27:37 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so51745nfe for ; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.47.10 with SMTP id u10mr360304nfu; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 15 Jun 2006 02:27:35 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 11:27:35 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Button background colors In-Reply-To: <20060615084737.GM2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.104 tagged_above=-999 required=2 tests=[AWL=0.195, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.104 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 09:27:39 -0000 MjAwNi82LzE1LCBEYXZpZCBOZehhcyAoWWV0aSkgPHlldGlAcGh5c2ljcy5tdW5pLmN6PjoKPiBP biBXZWQsIEp1biAxNCwgMjAwNiBhdCAwNzowODozMVBNIC0wNzAwLCBBbm5hIHdyb3RlOgo+ID4K PiA+IEkgdXNlIGd0a193aWRnZXRfbW9kaWZ5X2JnKCkgd2l0aG91dCB0cm91YmxlLiAgcGllY2Ug b2YgYSBmdW5jdGlvbjoKPgo+IEl0IHdvcmtzIGZvciBwZW9wbGUgd2hvIHVzZSBhIGRlY2VudCBH dGsrIHRoZW1lLiAgQnV0IHRoZW1lcwo+IGFuZCB0aGVtZSBlbmdpbmVzIGNhbiBlYXNpbHkgbWFr ZSBzaW1pbGFyIHRoaW5ncyBzdG9wIHdvcmtpbmcuCj4gVHJ5IGp1c3QKPgo+IHN0eWxlICJkZWZh dWx0IiB7Cj4gICAgYmdfcGl4bWFwW05PUk1BTF0gPSAic29tZWltYWdlIgo+IH0KPiB3aWRnZXRf Y2xhc3MgIioiIHN0eWxlICJkZWZhdWx0Igo+Cj4gaW4geW91ciBndGtyYy4KPgo+IEkgYW0gYWZy YWlkIHRoZSByZXF1aXJlbWVudCBvZiBwYXJ0aWN1bGFyIGNvbG9ycyBnb2VzCj4gZGlyZWN0bHkg YWdhaW5zdCB0aGVtZWFiaWxpdHkuICBPbmUgY2Fubm90IGhhdmUgYm90aC4KPgo+IFlldGkKCkF0 IGZpcnN0LCBJIGFncmVlZCB3aXRoIHRoaXMuIE5vdyBJIGtub3cgdGhhdCBpdCdzIHBvc3NpYmxl IHRvIG1ha2UgYW4KaW50ZWxsaWdlbnQgcHJvZ3JhbSB0aGF0IGtub3dzIHdpdGNoIGNvbG9ycyBh cmUgeW91IHVzaW5nIGFuZCB0YWtlCmFjdGlvbiBmcm9tIGl0LgoKODAgcGVyIGNlbnQgb2YgdGhl bWVzIGFyZSBhbG1vc3Qgd2hpdGUgZm9yIGJ1dHRvbnMsIEkgbGlrZSBkYXJrIG9uZXMuClRoaXMg Y291bGQgYmUgZGV0ZWN0ZWQgYnkgdGhlIHByb2dyYW0gYW5kIGRlY2lkZToKSWYgeW91IGFyZSB1 c2luZyBicmlnaHQgdGhlbWVzIHtzZWxlY3QgdGhpcyBjb2xvcnMufQplbHNlIHtzZWxlY3QgdGhl IG90aGVyIG9uZXMufQpiYXNlZCBpbiBjb250cmFzdCBiZXR3ZWVuIHRoZW0KClRoZW1lYWJpbGl0 eSBpcyB2ZXJ5IGltcG9ydGFudCBmb3IgR3RrLCBidXQgdXNpbmcgY29sb3JzIGxpa2Ugc2NhbGFi bGUKaWNvbnMgKGxvb2sgYXQgdGhlc2UgZmlsbXMgd2l0aCB0aGUgInJlZCBidXR0b24iKSB3aXRo b3V0IGhhdmluZyB0bwpib3RoZXIgd2l0aCBjb21wbGV4aXR5IGdpdmVzIGd0ayBhIGxvdCBvZiBw b3dlciB0byBnaXZlIGl0IGF3YXkuCgogICAgICAgICAgICBKb3NlIEhldmlhCg== From kstachowski@o2.pl Thu Jun 15 19:00:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1AB673B00D0 for ; Thu, 15 Jun 2006 19:00:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04700-08 for ; Thu, 15 Jun 2006 19:00:27 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 03CFC3B0080 for ; Thu, 15 Jun 2006 19:00:26 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2035C58014 for ; Fri, 16 Jun 2006 00:59:51 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: drawing a generated bitmap Date: Thu, 15 Jun 2006 22:59:50 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606152259.50433.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.102 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: 1.102 X-Spam-Level: * X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 23:00:28 -0000 hello :) i understand this is a basic question and am sorry for my ignorance. i really haven't managed to find an answer though i've searched quite a time. i've actually got two problems (using nemerle (mono, i.e. gtk#)): 1. i'd like to generate a terrain heightmap and draw it onto a widget. should i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), try to convert it to an xpm (how?) or what other method would be most appropriate? (please, read the second question before answering this one) 2. i'd like to be able to fluently change the colours while the heightmap is already generated. in the old days (i haven't written much for quite a time) it was possible to just draw a bitmap onto the screen and keep redefining the colours, which was pretty fast and looked nice in its way. is it still doable? i'd need it for altering the water level on the map. any help would be appreciated :) From zhaolj@gmail.com Fri Jun 16 03:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46A9B3B000B for ; Fri, 16 Jun 2006 03:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20725-04 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 76F973B0007 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so510575pyd for ; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.15.11 with SMTP id s11mr424956pyi; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Message-ID: <9f5a93cb0606160026o65c6bc68gdd9b2a4ad88f4264@mail.gmail.com> Date: Fri, 16 Jun 2006 15:26:41 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.818 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.818 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 07:27:56 -0000 RGVhciBBbGwsCgpJIGhhdmUgYSBwcm9ibGVtIHdoZW4gSSBjcmVhdGUgYSBuZXcgR1NvdXJjZSBz dHJ1Y3R1cmUuCgpJbiBmYWN0LCBJIHdvdWxkIHNlbmQgc29tZSBldmVudHMgdG8gdGhlIG1haW4g bG9vcCBvZiBteSBhcHAgZnJvbQpvdGhlciB0aHJlYWRzIG9ubHkgd2l0aCB0aGUgZ2xpYiBBUElz LiBJIGNyZWF0ZSBteSBvd24gR1NvdXJjZQpzdHJ1Y3R1cmUgYW5kIGF0dGFjaCBpdCB3aXRoIHRo ZSBkZWZhdWx0IG1haW4gY29udGV4dC4gQnV0IEkgYWx3YXlzCmdldCBhIHNlZ21lbnQgZmF1bHQg d2hlbiB0aGUgb3RoZXIgdGhyZWFkIHNlbmQgc29tZSB0aGluZyB0byB0aGUgbWFpbgpsb29wLiBJ IGZpbmQgZXZlcnkgZmV3IGluZm9ybWF0aW9uIGFib3V0IHVzaW5nIEdTb3VyY2UuCgpXaGVyZSBj YW4gSSBmaW5kIGFuIGV4YW1wbGUgb2YgdXNpbmcgR1NvdXJjZSAobm90IHVzaW5nCmdfaWRsZV9z b3VyY2VfbmV3LCBub3IgZ190aW1lb3V0X3NvdXJjZV9uZXcpID8gb3IgQ2FuIHlvdSBndXlzIHN1 Z2dlc3QKbWUgYmV0dGVyIHNvbHV0aW9uIGFib3V0IHNlbmQgZXZlbnQgd2l0aCBteSBvd24gZGF0 YSB0byBtYWluIGxvb3AKKG1haW4gbG9vcCBjYW4gbm90IGJlIHN0b3BlZCBvciBibG9ja2VkKSBv bmx5IHVzaW5nIGdsaWIgQVBJcz8KClRoYW5rcyBpbiBhZHZhbmNlIQoKLS0gClJlZ2FyZHOjoQoK TGlhbmdqaW5nCg== From andyggill@gmail.com Fri Jun 16 09:51:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF0263B0011 for ; Fri, 16 Jun 2006 09:51:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30311-07 for ; Fri, 16 Jun 2006 09:51:39 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by menubar.gnome.org (Postfix) with ESMTP id BC4D33B0007 for ; Fri, 16 Jun 2006 09:51:38 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so487632nfe for ; Fri, 16 Jun 2006 06:50:41 -0700 (PDT) Received: by 10.48.43.7 with SMTP id q7mr1735277nfq; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Received: by 10.49.58.15 with HTTP; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Message-ID: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> Date: Fri, 16 Jun 2006 14:50:40 +0100 From: "andy gill" To: gtk-list@gnome.org Subject: opengl and gtk MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_113283_13878838.1150465840774" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.161 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -0.161 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 13:51:42 -0000 ------=_Part_113283_13878838.1150465840774 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree. what's the best (i.e. documented and supported) way of getting opengl and gtk to work together? cheers. ------=_Part_113283_13878838.1150465840774 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree.
what's the best (i.e. documented and supported) way of getting opengl and gtk to work together?

cheers.
------=_Part_113283_13878838.1150465840774-- From zhaolj@gmail.com Sat Jun 17 12:32:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 872CF3B0139 for ; Sat, 17 Jun 2006 12:32:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27157-09 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id 3DAF43B00E6 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so865244pyd for ; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr6012908pyi; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Message-ID: <9f5a93cb0606170932i455c53c0ved3aa0c501215662@mail.gmail.com> Date: Sun, 18 Jun 2006 00:32:02 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.597 tagged_above=-999 required=2 tests=[AWL=0.779, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -1.597 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 16:32:47 -0000 RGVhciBBbGwsCgpTb3JyeSwgSSBhbSBub3Qgc3VyZSBpZiBJIHBvc3QgdGhpcyBxdWVzdGlvbiB0 d2ljZSBpbiB0aGlzIGxpc3QuIEJ1dAppdCBzZWVtcyB0aGUgZmlyc3QgdGltZSB3YXMgZmFpbGVk LgoKSSBoYXZlIGEgcHJvYmxlbSB3aGVuIEkgY3JlYXRlIGEgbmV3IEdTb3VyY2Ugc3RydWN0dXJl LgoKSW4gZmFjdCwgSSB3b3VsZCBzZW5kIHNvbWUgZXZlbnRzIHRvIHRoZSBtYWluIGxvb3Agb2Yg bXkgYXBwIGZyb20Kb3RoZXIgdGhyZWFkcyBvbmx5IHdpdGggdGhlIGdsaWIgQVBJcy4gSSBjcmVh dGUgbXkgb3duIEdTb3VyY2UKc3RydWN0dXJlIGFuZCBhdHRhY2ggaXQgd2l0aCB0aGUgZGVmYXVs dCBtYWluIGNvbnRleHQuIEJ1dCBJIGFsd2F5cwpnZXQgYSBzZWdtZW50IGZhdWx0IHdoZW4gdGhl IG90aGVyIHRocmVhZCBzZW5kIHNvbWUgdGhpbmcgdG8gdGhlIG1haW4KbG9vcC4gSSBmaW5kIGV2 ZXJ5IGZldyBpbmZvcm1hdGlvbiBhYm91dCB1c2luZyBHU291cmNlLgoKV2hlcmUgY2FuIEkgZmlu ZCBhbiBleGFtcGxlIG9mIHVzaW5nIEdTb3VyY2UgKG5vdCB1c2luZwpnX2lkbGVfc291cmNlX25l dywgbm9yIGdfdGltZW91dF9zb3VyY2VfbmV3KSA/IG9yIENhbiB5b3UgZ3V5cyBzdWdnZXN0Cm1l IGJldHRlciBzb2x1dGlvbiBhYm91dCBzZW5kIGV2ZW50IHdpdGggbXkgb3duIGRhdGEgdG8gbWFp biBsb29wCihtYWluIGxvb3AgY2FuIG5vdCBiZSBzdG9wZWQgb3IgYmxvY2tlZCkgb25seSB1c2lu ZyBnbGliIEFQSXM/CgpUaGFua3MgaW4gYWR2YW5jZSEKCi0tIApSZWdhcmRzo6EKCkxpYW5namlu Zwo= From ben@benjohnson.net Sat Jun 17 16:19:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6D3B02A9 for ; Sat, 17 Jun 2006 16:19:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06354-09 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: from server016.dfw.nationwide.net (server016.dfw.nationwide.net [206.123.129.79]) by menubar.gnome.org (Postfix) with SMTP id C8CD93B00D2 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: (qmail 15137 invoked from network); 17 Jun 2006 20:17:13 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Sat, 17 Jun 2006 20:17:13 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 2E560E4067 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00589-06 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id E181DE4071; Sat, 17 Jun 2006 13:17:12 -0700 (PDT) Date: Sat, 17 Jun 2006 13:17:12 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617201712.GF11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.515 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.515 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:19:46 -0000 On Thu, Jun 15, 2006 at 11:27:35AM +0200, Jose Hevia wrote: > 2006/6/15, David Ne?as (Yeti) : > > On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > > > > > I use gtk_widget_modify_bg() without trouble. piece of a function: > > > > It works for people who use a decent Gtk+ theme. But themes > > and theme engines can easily make similar things stop working. > > Try just > > > > style "default" { > > bg_pixmap[NORMAL] = "someimage" > > } > > widget_class "*" style "default" > > > > in your gtkrc. > > > > I am afraid the requirement of particular colors goes > > directly against themeability. One cannot have both. > > > > Yeti > > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them > > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I have a "widget" (actually, a dialog with database interface) that allows users to create button background colors, and apply that "theme" to a "class" of buttons in the application. This was an important element to have in my app because the buttons, from the GTK+ point of view, are all more or less the same, and are created on-the-fly at the user's bequest. The user is allowed to group the buttons in any way they see fit. It works quite well with two great benefits: it gets around inflexabilities in themes and makes button color selection accessible to users who don't know how to use a text editor... much less use a syntax to create a complex theme. - Anna From yeti@physics.muni.cz Sat Jun 17 16:45:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F38AC3B07E3 for ; Sat, 17 Jun 2006 16:45:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09232-08 for ; Sat, 17 Jun 2006 16:45:26 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 7746F3B0805 for ; Sat, 17 Jun 2006 16:45:25 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HHKKwI018732 for ; Sat, 17 Jun 2006 19:20:21 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0804923CE9; Sat, 17 Jun 2006 19:20:20 +0200 (CEST) Date: Sat, 17 Jun 2006 19:20:23 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060617172023.GS30886@potato.chello.upc.cz> References: <200606152259.50433.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606152259.50433.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:45:29 -0000 On Thu, Jun 15, 2006 at 10:59:50PM +0000, kamil stachowski wrote: > i understand this is a basic question and am sorry for my ignorance. i really > haven't managed to find an answer though i've searched quite a time. > > i've actually got two problems (using nemerle (mono, i.e. gtk#)): > > 1. i'd like to generate a terrain heightmap and draw it onto a widget. should > i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), > try to convert it to an xpm (how?) or what other method would be most > appropriate? (please, read the second question before answering this one) Don't draw pixel by pixel, it would be awfully slow. Use GdkPixbufs and gdk_draw_pixbuf(). > 2. i'd like to be able to fluently change the colours while the heightmap is > already generated. in the old days (i haven't written much for quite a time) > it was possible to just draw a bitmap onto the screen and keep redefining the > colours, which was pretty fast and looked nice in its way. is it still > doable? Something along these lines should be doable *if* you can get a indexed color visual, which you cannot count on. So I would just redraw it (incidentally I develop a program which uses false-color maps a lot and redrawing works good enough). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Sat Jun 17 17:36:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2443E3B0139 for ; Sat, 17 Jun 2006 17:36:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11011-09 for ; Sat, 17 Jun 2006 17:36:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 0D2693B0104 for ; Sat, 17 Jun 2006 17:36:32 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1000D5OX9ZC3Q3@vms040.mailsrvcs.net> for gtk-list@gnome.org; Sat, 17 Jun 2006 16:34:48 -0500 (CDT) Date: Sat, 17 Jun 2006 17:35:12 -0400 From: Paul Davis Subject: Re: Gtk events ??? In-reply-to: <448FEC06.9090600@free.fr> To: Papel Message-id: <1150580112.8703.55.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <448FEC06.9090600@free.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 21:36:36 -0000 On Wed, 2006-06-14 at 12:59 +0200, Papel wrote: > Hello, > > From a few days ago, i have a lot of problems with gtk events (MainLoop). > I have created a GTK frame into a main widget and a box into this frame. > I have reparent this widget (window) to a XWindow. > I would like to send events (XEvents) to this widget. How I can do to > send this XEvents to GtkEvents to the widget ??? > > I have tried : gtk_widget_event / gtk_main_iteration_do / > gtk_main_do_event / etc... you're not thinking clearly. GTK is a multiplatform GUI toolkit. its backend is not just X Window, but includes the DirectFB (framebuffer) system on Linux, the GDI API (and others on win32) and recently Quartz/Aqua on OS X. sending GTK events doesn't mean sending events that are translated all the way down to the backend's notion of an "event". if you send a GTK "Button Press" event to a widget, GTK will do that entirely within its own event system, without any reference to the backend you are using. back to basics: why have you reparented the window inside a non-GTK XWindow? --p From yeti@trific.ath.cx Sat Jun 17 19:05:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F32E3B00DC for ; Sat, 17 Jun 2006 19:05:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13816-04 for ; Sat, 17 Jun 2006 19:05:33 -0400 (EDT) Received: from trific.ath.cx (rb5bf232.chello.upc.cz [89.176.185.232]) by menubar.gnome.org (Postfix) with ESMTP id 026623B00AA for ; Sat, 17 Jun 2006 19:05:32 -0400 (EDT) Received: by trific.ath.cx (Postfix, from userid 16809) id 34EC4156127; Sun, 18 Jun 2006 00:09:49 +0200 (CEST) Date: Sun, 18 Jun 2006 00:09:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617220938.GW30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 23:05:34 -0000 On Thu Jun 15 05:27:35 2006, Jose Hevia wrote: > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them How this makes the look consistent with Bumblebee [the theme]? Colors are not the only part of look and feel and they are the easiest part. When the theme uses pixmap backgrounds you should [in most cases] take the pixmap, give it a tint and use it instead of a solid color. Etc. Hackish theme engines like the qt one do not make it easier either. > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I agree with the importance, but I don't agree with the statement it is solved. The only real solution would be taking your app specific widgets into account in the theme itself and drawing themed icons for it if necessary. Not very realistic. Instead we are left with a bunch of heuristics, workarounds and hacks that do something not too awful in some common cases. Yeti -- Anonyms eat their boogers. From lists@nabble.com Sat Jun 17 22:11:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D2483B00EC for ; Sat, 17 Jun 2006 22:11:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20102-07 for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id AFE163B000B for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Frmk9-00052t-CL for gtk-list@gnome.org; Sat, 17 Jun 2006 19:10:29 -0700 Message-ID: <4920028.post@talk.nabble.com> Date: Sat, 17 Jun 2006 19:10:29 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to draw a rectangle on a GtkImage widget? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 02:11:42 -0000 Hi All, I am displaying an image in the main window with a thumbnail of the same image on one side. The thumbnail always shows the entire image while the main window shows just a part of the image because of zoom. Now I want to draw a rectange in the thumbnail to indicate which part of the image is currently displayed in the main window. How can I achieve this? Thanks!! -- View this message in context: http://www.nabble.com/How-to-draw-a-rectangle-on-a-GtkImage-widget--t1805314.html#a4920028 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Sun Jun 18 02:56:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6C5B3B008A for ; Sun, 18 Jun 2006 02:56:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28242-09 for ; Sun, 18 Jun 2006 02:55:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8DBF53B014D for ; Sun, 18 Jun 2006 02:55:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HMJ3jN031835 for ; Sun, 18 Jun 2006 00:19:04 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 19A4223D5D; Sun, 18 Jun 2006 00:19:03 +0200 (CEST) Date: Sun, 18 Jun 2006 00:19:08 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Mailing list problems? Message-ID: <20060617221907.GX30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 06:56:00 -0000 Hello, a couple of days ago my e-mails took almost a day to deliver (and it still takes a long time). But that was a small problem, now when I look at the archives, e.g. http://mail.gnome.org/archives/gtk-list/ I see only ========================================================================== The gtk-list Archives You can get more information about this list. Archive View by: Downloadable version June 2006: [ Thread ] [ Subject ] [ Author ] [ Date ] [ Gzip'd Text 7 KB ] ========================================================================== IOW there is only June 2006 -- and even that is incomplete. Other Gtk+ lists look similarly empty. Did something bad happen to them? Yeti -- Anonyms eat their boogers. From dov.grobgeld@gmail.com Sun Jun 18 04:10:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7A56F3B01BA for ; Sun, 18 Jun 2006 04:10:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31006-02 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 840143B01B4 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so1633845nzo for ; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.14.31 with SMTP id r31mr2636632nzi; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.21.57 with HTTP; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Message-ID: Date: Sun, 18 Jun 2006 11:08:28 +0300 From: "Dov Grobgeld" To: "andy gill" Subject: Re: opengl and gtk In-Reply-To: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 08:10:00 -0000 As far as I understand gtkglext is currently the prefered method of using GL within gtk. I have recently used it in a cross platform application that works fine both on Linux and on Win32. Regards, Dov On 6/16/06, andy gill wrote: > is there any officially supported way of integrating opengl into a > gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to > have varying levels of support for different platforms/language bindings, > and i don't quite understand why there isn't opengl support in the main > tree. > what's the best (i.e. documented and supported) way of getting opengl and > gtk to work together? > > cheers. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From kstachowski@o2.pl Sun Jun 18 07:29:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C2BB3B03F5 for ; Sun, 18 Jun 2006 07:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20622-07 for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 44C653B02EF for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2B8285807B for ; Sun, 18 Jun 2006 13:28:32 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 11:28:31 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200606181128.31582.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.444 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -1.444 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 11:29:39 -0000 thank you for the answer :) > Don't draw pixel by pixel, it would be awfully slow. > Use GdkPixbufs and gdk_draw_pixbuf(). you mean "don't draw pixel by pixel using drawpoint", is that it? > Something along these lines should be doable *if* you can > get a indexed color visual, which you cannot count on. So > I would just redraw it (incidentally I develop a program > which uses false-color maps a lot and redrawing works good > enough). that's a pity but i'll have to cope with that if there's no other way. however, i ran into a problem with colourmaps. i was using gdk.image (has the putpixel method which treats the colours in a more traditional way, and seems to be fast enough for my needs) but didn't manage to change the colours it uses. i keep getting a blue gradient which is not precisely what i want. here's the code: def img=Image(ImageType.Fastest,Visual.System,500,500); for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) img.PutPixel(x,y,(x+y):>UInt32); def gc=GC(args.Event.Window); mutable col=Color(0xff,0,0); gc.Colormap.AllocColor(ref col,true,true); img.Colormap=gc.Colormap; args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); i don't seem to be able to spot anything red in the result. could you please tell me what i am doing wrong? From yeti@physics.muni.cz Sun Jun 18 09:43:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8AFFD3B0BF1 for ; Sun, 18 Jun 2006 09:43:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28794-01 for ; Sun, 18 Jun 2006 09:43:29 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 128E23B0C68 for ; Sun, 18 Jun 2006 09:41:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5ICGX47030918 for ; Sun, 18 Jun 2006 14:16:34 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 5E0A123D5F; Sun, 18 Jun 2006 14:16:33 +0200 (CEST) Date: Sun, 18 Jun 2006 14:16:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060618121635.GZ30886@potato.chello.upc.cz> References: <200606181128.31582.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606181128.31582.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_XF=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 13:43:45 -0000 On Sun, Jun 18, 2006 at 11:28:31AM +0000, kamil stachowski wrote: > > Don't draw pixel by pixel, it would be awfully slow. > > Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? Yes, I do -- and I still mean it. > however, i ran into a problem with colourmaps. i was using gdk.image (has the > putpixel method which treats the colours in a more traditional way, and seems > to be fast enough for my needs) but didn't manage to change the colours it > uses. i keep getting a blue gradient which is not precisely what i want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could you please > tell me what i am doing wrong? Well, I can't speak Nemerle, but as far as I understand it, you first fill the image with arbitrary values no one knows which color they correspond to in the colormap, then allocate one very dark red color (full red is 0xffff in Gdk) but never use it -- the `pixel' field filled by AllocColor is the value to use with PutPixel -- and after all that you set the image's colormap. To draw you have to allocate the colors *first* -- and note if the display is not direct/true-color, it has a limited number of colors and you will not be able to allocate a new color for each unique (x+y):>UInt32 value. So, please save yourself all the hassle and just use GdkPixbuf. Yeti -- Anonyms eat their boogers. From riboaz@xs4all.nl Sun Jun 18 10:04:43 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBDDB3B0B99 for ; Sun, 18 Jun 2006 10:04:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29603-07 for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by menubar.gnome.org (Postfix) with ESMTP id 569E53B0BAA for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from [192.168.1.101] (dpc6744211093.direcpc.com [67.44.211.93]) by smtp-vbr7.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5IDtEGv072056 for ; Sun, 18 Jun 2006 15:55:17 +0200 (CEST) (envelope-from riboaz@xs4all.nl) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <200606181128.31582.kstachowski@o2.pl> References: <200606181128.31582.kstachowski@o2.pl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <14003C28-5DE0-4295-9EC8-E2D3D0A8F9A0@xs4all.nl> Content-Transfer-Encoding: 7bit From: Richard Boaz Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 17:55:07 +0200 To: gtk-list@gnome.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -2.445 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:04:44 -0000 hi, i do something like this in an application to draw probability density function plots. what i do is render the image to an internal RGB buffer, followed by gdk_draw_rgb_image() to render it to the internal pixmap (this pixmap subsequently rendered to the screen): width = DrawingArea->allocation.width; height = DrawingArea->allocation.height; rgbbuf = malloc(width * height * 3); memset(rgbbuf, 240, width * height * 3); // set the background to GREY=(240, 240, 240) DrawBufferImage(rgbbuf, width, height, data); gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); free(rgbbuf); inside the DrawBufferImage() routine, i examine the data, point by point, and assign each pixel to be the RGB combination corresponding to the colour defined/assigned for each data value. my input data also dictates an absolute starting size, so inside the DrawBufferImage() routine, i also magnify the image using a bi-cubic spline interpolation algorithm. the speed achieved in ultimately rendering the image is as fast as possible, and there is no real discernable delay between receiving the data to plot and rendering the image to the screen, i.e., it's instantaneous. plotting pixel by pixel (and magnifying to boot) can result in a quickly drawn image (depending on the number of data points, of course), if gone about in the right manner. cheers, richard On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > thank you for the answer :) > >> Don't draw pixel by pixel, it would be awfully slow. >> Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? > >> Something along these lines should be doable *if* you can >> get a indexed color visual, which you cannot count on. So >> I would just redraw it (incidentally I develop a program >> which uses false-color maps a lot and redrawing works good >> enough). > > that's a pity but i'll have to cope with that if there's no other way. > > however, i ran into a problem with colourmaps. i was using > gdk.image (has the > putpixel method which treats the colours in a more traditional way, > and seems > to be fast enough for my needs) but didn't manage to change the > colours it > uses. i keep getting a blue gradient which is not precisely what i > want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could > you please > tell me what i am doing wrong? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From gaal@forum2.org Sun Jun 18 10:06:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 435323B0BB8 for ; Sun, 18 Jun 2006 10:06:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29678-04 for ; Sun, 18 Jun 2006 10:06:01 -0400 (EDT) Received: from smtp2.actcom.co.il (smtp2.actcom.co.il [192.114.47.35]) by menubar.gnome.org (Postfix) with ESMTP id 650563B0BCC for ; Sun, 18 Jun 2006 10:06:00 -0400 (EDT) Received: from sike (line25-249.adsl.actcom.co.il [192.115.25.249]) by smtp2.actcom.co.il (8.13.3/8.13.3) with ESMTP id k5IDMLPC010326 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jun 2006 16:22:28 +0300 Received: from roo by sike with local (Exim 4.62) (envelope-from ) id 1FrxCy-0004RL-3X for gtk-list@gnome.org; Sun, 18 Jun 2006 16:22:14 +0300 Received: by sike (hashcash-sendmail, from uid 1000); Sun, 18 Jun 2006 16:20:55 +0300 Date: Sun, 18 Jun 2006 16:20:54 +0300 From: Gaal Yahas To: gtk-list@gnome.org Subject: Interrupt signal, GLib, threads Message-ID: <20060618132054.GL9396@sike.forum2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 X-Hashcash: 1:26:060618:gtk-list@gnome.org::gDKzIiB7k7Eeir0+:0000000000000000000 000000000000000000000007LSqZ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.509 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599] X-Spam-Score: -2.509 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:06:04 -0000 I have a GLib/GThread console application that runs fine on Linux and Solaris. But ever since I added threading, when the user hits ^C in the shell the signal is ignored. Does using GThread automatically mask signals? What do I do to get them back? When running my app under gdb, incidentally, ^C works as expected (that is, it drops me in a gdb prompt wherever I was). -- Gaal Yahas http://gaal.livejournal.com/ From kstachowski@o2.pl Sun Jun 18 10:36:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C9DB3B0BEE for ; Sun, 18 Jun 2006 10:36:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30842-02 for ; Sun, 18 Jun 2006 10:36:26 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id B38393B0B9E for ; Sun, 18 Jun 2006 10:36:25 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id AF99258082 for ; Sun, 18 Jun 2006 16:35:40 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:35:39 +0000 User-Agent: KMail/1.9.1 References: <200606181128.31582.kstachowski@o2.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200606181435.39660.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.392 tagged_above=-999 required=2 tests=[AWL=-0.789, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -1.392 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:36:28 -0000 hello :) thank you very much for your answer :) but i'm afraid i won't be able to use it. the access to the rgb class seems= to=20 be either very much limited in gtk sharp (mono) compared to the original an= d=20 other bindings, or at least quite a way beyond my programming skills. i think i'm supposed to be using a gdk.pixbuf instead but than again i can'= t=20 or don't know how to access the memory directly. anyways, in the meantime i've received another answer which made me finally= =20 grab the concept behind colour allocation and colour.pixel value. it seems= =20 that i eventually got an idea of what i'm actually writing :) still, thanks a lot for the answer once again:) Dnia niedziela, 18 czerwca 2006 15:27, napisa=B3e=B6: > hi, > > i do something like this in an application used to draw probability > density function plots. what i do is render the image to an internal > RGB buffer followed by gdk_draw_rgb_image() to render it to the > internal pixmap (this pixmap subsequently rendered to the screen): > > width =3D DrawingArea->allocation.width; > height =3D DrawingArea->allocation.height; > rgbbuf =3D malloc(width * height * 3); > memset(rgbbuf, 240, width * height * 3); // set the background to > GREY=3D(240, 240, 240) > DrawBufferImage(rgbbuf, width, height, data); > gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], > 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); > free(rgbbuf); > > my input data dictates an absolute starting size, so inside my > DrawBufferImage() routine, i also magnify the image using a bi-cubic > spline interpolation algorithm. the speed achieved in ultimately > rendering the image is as fast as possible, and there is no real > discernable delay between receiving the data to plot and rendering > the image to the screen, i.e., it's instantaneous. > > plotting pixel by pixel (and magnifying to boot) can result in a > quickly drawn image (depending on the number of data points, of > course), if gone about in the right manner. > > cheers, > > richard > > On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > > thank you for the answer :) > > > >> Don't draw pixel by pixel, it would be awfully slow. > >> Use GdkPixbufs and gdk_draw_pixbuf(). > > > > you mean "don't draw pixel by pixel using drawpoint", is that it? > > > >> Something along these lines should be doable *if* you can > >> get a indexed color visual, which you cannot count on. So > >> I would just redraw it (incidentally I develop a program > >> which uses false-color maps a lot and redrawing works good > >> enough). > > > > that's a pity but i'll have to cope with that if there's no other way. > > > > however, i ran into a problem with colourmaps. i was using > > gdk.image (has the > > putpixel method which treats the colours in a more traditional way, > > and seems > > to be fast enough for my needs) but didn't manage to change the > > colours it > > uses. i keep getting a blue gradient which is not precisely what i > > want. > > here's the code: > > > > def img=3DImage(ImageType.Fastest,Visual.System,500,500); > > for (mutable x=3D0, x<500; x++) for (mutable y=3D0; y<500; y++) > > img.PutPixel(x,y,(x+y):>UInt32); > > > > def gc=3DGC(args.Event.Window); > > mutable col=3DColor(0xff,0,0); > > gc.Colormap.AllocColor(ref col,true,true); > > img.Colormap=3Dgc.Colormap; > > > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > > > i don't seem to be able to spot anything red in the result. could > > you please > > tell me what i am doing wrong? > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list From tomee@kadu.net Sun Jun 18 10:55:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C71413B0100 for ; Sun, 18 Jun 2006 10:55:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31378-02 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from mail.chilan.com (mail.chilan.com [82.160.212.9]) by menubar.gnome.org (Postfix) with ESMTP id 3229A3B0077 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from aereo (aaso91.neoplus.adsl.tpnet.pl [83.5.226.91]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by mail.chilan.com (Postfix) with ESMTP id 4713723F60 for ; Sun, 18 Jun 2006 16:54:00 +0200 (CEST) From: Tomek Jarzynka To: gtk-list@gnome.org Subject: No icons in Open File dialog Date: Sun, 18 Jun 2006 16:53:58 +0200 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181653.59412.tomee@kadu.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:55:15 -0000 Hello, after playing around with unstable packages I messed up GTK - i.e. it doesn't display folder and file icons in the Open File dialog, only text. I've downgraded to the latest stable versions available for Mandriva 2006 (2.8.3) but still no icons appear. I can change the theme with gtk-chtheme (I am using KDE), but still there are no icons. I get no errors in the console. How do I fix that? Where to look for the icon configuration files that may be missing or corrupted? -- tomasz k. jarzynka / 601 706 601 / tomee(a-t)kadu(d-o-t)net "You laugh because I'm different. I laugh beacuse you're all the same." From nf2@scheinwelt.at Sun Jun 18 18:55:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 462013B00AF; Sun, 18 Jun 2006 18:55:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12908-03; Sun, 18 Jun 2006 18:55:31 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 208EC3B00B2; Sun, 18 Jun 2006 18:55:30 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1Fs69X-0004Oc-Kv; Mon, 19 Jun 2006 00:54:01 +0200 Message-ID: <4495D984.5090705@scheinwelt.at> Date: Mon, 19 Jun 2006 00:53:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gtk-list@gnome.org, gnome vfs list Subject: libxdg-vfs and Gtk-Filechooser Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 9d02a3267670e8bb77f537b38fda5a39 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.012, BAYES_00=-2.599, TW_XD=0.077] X-Spam-Score: -2.51 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 22:55:34 -0000 Hi, The experimental "libxdg-vfs" provides a generic interface to VFS libraries. It tries to autodetect the current desktop and then connects to Gnome-VFS or KIO by launching the backend executables xdg_vfs_gnome or xdg_vfs_kde. http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html The target of "libxdg-vfs" would be giving applications access to ftp/smb shares etc... Of course this also involves bringing VFS access to filechoosers. AFAIK Gtk-Filechooser has pluggable backends (GtkFilesystem). It would be interesting if it could also run on top of "libxdg-vfs". The problem is, that i couldn't find any documentation how to implement a GtkFilesystem module. Could you please give me an introduction and maybe tell me about the specific requirements for a GtkFilesystem? Perhaps i need to provide more functions through "libxdg-vfs": listing and mounting Volumes, obtaining icon-paths,... Regards, Norbert From kstachowski@o2.pl Mon Jun 19 01:31:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03CC3B02D0 for ; Mon, 19 Jun 2006 01:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26079-03 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 501B13B0CE7 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 541273A0414 for ; Mon, 19 Jun 2006 00:05:44 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 88F8C58010 for ; Mon, 19 Jun 2006 00:05:13 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Date: Sun, 18 Jun 2006 22:05:08 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200606182205.09332.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.108, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 05:31:54 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm very sorry about the mess with my posts... this is the first time i'm using a mailing list... From kstachowski@o2.pl Mon Jun 19 02:29:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3900E3B0D4C for ; Mon, 19 Jun 2006 02:29:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28331-03 for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 6FC8A3B0D5D for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 0FEDB2A42D9 for ; Sun, 18 Jun 2006 16:16:06 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id B93C9748099 for ; Sun, 18 Jun 2006 16:15:35 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:15:34 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181415.34985.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.446 tagged_above=-999 required=2 tests=[AWL=-0.766, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -1.446 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 06:29:17 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm sorry if this post appears as a new thread. it's my first time using a mailing list... From kstachowski@o2.pl Mon Jun 19 03:12:18 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 049243B0469 for ; Mon, 19 Jun 2006 03:12:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29499-07 for ; Mon, 19 Jun 2006 03:12:17 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 344293B0198 for ; Mon, 19 Jun 2006 03:12:02 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id A33D22A7E30 for ; Mon, 19 Jun 2006 02:07:22 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 829CB748066 for ; Mon, 19 Jun 2006 02:06:52 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: re: drawing a generated bitmap Date: Mon, 19 Jun 2006 00:06:51 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606190006.52079.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.402 tagged_above=-999 required=2 tests=[AWL=-0.799, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077, TW_XF=0.077] X-Spam-Score: -1.402 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 07:12:18 -0000 hello :) sorry for writing to you at your private address instead of the gtk list but it seems that using a mailing list exceeds my computer skills :/ anyway, i'd like to thank you very much for your answer. it made me finally understand how stuff works. here's the answer i think i failed to post on the list: >> Well, I can't speak Nemerle, but as far as I understand it, >> you first fill the image with arbitrary values no one knows >> which color they correspond to in the colormap, then >> allocate one very dark red color (full red is 0xffff in >> Gdk) but never use it -- the `pixel' field filled by >> AllocColor is the value to use with PutPixel -- and after >> all that you set the image's colormap. >> To draw you have to allocate the colors *first* -- and note >> if the display is not direct/true-color, it has a limited >> number of colors and you will not be able to allocate a new >> color for each unique (x+y):>UInt32 value. > so that's the way it works! oh dear, thank you very much! you've saved me > headache for at least a week :) > the thing is that i got completely lost about the concept of colour > allocation and colour.pixel value. i've utterly failed to understand the > meaning of "hardware pixel" as it is put in the docs. > actually, this also why i sticked to image instead of pixbuf - i thought > image.putpixel's colour parameter was the traditional way, and was afraid to > use pixbuf.drawpoint's gc.foreground because i couldn't understand it. > but now the penny dropped, thank you a great lot :) i definitely owe you a > beer or two in case we ever met :) thanks again, kamil stachowski From lists@nabble.com Mon Jun 19 05:10:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5E0723B008F for ; Mon, 19 Jun 2006 05:10:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-05 for ; Mon, 19 Jun 2006 05:10:31 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E4EB73B0014 for ; Mon, 19 Jun 2006 05:10:30 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFlX-0004aX-HJ for gtk-list@gnome.org; Mon, 19 Jun 2006 02:09:51 -0700 Message-ID: <4932993.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:09:51 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Is there any widget on which I can plot my own primitives? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:10:32 -0000 I have explored some widgets such as GtkImage and GnomeCanvas, but none of them provide the functions I need. Does anyone got any idea? Thanks! -- View this message in context: http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Mon Jun 19 05:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3EC43B0004 for ; Mon, 19 Jun 2006 05:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01908-01 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 72F253B00A4 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFsB-0004kJ-Do for gtk-list@gnome.org; Mon, 19 Jun 2006 02:16:43 -0700 Message-ID: <4933077.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:16:43 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the mouse move and double click event? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:17:33 -0000 I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, I need to capture the coordination of the cursor. In VC++, this can be easily achieved by using the OnMouseMove() function. But in Gtk, I cannot find any similar signal to map. Does anyone got any idea? Thanks!! -- View this message in context: http://www.nabble.com/How-to-capture-the-mouse-move-and-double-click-event--t1810142.html#a4933077 Sent from the Gtk+ - General forum at Nabble.com. From z_b_r@poczta.fm Mon Jun 19 05:36:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 633A53B00A4 for ; Mon, 19 Jun 2006 05:36:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01950-04 for ; Mon, 19 Jun 2006 05:36:03 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id C12ED3B0004 for ; Mon, 19 Jun 2006 05:36:02 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id 66C9F373E63; Mon, 19 Jun 2006 11:35:15 +0200 (CEST) Received: from poczta.interia.pl (f27.poczta.interia.pl [10.217.2.27]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 09FB9373E29 for ; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 0B5532E5C9D; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id DC2132E5C98 for ; Mon, 19 Jun 2006 11:35:09 +0200 (CEST) Date: 19 Jun 2006 11:35:09 +0200 From: hm Subject: Drawing images ( with transparency ) one on another To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060619093509.DC2132E5C98@poczta.interia.pl> X-EMID: 1aa40acc X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.455 tagged_above=-999 required=2 tests=[AWL=-0.971, BAYES_40=-0.185, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:36:05 -0000 =0AHi, =0A=0A I`ve got a problem. I`ve got two separate images. One is bac= kground for the secondone. Secondone is partially transparent. There is al= so table. Question is : how to draw in one of the table`s cells the backgra= ound, and on this background ( as a second layer ) second image (transparen= t) ? I know ( of course ) how to create images, tables.=0A=0Athanks ---------------------------------------------------------------------- Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 From jean.brefort@normalesup.org Mon Jun 19 06:43:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A42C3B00C8 for ; Mon, 19 Jun 2006 06:43:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05026-01 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 7BF243B0091 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5E409225FA; Mon, 19 Jun 2006 12:43:01 +0200 (CEST) Subject: Re: Is there any widget on which I can plot my own primitives? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:46:15 +0200 Message-Id: <1150713975.8915.1.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.892 tagged_above=-999 required=2 tests=[AWL=-0.362, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.892 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:43:49 -0000 Le lundi 19 juin 2006 02:09 -0700, heavenscape a 閏rit : > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. Which functions do you need? > Does anyone got any idea? Thanks! May be GtkDrawingArea? Regards, Jean From jean.brefort@normalesup.org Mon Jun 19 06:47:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A8DF3B015D for ; Mon, 19 Jun 2006 06:47:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05099-08 for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by menubar.gnome.org (Postfix) with ESMTP id 5B4743B008F for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp3-g19.free.fr (Postfix) with ESMTP id 4AF08444E6; Mon, 19 Jun 2006 12:46:28 +0200 (CEST) Subject: Re: How to capture the mouse move and double click event? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4933077.post@talk.nabble.com> References: <4933077.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:49:42 +0200 Message-Id: <1150714182.8915.6.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.891 tagged_above=-999 required=2 tests=[AWL=-0.361, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.891 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:47:09 -0000 Le lundi 19 juin 2006 02:16 -0700, heavenscape a 閏rit : > I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, > I need to capture the coordination of the cursor. In VC++, this can be > easily achieved by using the OnMouseMove() function. But in Gtk, I cannot > find any similar signal to map. > > Does anyone got any idea? Thanks!! The "motion-notify-event" signal is most probably what you need. Regards, Jean From lieven@quasar3d.nl Mon Jun 19 07:28:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A099F3B00A5 for ; Mon, 19 Jun 2006 07:28:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06013-07 for ; Mon, 19 Jun 2006 07:28:08 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 0257C3B000F for ; Mon, 19 Jun 2006 07:28:07 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JBQgWa009810 for ; Mon, 19 Jun 2006 13:26:45 +0200 To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? References: <4932993.post@talk.nabble.com> Message-ID: From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 19 Jun 2006 13:26:42 +0200 In-Reply-To: <4932993.post@talk.nabble.com> User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 11:28:11 -0000 Hi, Use the GtkDrawingArea. You can draw to it using Gdk or maybe Cairo (not sure if that's already in the stable version). Google gave me this tutorial: http:// www.gtk.org/tutorial/x2491.html Greets, Lieven van der Heide. On Mon, 19 Jun 2006 11:09:51 +0200, heavenscape wrote: > > I have explored some widgets such as GtkImage and GnomeCanvas, but none > of > them provide the functions I need. > > Does anyone got any idea? Thanks! > -- > View this message in context: > http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lieven@quasar3d.nl Mon Jun 19 08:15:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 540D53B0AAF for ; Mon, 19 Jun 2006 08:15:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09991-10 for ; Mon, 19 Jun 2006 08:15:06 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 75A0A3B0444 for ; Mon, 19 Jun 2006 08:15:05 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JCDXWa008938 for ; Mon, 19 Jun 2006 14:13:33 +0200 Date: Mon, 19 Jun 2006 14:13:33 +0200 To: gtk-list@gnome.org Subject: Different thickness depending on widget properties. From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=0.109, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.356 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:15:08 -0000 Hi, I am currently working on the wimp theme engine, and I would like to have different thickness property values depending on whether the edge type is etched, or sunken. What would be the best approach on doing so? Also, I'm wondering why the GtkFrame is used for both visually grouping widgets together (like the windows groupbox), aswell as adding edges to widgets (like the drop down list in the combobox seems to be doing). They may have the same functionality (which is none, afaik ;)), and in the default theme they may look the same, but imho there really is a difference between a grouping frame and an edge, and when you're theming, it may be very likely that you want to theme them differently. So I think it would be easier if it were different widgets. Greets, Lieven van der Heide. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From yeti@physics.muni.cz Mon Jun 19 09:03:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B68713B0387 for ; Mon, 19 Jun 2006 09:03:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12359-02 for ; Mon, 19 Jun 2006 09:03:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id CE0ED3B0246 for ; Mon, 19 Jun 2006 09:03:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JAfVKW028290 for ; Mon, 19 Jun 2006 12:41:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4E12123CE6; Mon, 19 Jun 2006 12:41:31 +0200 (CEST) Date: Mon, 19 Jun 2006 12:41:32 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Drawing images ( with transparency ) one on another Message-ID: <20060619104132.GW2858@potato.chello.upc.cz> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:03:16 -0000 On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. Either use gdk_draw_pixbuf() if the correct order (first base, then the one with alpha channel) in expose event handler, or use gdk_pixbuf_composite() and draw the final image. Yeti -- Anonyms eat their boogers. From jmad@maerskdata.dk Mon Jun 19 09:04:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DAE2B3B0312 for ; Mon, 19 Jun 2006 09:04:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12532-05 for ; Mon, 19 Jun 2006 09:04:52 -0400 (EDT) Received: from smddisadksgd001.mdd.local (mail.maerskdata.dk [85.89.224.39]) by menubar.gnome.org (Postfix) with ESMTP id 810BC3B006A for ; Mon, 19 Jun 2006 09:04:51 -0400 (EDT) Received: from smdgldodksgd005.mdd.local ([172.29.201.20]) by smddisadksgd001.mdd.local with InterScan VirusWall; Mon, 19 Jun 2006 14:33:26 +0200 Subject: xevent ? To: gtk-list@gnome.org Cc: X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 From: Jens Madsen Date: 19-Jun-2006 14:33:25 CEDT Message-ID: X-MIMETrack: Serialize by Router on SDRMAIL01/MDG(Release 6.5.3|September 14, 2004) at 19-06-2006 14:33:27 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.519 tagged_above=-999 required=2 tests=[AWL=-0.699, BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, INVALID_DATE=2.193] X-Spam-Score: 0.519 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:04:55 -0000 Hi, I am converting some old x-windows software to GTK. It contains a handler for receiving xevents from other applications. What sort of GTK api should I use for receiving/sending the x-events ? Best regards Jens Madsen From simon@thegestalt.org Mon Jun 19 10:43:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CFD73B0123 for ; Mon, 19 Jun 2006 10:43:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15901-01 for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from mail.thegestalt.org (kanga.astray.com [195.82.114.48]) by menubar.gnome.org (Postfix) with ESMTP id 6C54F3B017E for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from simon by mail.thegestalt.org with local (Exim 4.12) id 1FsKwK-00071M-00 for gtk-list@gnome.org; Mon, 19 Jun 2006 15:41:20 +0100 Date: Mon, 19 Jun 2006 15:41:20 +0100 From: Simon Wistow To: gtk-list@gnome.org Subject: Problems using GTK in Maya Message-ID: <20060619144120.GJ7044@thegestalt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.455 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_RG=0.077] X-Spam-Score: -2.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 14:43:40 -0000 I've attempted to write a dialog for Maya using GTK but it consistently causes segfaults. The dialog will launch and return successfully but the next button I press will causes a Maya crash with the message The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 62194 error_code 8 request_code 42 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) And so far I've been unable to geta back trace out of GDB or Totalview. I've narrowed it down to a test case string create_dialog { int argc = 0; char** argv = 0; // Initialize the widget set if (!gtk_init_check (&argc, &argv)) { return ""; } // drain the event loop while (gtk_events_pending ()) { gtk_main_iteration (); } return ""; } either with or without the event loop draining. Am I doing something fundamentally wrong? Do I need to do somethign with XEmbed? Is GTK just not suited to this? Do I need to sacrifice a different breed of chicken? I'm using GTK 2.69 for what it's worth. Simon -- X-Gleitschirmfliegen: macht Spaaaasss! From paul@linuxaudiosystems.com Mon Jun 19 12:36:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E4033B03A5 for ; Mon, 19 Jun 2006 12:36:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20590-07 for ; Mon, 19 Jun 2006 12:36:08 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 14F6B3B01C6 for ; Mon, 19 Jun 2006 12:36:07 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1400EA98NCJ2C6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Mon, 19 Jun 2006 11:33:12 -0500 (CDT) Date: Mon, 19 Jun 2006 12:33:38 -0400 From: Paul Davis Subject: Re: xevent ? In-reply-to: <1150734280.8703.98.camel@localhost.localdomain> To: Jens Madsen Message-id: <1150734818.8703.101.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1150734280.8703.98.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GD=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 16:36:11 -0000 On Mon, 2006-06-19 at 14:33 +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? basically, you can't. GTK is a cross platform toolkit, so it doesn't have an API that exposes backend details like XEvent. if you root around in the sources of gdk, especially the gdk-x11 directory, you will find some stuff that could be useful. but its not GTK and not even really GDK, since these APIs are designed to work on a variety of backends, including several that are not X Window related. --p From jose.francisco.hevia@gmail.com Mon Jun 19 06:50:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B57E3B007B for ; Mon, 19 Jun 2006 06:50:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05221-03 for ; Mon, 19 Jun 2006 06:50:53 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id DDACA3B013E for ; Mon, 19 Jun 2006 06:50:52 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so538227hue for ; Mon, 19 Jun 2006 03:49:46 -0700 (PDT) Received: by 10.49.72.7 with SMTP id z7mr4462656nfk; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2006 12:49:45 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4932993.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Mon, 19 Jun 2006 14:33:36 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:50:56 -0000 2006/6/19, heavenscape : > > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. > Does anyone got any idea? Thanks! Oh, yes, I'm looking my crystal ball, but I can't manage to get to know what kind of functions you need :-) But I'm sure you know, so please, give more info. Jose Hevia From lists@nabble.com Mon Jun 19 21:48:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9193B09BA for ; Mon, 19 Jun 2006 21:48:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15436-06 for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 142DA3B059B for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsVLU-0004uW-Mp for gtk-list@gnome.org; Mon, 19 Jun 2006 18:48:00 -0700 Message-ID: <4947880.post@talk.nabble.com> Date: Mon, 19 Jun 2006 18:48:00 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Trouble with GtkImage on button press event! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 01:48:41 -0000 I need to capture the button press event on a GtkImage widget, and I use the following code: w = lookup_widget(MainWnd,"image1"); gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); and I mapped the "Button press event" using glade, but it never worked. Anyone knows why? -- View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Mon Jun 19 23:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DA3403B022F for ; Mon, 19 Jun 2006 23:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19691-10 for ; Mon, 19 Jun 2006 23:15:01 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9BAA53B036C for ; Mon, 19 Jun 2006 23:15:00 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JI2VFE002259 for ; Mon, 19 Jun 2006 20:02:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4559923D5E; Mon, 19 Jun 2006 20:02:31 +0200 (CEST) Date: Mon, 19 Jun 2006 20:02:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: xevent ? Message-ID: <20060619180234.GF30886@potato.chello.upc.cz> References: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:15:04 -0000 On Mon, Jun 19, 2006 at 04:22:25PM +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? See gdk_add_client_message_filter() and related funcs. At least I think they are intended for this situation, fortunately I have never needed them. Yeti -- Anonyms eat their boogers. From lists@nabble.com Mon Jun 19 23:37:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 155253B032C for ; Mon, 19 Jun 2006 23:37:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20664-03 for ; Mon, 19 Jun 2006 23:37:49 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 0B8933B03A6 for ; Mon, 19 Jun 2006 23:37:48 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsX2j-0006su-9z for gtk-list@gnome.org; Mon, 19 Jun 2006 20:36:45 -0700 Message-ID: <4948583.post@talk.nabble.com> Date: Mon, 19 Jun 2006 20:36:45 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: trouble getting the current size of GtkViewport MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:37:52 -0000 I am displaying an image inside a GtkViewport (which is in a scrolled window), my main window resizes frequently (and so the viewport), and i want the image to rescale to fit the current size of the viewport. Anybody has any idea how to get the current size of the viewport? Thanks a lot!!!! -- View this message in context: http://www.nabble.com/trouble-getting-the-current-size-of-GtkViewport-t1815369.html#a4948583 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Tue Jun 20 01:47:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC0303B05AF for ; Tue, 20 Jun 2006 01:47:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26815-06 for ; Tue, 20 Jun 2006 01:47:47 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 08FEA3B031E for ; Tue, 20 Jun 2006 01:47:41 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id C710471130; Tue, 20 Jun 2006 07:46:38 +0200 (CEST) Subject: Re: Trouble with GtkImage on button press event! From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 07:49:52 +0200 Message-Id: <1150782592.14978.0.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.853 tagged_above=-999 required=2 tests=[AWL=-0.400, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.853 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 05:47:48 -0000 Le lundi 19 juin 2006 18:48 -0700, heavenscape a 閏rit : > I need to capture the button press event on a GtkImage widget, and I use the > following code: > > w = lookup_widget(MainWnd,"image1"); > gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); > > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? do you call glade_xml_signal_autoconnect in your code? > View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From andrew@operationaldynamics.com Tue Jun 20 02:16:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC8873B0F1C for ; Tue, 20 Jun 2006 02:16:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28283-07 for ; Tue, 20 Jun 2006 02:16:40 -0400 (EDT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by menubar.gnome.org (Postfix) with SMTP id 8BF9B3B0EBA for ; Tue, 20 Jun 2006 02:16:39 -0400 (EDT) Received: (qmail 57818 invoked by uid 0); 20 Jun 2006 05:49:08 -0000 Received: from unknown (HELO procyon) (unknown) by unknown with SMTP; 20 Jun 2006 05:49:08 -0000 X-pair-Authenticated: 150.101.122.233 Subject: Re: Trouble with GtkImage on button press event! From: Andrew Cowie To: gtk-list@gnome.org In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain Organization: Operational Dynamics Date: Tue, 20 Jun 2006 15:48:53 +1000 Message-Id: <1150782533.17295.4.camel@procyon.operationaldynamics.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.384 tagged_above=-999 required=2 tests=[AWL=0.215, BAYES_00=-2.599] X-Spam-Score: -2.384 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:16:42 -0000 On Mon, 2006-06-19 at 18:48 -0700, heavenscape wrote: > I need to capture the button press event on a GtkImage widget... > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? [gtk] Images themselves don't have [gdk] Windows underneath them, and only such Windows receive events. There is thus a "helper" class called GtkEventBox. You have to nest the Image inside an EventBox to which you can then hook up mouse button press events. http://developer.gnome.org/doc/API/2.0/gtk/GtkEventBox.html or http://java-gnome.sourceforge.net/docs/javadoc/org/gnu/gtk/EventBox.html AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Website: http://www.operationaldynamics.com/ Blog: http://research.operationaldynamics.com/blogs/andrew/ GPG key: 0945 9282 449C 0058 1FF5 2852 2D51 130C 57F6 E7BD From lists@nabble.com Tue Jun 20 02:46:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA183B038D for ; Tue, 20 Jun 2006 02:46:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30258-08 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 873AB3B0085 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsZzm-00022R-Mg for gtk-list@gnome.org; Mon, 19 Jun 2006 23:45:54 -0700 Message-ID: <4950061.post@talk.nabble.com> Date: Mon, 19 Jun 2006 23:45:54 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the scroll event of the scrolled window? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:46:56 -0000 I need to track the scroll events of the GtkScrolledWindow, and i use following code: GtkWidget* w = lookup_widget(MainWnd,"scrolledwindow1"); gtk_widget_add_events (w, GDK_SCROLL_MASK); and I mapped the scroll child event with glade, but it does not work. Anyone knows why? -- View this message in context: http://www.nabble.com/How-to-capture-the-scroll-event-of-the-scrolled-window--t1815899.html#a4950061 Sent from the Gtk+ - General forum at Nabble.com. From prashan@sasken.com Tue Jun 20 04:48:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC4BB3B0E25 for ; Tue, 20 Jun 2006 04:48:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03632-08 for ; Tue, 20 Jun 2006 04:47:55 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id 1A6C73B0F64 for ; Tue, 20 Jun 2006 04:47:53 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8jlRJ007178 for ; Tue, 20 Jun 2006 14:15:47 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8ji59007156for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5K8jiKm016268for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Message-ID: <4497B5B8.1080000@sasken.com> Date: Tue, 20 Jun 2006 14:15:44 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: proggressbar.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:75.63018 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.072 tagged_above=-999 required=2 tests=[AWL=-0.074, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.072 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 08:48:03 -0000 how to design a progressbar, and add to my application window? with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From prashan@sasken.com Tue Jun 20 07:07:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D06E33B032F for ; Tue, 20 Jun 2006 07:07:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10540-04 for ; Tue, 20 Jun 2006 07:07:04 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id B9BA63B03AD for ; Tue, 20 Jun 2006 07:07:03 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6ERJ012845 for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6E59012842for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5KB6EKm016317for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Message-ID: <4497D6A6.20505@sasken.com> Date: Tue, 20 Jun 2006 16:36:14 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Please help me.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:25.28121 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.3 tagged_above=-999 required=2 tests=[AWL=0.298, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:07:06 -0000 hi all... I am doing GUI for audio players using *GTK* as framework. i have to design a *playlist* which contains files from one* directory*, on selecting file from playlist another window should open,which contains play,* pause and stop buttons and one progress bar*. i have to write *events* for those play & all buttons. if anybody have idea of this please help me. or tell me where i get source code of this. with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From paul@linuxaudiosystems.com Tue Jun 20 07:52:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 318133B044D for ; Tue, 20 Jun 2006 07:52:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-01 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B16773B03B8 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J15007F0Q8GB21C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Tue, 20 Jun 2006 06:50:40 -0500 (CDT) Date: Tue, 20 Jun 2006 07:51:07 -0400 From: Paul Davis Subject: Re: proggressbar.. In-reply-to: <4497B5B8.1080000@sasken.com> To: Kalli Math Message-id: <1150804267.8703.134.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <4497B5B8.1080000@sasken.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.547 tagged_above=-999 required=2 tests=[AWL=0.052, BAYES_00=-2.599] X-Spam-Score: -2.547 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:52:07 -0000 On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? it is customary to show some indication that you've attempted to find an answer to such simple, basic questions before asking a mailing list. www.gtk.org has lots of documentation on the GTK API, and links to lots of example source code which you are expected to make use of to find useful, real world, working examples. if you don't understand even the basic idea behind using GTK (or any GUI toolkit), mailing lists are not the right place to begin. From linuxhippy@gmail.com Tue Jun 20 09:27:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 520BE3B02A4 for ; Tue, 20 Jun 2006 09:27:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17603-06 for ; Tue, 20 Jun 2006 09:27:34 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 14A793B01A8 for ; Tue, 20 Jun 2006 09:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so742257hue for ; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.40.10 with SMTP id n10mr2592344hun; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Message-ID: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Date: Tue, 20 Jun 2006 15:26:51 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Scrolling performance MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 13:27:36 -0000 Hi there, I recently updated to OpenSuSE 10.1 since some people suggested that Eclipse/GTK's performance is better with gtk 2.8. My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with latest NVidia binary drivers, renderaccel enabled. GTK applications tend to be very unresponsive compared to other toolkits: - Slow expose reaction. If I move a window above e.g. gtk-demo I see a repaint-lag of about 2-3cm. - Slow scrolling. Even fast scrolling inside of the filechooser is not smooth. I can see scrolling srtifacts which look like caused by asynchronous repainting of the scrolled area. - Slow layouting, especially for Text composnents: Moving e.g. the vertical splitters of gftp (one pane a table as content, other table is empty) is done with about 5fps. Even my old P233 with Windows2000 can do compareable GUI operations without any problems. Also reslayouting/repainting windows after window-size change is slow. - Sluggish Menu-behaviour. In gftp I can feel a ~400ms lag, therefor it takes about 400ms for the menu to catch up to my mouse-pointer if I move with about 500pixel/s. - Eclipse in general is just _very_ slow at all. If large popup menus go away you see the background about 300-500ms repainting itself. Netbeans (Swing based) is way faster, only after start its slow (till the java JIT compiled the hot spots). I know this is an opensource project, I know if something bothers me I can grab the code and enhance it or dontate some money to make someone else fix my problems. However I still go to school and currently have to do my diploma -> no money, no time. I know its unpolite to post such problems to the list, but bad performance has been discussed since ... I guess the 2.0 release. I still remember many projects refusing to upgarde with tables of micro-benchmarks. Till a long time improvements are promiesed, fast paths in pango, enhanced speed of cairo, better repaint handling and whatsoever. If I start a application which links against GTK-2.8 _feels_ exactly as good damn slow as GTK-2.0. The I start a GTK-1.2 based problem and can't trust my eyes ... what happend to GTK. At times of GTK-1.2 I preffered GTK since it felt a bit faster than QT-2.x but now QT is lightening fast compared to GTK-2.x not talking about high-performance libraries like FOX or FLTK. I used Mozilla/GTK1.2 builds as long as they were available, since even mozilla slowed down by only using GDK(2). I just don't get it why I need a 3ghz PC to not see repaint lags or 5fps layout updates. These things worked years ago ten times better than now (and no, this are not themes. GTK-1/QT-2 were themed too with tons of pixmaps). What has happend? I guess performance regression testing is something never here has heard of :-/ And where to start getting my hands on? I just can't work with this crap anymore, but since GTK is on the way to be used as the default toolkit ... it seems there's no way arround it. Which profiling tools do you recommend? Do you think using the intel compiler is worth a try? Where does all the time go to? I've done some sysprof-profiling and its shows than pango is not the evil. Are maybe the repaint algorythmns not optimal, repainting too often too large areas/hidden components? Sorry for wasting your time and your energy, a frustrated Clemens From mclasen@redhat.com Tue Jun 20 11:22:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B32C3B043F; Tue, 20 Jun 2006 11:22:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-09; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 71CF13B00E7; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLnL004523; Tue, 20 Jun 2006 11:21:21 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLNA016479; Tue, 20 Jun 2006 11:21:21 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5KFLKdH032719; Tue, 20 Jun 2006 11:21:20 -0400 Subject: GLib 2.11.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Date: Tue, 20 Jun 2006 11:21:20 -0400 Message-Id: <1150816880.15532.58.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 15:22:11 -0000 GLib 2.11.4 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.4.tar.bz2 md5sum: 9d3a94baa4bfcd9a579b45eea6de3a8c glib-2.11.4.tar.gz md5sum: f7768bc7ed524c6b40cb87daccb6c2b2 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.3 to GLib 2.11.4 =================================================== * GBookmarkFile: - g_bookmark_file_remove_item returns a boolean * g_mkstemp accepts the XXXXXX in the middle of the template * Bugs fixed: 344868 g_key_file_to_data should separate groups * Updated translations (de,es,fr,gu,hi,ko,th) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=344868 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Christian Persch, Federico Mena Quintero Matthias Clasen June 20, 2006 From torriem@chem.byu.edu Tue Jun 20 14:00:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AAD953B04F0 for ; Tue, 20 Jun 2006 14:00:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02250-08 for ; Tue, 20 Jun 2006 14:00:13 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 8D0CF3B0302 for ; Tue, 20 Jun 2006 14:00:02 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5KFR9lG010025 for ; Tue, 20 Jun 2006 09:27:10 -0600 Subject: Re: Please help me.. From: Michael L Torrie To: gtk-list@gnome.org In-Reply-To: <4497D6A6.20505@sasken.com> References: <4497D6A6.20505@sasken.com> Content-Type: text/plain Date: Tue, 20 Jun 2006 09:27:09 -0600 Message-Id: <1150817229.26278.4.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Tue, 20 Jun 2006 09:27:10 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.514 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.514 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:00:23 -0000 On Tue, 2006-06-20 at 16:36 +0530, Kalli Math wrote: > hi all... > > I am doing GUI for audio players using *GTK* as framework. i have to > design a *playlist* which contains files from one* directory*, on > selecting file from playlist another window should open,which contains > play,* pause and stop buttons and one progress bar*. i have to write > *events* for those play & all buttons. if anybody have idea of this > please help me. or tell me where i get source code of this. Do you have a specific question? I doubt anyone here will write your program for you. > > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mitch@gimp.org Tue Jun 20 14:16:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C5693B03C5 for ; Tue, 20 Jun 2006 14:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03488-03 for ; Tue, 20 Jun 2006 14:16:26 -0400 (EDT) Received: from mitch.gimp.org (fuckup.club.berlin.ccc.de [195.160.172.2]) by menubar.gnome.org (Postfix) with ESMTP id 86EB33B0341 for ; Tue, 20 Jun 2006 14:16:25 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FsknV-0007g7-00; Tue, 20 Jun 2006 20:17:58 +0200 Subject: Re: proggressbar.. From: Michael Natterer To: Kalli Math In-Reply-To: <4497B5B8.1080000@sasken.com> References: <4497B5B8.1080000@sasken.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 20:17:57 +0200 Message-Id: <1150827477.31698.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:16:27 -0000 I think it would help a bit if you a) asked specific questions b) didn't have 3 times as much advertizing as content in your mail c) didn't have this idiotic disclaimer On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Tue Jun 20 14:20:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D25DE3B03E3 for ; Tue, 20 Jun 2006 14:20:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03798-03 for ; Tue, 20 Jun 2006 14:20:52 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 120A73B0401 for ; Tue, 20 Jun 2006 14:20:51 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id i30so402545wxd for ; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.19.6 with SMTP id 6mr10823687wxs; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Message-ID: <522c6460606201120g780d763dvf18c90f7fb461681@mail.gmail.com> Date: Tue, 20 Jun 2006 19:20:51 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:20:54 -0000 On 6/20/06, Clemens Eisserer wrote: > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Hi Clemens, I've not tried suse 10.1, but older suses used to install a theme engine for gtk which tried to copy the current KDE theme. It always caused me problems: it was slow, very ugly, and had repaint errors. Maybe it's better than it used to be, but if you have not disabled it, I think it's worth trying without. I forget what the package you have to remove is called, maybe try something like rpm -q a | grep -i gtk | grep -i engine (untested) and see if it lists any theme engines. GTK on the default theme should be fast. John From patrick.jacquotf@free.fr Tue Jun 20 15:18:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A6EB3B046A for ; Tue, 20 Jun 2006 15:18:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07752-07 for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 9EC583B047F for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp2-g19.free.fr (Postfix) with ESMTP id C6C8F73297; Tue, 20 Jun 2006 21:18:10 +0200 (CEST) Subject: Re: Drawing images ( with transparency ) one on another From: Patrick Jacquot To: hm In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 21:17:43 +0200 Message-Id: <1150831063.12639.2.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.582 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599] X-Spam-Score: -2.582 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:18:15 -0000 Le lundi 19 juin 2006 11:35 +0200, hm a 閏rit : > Hi, > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. > > thanks > > ---------------------------------------------------------------------- > Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 > One solution could be to prepare the composite image with the imagemagick library, then to display that composite image HTH -- Patrick From Valdis.Kletnieks@vt.edu Tue Jun 20 15:31:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 908813B04C0 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08815-08 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 9C8D13B04A5 for ; Tue, 20 Jun 2006 15:31:30 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KJVPU2012082; Tue, 20 Jun 2006 15:31:25 -0400 Message-Id: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 15:26:51 +0200." <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150831885_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 15:31:25 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.596 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.596 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:31:31 -0000 --==_Exmh_1150831885_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 15:26:51 +0200, Clemens Eisserer said: > Where does all the time go to? I've done some sysprof-profiling and > its shows than pango is not the evil. Are maybe the repaint > algorythmns not optimal, repainting too often too large areas/hidden > components? So where *does* the time go to, if not pango? The more detail you can provide, the easier it is to track down. For what it's worth, I'm using an older Dell C840 laptop (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer, and it's able to keep up just fine. (Although I admit that if I grab one 700x1000 window and start using the mouse to move it back and forth as fast as I can move the mouse, in front of 2 other 700x1000 windows, and the window manager is doing the moving window in translucent mode as well, that *will* spike the processor up to about 100% and only 8 or 10 redraws per second. I'm not saying it's *not* an issue for you, but simply pointing out that not everybody is seeing the problem - on my machine, GTK2 *is* a bit heavier than GTK1, but not to the point where it's a major issue. And in general, it's really hard to chase down performance regressions in an open-source project without somebody actually seeing the problem and willing to work in some detail to chase it down (been there myself - there's been more than a few times when I've been literally the only person who was both seeing a given bug in the Linux kernel and in a position to help debug it...) --==_Exmh_1150831885_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmE0NcC3lWbTT17ARAu6DAKCFrdWzrt6jGOyh69x5OyWXCTOWfQCfdYba DBRnnX3k5h5Y8BId+X2kJlo= =y5ZG -----END PGP SIGNATURE----- --==_Exmh_1150831885_3210P-- From linuxhippy@gmail.com Tue Jun 20 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A25C13B037B for ; Tue, 20 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11895-05 for ; Tue, 20 Jun 2006 16:21:18 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id C470F3B0270 for ; Tue, 20 Jun 2006 16:21:17 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so710136hud for ; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.69.7 with SMTP id r7mr2961683hua; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Message-ID: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Date: Tue, 20 Jun 2006 22:21:16 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.561 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 20:21:19 -0000 Hi again, Maybe GTK is using X in a way it does not like? > of 2 other 700x1000 windows, and the window manager is doing the moving window > in translucent mode as well, that *will* spike the processor up to about 100% > and only 8 or 10 redraws per second. Well but then a composition manager is installed (as far as I know this is needed for transculesent windows), the window-content is cached in a pixmap and just this pixmap is drawn overe and over and the application does not receive a single expose event by X - So it has in fact nothing to do with GTK. Thanks for the tip with the theme, the only theme I've installed is called "Raleigh". > (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer Well but it should be enough to handle these simple tasks very fast. If QT can do it fast, GTK should be able too. I just wonder why QT performs that well (and many other toolkits I've used too like FOX or FLTK) but everytime it comes down to bad performance of GTK the following things happen: 1.) Not even one comment from a developer. Maybe there are not enough, maybe nobody cares, ore maybe they can't cope with critic? I don't know. 2.) Some fans respond that on their machines its working fast enough. Fighting against that one that brought up the topic to show him that their favourite Gui toolkit is not as weak as it looks. 3.) The discussion dies with or without a flame. -> no result, nothing changes. I see/saw quite frequently complaints about GTK's performance, I saw tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away from GTK-2 because they were concerned loosing users when switching to this toolkit. > So where *does* the time go to, if not pango? The more detail you can > provide, the easier it is to track down. I did some sysprof testing back when I tried to analyze why the Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default theme). It was almost a flat profile, but X spiked quite a lot. Doing the same test (invalidating eclispe's main window) shows about half (!!!) of the time is spent in X. The test with gftp (moving splitters) shows X using 67.1% of CPU whereas gftp itself only consumes 31%. I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). lg Clemens From myeates@jpl.nasa.gov Tue Jun 20 17:24:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B67933B090F for ; Tue, 20 Jun 2006 17:24:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14950-08 for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from nmta3.jpl.nasa.gov (nmta.jpl.nasa.gov [137.78.160.108]) by menubar.gnome.org (Postfix) with ESMTP id 9336B3B082C for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from xmta3.jpl.nasa.gov (xmta3.jpl.nasa.gov [137.78.160.111]) by nmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlIa004610 for ; Tue, 20 Jun 2006 14:24:47 -0700 Received: from [137.78.28.25] (matslab.jpl.nasa.gov [137.78.28.25]) by xmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlK8000301 for ; Tue, 20 Jun 2006 14:24:47 -0700 Message-ID: <4498679B.7000508@jpl.nasa.gov> Date: Tue, 20 Jun 2006 14:24:43 -0700 From: Mathew Yeates User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: matslab.jpl.nasa.gov [137.78.28.25] X-Source-Sender: myeates@jpl.nasa.gov X-AUTH: Internal IP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.568 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599] X-Spam-Score: -2.568 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:24:49 -0000 Hi When I try and compile I get the error in my subject line. This is with a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Mathew From Valdis.Kletnieks@vt.edu Tue Jun 20 17:30:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4628D3B082C for ; Tue, 20 Jun 2006 17:30:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15364-10 for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 4B7023B05CA for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KLUJKk016876; Tue, 20 Jun 2006 17:30:19 -0400 Message-Id: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 22:21:16 +0200." <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150839019_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 17:30:19 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.558 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:23 -0000 --==_Exmh_1150839019_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 22:21:16 +0200, Clemens Eisserer said: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. Maybe none of the developers are seeing your issue, and none of the usual bleeding-edge testers see it either. This makes it hard for them to fix it. > 2.) Some fans respond that on their machines its working fast enough. I'm suspecting you're addressing me with that comment. ;) My point was that it *isn't* the case where every single GTK2 system is seeing horrid performance, and that it always sucks in every case. You seem to be encountering an issue that is *not* present on every system. (On the other hand, if computers and users didn't keep finding new ways to trip over obscure corner cases, I'd be unemployed, so I'm not complaining ;) > I see/saw quite frequently complaints about GTK's performance, I saw > tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away > from GTK-2 because they were concerned loosing users when switching to > this toolkit. Because usually the person complaining disappears before providing useful info like this: > > So where *does* the time go to, if not pango? The more detail you can > > provide, the easier it is to track down. > I did some sysprof testing back when I tried to analyze why the > Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default > theme). It was almost a flat profile, but X spiked quite a lot. Doing > the same test (invalidating eclispe's main window) shows about half > (!!!) of the time is spent in X. The test with gftp (moving splitters) > shows X using 67.1% of CPU whereas gftp itself only consumes 31%. > I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). OK, *now* we have something that we can start looking into - we now know that at least part of the problem is that gftp is generating some very sub-optimal X requests. And we have a test case that reproduces easily (although on my box moving the main horizontal splitter in the gftp gui up and down result in about 70% gftp-gtk and 25% in the X server). I'll take a closer look at this later tonight - the kernel I have booted at the moment doesn't have oprofile support. (And no, I don't pretend to know the GTK innards well enough to fix this, but I've been doing systems debugging and tuning for enough decades that I certainly should be able to get a clear and coherent bugzilla out of it so that somebody else can run with it from there...) --==_Exmh_1150839019_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmGjrcC3lWbTT17ARAipXAJ0VwdLBfSxH0117D7jSuyfn23bE9gCgudlr 1k0WTieYG9P86q3XX2RzYns= =rDWz -----END PGP SIGNATURE----- --==_Exmh_1150839019_3210P-- From mleisher@crl.nmsu.edu Tue Jun 20 17:30:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC5483B0ACC for ; Tue, 20 Jun 2006 17:30:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-02 for ; Tue, 20 Jun 2006 17:30:38 -0400 (EDT) Received: from crl.nmsu.edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id A09343B0BBE for ; Tue, 20 Jun 2006 17:30:36 -0400 (EDT) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.nmsu.edu (8.13.6/8.13.6) with ESMTP id k5KLUYPh018088; Tue, 20 Jun 2006 15:30:34 -0600 Message-ID: <44986900.7080407@crl.nmsu.edu> Date: Tue, 20 Jun 2006 15:30:40 -0600 From: Mark Leisher User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Clemens Eisserer Subject: Re: Scrolling performance References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.2/1551/Tue Jun 20 07:37:21 2006 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.494 tagged_above=-999 required=2 tests=[AWL=-0.840, BAYES_00=-2.599, DNS_FROM_RFC_BOGUSMX=1.945] X-Spam-Score: -1.494 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:44 -0000 Clemens Eisserer wrote: > >> (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer > Well but it should be enough to handle these simple tasks very fast. > If QT can do it fast, GTK should be able too. > > I just wonder why QT performs that well (and many other toolkits I've > used too like FOX or FLTK) but everytime it comes down to bad > performance of GTK the following things happen: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. > 2.) Some fans respond that on their machines its working fast enough. > Fighting against that one that brought up the topic to show him that > their favourite Gui toolkit is not as weak as it looks. > 3.) The discussion dies with or without a flame. > -> no result, nothing changes. I run GTK+ 2.8 on a 400MHz Pentium II box (512MB, Slackware 9) every day without any noticeable performance problems. At one time or another I have used pretty much all versions of GTK+ on this machine without any performance problems. In fact I just installed all the latest libraries last night and didn't experience any performance problems with any programs I linked to the new libraries. Your performance problem is most likely configuration or distribution-specific. Thus the lack of response from the developers. The discussion founders because nothing needs changing except perhaps your system, which your fellow travelers can only help with up to a point because most of us don't have your specific setup. I will say that it not a good sign that problems like yours can't be diagnosed easily. The accretion of mass and complexity in the OS and GUI is making it increasingly difficult to determine where to start troubleshooting. -- ------------------------------------------------------------------------ Mark Leisher Computing Research Lab They never open their mouths New Mexico State University without subtracting from the Box 30001, MSC 3CRL sum of human knowledge. Las Cruces, NM 88003 -- Thomas Bracket Reed (1839-1902) From tml@iki.fi Tue Jun 20 17:49:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33B5C3B0954 for ; Tue, 20 Jun 2006 17:49:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16362-09 for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 3898C3B028D for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 349E1151226; Wed, 21 Jun 2006 00:49:32 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17560.28006.652000.134571@gargle.gargle.HOWL> Date: Wed, 21 Jun 2006 00:49:26 +0300 To: Mathew Yeates Subject: Re: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix In-Reply-To: <4498679B.7000508@jpl.nasa.gov> References: <4498679B.7000508@jpl.nasa.gov> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.329 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.329 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:49:40 -0000 Mathew Yeates writes: > When I try and compile I get the error in my subject line. This is with > a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Presumably you get the error when running your code, not compiling? Anyway, you probably have an older version of the GNU iconv Dll, iconv.dll, in your Windows System32 folder. (Or something totally unrelated that just happens to also be called iconv.dll.) Hide that other iconv.dll. If you later then notice that some 3rd-party app that has installed it in the system32 folder starts complaining about it missing, copy it to that app's executable's folder, where it should have been in the first place. --tml From jcupitt@gmail.com Tue Jun 20 17:57:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D481A3B026F for ; Tue, 20 Jun 2006 17:57:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17120-07 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.203]) by menubar.gnome.org (Postfix) with ESMTP id 9A3F33B0244 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h30so11009wxd for ; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.92.17 with SMTP id p17mr11155104wxb; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Message-ID: <522c6460606201457k7a194a19n956616ccdaeb85da@mail.gmail.com> Date: Tue, 20 Jun 2006 22:57:34 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:57:43 -0000 On 6/20/06, Clemens Eisserer wrote: > Thanks for the tip with the theme, the only theme I've installed is > called "Raleigh". I found the package: http://www.novell.com/products/linuxpackages/suselinux/gtk-qt-engine.html it is installed by default, so unless you've removed it, you are probably using it. Worth checking anyway. I used to use gtk2.4 apps under suse on a very old 450MHz PII machine and performance was not obviously worse than Qt (for me). John From linuxhippy@gmail.com Tue Jun 20 18:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4FC13B0170 for ; Tue, 20 Jun 2006 18:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20290-07 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 2388D3B08F1 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so720860hud for ; Tue, 20 Jun 2006 15:41:32 -0700 (PDT) Received: by 10.78.17.4 with SMTP id 4mr3049235huq; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Message-ID: <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Date: Wed, 21 Jun 2006 00:41:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.37 tagged_above=-999 required=2 tests=[AWL=-0.155, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -2.37 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 22:41:37 -0000 Hi again, > I'm suspecting you're addressing me with that comment. ;) Well, maybe ;) When I wrote the original post I was quite frustrated since I was unhappy about GTKs performance since a long time (I used FC3 (2.4) and FC4(2.6) and now OpenSuSE 10.1 (2.8), my laptop died (2.6ghz) and now I've to work on an Athlon-1000 where all gtk programs are the same oder of magnitude slower than on my laptop, I just can feel it much more because of the slowness of the machine itself. > Because usually the person complaining disappears before providing useful > info like this: Well I understand that this leads to frustration over the time. I am too one of those guys crying very loud, however I am a java-programmer working with Eclipse since about 2 years. I can choose between a slow GTK2 interface or an unuseable but fast Motif based, and that for the tool I work most of the time with :-/ So ... yes I am interested in investing time to at least help abit with informations ;) For now my timeframe is *very* limmited (my current project has its deadline about 2-3 weeks), but I am of course I am willed to help. I would also be willed to get my hands on code ... if someone would be patient enough to help me at the beginning ;) I did some oprofiling, however I don't have a vmlinz-file handy so its quite a bit useless: 5558 39.2930 no-vmlinux 2116 14.9593 libfb.so 1319 9.3248 nvidia_drv.so 1031 7.2888 Xorg 603 4.2630 libqt-mt.so.3.3.5 550 3.8883 libc-2.4.so 470 3.3227 libgobject-2.0.so.0.800.5 416 2.9410 libcairo.so.2.2.3 337 2.3825 libglib-2.0.so.0.800.5 304 2.1492 libgdk-x11-2.0.so.0.800.10 272 1.9229 libpango-1.0.so.0.1001.1 201 1.4210 libX11.so.6.2 177 1.2513 libpthread-2.4.so 155 1.0958 libgtk-x11-2.0.so.0.800.10 > I'll take a closer look at this later tonight - the kernel I have booted at the > moment doesn't have oprofile support. Thanks for looking into this. lg Clemens From Valdis.Kletnieks@vt.edu Tue Jun 20 19:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1109D3B0357 for ; Tue, 20 Jun 2006 19:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24750-03 for ; Tue, 20 Jun 2006 19:43:33 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id C354B3B02B8 for ; Tue, 20 Jun 2006 19:43:32 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KNhQN3004405; Tue, 20 Jun 2006 19:43:26 -0400 Message-Id: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Wed, 21 Jun 2006 00:41:31 +0200." <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150847006_3852P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 19:43:26 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.404 tagged_above=-999 required=2 tests=[AWL=-0.150, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_IB=0.077] X-Spam-Score: -1.404 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 23:43:38 -0000 --==_Exmh_1150847006_3852P Content-Type: text/plain; charset=us-ascii On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > I did some oprofiling, however I don't have a vmlinz-file handy so its > quite a bit useless: > 5558 39.2930 no-vmlinux Bummer. With a system time *that* high, I'm wondering if there's something odd going on here... a vmlinux to help split that out would certainly help a lot in debugging here.. > 2116 14.9593 libfb.so > 1319 9.3248 nvidia_drv.so > 1031 7.2888 Xorg > 603 4.2630 libqt-mt.so.3.3.5 > 550 3.8883 libc-2.4.so > 470 3.3227 libgobject-2.0.so.0.800.5 Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a generic GTK issue, not gftp, unless the 3 other apps I tested did the same wrong thing with it.. ;) samples % image name app name symbol name 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process 5232 6.7536 libfb.so libfb.so (no symbols) 4834 6.2398 Xorg Xorg (no symbols) 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy 2172 2.8037 vmlinux vmlinux get_page_from_freelist 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock 1359 1.7542 nvidia nvidia (no symbols) 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup (or, done by shared library: 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 10538 13.6027 vmlinux 5594 7.2209 libc-2.4.90.so 5377 6.9408 libgobject-2.0.so.0.1102.1 5232 6.7536 libfb.so 4953 6.3934 Xorg 4784 6.1753 nvidia_drv.so 3933 5.0768 libpthread-2.4.90.so At least in my case, the top hog appears to be too much work done scaling theme pixmaps over and over, when they're likely to be invalidated by another resize before the scaling is completed.... You probably mentioned it before, but what GTK2 theme are you using? --==_Exmh_1150847006_3852P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmIgecC3lWbTT17ARAvXtAKDYfozX87Bk7LwUKWF75kNiCuBY2gCgp136 iJcjpeJlIWrhq/fYvfTtwEc= =x8rS -----END PGP SIGNATURE----- --==_Exmh_1150847006_3852P-- From nick.soffe@bioch.ox.ac.uk Wed Jun 21 04:41:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 68FAD3B0A36 for ; Wed, 21 Jun 2006 04:41:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-02 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from relay0.mail.ox.ac.uk (relay0.mail.ox.ac.uk [129.67.1.161]) by menubar.gnome.org (Postfix) with ESMTP id 910DE3B07B7 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from smtp1.herald.ox.ac.uk ([163.1.0.247]) by relay0.mail.ox.ac.uk with esmtp (Exim 4.62) (envelope-from ) id 1FsyHA-0005TT-2r for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Received: from nmrpc.bioch.ox.ac.uk ([129.67.77.14]) by smtp1.herald.ox.ac.uk with esmtp (Exim 3.36 #1) id 1FsyHA-0000gW-01 for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Date: Wed, 21 Jun 2006 09:39:16 +0100 (GMT Daylight Time) From: Nick Soffe To: Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Message-ID: X-X-Sender: bioc0391@imap228.herald.ox.ac.uk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 08:41:32 -0000 On Tue, 20 Jun 2006, Clemens Eisserer wrote: > Hi there, > > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Clemens, I don't know if this has any relevance now, but I experienced similar poor performance a while ago with a machine who's configuration was very similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the Nvidia binary driver current at the time (a couple of years ago). The driver worked well for 3d applications (glxgears gave much higher fps) but seemed to devastate the 2d performance particularly with GTK2 applications. Changing back to the open source 'nv' driver seemed to work much better. I never knew whether the problem was hardware or software related and eventually swapped the graphics card for an inexpensive radeon using the OS 'radeon' driver. This combination worked much better for me so I never investigated further. Nick From linuxhippy@gmail.com Wed Jun 21 07:44:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 173903B0F80 for ; Wed, 21 Jun 2006 07:44:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01010-04 for ; Wed, 21 Jun 2006 07:44:13 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id AFCBC3B0EEF for ; Wed, 21 Jun 2006 07:44:12 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so800375hud for ; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.51.9 with SMTP id y9mr3301492huy; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Message-ID: <194f62550606210444r79f41268xebc6eb2a75e46f20@mail.gmail.com> Date: Wed, 21 Jun 2006 13:44:10 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.735 tagged_above=-999 required=2 tests=[AWL=-0.693, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.735 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 11:44:14 -0000 Hello Nick, > I don't know if this has any relevance now, but I experienced similar poor > performance a while ago with a machine who's configuration was very > similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the > Nvidia binary driver current at the time (a couple of years ago). Definitivly could be ... all my systems are equiped with NVidia cards (GF488Go, FX5200, GF6600) and I am using the nvidia binary driver on all of my systems. However throwing their closed-source beast away is not an option for me, from time to time I play 3d games or enjoy opengl/shader development for fun. Many others also use the nvidia driver, maybe theres a way it could be solved? It really could be this combination, maybe it could be worked arround (if easy) or someone could file a bugreport at nvidia, however I guess they would like to see specific claims. Does anybody know a better way for profiling X/X requests than oprofile? Thanks a lot for reading, lg Clemens From linuxhippy@gmail.com Wed Jun 21 08:04:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D3E753B090F for ; Wed, 21 Jun 2006 08:04:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02496-05 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id 28A553B0992 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so855999hue for ; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.26.9 with SMTP id 9mr3210819huz; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Message-ID: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> Date: Wed, 21 Jun 2006 14:04:21 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.395 tagged_above=-999 required=2 tests=[AWL=-0.661, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_BF=0.077, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -1.395 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 12:04:27 -0000 Hello Valdis, Thanks again for taking all the time :-) You were right, novell installed by default a gtk-qt-engine package, that was also the reason why I was not able to get rid of "this one and only theme". Now I am using the default theme and its _way_ better, I see about twice as much refreshed when moving gftp's vertical splitter, the horizontal are still very slow. gtk-demo still shows a much higher expose-lag than even konqueror which its much more complex (and skinned) default interface. > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. Great, SuSe (unlike fedora) stores an compressed vmlinux directly in /boot. 4676 19.7391 libfb.so (no symbols) 3647 15.3953 vmlinux-copy default_idle 2445 10.3212 nvidia_drv.so _nv000805X 2031 8.5736 vmlinux-copy get_page_from_freelist 1817 7.6702 Xorg (no symbols) 1130 4.7701 libcairo.so.2.2.3 (no symbols) 888 3.7486 libgobject-2.0.so.0.800.5 (no symbols) 699 2.9507 libpango-1.0.so.0.1001.1 (no symbols) 659 2.7819 libgdk-x11-2.0.so.0.800.10 (no symbols) 638 2.6932 libglib-2.0.so.0.800.5 (no symbols) 482 2.0347 nvidia_drv.so _nv000194X 331 1.3973 libgtk-x11-2.0.so.0.800.10 (no symbols) 315 1.3297 libc-2.4.so _int_malloc 309 1.3044 nvidia (no symbols) This profile looks _very_ strange for me. For what is libfb good ... I am quite sure I am using the binary nvidia driver. A lot if time is "wasted" allocating memory and a lot of time goes to the nvidia drivers doing something. Is there a way to get something like call-graphs out of oprofile, maybe this would illustrate which functions call into _nv000805X or libfb. When moving gftps splitters I still see X (with the default theme) eating cpu-time at about 65% and gftp at about 33%. > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... Just because of interrest couldn't cairo be used for scaling with a fast path through XRender? Does XRender supports scaling of images? Thanks again, lg Clemens From jcupitt@gmail.com Wed Jun 21 09:07:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DF073B0F19 for ; Wed, 21 Jun 2006 09:07:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07105-09 for ; Wed, 21 Jun 2006 09:07:36 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id CE1593B0FD4 for ; Wed, 21 Jun 2006 09:07:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so128046wxc for ; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.78.5 with SMTP id a5mr1084728wxb; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Message-ID: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> Date: Wed, 21 Jun 2006 14:07:35 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.441 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:07:39 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From jcupitt@gmail.com Wed Jun 21 09:22:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941143B0FAC for ; Wed, 21 Jun 2006 09:22:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08193-05 for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 7AF683B0FCF for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so130171wxc for ; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.18.10 with SMTP id 10mr1106184wxr; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Message-ID: <522c6460606210621u56e6c915u4db618c4c3de2cc0@mail.gmail.com> Date: Wed, 21 Jun 2006 14:21:54 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.437 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.437 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:22:00 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From paul@linuxaudiosystems.com Wed Jun 21 09:30:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 524143B0FAC for ; Wed, 21 Jun 2006 09:30:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08899-09 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 6ED913B0FE0 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J17000M8PHWT1L4@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 08:29:57 -0500 (CDT) Date: Tue, 20 Jun 2006 21:00:15 -0400 From: Paul Davis Subject: Re: Scrolling performance In-reply-to: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> To: Valdis.Kletnieks@vt.edu Message-id: <1150851615.8703.171.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.931 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247] X-Spam-Score: -1.931 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:30:03 -0000 On Tue, 2006-06-20 at 19:43 -0400, Valdis.Kletnieks@vt.edu wrote: > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) i talked for a little while with tim janik at LAC2006 this year about this very issue. GTK1's pane widget used the standard draw-with-XOR to indicate the new position of the divider, and the resize didn't occur till mouse release. GTK2, for some unknown reason, abandoned that approach and instead keeps issuing resize events as the mouse moves. its completely and totally braindead as the default behaviour, although i would concede that there are situations where it would be nice to have this available. in ardour, dragging panes around like this causes a more or less complete redraw of our monster canvas widget, which causes absurdly slow and ugly visuals while doing it. i've looked at rewriting GtkPaned to use the old behaviour by default, but it was just too much work for me to get into at the time i was looking into it. --p From linuxhippy@gmail.com Wed Jun 21 10:12:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E2C53B0F79 for ; Wed, 21 Jun 2006 10:12:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11455-01 for ; Wed, 21 Jun 2006 10:12:43 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 024343B0954 for ; Wed, 21 Jun 2006 10:12:42 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so3546903uge for ; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.17.1 with SMTP id 1mr3355654huq; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Message-ID: <194f62550606210712n52adc4fbu66cc223ceec68c87@mail.gmail.com> Date: Wed, 21 Jun 2006 16:12:41 +0200 From: "Clemens Eisserer" To: paul@linuxaudiosystems.com, gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <1150851615.8703.171.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <1150851615.8703.171.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:12:47 -0000 Hello Paul, > GTK2, for some unknown reason, abandoned that > approach and instead keeps issuing resize events as the mouse moves. its > completely and totally braindead as the default behaviour, although i > would concede that there are situations where it would be nice to have > this available. Yes I know, older toolkits used to solve it this way. However most modern toolkits resize the content as soon as the slider is moved and are able to cope with it better than GTK (at least on my machine), e.g. moving the panes of k3b (a KDE based cdrecord frontend, qt: skinned, gtk: default theme) is smooth whereas gftp's panes always give an impression of beeing behind the cursor and showing visual ugliness. However this could also be caused by the nvidia driver, I don't know :-/ Maybe I can create a small video of both programs and upload it somewhere.... lg Clemens From M.Kahn@Astronautics.com Wed Jun 21 10:21:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EA683B106A for ; Wed, 21 Jun 2006 10:21:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11945-10 for ; Wed, 21 Jun 2006 10:21:48 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id D14463B1034 for ; Wed, 21 Jun 2006 10:21:47 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6953D.FE391C43" Subject: GTK Performance on Athlon Date: Wed, 21 Jun 2006 09:21:31 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: GTK Performance on Athlon Thread-Index: AcaVPf3m6pVD3d/ISkecaOL4KsmRdA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.3 tagged_above=-999 required=2 tests=[AWL=-1.116, BAYES_40=-0.185, HTML_MESSAGE=0.001] X-Spam-Score: -1.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:21:51 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. The system clock took off at warp speed (about three times normal speed). When I emailed SuSE, they told me that the BIOS does not provide a solid real-time clock interrupt. (One side-effect of the warp speed system clock was I could not "double click" on anything.) They felt that they may have a fix for this problem in SUSE 10.0. It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance. I really hope this isn't your problem. =20 BTW - I have since returned to using my old 1.7 GHz PC (assembled myself) to run Linux. I won't be taking any chances on the Athlon in the future; that's just too much money to spend on a machine that doesn't play nicely with my preferred flavor of Linux. =20 Michael Kahn =20 ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A few months ago, I bought an HP Athlon PC and = installed SuSE 9.2.  The system clock took off at warp speed (about three = times normal speed).  When I emailed SuSE, they told me that the BIOS = does not provide a solid real-time clock interrupt.  (One side-effect of the = warp speed system clock was I could not “double click” on = anything.)  They felt that they may have a fix for this problem in SUSE 10.0.  = It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance.  I really hope this isn’t your = problem.

 

BTW – I have since returned to using my old 1.7 = GHz PC (assembled myself) to run Linux.  I won’t be taking any = chances on the Athlon in the future; that’s just too much money to spend on a machine that doesn’t play nicely with my preferred flavor of = Linux.

 

  Michael Kahn

 

------_=_NextPart_001_01C6953D.FE391C43-- From paul@linuxaudiosystems.com Wed Jun 21 10:46:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4A2C3B1091 for ; Wed, 21 Jun 2006 10:46:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13938-01 for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 328253B105D for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1700ETJSZ4L7UG@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 09:45:05 -0500 (CDT) Date: Wed, 21 Jun 2006 10:45:33 -0400 From: Paul Davis Subject: Re: GTK Performance on Athlon In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150901133.10221.2.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:46:47 -0000 On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > The system clock took off at warp speed (about three times normal > speed). When I emailed SuSE, they told me that the BIOS does not > provide a solid real-time clock interrupt. (One side-effect of the > warp speed system clock was I could not 鈥渄ouble click鈥 on anything.) > They felt that they may have a fix for this problem in SUSE 10.0. It > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > your GTK performance. I really hope this isn鈥檛 your problem. it sounds quite likely that you have been the victim of some slightly uninformed customer support. was this a dual core Athlon? From Valdis.Kletnieks@vt.edu Wed Jun 21 11:42:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D6F313B0F95 for ; Wed, 21 Jun 2006 11:42:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17781-01 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 381A23B1012 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5LFgNYf004294; Wed, 21 Jun 2006 11:42:24 -0400 Message-Id: <200606211542.k5LFgNYf004294@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: paul@linuxaudiosystems.com Subject: Re: GTK Performance on Athlon In-Reply-To: Your message of "Wed, 21 Jun 2006 10:45:33 EDT." <1150901133.10221.2.camel@localhost.localdomain> From: Valdis.Kletnieks@vt.edu References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> <1150901133.10221.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150904543_3088P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 21 Jun 2006 11:42:23 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.583 tagged_above=-999 required=2 tests=[AWL=0.056, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.583 X-Spam-Level: Cc: gtk-list@gnome.org, Michael Kahn X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 15:42:31 -0000 --==_Exmh_1150904543_3088P Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 21 Jun 2006 10:45:33 EDT, Paul Davis said: > On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > > The system clock took off at warp speed (about three times normal > > speed). When I emailed SuSE, they told me that the BIOS does not > > provide a solid real-time clock interrupt. (One side-effect of the > > warp speed system clock was I could not =E2=80=9Cdouble click=E2=80= =9D on anything.) > > They felt that they may have a fix for this problem in SUSE 10.0. It= > > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > > your GTK performance. I really hope this isn=E2=80=99t your problem.= >=20 > it sounds quite likely that you have been the victim of some slightly > uninformed customer support. was this a dual core Athlon? No, the =22turbo clock ticks=22 problem is a very real issue on certain A= thlon motherboards. There's been several long threads about it on the linux-ke= rnel mailing list, and I believe it's fixed in 2.6.16 or 2.6.17 or so (althoug= h I'd have to go back and check, I wasn't paying much attention because I d= on't have an Athlon). SUSE may well have backported the fix into whatever ker= nel they're shipping with 10.0. And a screaming clock *can* bork double-clicks - imagine where you need t= o get in 2 clicks in under 250 milliseconds, but the system ticks off what it t= hinks is 250ms in only 75ms. And your mouse won't double-click faster than 80m= s. ;) --==_Exmh_1150904543_3088P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmWjfcC3lWbTT17ARAl0OAKCdWN5CkoY/7CUNUYAB9THaAsKlFgCbBk+e PUDaJiUXtpFfp14/cFuJQes= =hmFE -----END PGP SIGNATURE----- --==_Exmh_1150904543_3088P-- From chris@cvine.freeserve.co.uk Wed Jun 21 19:26:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525373B00CF for ; Wed, 21 Jun 2006 19:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12592-06 for ; Wed, 21 Jun 2006 19:26:48 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 2D0E93B009B for ; Wed, 21 Jun 2006 19:26:47 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id 004B21C00083; Thu, 22 Jun 2006 01:26:46 +0200 (CEST) Received: from boulder.homenet (user-2086.l1.c4.dsl.pol.co.uk [81.79.136.38]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id C5F531C00082; Thu, 22 Jun 2006 01:26:45 +0200 (CEST) X-ME-UUID: 20060621232645810.C5F531C00082@mwinf3106.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5LNRE68002592; Thu, 22 Jun 2006 00:27:14 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: proggressbar.. Date: Thu, 22 Jun 2006 00:27:13 +0100 User-Agent: KMail/1.9.1 References: <4497B5B8.1080000@sasken.com> In-Reply-To: <4497B5B8.1080000@sasken.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.989 tagged_above=-999 required=2 tests=[AWL=-1.325, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -0.989 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 23:26:49 -0000 On Tuesday 20 June 2006 09:45, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged > information. In case you are not the original intended Recipient of the > message, you must not, directly or indirectly, use, Disclose, distribute, > print, or copy any part of this message and you are requested to delete it > and inform the sender. Any views expressed in this message are those of the > individual sender unless otherwise stated. Nothing contained in this > message shall be construed as an offer or acceptance of any offer by Sasken > Communication Technologies Limited ("Sasken") unless sent with that express > intent and with due authority of Sasken. Sasken has taken enough > precautions to prevent the spread of viruses. However the company accepts > no liability for any damage caused by any virus transmitted by this email It is reasonably straightforward, but I think your disclaimer prevents me from answering your question. Chris From mclasen@redhat.com Wed Jun 21 23:10:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA4213B0172; Wed, 21 Jun 2006 23:10:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23030-07; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 63BA23B0008; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AclX021506; Wed, 21 Jun 2006 23:10:38 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AcnM019751; Wed, 21 Jun 2006 23:10:38 -0400 Received: from [172.16.83.158] (vpn83-158.boston.redhat.com [172.16.83.158]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5M3AciB004961; Wed, 21 Jun 2006 23:10:38 -0400 Subject: GTK+ 2.9.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Organization: Red Hat Date: Wed, 21 Jun 2006 23:12:41 -0400 Message-Id: <1150945961.4457.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.3 (2.7.3-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:10:42 -0000 GTK+ 2.9.4 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.4.tar.bz2 md5sum: c06cf2cfa66485600d90789c9e58f27c gtk+-2.9.4.tar.gz md5sum: e3fefedc7f1a89b66c71c9967168a857 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are finalized by now. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.3 to 2.9.4 ============================================ * GtkPrintOperation: - UI improvements in the print dialog - Make printing work without a display connection - Replace "Print to PDF" by "Print to file" that can generate PDF or PostScript - Add a function to the low-level API to enumerate all printers * GtkNotebook tab DND has been improved * GtkProgressbar supports text in activity mode * GtkLabel allows to set the wrap mode * GtkStatusIcon supports transparency * Bugs fixed: 344850 Dragging a GtkTreeViewColumn segfaults when using certain GtkTreeViewColumnDropFunc 342458 Stock menu items without icons are broken in recent GTK+ releases. 335873 notebook DND + popup windows 337882 gtk_progress_bar_set_text() does nothing in activity mode 339456 unix print dialogue help button bug 339702 Make sure printing works without a display 341571 tabs too easily reordered 344074 New Feature: get printer list, and get default print 344743 gtk_targets_include_text() should initialize atoms 344838 Allow func to be NULL in gtk_tree_view_set_search_position_func 344891 GtkPrintOperationPreview signal defs correction 345008 Need updated cairo req 345093 print preview temp file issues 345107 Memory leak in gtk_entry_completion_finalize: User data not freed 345194 gdk_window_set_functions() docs need to be updated 345456 grid-lines property is wrongly registered and get/set. 314278 strings in gtk-update-icon-cache are not marked for translation 344707 size group with widgets in hidden container 344897 Entry completion model NULL handling should be documented 345038 gtk_print_job_set_status' status 345106 dialog button box spacings 345176 GtkIconView doc about drag and drop 345275 doc imporovements for gtk_window_move 345320 Two very similiar strings should be made equal 345321 Add meaning of "shortcut" as translator comment 320034 transparency gtkstatusicon 339592 Add print-to-postscript 344867 custom paper file could use keyfile * Updated translations (cs,de,es,fr,gl,gu,hi,ko,ta,th) A list of all bugs fixed in this release can be found at http://bugzilla.gnome.org/buglist.cgi?bug_id=344838,344743,344867,344891,345008,341571,345038,337882,345093,344707,339456,345107,345275,339702,344074,345320,345321,344897,314278,320034,344850,345194,345176,345106,335873,342458,339592,345456 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Christian Persch, John Finlay, Federico Mena Quintero, Michael Emmel, Marko Anastasov, Bastien Nocera, Carlos Garnacho, Yevgen Muntyan, Tommi Komulainen, Tim Janik, Christian Weiske, Behdad Esfahbod, Alexander Larsson, Felipe Heidrich, Hendrik Richter, Claudio Saavedra, Dan Winship, Callum McKenzie, John Palmieri, Murray Cumming, Kristian Rietveld June 21, 2006 Matthias Clasen From lists@nabble.com Wed Jun 21 23:29:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CB3B03DC for ; Wed, 21 Jun 2006 23:29:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24140-01 for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1411D3B026B for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FtFsh-0000bD-BH for gtk-list@gnome.org; Wed, 21 Jun 2006 20:29:23 -0700 Message-ID: <4986548.post@talk.nabble.com> Date: Wed, 21 Jun 2006 20:29:23 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: cannot draw lines in a GtkDrawingArea widget MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.82 tagged_above=-999 required=2 tests=[AWL=-0.708, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.82 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:29:25 -0000 Hi all, I need to draw some lines in a GtkDrawingArea widget, and I use the following code: GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. 10,//the x coordinate of the start point 30,//the y coordinate of the start point 580,//the x coordinate of the end point 30 //the y coordinate of the start point ); it does not work! Anybody knows why? Thanks!! -- View this message in context: http://www.nabble.com/cannot-draw-lines-in-a-GtkDrawingArea-widget-t1827981.html#a4986548 Sent from the Gtk+ - General forum at Nabble.com. From yogesh.ar@gmail.com Thu Jun 22 01:09:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0E443B03C9 for ; Thu, 22 Jun 2006 01:09:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29017-09 for ; Thu, 22 Jun 2006 01:09:41 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id C40353B0098 for ; Thu, 22 Jun 2006 01:09:40 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so202391pyf for ; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.34.18 with SMTP id m18mr649285pyj; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:09:39 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 10:39:39 +0530 From: "Yogesh Arora" To: gtk-list@gnome.org Subject: auromatic scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.382 tagged_above=-999 required=2 tests=[AWL=0.218, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.382 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:09:48 -0000 I have a TextView inside a scroll window. I want to create an animation effect in which TextView scrolls automatically I know there is set_value function in Range class. But for calling that function i will always have to calculate the value. There should be some funtion such as step_increment page_increment can called for step or page_increment From yogesh.ar@gmail.com Thu Jun 22 01:38:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59EBA3B035E for ; Thu, 22 Jun 2006 01:38:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30733-08 for ; Thu, 22 Jun 2006 01:38:31 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id BFA423B0008 for ; Thu, 22 Jun 2006 01:38:30 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id t32so201085pyc for ; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.91.15 with SMTP id t15mr679056pyl; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:38:29 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 11:08:29 +0530 From: "Yogesh Arora" To: "Chris Vine" Subject: Re: proggressbar.. In-Reply-To: <200606220027.13878.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.391 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.391 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:38:32 -0000 is that just due to tall claims he is making...or has it got something to do with india On 6/22/06, Chris Vine wrote: > On Tuesday 20 June 2006 09:45, Kalli Math wrote: > > how to design a progressbar, and add to my application window? > > > > with regards, > > Prashanth km > > > > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > > > SASKEN BUSINESS DISCLAIMER > > This message may contain confidential, proprietary or legally Privileged > > information. In case you are not the original intended Recipient of the > > message, you must not, directly or indirectly, use, Disclose, distribute, > > print, or copy any part of this message and you are requested to delete it > > and inform the sender. Any views expressed in this message are those of the > > individual sender unless otherwise stated. Nothing contained in this > > message shall be construed as an offer or acceptance of any offer by Sasken > > Communication Technologies Limited ("Sasken") unless sent with that express > > intent and with due authority of Sasken. Sasken has taken enough > > precautions to prevent the spread of viruses. However the company accepts > > no liability for any damage caused by any virus transmitted by this email > > It is reasonably straightforward, but I think your disclaimer prevents me from > answering your question. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Thanks Yogesh Dont be intimidated by impossibillity.... be motivated by possibillity! From yeti@physics.muni.cz Thu Jun 22 02:37:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 938243B021B for ; Thu, 22 Jun 2006 02:37:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01472-04 for ; Thu, 22 Jun 2006 02:37:42 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 81A8C3B0234 for ; Thu, 22 Jun 2006 02:37:41 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5M6bdQI030282 for ; Thu, 22 Jun 2006 08:37:40 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 6499123CE9; Thu, 22 Jun 2006 08:37:39 +0200 (CEST) Date: Thu, 22 Jun 2006 08:37:39 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: cannot draw lines in a GtkDrawingArea widget Message-ID: <20060622063739.GM30886@potato.chello.upc.cz> References: <4986548.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4986548.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 06:37:44 -0000 On Wed, Jun 21, 2006 at 08:29:23PM -0700, heavenscape wrote: > > I need to draw some lines in a GtkDrawingArea widget, and I use the > following code: > > GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); > gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow > w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. > 10,//the x coordinate of the start point > 30,//the y coordinate of the start point > 580,//the x coordinate of the end point > 30 //the y coordinate of the start point > ); > > it does not work! Anybody knows why? .From the use of lookup_widget() I assume you don't draw in expose event handler (where you get the widget as function argument and do not have to look it up). Draw in the expose handler -- can you see the lines now? Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Thu Jun 22 07:55:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EB213B0086 for ; Thu, 22 Jun 2006 07:55:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21594-10 for ; Thu, 22 Jun 2006 07:55:40 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id 10CEC3B042E for ; Thu, 22 Jun 2006 07:55:39 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id EB5F427105B; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from poczta.interia.pl (f34.poczta.interia.pl [10.217.2.34]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 8C873271069 for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 8D01125049D; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 3F0DE25049A for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Date: 22 Jun 2006 13:55:30 +0200 From: hm Subject: Two buttons, two images and switching between them To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060622115530.3F0DE25049A@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.765 tagged_above=-999 required=2 tests=[AWL=0.223, BAYES_00=-2.599, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: -0.765 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 11:55:41 -0000 =0AHi !=0A=0A I`ve got a problem : I have window, with two buttons inside= . I`ve got two GtkImage`s, and on a beginning of the program, i`m ( setting= gtk_button_set_image () ) these images to be button`s "icons". =0AI want t= o make a signal function, that handles clicking on both of these buttons. O= n click it should switch images between the buttons. For example i`ve got i= con1, icon2, button1 and button2. =0Abutton1 -> icon1=0Abutton2 -> icon2 ( = icon2 is set to be an icon for button2 )=0A=0Anow.. i`ve got a signal, that= button1 is pressed. So i want now, to have situation :=0A=0Abutton1 -> ico= n2=0Abutton2 -> icon1=0A=0A When I try again to do gtk_button_set_image ( b= utton1, icon2 ) and gtk_button_set_image ( button2, icon1 ) it doesn`t work= propertly ( button1 has icon2 , but button2 has no icon ). I suppose it is= so because of button1 is now "parrent" ( or owner ) of both icons ???? I= `m not quiet sure. I would be appreciate for any clue how to do this. Maybe= there is any method to release icon from being button`s child ? Uhh.. it i= s little twisted :) From betsy.vyce@ctg.com Wed Jun 21 12:39:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 10E193B108D for ; Wed, 21 Jun 2006 12:39:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21747-06 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from smtp.ctg.com (smtp-out.ctg.com [206.201.124.158]) by menubar.gnome.org (Postfix) with ESMTP id 6BC553B1035 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from netmail.ctg.com (netmail.ctg.com [205.142.112.242]) by smtp.ctg.com (Symantec Mail Security) with ESMTP id 4762810CF for ; Wed, 21 Jun 2006 12:39:30 -0400 (EDT) Received: from BUF-EXC1.ctg.com ([205.142.112.13]) by netmail.ctg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 12:39:29 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C69551.44546463"; type="multipart/alternative" Subject: Linux Accessibility Project Date: Wed, 21 Jun 2006 12:39:28 -0400 Message-ID: <46A68DDC98C6464DBB54D968081874CF021EAFD2@BUF-EXC1.ctg.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: Linux Accessibility Project Thread-Index: AcaVUUPWid50p5tHQK+nedj3OL/r1A== From: "Betsy Vyce" To: X-OriginalArrivalTime: 21 Jun 2006 16:39:29.0956 (UTC) FILETIME=[446D9640:01C69551] X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.093 tagged_above=-999 required=2 tests=[BAYES_50=0.001, EXTRA_MPART_TYPE=1.091, HTML_MESSAGE=0.001] X-Spam-Score: 1.093 X-Spam-Level: * X-Mailman-Approved-At: Thu, 22 Jun 2006 11:45:55 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 16:39:38 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C69551.44546463 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C69551.44546463" ------_=_NextPart_002_01C69551.44546463 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Our client, IBM, currently has an immediate opening for candidates with=0D= =0A Internals knowledge of GTK and "GTK custom widget", "Bonobo", AT-SPI",=0D= =0A "ATK", and/or "Accessibility" skills. In general, we are seeking=0D=0A someone with deeper GTK knowledge. The project involves working on=0D=0A solving a set of bugs in the Gnome desktop which can be viewed at the=0D=0A following link:=0D=0A =0D=0A =0D=0A =0D=0A http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.html=0D=0A =0D=0A =0D=0A =0D=0A Candidates MUST have Linux experience. We are looking for someone who=0D= =0A can add new functionality after debugging an issue rather than just a=0D=0A debugger, so we need someone with significant development and/or design=0D= =0A skills.=0D=0A =0D=0A =0D=0A =0D=0A Candidates can work from any location in the U.S. as long as they can=0D=0A work at an IBM facility. If they can be in Austin, TX, then all the=0D=0A better.=0D=0A =0D=0A =0D=0A =0D=0A If anyone is interested in being considered for this opportunity, please=0D= =0A reply to this email with a copy of your resume at your earliest=0D=0A convenience.=0D=0A =0D=0A =0D=0A =0D=0A Regards,=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Betsy Vyce=0D=0A Senior Recruiter, Austin Team=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Tel: 877-222-0688 (Toll Free)=0D=0A =0D=0A Home Office: 303-339-0928=0D=0A =0D=0A Fax: 303-814-1735=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A ------_=_NextPart_002_01C69551.44546463 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0D=0A =0D=0A =0D=0A =0D=0A =0D= =0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A
=0D=0A =0D=0A

Our client, IBM, currently has an immediate opening fo= r=0D=0A candidates with Internals knowledge of GTK and “GTK custom widget&#= 8221;,=0D=0A “Bonobo”, AT-SPI”, “ATK”, and/or “Acc= essibility”=0D=0A skills.  In general, we are seeking someone with deeper GTK knowledg= e.  The=0D=0A project involves working on solving a set of bugs in the Gnome desktop wh= ich=0D=0A can be viewed at the following link:

=0D=0A =0D=0A

 

=0D=0A =0D=0A

http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.ht= ml

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates MUST have Linux experience.  We are lo= oking for=0D=0A someone who can add new functionality after debugging an issue rather tha= n just=0D=0A a debugger, so we need someone with significant development and/or design= =0D=0A skills.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates can work from any location in the U.S. = as long as=0D=0A they can work at an IBM facility.  If they can be in Austin, TX,=0D=0A then all the better.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

If anyone is interested in being considered for this=0D= =0A opportunity, please reply to this email with a copy of your resume at you= r=0D=0A earliest convenience.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Regards,

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A

Betsy Vyce
=0D=0A Senior Re= cruiter,=0D=0A Austin Team

=0D= =0A =0D=0A

=

=0D=0A =0D=0A

 = =

=0D=0A =0D=0A

= Tel: =0D=0A 877-222-0688 (Toll Free)

=0D=0A =0D=0A

= Home=0D=0A Office:  303-339-0928

=0D=0A =0D=0A

= Fax: =0D=0A 303-814-1735

=0D=0A =0D=0A
=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A =0D=0A =0D=0A ------_=_NextPart_002_01C69551.44546463-- ------_=_NextPart_001_01C69551.44546463 Content-Type: image/gif; name="image001.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Description: image001.gif Content-Location: image001.gif R0lGODlhvQBrAPcAAFqmjVmqk7XYzjqSdsHe1ZPFtdyhJMrc05TIukqegp/EtJW+rXG2o47Gtvbo yc3k3dXo4mOkja3VyUyji6TQxODu6un08cni2j2cgezLh9Ho4eCrPEKWem61obzVyuvHffv05C+P cOLw7DKWeua6X/nv2t7u6r3d1EZKizKRcsbi2rja0X29q6DOwVapkYfBse/TmHa5pmCtl3q7qUGe g4G/rd3t6WWwm7rc0mmznjU5gZ7NwJzMvlGmjpnLvEWghvj8+6vUyYnDsuS2VcTh2fT6+DaYfMPg 2Dqaf7LYzajTxpHHt4PArrba0C6Ud+OzTv///4C7p+z18qrRxT6XerLVylGih8Xg13i3otnq5fj7 +p/LvYvBr/v9/FWkiuTx7e/39PP597raz9zs5zuVeDeTdZfHt2WslVKcg5DDsoS9qsjJ3Gmul67U x9Dm36PNv1adhZrJutXj3Ie/rdfX5kKafUabf+jy73CynVldmHS0n12oj6bPwmxvpO3t9PT0+HSt mE6ghXmvm4Gyn/v8/LLOwr3c0mVon8/Q4eLi7Z+hwyyOb+729Hy4pfD39fT39bK0z11hmn+Br3t9 rObm797e6unp8aqsyu/39cLYzujw672/1lZalpGTuvv7/UtPj4W1ovDw9qbIufj4+66wzcTG2qvK vMDC2GGqkm2wmoaIs/L49u3z7+z187W30d3o46Olxvb6+czN3+3285G7qrm71PD08dvb6PT5+IqM tnCqlWFknU5SkZWXvVJWk+Tt6NPU4/H49tjr5UBEiNns5s/n4I2PuGhroXR2qHBypm2plJiav3yw nMLg1/z9/Xi6p/3+/vr8/NDn4f3682inkKPGttnm4EqYf/3+/aepyC+UeMnj3Oby7v79+3d5qpye wY24p6rTyIm3pYKEsbbRxeDq5cba0Pj6+fz471SnkOjz8K/Nv5vMvvf7+uXy7vDXot+pNt3u6eKw Rs/g2Mrk3Ds/hPTfteGuQvrx36/Wy4zEtEehiNjr5uKxSiuNbf///yH5BAEAAP8ALAAAAAC9AGsA AAj/AP8JHEiwoMGDCBMqXMiwocOHECNKnEjR4JSLGDNq3Mixo8cpWiqKHEmypMl//lKqXMmypcuX MP1JOUmzpk2aMXPq3Dnzps+fQBfuHEp0Zc+gSJP6LMqUp9KnUEs2nQrzaNSrWBtS3crSatavYAdy HSszrNmwZLl6PctWadqta9vK/fmWaty5eHHWbXo3r9+Re/n+HXwyMNO+hBM7NFwUseLHCRkTdQy5 MkHJQylbtozZaUMVOBIyenGDARGGAdIVRMJis9S0CzgIZtjBiROELGzrdoJLYRAnEwba3pbVGdi0 aP6hma1w90EETnqs+ucsnO2FLZx0+IfBCfGB0Xbb/25xsEEPhLV3BzG4aoTuGSGvpvWgnPlBEbZx TLht8DrBJE40sdAMuklQkCO2pZPOBPs0Y1AXtglzkG0TTNCDbRUUZIQTCFCw4WnyjQWKQMsdltAK tn3BHX8EIUheQU7kgJoTLxiEoBBhYJJQeiwS5N8/GjihAoxOCEDAF7FkldMi1AwiCijKLMKSOAOV 2BhC+tgWjyOz2GZBQcE4wUN/Mi4EgRPRsLcbAweFx8CZEhIpnnEEqSCeNFjBFIICtvzziByv/GML IP7AMY8mBL0iBy0phUCLHIRYI8eklBYyQFkTiqdbMUQW9FtoC9mp44FOsOCOCPEVRKBuI/TnBDs7 2P9WBEKxMFLMj1C9hEag/ywQQkoRPPIPICMe9Is/A8jxDyFwpJRJQbpgahAE9BxBwLW2NQNEQT44 gQEjAmXXY0Ki2ujEEl0AsQoj2w4EjW03yLAfpz7yh4sTLhgUAAvQ/APhuG61NAArAnnAkin/vBIC IOsQtMAgzdL3zwEqDTIQOeD8qtmKCDGhKTYNEeEEGGqKhwFBDDjRr0C4/vNjt/QOhIR4J+TZUiED KcCSIP8Y7A/PVaY0wECFqBTBQKCotHEFDyTkiA/PvICnQ10MeRARTQigtQBxCiQMMQS1ckRBxIA9 EAFfFmQBD88sMWqIKw1ASM4sLQLIpT8TVGJyAhX/DexApijt2uAHtXQ03TABTaLQRKtEzUALCE74 5AK1pPg/Oieut0rP/mNOxQI9IltKG1P+V0uAEJT5S5dbyUGgj+D9LCsRGAURLo5JkaqNJFMUSysI tRIMQowMf1AspS/FEhyqx8TM5inBkYktmtgihybW0IK35P3lQxABu2Fg/ECtbKhbzQRlqRsD7Tr0 m25LEJTDbkoQ9MxuDRB0wm40qKNkS79oHEzIAT00nKN2QqsKQs41kAfYpgEUuIFtbDCQL9hGCDgQ V4YE4gLgSCAJMnBCAB7SrXNRgAZOABWFKFDCGAjEPTTYgQ+0IUKBUGA8K6hBy57iEmUMRBNScoku /wpSomo8AhBwSKIS4fAr200IAcLpERh+ZBsIBIEBL1DB1P6xvwZogAkxSIIGZvEQdXhPIK1wgguz 5KCBpEwKEnBC/Qaiw6ZN0Acd8IEGTPC/ltBiINVoCQdEQYjOCYQZyCJYQjIxOmnBCIosG5cON6gp 28Sng5oSQEEqYIJOmsAGayFCd5ygox2Wyj39CcCtNMUmm/UQUf+Yx8MUUIgA/kIXiyjHQB4hClbM TSG2wNtdODQQHORHGPmYmXf+EQvb7GAgAnDCDwTyg+hQ8B9dcsJ0BMINTcmAIErQTY1Yto/+XMgI /fmBMZ2Avn9IMByudIndTCEHYf1DDqZQhkpS0P9LgWgCFIdTSOQc6SNICmQblSSjy8Y1M4HkBmQD aSYBHBJNJJgtigXBhBNakI5xAUGNjHACBWA0TbiRpYn++KNCfDZMg/6jAyrABbiCxKIsuRCN/tGC bUQwEAlywyE7/EcznHCDgdzrNvyQ5kD+BS7brGAgcdRHPN8iCEKI4iUW89sw4yeQfznBfE4IA0FC KJ5r/uNMtqGhdh5SyRkIRIdOUKsTNCCQEu5Gk8ysJESjEphrEIIQKYCJNQZ6FwRscCBB6M4InmkQ DXTUCQx420AaQEMatLMhOIgBAzbLgBxMVCAVCIBtntEOgoiArB1QKFRH6VK+7iV15YDJIljRLIL/ mo4ze7nGsho5pUxw77abMUzD5rG9Ri3gANtLHnDlYphFLOAcjygEOHQxiGpoQhQhQAMoBDEA5S6X LZIZwCBMYY4DmAIUeKMuNQDh3e+apTO6AgQzrtFe94IlCvjNr373y9/++ve/URCrfQdM4AIb+MAI TrCCF8zgBjv4wRCOsIQnTOGsgOADHyhBhSuCDhKQAASP6cYGMgCDDYB4wwaxRz9gkJB3GMAAG3iC jGdM4xrb+MY4zrGObyyPIQjkAzHesZCHTOQiG/nINn6xAdCBkBLAwwAOeMw0NuAAfNxDwyguyAcM QAKFdGMalXEACYZgjywfBMxmTrOa18zmNrv5/81wjrOc50xnrPihzre9xSfwDBVFUOIfpaDDP+iA iF7c+RSV+Acw6GCMUfyjFon4hywSPZBSqGIZf1DEJ0jxBz90QhWwWAalBeIKVSjC0bVQxSUEIotT wKIToSBFJyLNZ4RMAhL/QAEy/nHrY9RiFMNQxT+SsYlIyMIP9ejEPyKBiIEAgxdrUIQnNuELQR8i F2v4xCX+MJBNcGINsPjHJfpAh0nk4h+kQEEvJoECRahiHLVGCCTGQQdv+OIfn7CEIoyxBkn4whPD +EMvFOEKSURiFCjwxEAmsYyB3CIPAkGBLP6RB1wP5BirFsguTjHoYfyj4IDuwz/WAPF4G8QSnP9Q xCWQUQpODDoSndjELkpxCEknQxJr4MQmvEGQPmTD4SXfRB4OsQtuDyQPtRgItP/hBx38AeRrEDnJ TX4QThwiEeNWNr4PEYpl9OEb//DEJw6ei2OQ4h+UaHYujAF0gWTjGEb/RyUEjYxwC6QPZ0cECj4u iZFLveRUJ4gxePGPROhgDQKZRCT+gQgdAEMgyUjGP06hgz/n4t6V+EQnrm6JemTjD6c4RB6GkXRk 1FzvvTiEHxDBi0tEAtdQ/3vgCxIKWtNB4Uz/syduLxBLWOIfo7iFQELxe6aXwvabCIXI/wGJXTD9 zv+wxCn+jHZIUDoUf/5DpP8w6tkjhROTgAX/J8DufcUAgxTNLr/618/+9rv//fCPv/znT//62//+ +B+MBS7wgDtkpRkFAAENgQsQcAUVsDsMEQZm0AhqcAHt8AYMKAAFMAYkIQUPcAF3sFcUAQRvEAe9 4xPcoAdlkBIpcAZtADKr4AZ04hBScAHt4xB3kAKL4AUriBAXkABSEgKBUAAzAQ1f0DQJsQUq0QiN oBIjiAUiIQVRQAYkuAdT0AUVMQUpYQY/EQZeQIIj6A920A6MkACBsDINsQVl8IURcQcjuAc1aBAi QAUpkYX+4Ab/gAUpoAcKsQf+EAdicAFHaAhi4A+NUBFagAqNkoV14AgVUQUpsQU/0QYpgQd3/7AK hhAFFwANfegFX6AO0KAFzsAIWTAdUlA2aeMIeOAPCVABPaEOY2CIEWUDYyAFQCAFbgANhoAFVvMP 6qABXsEFi2AHblAEGsAFb2CLduAPehASzsANWUAMvSMFCeAPDxAGFyAlb7AKsYAF9PAPWiACReAM FWADpSUQ2CACWVABuAAEY7BBGpASbPAFq0AAavBZ/wAGWZCKAhELIgANjEAM3FABaYKN3MCOcRAF PQENFZAF3/gPnFgBYPgPX+AGGvAFaWgQaZASeuA/A5EFQeQPeMAIVoAFdRACb1AATLgIZaCIRagS UfAPXDCCdoBXYtCM/jCGTMgHqVAHcyAQYv8Yk1VAEKlAihCwkGegEl9QBQDwKyFABU91kimRkf6w BXVQAP+ACimQCgCwCClgBTylBWfwK4tQB4HgD3UgEFeQEqlgkQSRBcOohTuZAHNIBSSZAmIgEGmQ AnZQBXZABVfwD9yACr8SCDz1Bmy4CHtAgUUgh0v5hwphCEZ4BnGgIlLABmDZCBeADXXgDyHgBQLg D4sAAEyYAhYgAM1YBtbIBylhhylQASIQWGcAmVqoBm5gBX74D1LAhACQAtc4EHGwlFbQgDg5ggkQ C6EJACwZDVXAhqkwB40gJXugBhXgD1zwDwCgEmx4h/9gBv5ABY2QlqhAhf9gA0FUBtvJU7L/2Yx4 YIchMAZMaJmBcIVIGA3NiAUXkBJ5KYghUAdeAIlkOYx78A9C6A+oEAV2gIQK4QxYwBJUUDPxyQYC AQRW4AUVUFpxIICZuQhgEwX+YAUCUZl48A/D+AaZ6Zn/YIf7+Q9f+YekGQjRkAUFAQZXqBKLkAYC AZspSQBm0BsF4A8pIFZBmSEV8Cs7iQ3O+Q+QyYtSwIZUeIUT5Qa/wgfuYqErQQWa9AYaKRDDWACw 6aDtwAXXGQ1ukBIE0KXO+AApwQV34H+C6AX/MJb+QAwWGgJw+A+quBAC4JHSiQvxeQYLupsDoQV8 EAWQeZ7/UIQYqg6BtQcFwIaNgIghAAEc/3mh0OAMMhqH/qAGCMENahAIKGUI/wCbiOkGBRAFdlgG vRGUFDgGv9IG/wAEQQqZCrqp/kCFdvgGWrACUhIHBSEGdJoSZCAFauAPhnqoGhmp/6ACKfEAQlgH QKCmGiCl/vBZuMCECfCpKbEC1nmdWNAG2zSAxZkSzSCmeJqqVoCYXwCb+0SBgvoPqckSbGABXrAI VJCFwcig/pCSQcmdCAEEEGCHk+qqf6gGTCmq/xCUYEMMp5qqq+oPeNoFsAmV+SCDaWkHKmIQsSAG lekPYjAHLcEGnCoQ0fCVUSCIlKqs/ZmX/7AKbqgSVXAHLUqWEXGShtCl38qgiDmRXkAPuf8ZAhR0 roTqD1hwBVdwAQLYBilQBnvQCJ8lrympB0G6EASQEn8ooxCgjhqAsWUwKwL7DwTrD6iqqs8ZlAm7 sP+AC7BpB2yQBhGLEL3qD1WgpfDps/QgDBsrENZJBSGwCBcgVCmhASMrELjAhqigAj+LgQJBAHEQ nWXAtGogDFoABDbQjIsgAvE5ojIrEAVKhYqasxcqEM34rXD4BYHFBlMgANckr3+YmwAgVNn6D22w BbEQDcHgpMFYon2ottUZkyFxtVm7tQf7tf4AlUKYAgUwBVeQujbABRCwuCLQojaAiN/6D00Tt/9g qilhBVDYDMWqpmbgCHkJmQkgEI5AgRD/AIQiEAIpsBBXuAgJYAVZSKljYJlz0AZAEAiIqaV2YAZf 6Q8waqEpMAcnwKxzEJ0CsApp2ShRgA1dUKLo+rn7KhCMMIJ1YAUVGwjgcoV10LQXWgCVuQhTEJX+ oKIY6Q8bzLUBi7D+8pVQOQVMSQWaKhCkib7q67T/EAbNiAr/q7YIPBCC2LuDK59a8JU66A8XQKz+ wAZR8K4iYIeoUABDuhBpMMD+QAZpsC1dUKD+EAi44AUp+Q8VcL9XGZtukJap8A8FkIUA8ABgIAYF sAUFkMMT5QUhkMVp8CtUwKQCYQFFvE94IJ5VMIIQkLbXCZu2ygYpUKplkAJbGwIwmgohjqCgXeDG tjoGcRCSXACt8XEBgZCRUNwuaKkSAOAGbpzFAiG0ZaCiaZoCKZCXxNCiVgCHU1CxKRAFIqAG6fnE G8wQ4TiOvfETvboIZvAG0QnEEHHL5KgUUhBYjTAFaTCCVtCP4CiOw0wQwpzLDmYCeGAHdVsGXqCI iVEFVrAIdVsHbACEcxbNkEHO+cdnAQEAOw== ------_=_NextPart_001_01C69551.44546463-- From linuxhippy@gmail.com Thu Jun 22 13:08:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CBBF3B03E5 for ; Thu, 22 Jun 2006 13:08:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11990-05 for ; Thu, 22 Jun 2006 13:08:30 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id D7CA73B0603 for ; Thu, 22 Jun 2006 13:08:29 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so579907uge for ; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr612924hue; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Message-ID: <194f62550606221008p61ceb686s5402452b96c8c6bb@mail.gmail.com> Date: Thu, 22 Jun 2006 19:08:29 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=-0.080, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 17:08:33 -0000 Hello again, Thanks a lot for sending your results of the 6200. It seems that (on my system) 35% of total cpu time are spent in software rendering related stuff (I guess _nv000805X is some kind of vram readback or upload function). When running gftp with the open-source "nv" driver performance feels way better (but not as ligthening fast as qt) as log as not-AA'ed fonts are used. So by identifying these problematic areas someone could send nvidia an bug-report for the missing XRender hookups/implementations. But I don't have any clue howto identify these :-/ Does anybody know a good technique/tools for finding out which calls to X are slow? Does running gftp in sync mode with some x protocoll analyzer make sence? Thank you in advance, lg Clemens 2006/6/21, John Cupitt : > > Good, glad that helped. There are fast and attractive gtk2 themes as > well: I use clearlooks myself. > > For what it's worth, if I maximise gftp and wiggle the vertical > splitter I see rather similar numbers to you. I have an nvidia 6200 > with driver 1.0-8762 and gtk2.8.18. > > 379387 69.5894 Xorg > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 143932 37.9380 libfb.so > 101881 26.8541 no-vmlinux > 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) > 26745 7.0495 Xorg > 6181 1.6292 libc-2.3.6.so > 1685 0.4441 libextmod.so > 116 0.0306 mouse_drv.so > 42 0.0111 libramdac.so > 1 2.6e-04 libm-2.3.6.so > 125293 22.9820 gftp-gtk > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 20136 16.0711 libpangoft2-1.0.so.0.1201.2 > 16493 13.1635 libcairo.so.2.2.4 > 15452 12.3327 libgobject-2.0.so.0.1000.3 > 13860 11.0621 libpango-1.0.so.0.1201.2 > 12485 9.9646 libc-2.3.6.so > 12299 9.8162 libgdk-x11-2.0.so.0.800.18 > 11823 9.4363 libglib-2.0.so.0.1000.3 > 4191 3.3450 libgtk-x11-2.0.so.0.800.18 > 4190 3.3442 libX11.so.6.2.0 > 2946 2.3513 libpthread-2.3.6.so > 2517 2.0089 no-vmlinux > 2171 1.7327 libpangocairo-1.0.so.0.1201.2 > 2087 1.6657 libXrender.so.1.3.0 > 1887 1.5061 libm-2.3.6.so > 1084 0.8652 libfreetype.so.6.3.8 > 956 0.7630 libclearlooks.so > 352 0.2809 pango-basic-fc.so > 323 0.2578 libgthread-2.0.so.0.1000.3 > 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 > 8 0.0064 ld-2.3.6.so > 3 0.0024 gftp-gtk > > John > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From oystein@gnubg.org Thu Jun 22 15:00:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 66FFE3B006D for ; Thu, 22 Jun 2006 15:00:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19184-03 for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 6F8D03B00BC for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J19009W9ZGSS260@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1900LMZZGRKNH7@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Date: Thu, 22 Jun 2006 21:00:24 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Main Loop, IO Channels and my CLI To: gtk-list@gnome.org Message-id: <449AE8C8.9030709@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig4D0040E48100B18213443258 X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:00:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D0040E48100B18213443258 Content-Type: multipart/mixed; boundary="------------030705090007050505050704" This is a multi-part message in MIME format. --------------030705090007050505050704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I've just made a small glib code that read commands from from a command line interface prompt. It uses g_main_loop and a g_io_channel. I've attached the code. First: It nearly works as expected. The callback is called each time I enter a command, and it's parsed to the command handler. However, I want to expand this to system to use automatic string completion, (the system provided in glib), for all available commands. Now it only handles command as I press enter. I guess I need a extra callback for each keypress. This callback can check if I press and then call g_completion_complete(), but how do I attach such a signal to the main lo= op? Then: Can this be a bug? It work fine unless I use a special scandinavian letter in my commands. Do I have to convert my string at any time? How? (I'm using win32 command prompt window) Example: myprompt> hello You typed: hello myprompt> =C6sop ** (gnubg.exe:3128): WARNING **: Something went wrong Invalid byte sequence in conversion input -=D8ystein --------------030705090007050505050704 Content-Type: text/plain; name="commandsystem.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="commandsystem.c" #include #include static void prompt(){ g_printf("myprompt> "); } static void handlecommand( gchar *sz ){ g_printf( "You typed: %s", sz ); prompt(); } static gboolean mycallback( GIOChannel *channel, GIOCondition cond, gpointer data) { gchar *str_return; gsize length, terminator_pos; GError *error = NULL; if( g_io_channel_read_line( channel, &str_return, &length, &terminator_pos, &error) == G_IO_STATUS_ERROR ) g_warning("Something went wrong"); if ( error != NULL ) { g_printf(error->message); exit(1); } handlecommand( str_return ); g_free( str_return ); return TRUE; } int main(int argc, char* argv[]) { GMainLoop *mainloop = g_main_loop_new( NULL, FALSE); #ifdef G_OS_WIN32 GIOChannel *channel = g_io_channel_win32_new_fd( STDIN_FILENO ); #else GIOChannel *channel = g_io_channel_unix_new( STDIN_FILENO ); #endif prompt(); g_io_add_watch( channel, G_IO_IN, mycallback, NULL ); g_main_loop_run(mainloop); return 0; } --------------030705090007050505050704-- --------------enig4D0040E48100B18213443258 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmujL6kDTFPhwyqYRAmO8AJ90ccVLei/Y2LKl4OmNPvFmCxc48QCbBpkZ DBHxKFHZ30sS+FdQ1vWycnk= =B070 -----END PGP SIGNATURE----- --------------enig4D0040E48100B18213443258-- From tristan.van.berkom@gmail.com Thu Jun 22 15:25:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87E353B0137 for ; Thu, 22 Jun 2006 15:25:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20656-05 for ; Thu, 22 Jun 2006 15:25:06 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id 0E8183B04F4 for ; Thu, 22 Jun 2006 15:25:05 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so586701nzh for ; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: by 10.65.182.16 with SMTP id j16mr3112039qbp; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: from ?66.48.170.242? ( [66.48.170.242]) by mx.gmail.com with ESMTP id q18sm1306507qbq.2006.06.22.12.25.03; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Message-ID: <449AF297.6070003@gnome.org> Date: Thu, 22 Jun 2006 15:42:15 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI References: <449AE8C8.9030709@gnubg.org> In-Reply-To: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.229 tagged_above=-999 required=2 tests=[AWL=0.371, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.229 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:25:07 -0000 貀stein Johansen wrote: >Hi, > >I've just made a small glib code that read commands from from a command >line interface prompt. It uses g_main_loop and a g_io_channel. I've >attached the code. > >First: >It nearly works as expected. The callback is called each time I enter a >command, and it's parsed to the command handler. However, I want to >expand this to system to use automatic string completion, (the system >provided in glib), for all available commands. Now it only handles >command as I press enter. I guess I need a extra callback for each >keypress. This callback can check if I press and then call >g_completion_complete(), but how do I attach such a signal to the main loop? > > > You need to get raw keyboard input from your terminal, in unix you can use tcsetattr(). >Then: >Can this be a bug? It work fine unless I use a special scandinavian >letter in my commands. Do I have to convert my string at any time? How? >(I'm using win32 command prompt window) > >Example: >myprompt> hello >You typed: hello >myprompt> 苨op > >** (gnubg.exe:3128): WARNING **: Something went wrong >Invalid byte sequence in conversion input > > > You might want to change the encoding on the io channel.. if you set it to NULL then it should work. Cheers, -Tristan From tml@iki.fi Thu Jun 22 15:29:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34F8A3B05BF for ; Thu, 22 Jun 2006 15:29:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21008-07 for ; Thu, 22 Jun 2006 15:29:06 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id F38B13B04A4 for ; Thu, 22 Jun 2006 15:29:05 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 636F315138F; Thu, 22 Jun 2006 22:29:02 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.61302.590000.98041@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:28:54 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.33 tagged_above=-999 required=2 tests=[AWL=0.134, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.33 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:29:09 -0000 =D8ystein Johansen writes: > (I'm using win32 command prompt window) And GIOChannel watches work? Wow, I'm amazed. Or actually, in the case of watches for GIOChannels associated with C file descriptors on Win32, GLib uses a separate thread that sits most of the time blocked waiting to read() from the file descriptor, so I guess indeed there is no reason why it wouldn't work for terminal input. > Invalid byte sequence in conversion input > Can this be a bug? It work fine unless I use a special scandinavian > letter in my commands. Do I have to convert my string at any time? > How? I think the input you get from a console window is typically in the so-called OEM code page of your Windows installation. You need to call the GetConsoleCP() function to find out the codepage of the console, and then form the encoding name as a string like "CP437", and tell the GIOChannel to use that encoding. Something like: char codepage[10]; ... sprintf (codepage, "CP%d", GetConsoleCP ()); ... g_io_channel_set_encoding (channel, codepage, &error); (Totally untested, tell us if it works ;) Otherwise GLib assumes the data is in UTF-8, and reading *lines* from a GIOChannel indeed requires it to know the actual encoding of the data, so it will complain when the data isn't proper UTF-8. --tml From tml@iki.fi Thu Jun 22 15:41:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46DF13B022E for ; Thu, 22 Jun 2006 15:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21958-02 for ; Thu, 22 Jun 2006 15:41:35 -0400 (EDT) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 07D893B06CE for ; Thu, 22 Jun 2006 15:41:34 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 9443B1394B7; Thu, 22 Jun 2006 22:41:31 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.62051.621000.757828@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:41:23 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.331 tagged_above=-999 required=2 tests=[AWL=0.133, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.331 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:41:36 -0000 =D8ystein Johansen writes: > However, I want to expand this to system to use automatic string > completion, (the system provided in glib), for all available > commands. Now it only handles command as I press enter. I guess I > need a extra callback for each keypress. This callback can check if > I press and then call g_completion_complete(), but how do I > attach such a signal to the main loop? Ah, I forgot to answer this part. I am afraid you might run into difficulty in doing this on Win32. Or maybe it isn't that hard? There is an API SetConsoleMode(), and mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe it's actually quite similar to Unix, and you can do character-at-a-time input, and your own echo processing. Maybe all you need to do is something like GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); and it will Just Work?=20 --tml From bonefry@gmail.com Thu Jun 22 17:13:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 416803B0601 for ; Thu, 22 Jun 2006 17:13:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26826-10 for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 572B63B061C for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so606362nzh for ; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: by 10.65.95.12 with SMTP id x12mr3218683qbl; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: from ?86.34.237.177? ( [86.34.237.177]) by mx.gmail.com with ESMTP id a5sm1382428qbd.2006.06.22.14.13.35; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Message-ID: <449B07F9.9030500@gmail.com> Date: Fri, 23 Jun 2006 00:13:29 +0300 From: Alex Nedelcu User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: GTK performance on Windows Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.158 tagged_above=-999 required=2 tests=[AWL=0.442, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.158 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:39 -0000 Why is GTK's performance so bad on Windows ? Of all the gui tookits I use, it has the worse performance. I am interested in GTK on Windows because I want to make cross-platform applications. Isn't there a new version on the horizon that will fix this ? Or what can be done to tune the performance of GTK interfaces ? I am using GTK+ version 2.8, and Windows XP. The platform I use is Mono with the GTK# bindings, but I also made tests in Python with the PyGTK.bindings, and I've got the same results. Thank you, From chris@cvine.freeserve.co.uk Thu Jun 22 17:13:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96F463B02CA for ; Thu, 22 Jun 2006 17:13:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27147-02 for ; Thu, 22 Jun 2006 17:13:50 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 774DB3B0769 for ; Thu, 22 Jun 2006 17:13:44 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id A0287580008E; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) Received: from boulder.homenet (user-2802.lns6-c11.dsl.pol.co.uk [84.69.106.242]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id 5BE1E58001A9; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) X-ME-UUID: 20060622211342377.5BE1E58001A9@mwinf3114.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5MLDBgq004659; Thu, 22 Jun 2006 22:13:11 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Two buttons, two images and switching between them Date: Thu, 22 Jun 2006 22:13:11 +0100 User-Agent: KMail/1.9.1 References: <20060622115530.3F0DE25049A@poczta.interia.pl> In-Reply-To: <20060622115530.3F0DE25049A@poczta.interia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606222213.11197.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.306 tagged_above=-999 required=2 tests=[AWL=-0.042, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.306 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:53 -0000 On Thursday 22 June 2006 12:55, hm wrote: > Hi ! > > I`ve got a problem : I have window, with two buttons inside. I`ve got > two GtkImage`s, and on a beginning of the program, i`m ( setting > gtk_button_set_image () ) these images to be button`s "icons". I want to > make a signal function, that handles clicking on both of these buttons. On > click it should switch images between the buttons. For example i`ve got > icon1, icon2, button1 and button2. button1 -> icon1 > button2 -> icon2 ( icon2 is set to be an icon for button2 ) > > now.. i`ve got a signal, that button1 is pressed. So i want now, to have > situation : > > button1 -> icon2 > button2 -> icon1 > > When I try again to do gtk_button_set_image ( button1, icon2 ) and > gtk_button_set_image ( button2, icon1 ) it doesn`t work propertly ( button1 > has icon2 , but button2 has no icon ). I suppose it is so because of > button1 is now "parrent" ( or owner ) of both icons ???? I`m not quiet > sure. I would be appreciate for any clue how to do this. Maybe there is any > method to release icon from being button`s child ? Uhh.. it is little > twisted :) When you substitute an image in button1 the reference count to icon1 would have been decremented, and if you have not taken steps to stop button1 taking ownership of it it will have been destroyed. That may be your problem (although in that case it is surprising that it worked the first time). Chris From oystein@gnubg.org Thu Jun 22 17:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AC523B0242 for ; Thu, 22 Jun 2006 17:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28976-07 for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 18D9A3B022C for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A009X17J7S2C0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A00FW87J6QD35@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Date: Thu, 22 Jun 2006 23:54:39 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <449AF297.6070003@gnome.org> To: Tristan Van Berkom Message-id: <449B119F.1000203@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enigF4FE71D812066FD76946249B X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.563 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599] X-Spam-Score: -2.563 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:54:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF4FE71D812066FD76946249B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tristan Van Berkom wrote: > =D8ystein Johansen wrote: >=20 >> Hi, >> >> I've just made a small glib code that read commands from from a comman= d >> line interface prompt. It uses g_main_loop and a g_io_channel. I've >> attached the code. >> >> First: >> It nearly works as expected. The callback is called each time I enter = a >> command, and it's parsed to the command handler. However, I want to >> expand this to system to use automatic string completion, (the system >> provided in glib), for all available commands. Now it only handles >> command as I press enter. I guess I need a extra callback for each >> keypress. This callback can check if I press and then call >> g_completion_complete(), but how do I attach such a signal to the main= >> loop? >> >> =20 >> > You need to get raw keyboard input from your terminal, in unix > you can use tcsetattr(). >=20 >> Example: >> myprompt> hello >> You typed: hello >> myprompt> =C6sop >> >> ** (gnubg.exe:3128): WARNING **: Something went wrong >> Invalid byte sequence in conversion input > You might want to change the encoding on the io > channel.. if you set it to NULL then it should work. Thank you! Adding this line: g_io_channel_set_encoding (channel, NULL, &error); makes it work. Thank you! Now let me try finding the right codepage as Tor suggests. Hmmm.... gcc -o mycli commandsystem.o -LC:/GTK/lib -lglib-2.0 -lintl -liconv -lkernel32 commandsystem.o(.text+0x3f):commandsystem.c: undefined reference to `GetConsoleCP' It doesn't link? (Yes, I do add -lkernel32) -=D8ystein --------------enigF4FE71D812066FD76946249B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmxGi6kDTFPhwyqYRAm34AJsEdcDQXNEIGbhSJrl8V1Y0BqA7qgCfXAcm 5Ita9vLa8F8qptA4rEeUAHw= =nwVe -----END PGP SIGNATURE----- --------------enigF4FE71D812066FD76946249B-- From itsme_515@hotmail.com Thu Jun 22 18:00:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6F863B06F4 for ; Thu, 22 Jun 2006 18:00:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29478-01 for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from hotmail.com (bay109-f14.bay109.hotmail.com [64.4.19.24]) by menubar.gnome.org (Postfix) with ESMTP id 9A4DC3B067C for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 15:00:53 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Thu, 22 Jun 2006 22:00:50 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com From: "Aar Em" To: gtk-list@gnome.org Subject: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 17:00:50 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 22 Jun 2006 22:00:53.0042 (UTC) FILETIME=[5474C120:01C69647] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.907 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: 1.907 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 22:00:55 -0000 Dear peers, After struggling with this for over a day, I wanted to ask you for your help regarding usage for g_list_insert_sorted. Can someone please help. Here are the operative parts of my program: I have the following struct: typedef struct _message_info { char *from; char *subject; char *face; long *ctime; } MESSAGE_INFO; I have the following comparison function: static gint compare_ctime (gconstpointer a, gconstpointer b) { const MESSAGE_INFO *p1=a,*p2=b; return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); } and the following calling part: Glist *headers; ..... MESSAGE_INFO *m; m = g_new(MESSAGE_INFO,1); m->from = safe_strdup (from); m->subject = safe_strdup (subject); m->face = safe_strdup (xface); m->ctime = ctime; headers = g_list_insert_sorted (headers, m,compare_ctime); .... I get segmentation fault with this, and was wondering how I could fix it. I guess my question is how to use g_list_insert_sorted. I have Googled quite a bit on this, but have not been able to devise the fix. Any help would be very appreciated. Any suggestions? Many thanks and best wishes, Aarem _________________________________________________________________ Don抰 just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ibr@radix50.net Thu Jun 22 19:51:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 934D53B0320 for ; Thu, 22 Jun 2006 19:51:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01890-02 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 340233B0288 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-11-z2.arcor-so.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 12CA117689F for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-11-z2.arcor-so.net (Postfix) with ESMTP id 025AB1C71CE for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id BD69FEAE5C for ; Fri, 23 Jun 2006 01:51:07 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNongI020870 for ; Fri, 23 Jun 2006 01:50:49 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNon3l020869 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:50:49 +0200 Date: Fri, 23 Jun 2006 01:50:49 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622235049.GC30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:51:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From itsme_515@hotmail.com Thu Jun 22 20:01:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 764923B0295 for ; Thu, 22 Jun 2006 20:01:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02104-10 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from hotmail.com (bay109-f40.bay109.hotmail.com [64.4.19.50]) by menubar.gnome.org (Postfix) with ESMTP id 30A843B0176 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 17:01:08 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Fri, 23 Jun 2006 00:01:07 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <20060622235049.GC30610@radix50.net> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 19:01:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 23 Jun 2006 00:01:08.0504 (UTC) FILETIME=[2134E180:01C69658] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.407 tagged_above=-999 required=2 tests=[AWL=-0.714, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.407 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 00:01:10 -0000 Hi, Many thanks! I think I should let you know that g_list_append works fine, except that it does not give me a sorted list by ctime (creation time). org. The debugger crashes just after entering the function at the point of the "return statement". Program received signal SIGSEGV, Segmentation fault. 0x0804db2b in compare_ctime (a=0x8ef5ae0, b=0x0) at count.c:19 /usr/local/aarem/Desktop/gbuffy-0.2.6/count.c:19:339:beg:0x804db2b Btw, I am sorting by the ctime, the creation time of the messages in the mh folder. Many thanks, aarem > >Hello Aarem, > >On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > > Glist *headers; > > ..... > > headers = g_list_insert_sorted (headers, m,compare_ctime); > >Do you initialize headers with NULL? If not, this could be the reason. >Otherwise, use gdb to see where it crashes. > > > > typedef struct _message_info > > { > > char *from; > > char *subject; > > char *face; > > long *ctime; > > } MESSAGE_INFO; >... > > static gint compare_ctime (gconstpointer a, gconstpointer b) > > { > > const MESSAGE_INFO *p1=a,*p2=b; > > > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : >-1); > > } > >I don't know what long *ctime is, but sorting by pointer value looks >suspicious. This shouldn't segfault, but I'm not sure it does what you >want. > > >With kind regards, >Baurzhan. >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dkasak@nusconsulting.com.au Thu Jun 22 22:27:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1AA23B050E for ; Thu, 22 Jun 2006 22:27:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08034-02 for ; Thu, 22 Jun 2006 22:27:05 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 8B07A3B0139 for ; Thu, 22 Jun 2006 22:27:04 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k5N2SbNx017452; Fri, 23 Jun 2006 12:28:38 +1000 Message-ID: <449B5170.6050609@nusconsulting.com.au> Date: Fri, 23 Jun 2006 12:26:56 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Alex Nedelcu , gtk-list@gnome.org Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> In-Reply-To: <449B07F9.9030500@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 462445 - f5bdb0dffa1b X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=462445&m=f5bdb0dffa1b X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.124, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.398 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 02:27:07 -0000 Alex Nedelcu wrote: > Why is GTK's performance so bad on Windows ? > Of all the gui tookits I use, it has the worse performance. > > I am interested in GTK on Windows because I want to make cross-platform > applications. > > Isn't there a new version on the horizon that will fix this ? > Or what can be done to tune the performance of GTK interfaces ? > > I am using GTK+ version 2.8, and Windows XP. > The platform I use is Mono with the GTK# bindings, > but I also made tests in Python with the PyGTK.bindings, and I've got > the same results. > I don't think it's so bad. I'm developing gtk2-perl applications and deploying on a mix of Linux and Windows ( 2000 ) clients, and the performance is actually quite impressive. It even runs inside vmware on my Linux desktop quite well, though obviously not at full speed. As per previous posts re: performance problems, have you tried changing themes? Also, what exactly is slow? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From tml@iki.fi Fri Jun 23 02:23:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C97C3B0567 for ; Fri, 23 Jun 2006 02:23:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18933-03 for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 542053B00ED for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CFBA5151223; Fri, 23 Jun 2006 09:23:38 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17563.35042.590000.373902@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:23:30 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449B119F.1000203@gnubg.org> References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> <449B119F.1000203@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.332 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.332 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:23:44 -0000 =D8ystein Johansen writes: > It doesn't link? (Yes, I do add -lkernel32) Did you #include ?=20 --tml From tml@iki.fi Fri Jun 23 02:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A0813B04C0 for ; Fri, 23 Jun 2006 02:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18926-08 for ; Fri, 23 Jun 2006 02:27:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 0A0133B041F for ; Fri, 23 Jun 2006 02:27:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CEEBD1511A1; Fri, 23 Jun 2006 09:27:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.35295.574000.601419@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:27:43 +0300 To: Alex Nedelcu Subject: Re: GTK performance on Windows In-Reply-To: <449B07F9.9030500@gmail.com> References: <449B07F9.9030500@gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.333 tagged_above=-999 required=2 tests=[AWL=0.131, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.333 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:27:56 -0000 Alex Nedelcu writes: > Why is GTK's performance so bad on Windows ? Because you haven't profiled it and contributed performance improvements? > Of all the gui tookits I use, it has the worse performance. Well, d'oh, you should ask for your money back then! --tml From hdnews@gawab.com Fri Jun 23 02:52:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 596D63B0218 for ; Fri, 23 Jun 2006 02:52:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20492-03 for ; Fri, 23 Jun 2006 02:52:31 -0400 (EDT) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by menubar.gnome.org (Postfix) with ESMTP id D54F03B00ED for ; Fri, 23 Jun 2006 02:52:30 -0400 (EDT) Received: from pegasus.strader.xs4all.nl (strader.xs4all.nl [80.127.15.33]) by smtp-vbr4.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5N6qT2W054997; Fri, 23 Jun 2006 08:52:29 +0200 (CEST) (envelope-from hdnews@gawab.com) Received: from [10.8.0.2] (vpnclient [10.8.0.2] (may be forged)) (authenticated bits=0) by pegasus.strader.xs4all.nl (8.12.10/8.12.10) with ESMTP id k5N6qMbh029399; Fri, 23 Jun 2006 08:52:29 +0200 Message-ID: <449B8FA2.3050501@gawab.com> Date: Fri, 23 Jun 2006 08:52:18 +0200 From: Hans Oesterholt-Dijkema User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tor Lillqvist Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.656 tagged_above=-999 required=2 tests=[AWL=-1.303, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, SPF_SOFTFAIL=1.384, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -0.656 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:52:32 -0000 He must have been adding sleeps in his code. Tor Lillqvist schreef: > Alex Nedelcu writes: > > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! > > --tml > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From nf2@scheinwelt.at Fri Jun 23 04:25:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28DDE3B078E for ; Fri, 23 Jun 2006 04:25:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27712-01 for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 689883B011E for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1FtgyI-0008KO-1Y; Fri, 23 Jun 2006 10:25:02 +0200 Message-ID: <449BA558.7040303@scheinwelt.at> Date: Fri, 23 Jun 2006 10:24:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Sean Middleditch , gtk-list@gnome.org Subject: Re: libxdg-vfs and Gtk-Filechooser References: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> In-Reply-To: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 3eb4023d85beba22221bf02b5aa627a5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, TW_BX=0.077, TW_IB=0.077, TW_XD=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:25:04 -0000 Hi, Sean Middleditch wrote: > Making the GTK file chooser use libxdg is pretty shady. Letting an > application select a file on an FTP share is pointless if the application > itself cannot actually access the file returned by the file chooser. At > best you'd have to have the chooser download/copy the file locally and > return a temporary file path to the app. But then changes to the file > would be lost. Saving the file would be difficult since when saving, the > chooser just returns the URI to the app, which again has no way to write > to any file that isn't local. > http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html libxdg-vfs supports get/put functions for reading and writing files - the application just has to link libxdg-vfs. The libxdg-vfs backend for GTKFileChooser wouldn't be the default, but just for applications which use libxdg-vfs . > The xdg-vfs stuff is interesting, but until there is a complete library > that can be easily integrated into applications, there's little point in > having the file chooser support the xdg stuff. And if you have GTK apps > willing to use a VFS library, you might as well get them to go straight to > the GObject-based gnome-vfs rather than xdg-vfs. > AFAIK gnome-vfs doesn't use GObject in the API. The advantage of libxdg-vfs is, that it uses the VFS system (password storage, protocol handlers, network shares) of the current desktop (KIO *or* Gnome-VFS). Therefore your GTK application will integrate nicely into KDE without directly linking to KIO (or the other way round - a Qt application on Gnome using Gnome-VFS). Also - you don't have a whole desktop-system in the dependencies of your application - Just a little library. (If you want to use Gnome-VFS directly, you also have to link to libGnomeUI - same problem for KIO and the KDE desktop libraries). cheers, Norbert From sven@gimp.org Fri Jun 23 04:54:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1DCD3B038E for ; Fri, 23 Jun 2006 04:54:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29667-05 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from buzzloop.caiaq.de (buzzloop.caiaq.de [212.112.241.133]) by menubar.gnome.org (Postfix) with ESMTP id 667C63B0231 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 9A4CF7F4028; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23383-03; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from [192.168.1.124] (i577B660E.versanet.de [87.123.102.14]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTP id 251EB7F4022; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Subject: Re: Main Loop, IO Channels and my CLI From: Sven Neumann To: =?ISO-8859-1?Q?=D8ystein?= Johansen In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=utf-8 Date: Fri, 23 Jun 2006 10:54:01 +0200 Message-Id: <1151052841.13729.8.camel@bender> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[AWL=0.853, BAYES_00=-2.599] X-Spam-Score: -1.746 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:54:24 -0000 Hi, On Thu, 2006-06-22 at 21:00 +0200, 貀stein Johansen wrote: > I've just made a small glib code that read commands from from a command > line interface prompt. It uses g_main_loop and a g_io_channel. I've > attached the code. > > First: > It nearly works as expected. The callback is called each time I enter a > command, and it's parsed to the command handler. However, I want to > expand this to system to use automatic string completion, (the system > provided in glib), for all available commands. That sounds like fun. When you have something ready and are willing to put it under the GPL, I think it would be interesting to add this code for the GIMP Script-Fu text console mode. The current code needs an overhaul anyway and it would be sweet to have command completion. Sven From linuxhippy@gmail.com Fri Jun 23 06:06:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FFCC3B0231 for ; Fri, 23 Jun 2006 06:06:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01577-01 for ; Fri, 23 Jun 2006 06:06:08 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.202]) by menubar.gnome.org (Postfix) with ESMTP id DB91E3B01D8 for ; Fri, 23 Jun 2006 06:06:07 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so316956hue for ; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.138.14 with SMTP id l14mr1205881hud; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Message-ID: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> Date: Fri, 23 Jun 2006 12:06:06 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.423 tagged_above=-999 required=2 tests=[AWL=-0.381, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.423 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:06:10 -0000 1.) Is this really nescessary? This guy has performance problems on windows asking for help (well, maybe a bit indirect) ... and this is what he gets. Go to QT's bugzilla and search for performance bugs .... 2.) How could he profile it. I asked two times for ways to find out which operations are done in software fallbacks (on X) on this list, no reply. For a non-profgessional profiling GTK and all the stuff it is surrounded by is not trivial and well without no help ... It seems there is not even interrest in speeding up GTK2. lg > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! From tml@iki.fi Fri Jun 23 06:22:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F0CC3B012A for ; Fri, 23 Jun 2006 06:22:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02739-05 for ; Fri, 23 Jun 2006 06:22:24 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 288523B045A for ; Fri, 23 Jun 2006 06:22:23 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id B4B61216477; Fri, 23 Jun 2006 13:22:19 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.49363.293000.582022@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 13:22:11 +0300 To: "Clemens Eisserer" Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.335 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.335 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:22:25 -0000 Clemens Eisserer writes: > 1.) Is this really nescessary? > This guy has performance problems on windows asking for help (well, > maybe a bit indirect) ... and this is what he gets. I am sorry for being a but rude, but I found his mail more of an accusation than a question. > Go to QT's bugzilla and search for performance bugs .... Why? Are the underlying assumptions and historical background of GTK+ and QT at all comparable? > For a non-profgessional profiling GTK and all the stuff it is > surrounded by is not trivial and well without no help ... If one would ask specific question like "I draw 100000 line segments with separate gdk_draw_line() calls, and it's too slow on Win32" one might get better help. --tml From linuxhippy@gmail.com Fri Jun 23 07:33:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 003FB3B03A7 for ; Fri, 23 Jun 2006 07:33:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06705-03 for ; Fri, 23 Jun 2006 07:33:14 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id C32AC3B0061 for ; Fri, 23 Jun 2006 07:33:13 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so327531hue for ; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.157.15 with SMTP id f15mr1224696hue; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Message-ID: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> Date: Fri, 23 Jun 2006 13:33:12 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.49363.293000.582022@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.313 tagged_above=-999 required=2 tests=[AWL=-0.348, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.313 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 11:33:15 -0000 First of all thanks a lot for doing that much work porting GTK to windows. I can't count how many apps I've used myself on windows-pcs which were able to run because of your work. > If one would ask specific question like "I draw 100000 line segments > with separate gdk_draw_line() calls, and it's too slow on Win32" one > might get better help. I installed gimp on some win-xp computers in the company I work for (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These are very much the issues I have on linux but more "visible". Its the UI, menus, window resizing, layout changes or repaint-events sent to the window because its content was invalidated. I can't say wether its really slow or just feels so, maybe the graphic card driver had an influence (nvidia gf4 mx4000) or some other circumstances were not optimal. I simply never did care that much simply because I don't use/like this planform. Its just hard to know whats going wrong, especially if someone is no gtk insider. lg Clemens From linuxhippy@gmail.com Sat Jun 24 06:27:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 803AF3B00EA for ; Sat, 24 Jun 2006 06:27:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06912-07 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 173283B0132 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so449148hue for ; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1550801hue; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Message-ID: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> Date: Sat, 24 Jun 2006 12:27:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.745 tagged_above=-999 required=2 tests=[AWL=0.193, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -1.745 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 10:27:37 -0000 Hello again, I did some further testing and found that even the gtk-demo part "paned widgets" show such low performance if the panes are as large as the whole screen. I further talked to an nvidia driver developer which also analysed the situation and got a profile very similar to mine. This is what he replied: [quote]So I guess I didn't reproduce your problem. In my case, the reason so much time is spent in software solid fills and copies is that GTK seems to create and destroy pixmaps at a fantastic rate. In fact, it creates and destroys a pixmap every time it blinks the cursor. Pixmaps start out in system memory and are only migrated to video memory after they've been used for a while. This means that creating pixmaps, doing two or three rendering operations, and then destroying them is a sure-fire way to make your rendering fall back to software. Future drivers will have an InitialPixmapPlacement nvidia-settings attribute so people can try tweaking this behavior. If I use that to force pixmaps to start in video RAM, then profiling shows that most of the time is spent waiting for the GPU.[/quote] Does even the default theme uses pixmaps for all and everything? Any ideas where to look into this? Thank you in advance, lg Clemens 2006/6/21, Valdis.Kletnieks@vt.edu : > On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > > > I did some oprofiling, however I don't have a vmlinz-file handy so its > > quite a bit useless: > > 5558 39.2930 no-vmlinux > > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. > > > 2116 14.9593 libfb.so > > 1319 9.3248 nvidia_drv.so > > 1031 7.2888 Xorg > > 603 4.2630 libqt-mt.so.3.3.5 > > 550 3.8883 libc-2.4.so > > 470 3.3227 libgobject-2.0.so.0.800.5 > > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) > > samples % image name app name symbol name > 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line > 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process > 5232 6.7536 libfb.so libfb.so (no symbols) > 4834 6.2398 Xorg Xorg (no symbols) > 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop > 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X > 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy > 2172 2.8037 vmlinux vmlinux get_page_from_freelist > 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock > 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock > 1359 1.7542 nvidia nvidia (no symbols) > 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel > 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup > > (or, done by shared library: > > 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 > 10538 13.6027 vmlinux > 5594 7.2209 libc-2.4.90.so > 5377 6.9408 libgobject-2.0.so.0.1102.1 > 5232 6.7536 libfb.so > 4953 6.3934 Xorg > 4784 6.1753 nvidia_drv.so > 3933 5.0768 libpthread-2.4.90.so > > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... > > You probably mentioned it before, but what GTK2 theme are you using? > > > From itsme_515@hotmail.com Sat Jun 24 22:59:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D2E4A3B0165 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14000-06 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from hotmail.com (bay109-f20.bay109.hotmail.com [64.4.19.30]) by menubar.gnome.org (Postfix) with ESMTP id DDB273B00C4 for ; Sat, 24 Jun 2006 22:59:13 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 24 Jun 2006 19:57:12 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Sun, 25 Jun 2006 02:57:07 GMT X-Originating-IP: [63.175.166.181] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <449B14BA.4030509@gnubg.org> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Sat, 24 Jun 2006 21:57:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Jun 2006 02:57:12.0485 (UTC) FILETIME=[0EA7F550:01C69803] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.178 tagged_above=-999 required=2 tests=[AWL=-2.085, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.178 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 02:59:15 -0000 Folks, so I figured it out: turns out that there is what I believe a bug (or a feature) in g_list_insert_sorted -- if the list is null, even then it goes off to sort. This should not happen. If the list is NULL, it should just add to the list. Many thanks and best wishes, Aarem _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From torriem@chem.byu.edu Sun Jun 25 01:12:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 757323B0079 for ; Sun, 25 Jun 2006 01:12:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17632-03 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by menubar.gnome.org (Postfix) with ESMTP id 5E5773B00A6 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (sccrmhc13) with ESMTP id <2006062505113001300mgu3se>; Sun, 25 Jun 2006 05:11:31 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5P5BTrC002542 for ; Sat, 24 Jun 2006 23:11:30 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5P5BOTq002537 for gtk-list@gnome.org; Sat, 24 Jun 2006 23:11:24 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: proggressbar.. From: Michael Torrie To: gtk-list@gnome.org In-Reply-To: References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 24 Jun 2006 23:11:24 -0600 Message-Id: <1151212284.32440.16.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.416 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.416 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 05:12:17 -0000 On Thu, 2006-06-22 at 11:08 +0530, Yogesh Arora wrote: > is that just due to tall claims he is making...or has it got something > to do with india I doubt it has to do with India. I have recently noticed a number of posts from people for whom English is not their native language to this list, posts containing questions that are extremely unclear. It could very well be the language barrier, but several of these posts appear to be asking us to do the work for someone, rather than wanting to read the docs, tutorials, and example code. It is those posts that appear to be demanding that we do their work for them that draw reactions such as this one. Michael > > From yeti@physics.muni.cz Sun Jun 25 03:23:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628F93B0374 for ; Sun, 25 Jun 2006 03:23:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21579-03 for ; Sun, 25 Jun 2006 03:23:22 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8AEA53B030F for ; Sun, 25 Jun 2006 03:23:21 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P7MWuA020910 for ; Sun, 25 Jun 2006 09:22:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id A7E5223D5E; Sun, 25 Jun 2006 09:22:32 +0200 (CEST) Date: Sun, 25 Jun 2006 09:22:33 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060625072233.GK2296@potato.chello.upc.cz> References: <449B14BA.4030509@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 07:23:23 -0000 On Sat, Jun 24, 2006 at 09:57:07PM -0500, Aar Em wrote: > Folks, so I figured it out: turns out that there is what I believe a bug (or > a feature) in g_list_insert_sorted -- if the list is null, even then it goes > off to sort. It does no such thing and never did: http://cvs.gnome.org/viewcvs/glib/glib/glist.c?rev=1.35&view=log > If the list is NULL, it should just add > to the list. And that's exactly what it does since ever. Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Sun Jun 25 05:16:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32E853B01D0 for ; Sun, 25 Jun 2006 05:16:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07093-07 for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: from smtp.poczta.interia.pl (unknown [80.48.65.7]) by menubar.gnome.org (Postfix) with ESMTP id A627E3B013D for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id CEE8237485A; Sun, 25 Jun 2006 11:15:17 +0200 (CEST) Received: from poczta.interia.pl (f30.poczta.interia.pl [10.217.2.30]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 544FC3747D7 for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 4773210C018; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 2006310C00F for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Date: 25 Jun 2006 11:15:12 +0200 From: hm Subject: GtkImage simple question, please help To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060625091512.2006310C00F@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.137 tagged_above=-999 required=2 tests=[AWL=-0.734, BAYES_20=-0.74, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.137 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 09:16:14 -0000 =0AHi !=0A=0A I`ve got a question. Let`s have this piece of code :=0A=0A= =0A...=0A=0A GtkWidget * image1;=0A GtkWidget * button;=0A ...=0A butto= n =3D gtk_button_new ();=0A image =3D gtk_image_new_from_file ( PATH );=0A= gtk_button_set_image ( GTK_BUTTON ( button), image1 );=0A =0Aquestions a= re :=0A=0A* if i`ll call gtk_image_clear (image) .. will it dispose memory = reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap= ? =0A=0A* if answer for previous question is no, it will not dispose the m= emory, then how it is possible to change image inside button ? From yeti@physics.muni.cz Sun Jun 25 06:03:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 047A73B00C9 for ; Sun, 25 Jun 2006 06:03:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08827-02 for ; Sun, 25 Jun 2006 06:03:06 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D10853B008F for ; Sun, 25 Jun 2006 06:03:05 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P9kCR0012281 for ; Sun, 25 Jun 2006 11:46:13 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 840F923D5E; Sun, 25 Jun 2006 11:46:12 +0200 (CEST) Date: Sun, 25 Jun 2006 11:46:14 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: GtkImage simple question, please help Message-ID: <20060625094614.GN2296@potato.chello.upc.cz> References: <20060625091512.2006310C00F@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060625091512.2006310C00F@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 10:03:08 -0000 On Sun, Jun 25, 2006 at 11:15:12AM +0200, hm wrote: > > * if i`ll call gtk_image_clear (image) .. will it dispose memory reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap ? gtk_image_clear() clears the image, therefore the image releases the reference the image holds to the displayed pixbuf (or other objects). But the image will still *exist*, it will be just empty. > * if answer for previous question is no, it will not dispose the memory, then how it is possible to change image inside button ? By setting another image. The button then releases the reference it holds to the old image -- and in the described scenario nothing else holds a reference to it, therefore it will be finalized. Please read the refcounting parts in GObject API docs and GObject tutorial -- and of GtkObject too as although the methods are superseded by GObject methods the intro is more comprehensible (IMO). Yeti -- Anonyms eat their boogers. From suryakiran.gullapalli@gmail.com Thu Jun 1 00:10:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24B3A3B00BB for ; Thu, 1 Jun 2006 00:10:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04016-08 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by menubar.gnome.org (Postfix) with ESMTP id 9B3453B00B8 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so260553nzo for ; Wed, 31 May 2006 21:10:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=N+wbMTsUS0m6ybIQQ6WBzXon9fU/EEzIVq5El3whjJyUR4SAxxBUxIEOsBfVXkeL2YbImX2jAbHiSNiVELVdbozPa3i6O5WTSb6jawRIjg1MW1JZlhMea6gfJPV+YUdgdJ2gGLM2E/7KnKs55/7qEZslYRDyBuFifgtqtukaPXo= Received: by 10.36.160.15 with SMTP id i15mr231979nze; Wed, 31 May 2006 21:10:50 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Wed, 31 May 2006 21:10:50 -0700 (PDT) Message-ID: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Date: Thu, 1 Jun 2006 09:40:50 +0530 From: "Surya Kiran Gullapalli" To: "Tor Lillqvist" In-Reply-To: <17533.16487.144000.523256@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1980_31614517.1149135050887" References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.185, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.28 X-Spam-Level: Cc: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 04:10:54 -0000 ------=_Part_1980_31614517.1149135050887 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > > That's what supposed to happen when one uses the ms-windows theme. > I've got it. The stock icons are coming with other themes. Thanks, Surya ------=_Part_1980_31614517.1149135050887 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
That's what supposed to happen when one uses the ms-windows theme.

I've got it. The stock icons are coming with other themes.
Thanks,
Surya
------=_Part_1980_31614517.1149135050887-- From kaminaga@sm.sony.co.jp Thu Jun 1 02:40:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 71ACE3B00EB for ; Thu, 1 Jun 2006 02:40:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10435-03 for ; Thu, 1 Jun 2006 02:40:55 -0400 (EDT) Received: from ns4.sony.co.jp (NS4.Sony.CO.JP [137.153.0.44]) by menubar.gnome.org (Postfix) with ESMTP id 2A5ED3B00CB for ; Thu, 1 Jun 2006 02:40:54 -0400 (EDT) Received: from mail7.sony.co.jp ([43.0.1.209]) Received: from mail7.sony.co.jp (localhost [127.0.0.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516eqQM024123 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516epjT024108 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k516epY19677 for ; Thu, 1 Jun 2006 15:40:51 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k516fCXh017466 for ; Thu, 1 Jun 2006 15:41:12 +0900 (JST) Date: Thu, 01 Jun 2006 15:37:37 +0900 (JST) Message-Id: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> To: gtk-list@gnome.org From: Hiroki Kaminaga X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.184 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.184 X-Spam-Level: Subject: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 06:40:57 -0000 Hi, I'm trying to build GTK+ for ARM architecture, my target board is TI OMAP Starter Kit 5912 (OSK5912). >From the GTK+ FAQ, I built below package: pkg-config GNU make JPEG, PNG, TIFF libraries FreeType2 fontconfig (iconv was in glibc) gettext Glib Pango ATK and when I tryed to build GTK+, configure gave me below message: * * * checking for X... no configure: error: X development libraries not found * * * Is X required package? ARM has a limited resource, so if it is not necessary, I would like to avoid installing it. Thanks in Advance. (Hiroki Kaminaga) t -- From carlo-ag@libero.it Thu Jun 1 03:15:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CA9B63B0C35 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11982-05 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from relay-pt1.poste.it (relay-pt1.poste.it [62.241.4.164]) by menubar.gnome.org (Postfix) with ESMTP id C4C5A3B0109 for ; Thu, 1 Jun 2006 03:15:39 -0400 (EDT) Received: from [192.168.1.52] (151.37.218.171) by relay-pt1.poste.it (7.2.063) (authenticated as carlo.agrusti@poste.it) id 44119E620017FBFA for gtk-list@gnome.org; Thu, 1 Jun 2006 09:15:38 +0200 Message-ID: <447E9418.5010106@libero.it> Date: Thu, 01 Jun 2006 09:15:36 +0200 From: Carlo Agrusti User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> In-Reply-To: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> X-Enigmail-Version: 0.93.0.0 OpenPGP: id=9C055DBF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.476 tagged_above=-999 required=2 tests=[AWL=-0.785, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.476 X-Spam-Level: Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:15:41 -0000 Hiroki Kaminaga ha scritto lo scorso 01/06/2006 08:37: > Hi, > > I'm trying to build GTK+ for ARM architecture, my target board is > TI OMAP Starter Kit 5912 (OSK5912). > >>From the GTK+ FAQ, I built below package: > pkg-config > GNU make > JPEG, PNG, TIFF libraries > FreeType2 > fontconfig > (iconv was in glibc) > gettext > Glib > Pango > ATK > > and when I tryed to build GTK+, configure gave me below message: > * * * > checking for X... no > configure: error: X development libraries not found > * * * > > Is X required package? Yes, it is (unless you are using the old and unmaintained framebuffer back end). > ARM has a limited resource, so if it is not > necessary, I would like to avoid installing it. > Don't use full X server; if you enable KDrive, you will have a fully featured "tiny" X server for less than 1 MiB (compare it with a modern glibc environment and you will discover where your resources are used). From kaminaga@sm.sony.co.jp Thu Jun 1 03:46:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 793603B0C4E for ; Thu, 1 Jun 2006 03:46:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13720-10 for ; Thu, 1 Jun 2006 03:46:31 -0400 (EDT) Received: from ns6.sony.co.jp (NS6.Sony.CO.JP [137.153.0.32]) by menubar.gnome.org (Postfix) with ESMTP id 0334C3B0110 for ; Thu, 1 Jun 2006 03:46:29 -0400 (EDT) Received: from mail6.sony.co.jp ([43.0.1.208]) Received: from mail6.sony.co.jp (localhost [127.0.0.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRjJ023935; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRRt023922; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k517kQY24496; Thu, 1 Jun 2006 16:46:26 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k517kk68014618; Thu, 1 Jun 2006 16:46:47 +0900 (JST) Date: Thu, 01 Jun 2006 16:43:12 +0900 (JST) Message-Id: <20060601.164312.41633181.kaminaga@sm.sony.co.jp> To: carlo-ag@libero.it From: Hiroki Kaminaga In-Reply-To: <447E9418.5010106@libero.it> References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> <447E9418.5010106@libero.it> X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:46:32 -0000 From: Carlo Agrusti > Don't use full X server; if you enable KDrive, you will have a fully > featured "tiny" X server for less than 1 MiB (compare it with a modern > glibc environment and you will discover where your resources are used). Thank you! (Hiroki Kaminaga) t -- From kereoz@yahoo.fr Thu Jun 1 04:42:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F0E363B00DE for ; Thu, 1 Jun 2006 04:42:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17618-03 for ; Thu, 1 Jun 2006 04:42:36 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id C57323B00CD for ; Thu, 1 Jun 2006 04:42:35 -0400 (EDT) Received: (qmail 90880 invoked by uid 60001); 1 Jun 2006 08:42:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SOSnkJ16bagATwum4KefozXDgJ6fNTELp2hlhxrZ18sFApRnFZ2uY4nD+XvPhLcAJLolKMxgKsoCZk2C0xq2bxeC1M45xM6rsDN3nmiDPbam+/dTLt9nVK8hBL/wJXkIJI+1e1bGiFduHMquH1OHHZO/CZysGRmiQOduxm7a+bw= ; Message-ID: <20060601084234.90878.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 01 Jun 2006 10:42:34 CEST Date: Thu, 1 Jun 2006 10:42:34 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.36 tagged_above=-999 required=2 tests=[AWL=-0.319, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.36 X-Spam-Level: Subject: Re: Widgets overlap X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 08:42:39 -0000 Hi, First, thanks for your answers :) But I didn't ask the good question : in fact, I'd like to overlap a video output widget and a Mozilla gecko widget. I want to put the browser on top of the video output, so you can see the video through the brower. In a word, the browser should be transparent. I know this is possible to do such things when the video widget works with framebuffer. Some poeple did such things with DirectX already, and I'm looking for a way to do it with GTK. Christophe HAUSER http://kereoz.sup.fr ___________________________________________________________________________ Yahoo! Mail r閕nvente le mail ! D閏ouvrez le nouveau Yahoo! Mail et son interface r関olutionnaire. http://fr.mail.yahoo.com From katsuo_harada_evil_does@hotmail.com Thu Jun 1 11:17:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C53B13B0DB9 for ; Thu, 1 Jun 2006 11:17:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15140-10 for ; Thu, 1 Jun 2006 11:17:02 -0400 (EDT) Received: from hotmail.com (bay105-f37.bay105.hotmail.com [65.54.224.47]) by menubar.gnome.org (Postfix) with ESMTP id BC3F83B0DA9 for ; Thu, 1 Jun 2006 11:16:58 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Jun 2006 08:16:57 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 01 Jun 2006 15:16:55 GMT X-Originating-IP: [86.200.250.161] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Thu, 01 Jun 2006 17:16:55 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 01 Jun 2006 15:16:57.0804 (UTC) FILETIME=[6C7428C0:01C6858E] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.275 tagged_above=-999 required=2 tests=[AWL=0.891, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BG=0.077] X-Spam-Score: 0.275 X-Spam-Level: Subject: GLib 2.11.1 FreeBSD make fails X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 15:17:07 -0000 Hello, All! I've already posted a make issue here not so long time ago. Here we come again. For a history i'm building a desktop station based on FreeBSD 4.11-RELEASE (GENERIC) kernel. while building GLib-2.11.1 i've got the following errors : http://pages-perso.esil.univ-mrs.fr/~vdoljiko/pub/make.log +++++++ HERE COMES AN EXTRAIT ++++++++ [SNIP] Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r [COMMENT] Notice the presence of -lc_r option [/COMMENT] gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib [COMMENT] Notice the absence of the -lc_r option [/COMMENT] gcc: unrecognized option `-pthreads' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_signal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getspecific' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_exit' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_equal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setscope' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_broadcast' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_key_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setstacksize' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_unlock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_self' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_lock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_wait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_trylock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setdetachstate' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_join' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_timedwait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setspecific' *** Error code 1 Stop in /home/libs/glib-2.11.1/tests/refcount. *** Error code 1 Stop in /home/libs/glib-2.11.1/tests. *** Error code 1 Stop in /home/libs/glib-2.11.1. *** Error code 1 Stop in /home/libs/glib-2.11.1. ++++++++++++++ END +++++++++++++++++++++++++++ as you can see the problem comes IMHO from badly compiled libgthread because it was compiled without -lc_r option. libc_r.a is the implementation of threads on FreeBSD system. During configure of GLib-2.11.1 i've specified LIBS=-lc_r and even LDFLAGS=-lc_r (!!! :-) ) but libgthread IMHO wasn't properly compiled. It seems that libtool and compagny line invoked from Makefile preserves -lc_r option but the effective command doesn't include -lc_r option as you can see in the example above. BUT libgthread don't reference pthread functions as result we get the above errors. 2. as you can see the line Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r specifies -lc_r option BUT when executing the effective command this option is not present! WHY! i'm using GNU make latest specially build for freetype build. i've solved the problem by manually writing gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib -lc_r in Makefile in tests/refcount directory for each target (closures properties signals) and it worked, but i'm wondering if there won't be any problems on run-time ??? i should also say that the exactly the same problem occurs in test directory whiile compiling error-mutex-something.c what can you say about this ??? how should i proceed in order to build "proper" glib-2.11.1 ??? p.s while compiling pkg-config early i've got the same problems but in gthread subdirectory. was solved in the same manner by mannualy adding -lc_r option but not in make file but on the command line. as make checks for newer versions and dependencies it was sufficent. but in GLib-2.11.1 compiling mannually don't work because of rm -f before building each target. -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From dkasak@nusconsulting.com.au Thu Jun 1 22:11:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 095BB3B0196 for ; Thu, 1 Jun 2006 22:11:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23630-03 for ; Thu, 1 Jun 2006 22:11:15 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 9D4E63B010C for ; Thu, 1 Jun 2006 22:11:14 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k522CNvG022220; Fri, 2 Jun 2006 12:12:23 +1000 Message-ID: <447F9E48.6090304@nusconsulting.com.au> Date: Fri, 02 Jun 2006 12:11:20 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Surya Kiran Gullapalli , gtk-list@gnome.org References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> In-Reply-To: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 451465 - be5dc1df8278 X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=451465&m=be5dc1df8278 X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=451465&m=be5dc1df8278 X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=451465&m=be5dc1df8278 X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.428 tagged_above=-999 required=2 tests=[AWL=0.171, BAYES_00=-2.599] X-Spam-Score: -2.428 X-Spam-Level: Cc: Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 02:11:17 -0000 Surya Kiran Gullapalli wrote: > > That's what supposed to happen when one uses the ms-windows theme. > > > I've got it. The stock icons are coming with other themes. > Thanks, > Surya How are you installing / changing themes under Windows? I've been using a utility from http://members.lycos.co.uk/alexv6/ but if there are others, I'd like to know. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From lists@nabble.com Fri Jun 2 01:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A34C53B030A for ; Fri, 2 Jun 2006 01:41:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32639-07 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 15A363B0341 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm2Pf-0007IZ-7Z for gtk-list@gnome.org; Thu, 01 Jun 2006 22:41:35 -0700 Message-ID: <4674575.post@talk.nabble.com> Date: Thu, 1 Jun 2006 22:41:35 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <43ACACCA.70309@micahcarrick.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <43ACACCA.70309@micahcarrick.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 05:41:37 -0000 Maybe I am having the same question as you do. I am trying to display a 24bit image with size 2048X2048 pixels, and following is my code: //create a GdkPixbuf GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer GDK_COLORSPACE_RGB, //COLORSPACE FALSE, // has_alpha, 8, // int bits_per_sample, 2048, // int width, 2048, // int height, 2048*3, // sizeX*3; //int rowstride, NULL, //GdkPixbufDestroyNotify destroy_fn, NULL //gpointer destroy_fn_data); ); //display img GtkWidget* img = lookup_widget(MainWnd, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(img), //GtkImage *image, pb// GdkPixbuf *pixbuf ); the results i got is that: the image did appear, but the sizes are shrinked as 684 X 684 , and there are THREE same images tile in the viewport, the first and last ones are clipped. Can anyone tell me how to fix this? thanks!! -- View this message in context: http://www.nabble.com/Help-with-GdkPIxbuf-and-GtkImage...-t800118.html#a4674575 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Fri Jun 2 03:28:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 436273B08CC for ; Fri, 2 Jun 2006 03:28:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06135-06 for ; Fri, 2 Jun 2006 03:28:26 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1BD913B1044 for ; Fri, 2 Jun 2006 03:28:21 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm44x-0003Cd-RJ for gtk-list@gnome.org; Fri, 02 Jun 2006 00:28:19 -0700 Message-ID: <4675519.post@talk.nabble.com> Date: Fri, 2 Jun 2006 00:28:19 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <20060314073947.e7cba872.lists@elehack.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.527 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.527 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:28:29 -0000 Hi Michael, I am a beginner in Linux programming, and your suggestion works! But I am still having some problem that the CPU usage is always 100% after the program starts. Could you please look at my code below and give me some suggestion? Thanks a lot!!! Following is some of my code: // idle handler of the main loop gboolean OnIdle(int msgQid) { if(thread_signal) { RefreshImage(); } return TRUE; } int main (int argc, char *argv[]) { gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); //register an idle handler to update the image when the background thread emits a signal gdk_threads_enter(); g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a * PyGTK/GTKmm guy, so the C stuff * isn't my forte */ gdk_threads_leave(); MainWnd = create_MainWnd (); gtk_widget_show (MainWnd); gtk_main (); return 0; } -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Fri Jun 2 03:45:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F5423B1055 for ; Fri, 2 Jun 2006 03:45:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07057-07 for ; Fri, 2 Jun 2006 03:45:02 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id F1BFC3B104E for ; Fri, 2 Jun 2006 03:45:01 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp1-g19.free.fr (Postfix) with ESMTP id 9B0EE9A3E2; Fri, 2 Jun 2006 09:45:00 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4675519.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 09:47:58 +0200 Message-Id: <1149234479.10209.10.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.848 tagged_above=-999 required=2 tests=[AWL=-0.395, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.848 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:45:03 -0000 Le vendredi 02 juin 2006 00:28 -0700, heavenscape a 閏rit : > Hi Michael, > > I am a beginner in Linux programming, and your suggestion works! But I am > still having some problem that the CPU usage is always 100% after the > program starts. Could you please look at my code below and give me some > suggestion? > > Thanks a lot!!! > > Following is some of my code: > > // idle handler of the main loop > gboolean OnIdle(int msgQid) > { > if(thread_signal) > { > RefreshImage(); > } > return TRUE; > } Do you need to reexecute indefinitely this idle handler? If not use: return FALSE; > int main (int argc, char *argv[]) > { > gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, > argc, argv, > GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, > NULL); > > //register an idle handler to update the image when the background thread > emits a signal > gdk_threads_enter(); > g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a > * PyGTK/GTKmm guy, so the C stuff > * isn't my forte */ > gdk_threads_leave(); > > MainWnd = create_MainWnd (); > gtk_widget_show (MainWnd); > > gtk_main (); > return 0; > } > > -- > View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From lists@nabble.com Fri Jun 2 06:33:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D3563B03E4 for ; Fri, 2 Jun 2006 06:33:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18136-04 for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 6ACDD3B030A for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm6y0-0004Vq-NT for gtk-list@gnome.org; Fri, 02 Jun 2006 03:33:20 -0700 Message-ID: <4677462.post@talk.nabble.com> Date: Fri, 2 Jun 2006 03:33:20 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <1149234479.10209.10.camel@athlon.brefort.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 10:33:27 -0000 Yes! My background thread will send a message when it has finished something, so I do need the check the message status frequently. If my OnIdle function return false, it will never be called again, and therefore cannot monitor the message status any more. Is there any alternate solution? Thanks a lot!! -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4677462 Sent from the Gtk+ - General forum at Nabble.com. From george@clipper.ens.fr Fri Jun 2 09:36:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CE273B0401 for ; Fri, 2 Jun 2006 09:36:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29496-08 for ; Fri, 2 Jun 2006 09:36:35 -0400 (EDT) Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by menubar.gnome.org (Postfix) with ESMTP id 0462C3B03FE for ; Fri, 2 Jun 2006 09:36:34 -0400 (EDT) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id k52DaXPt088553 for ; Fri, 2 Jun 2006 15:36:33 +0200 (CEST) X-Envelope-To: Received: from (george@localhost) by clipper.ens.fr (8.13.1/jb-1.1) Date: Fri, 2 Jun 2006 15:36:33 +0200 From: Nicolas George To: gtk-list@gnome.org Message-ID: <20060602133633.GA9572@clipper.ens.fr> References: <1149104973.27709.4.camel@localhost.localdomain> <7bf6f2dc0606010816q15d512aejc30a6c93bc165e6@mail.gmail.com> <1149253312.4847.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <1149253312.4847.21.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.10 (nef2.ens.fr [129.199.96.32]); Fri, 02 Jun 2006 15:36:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[AWL=0.054, BAYES_00=-2.599] X-Spam-Score: -2.545 X-Spam-Level: Subject: Re: Color space transformations in GTK X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 13:36:38 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le quartidi 14 prairial, an CCXIV, Carlos Eduardo Rodrigues Diogenes a =E9c= rit=A0: > I think that it will help who want to play with colors in a quick way. I > don't find this in any other library, and I thinked that GTK+ could be a > good place for this, because it will become easiest to work with other > colors representations in GTK+ applications. Did you try lcms ? Despite being quite complete, it is also simple for simple tasks. --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (SunOS) iD8DBQFEgD7hsGPZlzblTJMRAh3AAJ4y7eJCapcSqGa0p/kKpw5km+O+2QCfR5Xv BafttugMjFnieL87fO646B4= =R3g0 -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From Valdis.Kletnieks@vt.edu Fri Jun 2 10:32:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B6FA03B0272 for ; Fri, 2 Jun 2006 10:32:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32747-03 for ; Fri, 2 Jun 2006 10:32:00 -0400 (EDT) Received: from turing-police.cc.vt.edu (pool-72-66-198-190.ronkva.east.verizon.net [72.66.198.190]) by menubar.gnome.org (Postfix) with ESMTP id B51C63B0238 for ; Fri, 2 Jun 2006 10:31:59 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k52EVr54003265; Fri, 2 Jun 2006 10:31:53 -0400 Message-Id: <200606021431.k52EVr54003265@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: heavenscape In-Reply-To: Your message of "Thu, 01 Jun 2006 22:41:35 PDT." <4674575.post@talk.nabble.com> From: Valdis.Kletnieks@vt.edu References: <43ACACCA.70309@micahcarrick.com> <4674575.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1149258713_2700P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 02 Jun 2006 10:31:53 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.827 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961, RCVD_IN_NJABL_DUL=1.946, SPF_SOFTFAIL=1.384] X-Spam-Score: 1.827 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:32:02 -0000 --==_Exmh_1149258713_2700P Content-Type: text/plain; charset=us-ascii On Thu, 01 Jun 2006 22:41:35 PDT, heavenscape said: > //create a GdkPixbuf > GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer > GDK_COLORSPACE_RGB, //COLORSPACE > FALSE, // has_alpha, > 8, // int bits_per_sample, > 2048, // int width, > 2048, // int height, > 2048*3, // sizeX*3; //int rowstride, > NULL, //GdkPixbufDestroyNotify destroy_fn, > NULL //gpointer destroy_fn_data); > ); > the results i got is that: the image did appear, but the sizes are shrinked > as 684 X 684 , and there are THREE same images tile in the viewport, the > first and last ones are clipped. 684 is 2048/3, plus rounding. Are you sure that when you *loaded* the image into your pDisplayBuf, you correctly calculated where the various bytes go? Assuming pixel values r, g, and b, storing them into your pDisplayBuf for a given x,y (0-based coordinates 0..2047) is like this: pDisplayBuf[x*3+y] = r; pDisplayBuf[x*3+y+1] = g; pDisplayBuf[x*3+y+2] = b; Hmm... using x+y instead of x*3+y will produce a 1/3 width image and 2/3 trash. Other possibility is you're using 3*y+x instead (confusion of x/y between your code and what Gdk expects). --==_Exmh_1149258713_2700P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEgEvZcC3lWbTT17ARAhTUAJ4zzY8i6PbLXYW709arggnJGSHTEgCg6YNz WALAkmi+KDAQus4gx/9nsnc= =/pC/ -----END PGP SIGNATURE----- --==_Exmh_1149258713_2700P-- From jean.brefort@normalesup.org Fri Jun 2 10:58:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 708E23B1174 for ; Fri, 2 Jun 2006 10:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01643-02 for ; Fri, 2 Jun 2006 10:58:23 -0400 (EDT) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id 73B6A3B1194 for ; Fri, 2 Jun 2006 10:58:18 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id CA2F254B3D; Fri, 2 Jun 2006 16:58:16 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 17:01:16 +0200 Message-Id: <1149260476.8914.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.89 tagged_above=-999 required=2 tests=[AWL=-0.360, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.89 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:58:41 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? You can use a timer, or display the message from your thread, or ... from the thread, you might use something as: gdk_threads_enter(); RefreshImage(); gdk_threads_leave(); From patrick.jacquotf@free.fr Fri Jun 2 14:47:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C93393B01E0 for ; Fri, 2 Jun 2006 14:47:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15276-10 for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 6763B3B01BA for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp6-g19.free.fr (Postfix) with ESMTP id 62746226CC; Fri, 2 Jun 2006 20:47:48 +0200 (CEST) From: Patrick Jacquot To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 20:47:40 +0200 Message-Id: <1149274060.8687.52.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 18:47:54 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? Usually, one establishes a callback function to to be called when a message is due to be serviced. I'm not fluent in GTK programming (nor in English), but all GUI systems work so. -- Patrick From gnome-gtk-list@m.gmane.org Sun Jun 4 19:35:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4EAE3B0429 for ; Sun, 4 Jun 2006 19:35:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18939-10 for ; Sun, 4 Jun 2006 19:35:11 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 0D3193B0409 for ; Sun, 4 Jun 2006 19:35:10 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fn27a-0002sx-IN for gtk-list@gnome.org; Mon, 05 Jun 2006 01:35:02 +0200 Received: from cpe-72-130-182-162.san.res.rr.com ([72.130.182.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 Received: from swbrown by cpe-72-130-182-162.san.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Steven Brown Date: Sun, 04 Jun 2006 16:27:05 -0700 Lines: 9 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe-72-130-182-162.san.res.rr.com User-Agent: Thunderbird 1.5.0.2 (X11/20060516) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.524 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.524 X-Spam-Level: Subject: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2006 23:35:12 -0000 I've been going through the glib docs trying to find a simple way to get my fd polled by glib's main loop and call me back, but I've not found anything near simple. Is there such a way? E.g., something like gdk_input_add (which says it's deprecated but doesn't say by what). I see that it could be implemented by a custom g_source_new and such, but doing so is a pretty huge amount of code for what should be a one-liner. I must be missing something obvious. From tristan.van.berkom@gmail.com Sun Jun 4 20:22:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7D323B0531 for ; Sun, 4 Jun 2006 20:22:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21420-01 for ; Sun, 4 Jun 2006 20:22:16 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id ABF0A3B05C2 for ; Sun, 4 Jun 2006 20:22:09 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i3so885889wra for ; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=rGr3/uC/YjBwRnO7oTslcMuIA9XLNEuzYxfx1mSmalOpfI5DfMvRkAHrJm5Uu4mO4fRWnEh4XiD/dS6k78RZC8DI+4xudasUUhtMNMAELaVGjCd2ZwBoZwXs7im6w9gxcnx+XmxCfeSUgDeWR1qP4mLIJ8IYyx0sU8kTo2Z5nKA= Received: by 10.54.111.13 with SMTP id j13mr4300960wrc; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) Received: from ?66.48.170.25? ( [66.48.170.25]) by mx.gmail.com with ESMTP id 33sm2256255wra.2006.06.04.17.22.06; Sun, 04 Jun 2006 17:22:08 -0700 (PDT) Message-ID: <44837CEA.9020604@gnome.org> Date: Sun, 04 Jun 2006 20:38:02 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Brown References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.196 tagged_above=-999 required=2 tests=[AWL=0.404, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.196 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 00:22:20 -0000 Steven Brown wrote: >I've been going through the glib docs trying to find a simple way to get >my fd polled by glib's main loop and call me back, but I've not found >anything near simple. Is there such a way? E.g., something like >gdk_input_add (which says it's deprecated but doesn't say by what). > >I see that it could be implemented by a custom g_source_new and such, >but doing so is a pretty huge amount of code for what should be a >one-liner. I must be missing something obvious. > > > Well its not a one-liner... but something close to a one-liner: ================================== GIOChannel *channel = g_io_channel_unix_new (fd_to_poll); guint source_id = g_io_add_watch (channel, /* args of add_watch... */); /* For convenience... pass ownership of the channel to the attached GIOWatchSource */ g_object_unref (channel); /* .... */ At this point your callback will be called under the conditions you specified... when you are finished with the polling... you should call g_source_remove(source_id); and this will get rid of the io channel object as well as your poll function. ================================== Cheers, -Tristan From mclasen@redhat.com Mon Jun 5 14:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 744343B09D3; Mon, 5 Jun 2006 14:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20278-06; Mon, 5 Jun 2006 14:15:01 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id D637E3B0988; Mon, 5 Jun 2006 14:15:00 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF08I024331; Mon, 5 Jun 2006 14:15:00 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF0I9021827; Mon, 5 Jun 2006 14:15:00 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55IExAV012588; Mon, 5 Jun 2006 14:14:59 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Mon, 05 Jun 2006 14:14:59 -0400 Message-Id: <1149531299.4071.35.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: Cc: Subject: GLib 2.11.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 18:15:03 -0000 GLib 2.11.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.2.tar.bz2 md5sum: 18464b85bfd589f83897623c637a1553 glib-2.11.2.tar.gz md5sum: f728cd295ac98d4b95d850fe91c05fd5 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.1 to GLib 2.11.2 =================================================== * Add g_ascii_stroll to parse signed 64bit integers * GMarkup: add a flag to treat CDATA as text * GHashTable: add functions to remove all entries * GMainLoop: add functions to find the currently running source, and determine if it is destroyed * Bug fixes: 342563 g_atomic_thread_init() needs to be called before other _g_*_thread_init() functions 343548 Potential use after free in callers of g_string_free() 168538 Wish: Clearing contents of GHashTables 321886 GTK+ cannot be reliably used in multi-threaded applications 341826 goption.c: 'strtoll' is C99's function 343899 g_ascii_formatd dosn't work as expected for all format strings 317793 Make GEnumValue strings const 337129 Compile warnings in G_IMPLEMENT_INTERFACE 303622 What is G_TYPE_CHAR? * Updated translations (bg,dz,eu,gl,ja,nl,th,vi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=341826,342563,343548,168538,168538,321886,343899,321886,317793,337129,303622 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Peter Kjellerstedt, Kazuki Iwamoto Leonard den Ottolander, Chris Wilson, Behdad Esfahbod, Matt Barnes, 貀stein Johansen, Tim Janik Morten Welinder Matthias Clasen June 5, 2006 From mclasen@redhat.com Mon Jun 5 16:21:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 09B113B0543; Mon, 5 Jun 2006 16:21:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28553-01; Mon, 5 Jun 2006 16:21:32 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 0F8903B0012; Mon, 5 Jun 2006 16:21:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLVn7006951; Mon, 5 Jun 2006 16:21:31 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLUBq020469; Mon, 5 Jun 2006 16:21:31 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55KLUAV025318; Mon, 5 Jun 2006 16:21:30 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 05 Jun 2006 16:21:30 -0400 Message-Id: <1149538890.4071.40.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_XI=0.077] X-Spam-Score: -2.429 X-Spam-Level: Cc: Subject: GTK+ 2.9.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 20:21:34 -0000 GTK+ 2.9.2 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.2.tar.gz md5sum: c63e7d0cf7c4e983206c3088a0fb8862 gtk+-2.9.2.tar.bz2 md5sum: 17629437af44fce03485101371c8f041 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.1 to 2.9.2 ============================================ * GtkPrintOperation - Support asynchronous pagination with the ::paginate signal - Add gtk_print_operation_cancel - Support application-specific widgets - Allow disabling features based on application capabilities - Optionally show progress - Change some function names in GtkPrintContext to be longer and better - Support preview, the default implementation spawns evince, but the api allows for an internal preview implementation * GtkCellView - Add a model property * GtkStatusIcon - Allow to obtain screen geometry * GtkTreeView - Many bug fixes, in particular for RTL handling - Separate sensitive and selectable properties of rows - Optionally allow rubberband selection * GtkButton - Add image-spacing style property - Add image-position property * GtkToolButton - Add icon-spacing style property * Make GTK+ work as an untrused X client * Bugs fixed: 343838 gtkprintoperationpreview.h guards 305530 Crashes while creating source code w/GtkFontSelection 341327 Memory corruption inside glib 341734 cursor blocked to dnd mode after using shift and dnd on a GtkCalendar 343453 G_DEFINE_TYPE messes up internal typenames of GdkWindow and GdkPixmap 136571 Problems running as untrusted client 168105 the right edge tab does not appear when switching tab 172535 Add support for UI builders in gtk+ 302556 GtkTreeView widget signals are badly documented 324480 Selecting first item with keyboard is difficult 340428 small cleanup 340444 don't run the custom page size dialogue 340839 Critical warnings in GtkTreeModelFilter 341898 gtk_tree_view_insert_column_with_attributes doesn't work with fixed_height_mode 342003 DnD: Conditional jump or move depends on uninitialised value 342072 Wrong drop location in GtkEntry 342096 GtkImage animation CRITICALS on switching themes 342513 widget class style property with type module 342529 gdk should set resolution on PangoCairoFontmap, not PangoCairoContext 342535 Add documentation for new GtkWidget style properties (including Since tags) 342543 can't compile gtk+ on opensolaris using sun cc 342569 Typo in decl of gdk_color_parse 342752 Need a way to specify custom tab label for custom page in Print dialog 342754 print-editor: font button dialog doesn't get focus if main window has a window group 342781 GtkPrintUnixDialog: Collate should be insensitive unless Copies is > 1 342783 GtkPrintUnixDialog: Range textinput area should be insensitive unless range radiobutton is selected 342894 Use after free inside gtk_text_view_set_buffer 342930 GtkButton should offer a way to position the image relative to the text 343088 Some typos in the PO file 343425 "grab-notify"-signal is not correctly propagated for internal children 343438 gtk_color_button_set_color() doesn't emit "color-set" signal 343475 page setup unix dialog confusion 343625 allow to get only some info from gtk_status_icon_get_geometry 343677 GtkWindow chains key-release to key-press 320431 Text too close when using East/West in a GtkToolButton 321523 GtkTreeView's test_expand_row signal emitting impractical on row expand all 342007 Warning in gtk_paned_compute_position 343233 gdk_rectangle_intersect doc 333284 expander animation not working in RTL mode 343444 change color of gtk-demo source-buffer comment color from red to DodgerBlue 343630 Small inconsistence in migration documentation 80127 Rubberbanding for GtkTreeView 341450 status icon + libnotify 341679 Allow absolute filenames in the options entries * Updated translations (bg,cy,de,el,es,et,eu,gl,gu,it,ja, nb,nl,pt_BR,th,vi) Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Alexander Larsson, Behdad Esfahbod, Benjamin Berg, Caolan McNamara, Carlos Garnacho Parro, Carol Spears, Christian Persch, Chris Wilson, Claudio Saavedra, Clytie Siddall, Damon Chaplin, Daniel Lindenaar, Dan Winship, Diana Fong, Ed Catmur, Emmanuele Bassi, Havoc Pennington, Henrique Romano, Hiroyuki Ikezoe, James Moger, Johan Dahlin, Kouhei Sutou, Kristian Rietveld, Markku Vire, Mart Raudsepp, Masatake Yamato, Michael Emmel, Michael Natterer, Murray Cumming, Olexiy Avramchenko, Paolo Borelli, Patrick Monnerat, Richard Hult, Sampo Savolainen, Sebastien Bacher, Srirama Sharma, Stefan Kost, Tim Janik, Tommi Komulainen, Tor Lillqvist, Yevgen Muntyan A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=342072,342096,342003,341734,305530,168105,342007,342529,342535,342543,342569,341679,342752,172535,342513,342781,342783,342754,136571,341450,333284,340428,340839,341898,321523,343088,343233,324480,342894,320431,342930,343453,343425,343438,343444,340444,343475,302556,343677,343625,80127,343838,341327,168105,343630 Matthias Clasen June 5, 2006 From katsuo_harada_evil_does@hotmail.com Mon Jun 5 17:23:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 859933B03A0 for ; Mon, 5 Jun 2006 17:23:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01136-07 for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from hotmail.com (bay105-f27.bay105.hotmail.com [65.54.224.37]) by menubar.gnome.org (Postfix) with ESMTP id 80FF43B086B for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 14:23:24 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 21:23:22 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Mon, 05 Jun 2006 23:23:22 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 21:23:24.0257 (UTC) FILETIME=[470DA510:01C688E6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.332 tagged_above=-999 required=2 tests=[AWL=-0.716, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.332 X-Spam-Level: Subject: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:23:28 -0000 Hello, i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 when running gtk-demo -> UI Manger demo i've got the following output http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log when trying File menu. is it a bug or not ??? -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Windows Live Messenger : venez tester la version b阾a ! http://www.ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73 From tomasek@ebed.etf.cuni.cz Mon Jun 5 17:57:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 048853B0963 for ; Mon, 5 Jun 2006 17:57:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03329-04 for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (ebed.etf.cuni.cz [195.113.5.3]) by menubar.gnome.org (Postfix) with ESMTP id 1BFA13B086C for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (localhost.localdomain [127.0.0.1]) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11) with ESMTP id k55LkIq0015361 for ; Mon, 5 Jun 2006 23:46:18 +0200 Received: (from tomasek@localhost) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11/Submit) id k55LkIAG015359 for gtk-list@gnome.org; Mon, 5 Jun 2006 23:46:18 +0200 Date: Mon, 5 Jun 2006 23:46:18 +0200 From: Petr Tomasek To: gtk-list@gnome.org Message-ID: <20060605214618.GA14951@ebed.etf.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Homepage: http://www.etf.cuni.cz/~tomasek/ X-Echelon: bomb Arafat Intifada bus kach drugs mafia boss heroin spy Semtex Saddam Al-Qaida Usama bin Ladin Bush Sharon X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.494 X-Spam-Level: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:57:53 -0000 On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > Hello, > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > when running gtk-demo -> UI Manger demo i've got the following output > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > when trying File menu. is it a bug or not ??? Did you also update the gtk2-engines? -- Petr Tomasek From katsuo_harada_evil_does@hotmail.com Mon Jun 5 18:13:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A06E33B08BD for ; Mon, 5 Jun 2006 18:13:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04035-10 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from hotmail.com (bay105-f10.bay105.hotmail.com [65.54.224.20]) by menubar.gnome.org (Postfix) with ESMTP id 1E6233B0929 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 15:13:06 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 22:13:05 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com In-Reply-To: <20060605214618.GA14951@ebed.etf.cuni.cz> From: "Vitaly D" To: tomasek@etf.cuni.cz, gtk-list@gnome.org Date: Tue, 06 Jun 2006 00:13:05 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 22:13:06.0099 (UTC) FILETIME=[385EA030:01C688ED] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.375 tagged_above=-999 required=2 tests=[AWL=-0.759, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.375 X-Spam-Level: Cc: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 22:13:11 -0000 >From: Petr Tomasek >To: gtk-list@gnome.org >Subject: Re: gtk+-2.9.2 bug or not ??? >Date: Mon, 5 Jun 2006 23:46:18 +0200 > >On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > > Hello, > > > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > > > when running gtk-demo -> UI Manger demo i've got the following output > > > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > > > when trying File menu. is it a bug or not ??? > >Did you also update the gtk2-engines? what is gtk2-engines ? i'm using FreeBSD 4.11 with XFree86 4.6.0 with latest pango (1.13.1) atk (1.10.3) cairo (1.1.6) freetype (2.2.1) if this helps. otherwise i don't know what is gtk2-engines Cheers _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From BillS@techsi.com Tue Jun 6 10:26:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 863103B0182 for ; Tue, 6 Jun 2006 10:26:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28454-01 for ; Tue, 6 Jun 2006 10:26:32 -0400 (EDT) Received: from mail.techsi.com (wsip-68-15-225-156.om.om.cox.net [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id B57E73B01B5 for ; Tue, 6 Jun 2006 10:26:31 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56EASAZ022954 for ; Tue, 6 Jun 2006 09:10:31 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 09:26:15 -0500 Message-ID: <00e901c68975$2e2455f0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EA_01C6894B.454E4DF0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.365 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.365 X-Spam-Level: Subject: Treeview - simulating / faking keyboard events to change selection / view X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 14:26:36 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I would like to simulate the functionality of the up and down, page up and down, and home and end keyboard keys to the treeview widget. So instead of writing all the scrolling functions myself, I would just like to use the existing ones within the treeview widget that are activated by keyboard events. So I would like to "trigger" the treeview widget into sensing that one of the keyboard buttons have been pressed that would scroll the treeview by line, page, or beginning or end of list. Thanks, Bill ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I would like to simulate the functionality of the up and down, page = up and down, and home and end keyboard keys to the treeview widget.  So = instead of writing all the scrolling functions myself, I would just like to use = the existing ones within the treeview widget that are activated by keyboard events.  So I would like to “trigger” the treeview = widget into sensing that one of the keyboard buttons have been pressed that would = scroll the treeview by line, page, or beginning or end of = list.

 

Thanks,

Bill

 

------=_NextPart_000_00EA_01C6894B.454E4DF0-- From johannes_vuori@web.de Mon Jun 5 12:46:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 916763B026A for ; Mon, 5 Jun 2006 12:46:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15064-06 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by menubar.gnome.org (Postfix) with ESMTP id 5D9E53B0429 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Reveived: from web.de by fmmailgate04.web.de (Postfix) with SMTP id 044A745BA for ; Mon, 5 Jun 2006 18:46:39 +0200 (CEST) Received: from [85.156.186.148] by freemailng1803.web.de with HTTP; Mon, 05 Jun 2006 18:46:38 +0200 Date: Mon, 05 Jun 2006 18:46:38 +0200 Message-Id: <814204608@web.de> MIME-Version: 1.0 From: johannes_vuori@web.de To: gtk-list@gnome.org Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.221 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, NO_REAL_NAME=0.961] X-Spam-Score: 0.221 X-Spam-Level: X-Mailman-Approved-At: Tue, 06 Jun 2006 11:17:41 -0400 Subject: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 16:46:51 -0000 Hi, I am developing a project with a friend. We are on the search for a good 2d graphics library, and I saw Your's. I would like to ask if the library for Windows and Linux use the same function names. So, if I would write this programm on a Linux system, would it be possible to simply install the Windows library on the Windows system, and without changing the names of the functions (of the library) in my programm, to compile it? Or are there slight/major changes we would have to do first? Is there also a c++ version for Windows? Yours sincerely, Johannes _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From tml@iki.fi Tue Jun 6 11:30:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7D50D3B0151 for ; Tue, 6 Jun 2006 11:30:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00836-04 for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 6E6E93B028A for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from pettson.tml.iki.fi (MMMDCCLXVIII.tun.saunalahti.fi [213.169.6.168]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 8AB222166B5; Tue, 6 Jun 2006 18:30:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17541.40860.218000.127270@gargle.gargle.HOWL> Date: Tue, 6 Jun 2006 18:30:36 +0300 To: johannes_vuori@web.de In-Reply-To: <814204608@web.de> References: <814204608@web.de> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.328 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.328 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 15:30:57 -0000 johannes_vuori@web.de writes: > I am developing a project with a friend. We are on the search for a > good 2d graphics library, Well, GTK+ isn't really a "2D graphics library". Maybe you are using the term loosely, or should you look on cairo instead? > I would like to ask if the library for Windows and Linux use the > same function names. Of course, it wouldn't make any sense otherwise, would it? (There are a few platform-specific functions that have x11 or win32 in their names, but they are very special-case.) > So, if I would write this programm on a Linux system, would it be > possible to simply install the Windows library on the Windows > system, and without changing the names of the functions (of the > library) in my programm, to compile it? If you program otherwise is portable, and if you take into consideration some relatively straightforward rules of thumb to follow, sure. (See http://www.iki.fi/tml/fosdem-2006.pdf ) It's best to build and test on both platforms continuously while developing the software, not just as a last-night effort, only to notice that you have made some fundamental nonportable design choice right at the start... > Is there also a c++ version for Windows? With C++ "version" I guess you mean gtkmm, which really isn't a "version", but a C++ binding on top of GTK+. Anyway, as far as I know, yes. Have never used it myself, though. --tml From BillS@techsi.com Tue Jun 6 18:09:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45303B02E8 for ; Tue, 6 Jun 2006 18:09:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25029-01 for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from mail.techsi.com (techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 7D7373B00BC for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56LrZAZ026420 for ; Tue, 6 Jun 2006 16:53:37 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 17:09:16 -0500 Message-ID: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01A0_01C6898B.F3EC31C0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.499 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.499 X-Spam-Level: Subject: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 22:09:28 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I need to indicate to the treeview widget how many rows to scroll up or down. Any suggestions on how to do this? I know I can position the cursor based on a path. However, that may be tricky in that the user may or may not have the sections within the tree expanded or not. Also, I would have to track how many rows are currently displayed within the current treeview. I other words, I need to emulate the user scrolling through the treeview by line, by page, or to the beginning or end. I think the begin or end would not be too bad. Thanks, Bill ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I need to indicate to the treeview widget how many rows to scroll = up or down.  Any suggestions on how to do this?  I know I can = position the cursor based on a path.  However, that may be tricky in that the = user may or may not have the sections within the tree expanded or not.  = Also, I would have to track how many rows are currently displayed within the = current treeview.

 

I other words, I need to = emulate the user scrolling through the treeview by line, by page, or to the = beginning or end.  I think the begin or end would not be too bad. =

 

Thanks,

Bill

 

------=_NextPart_000_01A0_01C6898B.F3EC31C0-- From tristan.van.berkom@gmail.com Tue Jun 6 22:03:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 713AF3B0B0A for ; Tue, 6 Jun 2006 22:03:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04432-05 for ; Tue, 6 Jun 2006 22:03:23 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by menubar.gnome.org (Postfix) with ESMTP id D29193B02D7 for ; Tue, 6 Jun 2006 22:03:22 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i12so280761wra for ; Tue, 06 Jun 2006 19:03:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MCzN6WRNDUHNO5h5KKbkczD+CTM0HLmY/6bgqc0T4C5mS7d+oONlRu0YSriqgEJ1voJGKRTu20Czmb2mSN30XDamoLYVDbg3g5mxYAC1GHnZo5g3K1n17wf+PRwcZ4om3AB//Xibs2oJvnB7udTlg8kvLvt40i+QFCqUYBhsAzA= Received: by 10.54.116.7 with SMTP id o7mr9068wrc; Tue, 06 Jun 2006 19:03:17 -0700 (PDT) Received: from ?66.48.170.73? ( [66.48.170.73]) by mx.gmail.com with ESMTP id g2sm1167040wra.2006.06.06.19.03.17; Tue, 06 Jun 2006 19:03:18 -0700 (PDT) Message-ID: <448637A8.7040007@gnome.org> Date: Tue, 06 Jun 2006 22:19:20 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Sousan References: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> In-Reply-To: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.222 tagged_above=-999 required=2 tests=[AWL=0.378, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.222 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 02:03:25 -0000 Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From kereoz@yahoo.fr Wed Jun 7 04:20:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C11D3B0343 for ; Wed, 7 Jun 2006 04:20:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26466-05 for ; Wed, 7 Jun 2006 04:20:04 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id 01BE63B0217 for ; Wed, 7 Jun 2006 04:20:03 -0400 (EDT) Received: (qmail 35942 invoked by uid 60001); 7 Jun 2006 08:19:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=niZGyLE9Dw8mE00kfBFaSxDwB15y4KEkapVjfVMgSDMdAH1E/ZhaTeKOFuupaoYqxWtRPTUPUlGIB6Pv5xb7h7lX7E/wWCvHddhgrZ0RjJuwK/ZA8ZfGsDS3z7jKxNXIw9umiOI3oZWHTQjPQ6Vs2r+d4icV0Uwk9rpN2O0dCHY= ; Message-ID: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 07 Jun 2006 10:19:59 CEST Date: Wed, 7 Jun 2006 10:19:59 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.011 tagged_above=-999 required=2 tests=[AWL=-0.425, BAYES_20=-0.74, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.011 X-Spam-Level: Subject: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 08:20:07 -0000 Hi, I've got questions about building the gtkmozembed widget. Do I need to build mozilla or firefox from sources ? Mozilla or firefox ? Is there a way t build only the widget ? I would like to compile a gtk app using gtkmozembed (gtk mozilla widget) for ARM, so I need to have light libs. Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tonikitoo@gmail.com Wed Jun 7 08:39:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BF753B0D02 for ; Wed, 7 Jun 2006 08:39:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12108-03 for ; Wed, 7 Jun 2006 08:39:22 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id A14753B0CE7 for ; Wed, 7 Jun 2006 08:39:21 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167152wri for ; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pmn1n8Xl2f8npFFsBp5bWT5cMk8+QQwzmdfNwjtEPx4SzHfhwJ2Vo3DTFuksX7t+yf65LUhdLJSQ+Z3yRqc+xL/yhH8A/VtCZ+LLevuZhjds3Id1CFNC0DntHXlO4aR7kNGKNFvCOi5kvYaGMNA2hgO3T68tEVs7PhWvlYsne48= Received: by 10.65.98.11 with SMTP id a11mr307127qbm; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:39:20 -0700 (PDT) Message-ID: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> Date: Wed, 7 Jun 2006 08:39:20 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.18 tagged_above=-999 required=2 tests=[AWL=0.189, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.18 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:39:23 -0000 you could try building xulrunner with the --with-gecko-profile=minimal set, from the branch MOZILLA_1_8_BRANCH [pulling] export MOZ_CO_TAG=MOZILLA_1_8_BRANCH cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk # type the password anonymous cd mozilla make -f client.mk checkout MOZ_CO_PROJECT=xulrunner [building] cd cp xulrunner/config/mozconfig . [add the following 4 line into your mozconfig] ac_add_options --prefix= ac_add_options --disable-javaxpcom ac_add_options --disable-js-static-build ac_add_options --with-embedding-profile=minimal make -f client.mk build_all make -s install this would provide you the minimal 'gecko' build for embedding purposes. Link against the .so libs created at yout/prefix/lib/mozilla/.so (according with the .pc files). regards On 6/7/06, Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? > Mozilla or firefox ? > Is there a way t build only the widget ? > > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. > -- --Antonio Gomes Nokia Technology Institute From tonikitoo@gmail.com Wed Jun 7 08:41:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96E843B0D2A for ; Wed, 7 Jun 2006 08:41:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12377-03 for ; Wed, 7 Jun 2006 08:41:35 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 83A903B0D01 for ; Wed, 7 Jun 2006 08:40:45 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167408wri for ; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SXNYjX2suiXxjuMwK8zSL9VKJKjxgoH1rxni5wMIOa8sVn7/yZ15daEQX7VbhIemOstEvrSzyN4C6DOFgZHTSAZzklftx7v19uSUOB9L5jCPvU/L+a6tLNymZj8HshTIVEJ4HGqu17GXcUUQ0zrzMdNEfFxbA3DceTBHSka6v48= Received: by 10.65.237.20 with SMTP id o20mr305181qbr; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:40:44 -0700 (PDT) Message-ID: <7eb9ad710606070540k31b59afci2e52d298787a6200@mail.gmail.com> Date: Wed, 7 Jun 2006 08:40:44 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.2 tagged_above=-999 required=2 tests=[AWL=0.169, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.2 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:41:51 -0000 you can follow their official website at http://developer.mozilla.org/en/docs/Configuring_Build_Options#Using_a_.mozconfig_Configuration_File On 6/7/06, Antonio Gomes wrote: > you could try building xulrunner with the --with-gecko-profile=minimal > set, from the branch MOZILLA_1_8_BRANCH > > [pulling] > export MOZ_CO_TAG=MOZILLA_1_8_BRANCH > > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk > # type the password anonymous > cd mozilla > make -f client.mk checkout MOZ_CO_PROJECT=xulrunner > > [building] > cd > cp xulrunner/config/mozconfig . > [add the following 4 line into your mozconfig] > ac_add_options --prefix= > ac_add_options --disable-javaxpcom > ac_add_options --disable-js-static-build > ac_add_options --with-embedding-profile=minimal > make -f client.mk build_all > make -s install > > this would provide you the minimal 'gecko' build for embedding > purposes. Link against the .so libs created at > yout/prefix/lib/mozilla/.so (according with the .pc files). > > regards > > On 6/7/06, Christophe HAUSER wrote: > > Hi, > > > > I've got questions about building the gtkmozembed > > widget. > > Do I need to build mozilla or firefox from sources ? > > Mozilla or firefox ? > > Is there a way t build only the widget ? > > > > I would like to compile a gtk app using gtkmozembed > > (gtk mozilla widget) for ARM, so I need to have light > > libs. > > > > -- > --Antonio Gomes > Nokia Technology Institute > -- --Antonio Gomes From tvb@gnome.org Wed Jun 7 09:07:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 69DD73B0CE0 for ; Wed, 7 Jun 2006 09:07:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14222-07 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id B8F923B0CB4 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id E61EA15A5E; Wed, 7 Jun 2006 09:07:23 -0400 (EDT) Message-ID: <4486D1CD.8070408@gnome.org> Date: Wed, 07 Jun 2006 09:17:01 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.48 tagged_above=-999 required=2 tests=[AWL=-0.034, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.48 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:07:28 -0000 Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? Heavens no ! the headers and gtkmozembed library is distributed with the system gecko, save yourself the trouble and use them. See the gnome 'devhelp' module's autofoo setup for an example of how to detect the correct gecko and get the right compile flags etc. Cheers, -Tristan From tvb@gnome.org Wed Jun 7 09:14:22 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0F433B0CDC for ; Wed, 7 Jun 2006 09:14:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14864-08 for ; Wed, 7 Jun 2006 09:14:20 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 258CD3B0D28 for ; Wed, 7 Jun 2006 09:14:18 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 34CE315A5E; Wed, 7 Jun 2006 09:14:14 -0400 (EDT) Message-ID: <4486D367.8070608@gnome.org> Date: Wed, 07 Jun 2006 09:23:51 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XF=0.077] X-Spam-Score: -2.441 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:14:22 -0000 Christophe HAUSER wrote: [...] > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. Sorry I missed this part... if you dont already have a gecko compiled and installed for your ARM machine... then you should look into compiling it, I havent heard of any "tiny gecko" in existence, although you can taylor your compile options I suppose and add stuff like --strip-all from your libs... If you do compile the gecko, follow the instructions at mozilla.org and find the right options to begin with: type "about:buildconfig" in the url window of any firefox to know the compile options, you want to use the compile options that suit your site (i.e. are you rendering fonts with xft ? are you using cairo backends ? what did the vendors compile with when compiling against a similar library suite to your ARM system). Cheers, -Tristan From bharat.gusain@st.com Wed Jun 7 06:05:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 56E0F3B0BCF for ; Wed, 7 Jun 2006 06:05:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01274-09 for ; Wed, 7 Jun 2006 06:05:22 -0400 (EDT) Received: from fra-del-03.spheriq.net (fra-del-03.spheriq.net [195.46.51.99]) by menubar.gnome.org (Postfix) with ESMTP id DE4263B0BA2 for ; Wed, 7 Jun 2006 06:05:21 -0400 (EDT) Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-03.spheriq.net with ESMTP id k57A5B4T000894 for ; Wed, 7 Jun 2006 10:05:11 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-02.spheriq.net with ESMTP id k57A575Q009985 for ; Wed, 7 Jun 2006 10:05:08 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id k57A567i024086 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 7 Jun 2006 10:05:07 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BFB19DA46 for ; Wed, 7 Jun 2006 10:05:05 +0000 (GMT) Received: from mail1.dlh.st.com (mail1.dlh.st.com [10.199.8.21]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 16D8C4741C for ; Wed, 7 Jun 2006 10:05:04 +0000 (GMT) Received: from dlhgn13dhcp15.dlh.st.com (dlhgn13dhcp15.dlh.st.com [10.199.13.15]) by mail1.dlh.st.com (MOS 3.5.8-GR) with ESMTP id CKW69700 (AUTH "bharat gusain"); Wed, 7 Jun 2006 15:35:02 +0530 (IST) From: Bharat Singh GUSAIN Organization: st To: gtk-list@gnome.org Date: Wed, 7 Jun 2006 15:32:26 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606071532.26772.bharat.gusain@st.com> X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.005 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DATE_IN_FUTURE_06_12=1.668, TW_GT=0.077] X-Spam-Score: 1.005 X-Spam-Level: * X-Mailman-Approved-At: Wed, 07 Jun 2006 09:14:49 -0400 Subject: YUV image display X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 10:05:23 -0000 hi all, i am new to GTK and is currently working on a webcam application developed in GTK for which i need some nice gui frontend and need to display the yuyv image formats also. but gtk only display images in rgb format. can anybody tell me that whether there is any calls in GTK which can display the yuv images. Thanx in advance Bharat From gnome-gtk-list@m.gmane.org Wed Jun 7 19:05:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CDEC93B04FF for ; Wed, 7 Jun 2006 19:05:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21300-02 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 83E5C3B0339 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fo75C-0003yi-Gn for gtk-list@gnome.org; Thu, 08 Jun 2006 01:05:04 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Wed, 7 Jun 2006 23:02:39 +0000 (UTC) Lines: 81 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_DP=0.077, TW_GT=0.077] X-Spam-Score: -1.998 X-Spam-Level: Subject: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:05:11 -0000 I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). After doing so, I get the following error messages when I run gtk applications: ~ [1] gedit gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control ~ [2] evince evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control I've done Web searches and I have tried a number of things, but none of them fix this problem. Is this the right list on which to ask this question? It seems Gtk related. Does anyone have a suggestion? I've attached some notes on some of the things that I have tried, just in case they offer a clue. Thanks for help. Dave Some additional notes follow: ========================================================= When running gtk applications, for example gedit, I get the following message:: gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control This means, apparently, that every gtk application on my system is broken. Examples: gedit, firefox, realplay, epiphany, evince, SciTE, This symbol seems to be defined in libgobject-2.0.a. I ran:: $ nm -A --defined-only lib* | grep g_object_compat_control | less and saw the following:: libgobject-2.0.a:gobject.o:000036fe T g_object_compat_control the "T" means "The symbol is in the text (code) section." Then, to find out what package libgobject-2.0.a is in, I did the following:: $ dpkg -S libgobject-2.0.a which displayed:: libglib2.0-dev: /usr/lib/libgobject-2.0.a So, I did:: $ sudo apt-get --reinstall install libglib2.0-dev But, for example, gedit still does not work. Next, I did the following: 1. Retrieved a new, fresh /etc/apt/sources.list from http://www.ubuntuforums.org/showpost.php?p=1090438 2. Did another update/upgrade:: $ sudo apt-get update $ sudo apt-get upgrade But, gedit, for example, still produces the same error message. From yeti@physics.muni.cz Wed Jun 7 19:24:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C49E93B036A for ; Wed, 7 Jun 2006 19:24:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22273-07 for ; Wed, 7 Jun 2006 19:24:27 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id F030C3B02BE for ; Wed, 7 Jun 2006 19:24:26 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k57NOOFK029666 for ; Thu, 8 Jun 2006 01:24:25 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 953C823D62; Thu, 8 Jun 2006 01:24:24 +0200 (CEST) Date: Thu, 8 Jun 2006 01:24:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060607232429.GD30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:24:28 -0000 On Wed, Jun 07, 2006 at 11:02:39PM +0000, Dave Kuhlman wrote: > I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. > I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). > After doing so, I get the following error messages when I run gtk applications: > > ~ [1] gedit > gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > ~ [2] evince > evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > > Does anyone have a suggestion? What ldd some-gtk-app prints? Namely the libgobject-2.0 is interesting. > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > $ nm -A --defined-only lib* | grep g_object_compat_control | less You cannot get symbols from shared libs with nm. Try something like eu-readelf --symbols libgobject-2.0.so.0.1000.3 instead to get symbol info from the dynamic lib. Static libs (.a) are not used for dynamic linking and thus irrelevant here. What libgobject-2.0* files you have there anyway? > ... > So, I did:: > > $ sudo apt-get --reinstall install libglib2.0-dev The NON-dev package is important for run-time, -dev is only important for compilation. So what libglib2.0 do you have installed? Is it at least 2.10.0? Yeti -- Anonyms eat their boogers. From gnome-gtk-list@m.gmane.org Wed Jun 7 20:08:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA87F3B04ED for ; Wed, 7 Jun 2006 20:08:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24955-07 for ; Wed, 7 Jun 2006 20:08:47 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id E38E63B0E52 for ; Wed, 7 Jun 2006 20:08:46 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fo84m-00068B-52 for gtk-list@gnome.org; Thu, 08 Jun 2006 02:08:40 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Thu, 8 Jun 2006 00:08:23 +0000 (UTC) Lines: 65 Message-ID: References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.242 tagged_above=-999 required=2 tests=[AWL=-0.167, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_GT=0.077] X-Spam-Score: -2.242 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 00:08:48 -0000 David Ne膷as (Yeti physics.muni.cz> writes: > > What > > ldd some-gtk-app > > prints? Namely the libgobject-2.0 is interesting. > David (Yeti) - Wow. I am really glad that I asked this question. Your reply was very educational. After posting my original message, I continued working on this problem. I remembered that, some time ago, I had compiled gtk+ on my machine. So I did $ make uninstall for each of pango, cairo, glib, and gtk+. Now, when I do (as you suggested): $ ldd gedit I do not see references to the libraries that I built in /usr/local/lib. I guess my problem was that these libraries were old and not up-to-date. > > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > > > $ nm -A --defined-only lib* | grep g_object_compat_control | less > > You cannot get symbols from shared libs with nm. Try > something like > > eu-readelf --symbols libgobject-2.0.so.0.1000.3 I do not have eu-readelf on my machine. I will have to go looking for it. > > instead to get symbol info from the dynamic lib. Static libs > (.a) are not used for dynamic linking and thus irrelevant > here. > > What libgobject-2.0* files you have there anyway? > I believe that the problem was that the version in /usr/local/lib was built from old source. When I removed it, my system started finding the more up-to- date version in /usr/lib. That fixed my problem. I do not need to build gtk+ from source right now, but will likely need to do so in the future. I will have to try to remember this problem, and the suggestions you (Yeti) gave me to track it down. I've saved your message where I will have it next time. Thanks again. Dave From yeti@physics.muni.cz Thu Jun 8 04:25:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF193B0DFE for ; Thu, 8 Jun 2006 04:25:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19030-01 for ; Thu, 8 Jun 2006 04:25:36 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 5B5A23B05CC for ; Thu, 8 Jun 2006 04:25:35 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k588PSGn010077 for ; Thu, 8 Jun 2006 10:25:29 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id BC2F123D63; Thu, 8 Jun 2006 10:25:28 +0200 (CEST) Date: Thu, 8 Jun 2006 10:25:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608082529.GH2166@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 08:25:37 -0000 On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > I do not have eu-readelf on my machine. I will have to go looking for it. It seems Debian does not contain elfutils. Granted, it used to have an idiosyncratic license, but now it is GNU GPL so hopefully it will get to Debian too. > I do not need to build gtk+ from source right now, but will likely need to do > so in the future. I will have to try to remember this problem I wrote this a hundered times but I will repeat it again and again... Do not install libraries to /usr/local while you have another version of the library installed by your distro, it is a reciepe for troubles. Use the packaging system. Take advantage of the packaging system. It is not so hard to build a package of a newer version if you have the source package of the current one. Also look at backports, the version you need can be already there. Yeti -- Anonyms eat their boogers. From kereoz@yahoo.fr Thu Jun 8 05:06:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E914A3B05CA for ; Thu, 8 Jun 2006 05:06:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21502-05 for ; Thu, 8 Jun 2006 05:06:33 -0400 (EDT) Received: from web25906.mail.ukl.yahoo.com (web25906.mail.ukl.yahoo.com [217.12.10.204]) by menubar.gnome.org (Postfix) with SMTP id C371F3B0427 for ; Thu, 8 Jun 2006 05:06:32 -0400 (EDT) Received: (qmail 11551 invoked by uid 60001); 8 Jun 2006 09:06:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yMPVnzoUVlcHS8vnCG1q+69Nrkmr9PvstPvpkyp4VhjDcDD/NUaosQ+ctN8+TRCwM3yVcymuVv2BKEkz+78Taqh16m4tmcP6P6EHx26vPh5se7LkU46jb+BLQFhgFwJllRnFnYQJWfWE0rfEI2wjtRHHGIy+synl5rqR7tQBaj8= ; Message-ID: <20060608090631.11549.qmail@web25906.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25906.mail.ukl.yahoo.com via HTTP; Thu, 08 Jun 2006 11:06:31 CEST Date: Thu, 8 Jun 2006 11:06:31 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org In-Reply-To: <4486D367.8070608@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.079 tagged_above=-999 required=2 tests=[AWL=0.443, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.079 X-Spam-Level: Subject: RE : Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 09:06:35 -0000 Thanks a lot :) Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From murrayc@murrayc.com Thu Jun 8 13:20:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C3163B07EB for ; Thu, 8 Jun 2006 13:20:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24076-02 for ; Thu, 8 Jun 2006 13:20:40 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (sd-green-bigip-98.dreamhost.com [208.97.132.98]) by menubar.gnome.org (Postfix) with ESMTP id 225883B0EFD for ; Thu, 8 Jun 2006 13:20:38 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id EE142129A8C for ; Thu, 8 Jun 2006 10:20:31 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-vTkKqJNWDGQR4LW1VhLx" Date: Thu, 08 Jun 2006 19:20:28 +0200 Message-Id: <1149787228.5749.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.444 tagged_above=-999 required=2 tests=[AWL=0.078, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.444 X-Spam-Level: Subject: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:20:44 -0000 --=-vTkKqJNWDGQR4LW1VhLx Content-Type: text/plain Content-Transfer-Encoding: 7bit Could someone point out what I'm doing wrong in the attached test case? It's meant to read a value from the rc file, to determine how a widget would be drawn, making the widget themed. I get this output: example button gtype name=ExampleButton example_button_class_init(): Registering example_thing style property. example_button_init(): example_thing from rc file=0 -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=custom_gtkrc Content-Type: text/plain; name=custom_gtkrc; charset=UTF-8 Content-Transfer-Encoding: 7bit style "example-style" { ExampleButton::example_thing = 10 } class "ExampleButton" style "example-style" --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=testrcfull.c Content-Type: text/x-csrc; name=testrcfull.c; charset=UTF-8 Content-Transfer-Encoding: 7bit #include typedef struct _ExampleButton ExampleButton; typedef struct _ExampleButtonClass ExampleButtonClass; struct _ExampleButton { GtkButton parent; /* private */ }; struct _ExampleButtonClass { GtkButtonClass parent_class; }; static void example_button_init (ExampleButton *object) { int example_thing = 0; gtk_widget_style_get(GTK_WIDGET(object), "example_thing", &example_thing, NULL); printf("example_button_init(): example_thing from rc file=%d\n", example_thing); } static void example_button_class_init (ExampleButtonClass *klass) { GtkWidgetClass *widget_klass = 0; widget_klass = GTK_WIDGET_CLASS (klass); printf("example_button_class_init(): Registering example_thing style property.\n"); gtk_widget_class_install_style_property(widget_klass, g_param_spec_int("example_thing", "Example Thing", "This is just a silly example.", G_MININT, G_MAXINT, 0, G_PARAM_READABLE) ); } G_DEFINE_TYPE (ExampleButton, example_button, GTK_TYPE_BUTTON); #define EXAMPLE_TYPE_BUTTON (example_button_get_type ()) #define EXAMPLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_TYPE_BUTTON, ExampleButton)) #define EXAMPLE_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EXAMPLE_BUTTON, ExampleButtonClass)) #define EXAMPLE_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_IS_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_BUTTON_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_BUTTON, ExampleButtonClass)) GtkWidget * example_button_new (void) { return g_object_new (EXAMPLE_TYPE_BUTTON, NULL); } int main( int argc, char *argv[] ) { GtkWidget *window = 0; GtkWidget *button = 0; gtk_init (&argc, &argv); GType gtype = example_button_get_type(); //Make sure that it is initialized. printf("example button gtype name=%s\n", g_type_name(gtype)); /* Without the gtk_window_new(), the RC file is never parsed. */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 200, 200); button = example_button_new(); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_rc_parse("custom_gtkrc"); gtk_main (); return 0; } --=-vTkKqJNWDGQR4LW1VhLx-- From tkomulai@gmail.com Thu Jun 8 13:55:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C39FF3B0670 for ; Thu, 8 Jun 2006 13:55:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26215-06 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by menubar.gnome.org (Postfix) with ESMTP id 1C0663B0718 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id m2so969661uge for ; Thu, 08 Jun 2006 10:55:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N/uF80Ph918v7qMbZwwC4m8meKdr58vk9243wbszTySV3jyA0b8R3dTqgp4Hn4dkDgd5RdsId8kyvevrz2CNZbJMYCVLeEEaV7C/KHshARrLSrba0urdFRwNtxLhTucxnKtW1uYecUM5neZXyU5rjMIqdi/rmdbnXiRSBseYAmY= Received: by 10.78.18.1 with SMTP id 1mr592938hur; Thu, 08 Jun 2006 10:55:38 -0700 (PDT) Received: by 10.78.41.17 with HTTP; Thu, 8 Jun 2006 10:55:38 -0700 (PDT) Message-ID: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> Date: Thu, 8 Jun 2006 20:55:38 +0300 From: "Tommi Komulainen" Sender: tkomulai@gmail.com To: gtk-list@gnome.org In-Reply-To: <1149787228.5749.5.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1149787228.5749.5.camel@localhost.localdomain> X-Google-Sender-Auth: 220f190103d8c34d X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=0.162, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.438 X-Spam-Level: Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:55:43 -0000 On 6/8/06, Murray Cumming wrote: > Could someone point out what I'm doing wrong in the attached test case? > It's meant to read a value from the rc file, to determine how a widget > would be drawn, making the widget themed. > > I get this output: > > example button gtype name=ExampleButton > example_button_class_init(): Registering example_thing style property. > example_button_init(): example_thing from rc file=0 Instance init is too early to get style properties (though I suppose you could call gtk_widget_ensure_style there), you need to wait until 'style-set' is called. You should implement the style-set default handler anyway to work with theme changes. Unless you change widget hierarchies based on the style property it should be enough to access the property in size-request, size-allocate and expose. -- Tommi Komulainen tommi.komulainen@iki.fi From paul@linuxaudiosystems.com Thu Jun 8 14:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28F3F3B0F8F for ; Thu, 8 Jun 2006 14:26:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27909-07 for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 5CC3C3B0F4E for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from dholak ([151.197.23.127]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0K00IO20K3LGR1@vms040.mailsrvcs.net> for gtk-list@gnome.org; Thu, 08 Jun 2006 13:26:28 -0500 (CDT) Date: Thu, 08 Jun 2006 14:26:45 -0400 From: Paul Davis In-reply-to: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> To: Tommi Komulainen Message-id: <1149791205.5323.0.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 18:26:35 -0000 On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > On 6/8/06, Murray Cumming wrote: > > Could someone point out what I'm doing wrong in the attached test case? > > It's meant to read a value from the rc file, to determine how a widget > > would be drawn, making the widget themed. > > > > I get this output: > > > > example button gtype name=ExampleButton > > example_button_class_init(): Registering example_thing style property. > > example_button_init(): example_thing from rc file=0 > > Instance init is too early to get style properties (though I suppose > you could call gtk_widget_ensure_style there), you need to wait until > 'style-set' is called. You should implement the style-set default > handler anyway to work with theme changes. > > Unless you change widget hierarchies based on the style property it > should be enough to access the property in size-request, size-allocate > and expose. or call widget::ensure_style() From adam@ajtee.plus.com Thu Jun 8 15:45:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0B4A3B0FBE for ; Thu, 8 Jun 2006 15:45:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00491-09 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by menubar.gnome.org (Postfix) with ESMTP id 69ECB3B0766 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from [212.159.108.21] (helo=[192.168.0.3]) by pih-relay04.plus.net with esmtp (Exim) id 1FoQRs-0000el-NZ for gtk-list@gnome.org; Thu, 08 Jun 2006 20:45:44 +0100 Message-ID: <44887E68.8030004@ajtee.plus.com> Date: Thu, 08 Jun 2006 20:45:44 +0100 From: Adam Tee User-Agent: Thunderbird 1.5.0.4 (X11/20060606) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.399 X-Spam-Level: Subject: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 19:45:48 -0000 Hi all, I have a couple of questions regarding keybindings in my application. Is there anyway of overriding a window managers keybindings in an application ? The second concerns menued items which have been configured using an array of GtkActionEntries. Can I changed the associated keybindings on the fly, i.e. after loading a keymap file ? The menus are defined in a xml file. Thanks Adam Maintainer GNU Denemo, a GTK+ Front-End to GNU Lilypond From murrayc@murrayc.com Thu Jun 8 16:07:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A46153B021A for ; Thu, 8 Jun 2006 16:07:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02092-04 for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by menubar.gnome.org (Postfix) with ESMTP id 529653B000E for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id 5B020129A8D; Thu, 8 Jun 2006 13:07:47 -0700 (PDT) From: Murray Cumming To: paul@linuxaudiosystems.com In-Reply-To: <1149791205.5323.0.camel@localhost.localdomain> References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> <1149791205.5323.0.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 08 Jun 2006 22:07:43 +0200 Message-Id: <1149797263.5749.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.482 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599] X-Spam-Score: -2.482 X-Spam-Level: Cc: Tommi Komulainen , gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:07:50 -0000 On Thu, 2006-06-08 at 14:26 -0400, Paul Davis wrote: > On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > > On 6/8/06, Murray Cumming wrote: > > > Could someone point out what I'm doing wrong in the attached test case? > > > It's meant to read a value from the rc file, to determine how a widget > > > would be drawn, making the widget themed. > > > > > > I get this output: > > > > > > example button gtype name=ExampleButton > > > example_button_class_init(): Registering example_thing style property. > > > example_button_init(): example_thing from rc file=0 > > > > Instance init is too early to get style properties (though I suppose > > you could call gtk_widget_ensure_style there), you need to wait until > > 'style-set' is called. You should implement the style-set default > > handler anyway to work with theme changes. > > > > Unless you change widget hierarchies based on the style property it > > should be enough to access the property in size-request, size-allocate > > and expose. > > or call widget::ensure_style() Thanks. gtk_widget_ensure_style() doesn't make any difference for me, but I can successfully read the value in the realize handler. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From ben@benjohnson.net Thu Jun 8 16:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C31863B1008 for ; Thu, 8 Jun 2006 16:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03294-10 for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: from server018.dfw.nationwide.net (unknown [206.123.129.81]) by menubar.gnome.org (Postfix) with SMTP id 7FA0B3B021A for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: (qmail 21060 invoked from network); 8 Jun 2006 20:30:05 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 08 Jun 2006 20:30:05 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id B3A5BE4067 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02308-05 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id 9152AE4068; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Date: Thu, 8 Jun 2006 13:30:04 -0700 From: Anna To: gtk-list@gnome.org Message-ID: <20060608203003.GG6681@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608082529.GH2166@potato.chello.upc.cz> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:30:22 -0000 On Thu, Jun 08, 2006 at 10:25:29AM +0200, David Ne?as (Yeti) wrote: > On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > > > I do not have eu-readelf on my machine. I will have to go looking for it. > > It seems Debian does not contain elfutils. Granted, it used > to have an idiosyncratic license, but now it is GNU GPL so > hopefully it will get to Debian too. darling:~# cat /etc/debian_version 3.1 darling:~# dpkg -S /usr/bin/readelf binutils: /usr/bin/readelf maybe 'readelf' on Debian the same as eu-readelf? - Anna From yeti@physics.muni.cz Thu Jun 8 16:38:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 160683B1008 for ; Thu, 8 Jun 2006 16:38:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03782-07 for ; Thu, 8 Jun 2006 16:38:03 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 852DA3B036E for ; Thu, 8 Jun 2006 16:38:01 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Kbt6q023889 for ; Thu, 8 Jun 2006 22:37:56 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 53BF923D9A; Thu, 8 Jun 2006 22:37:55 +0200 (CEST) Date: Thu, 8 Jun 2006 22:38:00 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608203800.GI30886@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> <20060608203003.GG6681@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608203003.GG6681@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:38:08 -0000 On Thu, Jun 08, 2006 at 01:30:04PM -0700, Anna wrote: > > darling:~# cat /etc/debian_version > 3.1 > darling:~# dpkg -S /usr/bin/readelf > binutils: /usr/bin/readelf > > maybe 'readelf' on Debian the same as eu-readelf? This is binutils' readelf. They are different but both should work for the discussed purpose. Yeti -- Anonyms eat their boogers. From BillS@techsi.com Thu Jun 8 17:36:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA1DA3B000E for ; Thu, 8 Jun 2006 17:36:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07163-08 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 38CAB3B0194 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k58LKsAZ017367; Thu, 8 Jun 2006 16:20:57 -0500 From: "Bill Sousan" To: "'Tristan Van Berkom'" Date: Thu, 8 Jun 2006 16:36:03 -0500 Message-ID: <003601c68b43$8dcba100$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJ1Fpwdt0TDWdPQL6ky+QryalI6ABbv/jQ In-Reply-To: <448637A8.7040007@gnome.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.109 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_05=-1.11, TW_GT=0.077] X-Spam-Score: -1.109 X-Spam-Level: Cc: gtk-list@gnome.org Subject: RE: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:36:14 -0000 Thanks! One question, however, how can you change the column header font? I was able to make the rows nice and fat. However, I can't figure out how to change the column title size (its font type). Thanks, Bill -----Original Message----- From: Tristan Van Berkom [mailto:tristan.van.berkom@gmail.com] Sent: Tuesday, June 06, 2006 9:19 PM To: Bill Sousan Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From yeti@physics.muni.cz Thu Jun 8 17:39:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 94A863B0408 for ; Thu, 8 Jun 2006 17:39:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07377-08 for ; Thu, 8 Jun 2006 17:39:10 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9387F3B0105 for ; Thu, 8 Jun 2006 17:39:09 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Ld71R001243 for ; Thu, 8 Jun 2006 23:39:08 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 8BFE723D9A; Thu, 8 Jun 2006 23:39:07 +0200 (CEST) Date: Thu, 8 Jun 2006 23:39:12 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608213912.GK30886@potato.chello.upc.cz> References: <448637A8.7040007@gnome.org> <003601c68b43$8dcba100$db00a8c0@techsi.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003601c68b43$8dcba100$db00a8c0@techsi.local> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:39:13 -0000 On Thu, Jun 08, 2006 at 04:36:03PM -0500, Bill Sousan wrote: > Thanks! One question, however, how can you change the column header font? > I was able to make the rows nice and fat. However, I can't figure out how > to change the column title size (its font type). The default column header widget is inaccessible, but gtk_tree_view_column_set_widget() can put any widget you wish there. Yeti -- Anonyms eat their boogers. From mekstran@scl.ameslab.gov Fri Jun 9 10:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CD183B1106 for ; Fri, 9 Jun 2006 10:26:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30922-04 for ; Fri, 9 Jun 2006 10:26:31 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id AE19D3B02F7 for ; Fri, 9 Jun 2006 10:26:23 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 09 Jun 2006 09:26:22 -0500 id 0005389C.4489850E.00007C9B In-Reply-To: <44887E68.8030004@ajtee.plus.com> References: <44887E68.8030004@ajtee.plus.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6ec3650a2d223d4ab126ac1b931be9f0@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Date: Fri, 9 Jun 2006 09:25:52 -0500 To: Adam Tee X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, TW_KB=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 14:26:35 -0000 On Jun 8, 2006, at 2:45 PM, Adam Tee wrote: > Is there anyway of overriding a window managers keybindings in an > application ? AFAIK, no. I could be wrong here, but I believe the window manager sees the keys before they ever get to the application, and eats them. Some window managers may potentially support a "pass-through" mode, but I don't know (I don't know that I've ever seen such a features, except I seem to remember one in an older version of wmii that was user-activated, not program-activated). Besides, overriding the WM's keybindings would be detrimental to users - they expect the WM keybindings to work the same in all applications. Especially those of us using highly kbd-driven WM's. > The second concerns menued items which have been configured using an > array of GtkActionEntries. Can I changed the associated keybindings on > the fly, i.e. after loading a keymap file ? The menus are defined in a > xml file. Can't help you there. I'm a bit fuzzy on the details of managing accellerator myself. - Michael From mattias.nissler@gmx.de Fri Jun 9 09:07:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA523B01CA for ; Fri, 9 Jun 2006 09:07:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25743-04 for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 5D6DE3B031E for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: (qmail invoked by alias); 09 Jun 2006 13:06:59 -0000 Received: from T56c9.t.pppool.de (EHLO [192.168.2.32]) [89.55.86.201] by mail.gmx.net (mp027) with SMTP; 09 Jun 2006 15:06:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Jun 2006 15:06:56 +0200 Message-Id: <1149858416.14903.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Jun 2006 11:58:55 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 13:07:02 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, I think its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From r.floret@laposte.net Sat Jun 10 12:21:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 807953B01CB for ; Sat, 10 Jun 2006 12:21:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14072-01 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from mx.laposte.net (mx.laposte.net [81.255.54.11]) by menubar.gnome.org (Postfix) with ESMTP id 67CF63B0158 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from [192.168.0.3] (81.248.212.147) by mx.laposte.net (7.2.060.1) (authenticated as r.floret) id 448702A20026ED87 for gtk-list@gnome.org; Sat, 10 Jun 2006 18:19:51 +0200 From: regis To: gtk-list@gnome.org In-Reply-To: <1149858416.14903.2.camel@localhost> References: <1149858416.14903.2.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Sat, 10 Jun 2006 20:19:40 +0400 Message-Id: <1149956380.11938.1.camel@Regis> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.264 tagged_above=-999 required=2 tests=[AWL=0.101, BAYES_00=-2.599, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: -0.264 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 16:21:03 -0000 Le vendredi 09 juin 2006 15:06 +0200, Mattias Nissler a 閏rit : > Hallo, > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > standard gtk+ file chooser dialog, I think its default size is really > too small. Is there some style option I can put into a rc file or some > other way to make the default size larger? Why don't you try gtk_widget_set_size_request(dialog,width,height) ? R間is From murrayc@murrayc.com Sat Jun 10 17:12:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E24673B0007 for ; Sat, 10 Jun 2006 17:12:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28035-01 for ; Sat, 10 Jun 2006 17:12:33 -0400 (EDT) Received: from swarthymail-a1.dreamhost.com (sd-green-bigip-176.dreamhost.com [208.97.132.176]) by menubar.gnome.org (Postfix) with ESMTP id F34183B0494 for ; Sat, 10 Jun 2006 17:12:31 -0400 (EDT) Received: from noname (p5497E4C3.dip.t-dialin.net [84.151.228.195]) by swarthymail-a1.dreamhost.com (Postfix) with ESMTP id 1835F90ED6 for ; Sat, 10 Jun 2006 14:12:29 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Jun 2006 23:12:24 +0200 Message-Id: <1149973944.5715.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599] X-Spam-Score: -2.481 X-Spam-Level: Subject: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 21:12:36 -0000 Is there any particular reason why GtkClipboardRichTextReceivedFunc provides the text as const guint8*: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc instead of the const gchar* that GtkClipboardTextReceivedFunc provides: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardTextReceivedFunc ? -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From mattias.nissler@gmx.de Sun Jun 11 07:03:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D1743B00F2 for ; Sun, 11 Jun 2006 07:03:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05206-10 for ; Sun, 11 Jun 2006 07:03:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 9BCA03B057C for ; Sun, 11 Jun 2006 07:03:15 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 11:02:40 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp039) with SMTP; 11 Jun 2006 13:02:40 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Sun, 11 Jun 2006 13:02:32 +0200 Message-Id: <1150023752.27952.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.492 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.492 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 11:03:17 -0000 > Le vendredi 09 juin 2006 锟5:06 +0200, Mattias Nissler a 锟絠t : > > Hallo, > > > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > > standard gtk+ file chooser dialog, I think its default size is really > > too small. Is there some style option I can put into a rc file or some > > other way to make the default size larger? > > Why don't you try gtk_widget_set_size_request(dialog,width,height) ? > Well, I am not writing a GTK program, but I'm using programs that (my guess) don't resize the file dialog boxes, so they stay at their default size. So I'd like to change the default size to something more usable. Mattias From chris@cvine.freeserve.co.uk Sun Jun 11 08:32:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C364D3B010F for ; Sun, 11 Jun 2006 08:32:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09209-04 for ; Sun, 11 Jun 2006 08:32:54 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id DACC13B0091 for ; Sun, 11 Jun 2006 08:32:53 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3107 [172.22.158.37]) by mwinf3110.me.freeserve.com (SMTP Server) with ESMTP id ED6444800A4E for ; Sun, 11 Jun 2006 14:31:29 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id DEB8D4800089; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) Received: from boulder.homenet (user-3382.l6.c5.dsl.pol.co.uk [84.65.109.54]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id ADB754800087; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) X-ME-UUID: 20060611123119711.ADB754800087@mwinf3107.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5BCVI7p002398; Sun, 11 Jun 2006 13:31:18 +0100 From: Chris Vine To: gtk-list@gnome.org Date: Sun, 11 Jun 2006 13:31:17 +0100 User-Agent: KMail/1.9.1 References: <1149973944.5715.10.camel@localhost.localdomain> In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606111331.18048.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.293 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.293 X-Spam-Level: Cc: Murray Cumming Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 12:32:55 -0000 On Saturday 10 June 2006 22:12, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >RichTextReceivedFunc > > instead of the const gchar* that GtkClipboardTextReceivedFunc provides: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >TextReceivedFunc ? Probably the use of guint8 has something to do with the rich text specification, although if so it would appear to be no more than a statement of intention as I did not think that glib supports anything but systems with 8-bit char types. At any rate there could only be a difference if the gchar (or guchar) type is formed other than by an octet. It seems inconceivable that modern systems would have char types smaller than an octet, but conceivable that they could be larger (sizeof(char), sizeof(wchar_t) and sizeof(long) can all be the same, for example). Chris From michael@zolnott.de Sun Jun 11 14:29:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D9A243B028A for ; Sun, 11 Jun 2006 14:29:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27506-08 for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 40D703B023D for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (mwinf3002 [172.22.159.24]) by mwinf3010.me.freeserve.com (SMTP Server) with ESMTP id A1EF85C0336E for ; Sun, 11 Jun 2006 20:28:38 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 951E11C00146 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 583001C00142 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) X-ME-UUID: 20060611182828361.583001C00142@mwinf3002.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id CC22B2355F; Fri, 9 Jun 2006 23:55:26 +0100 (BST) Date: Fri, 9 Jun 2006 23:55:26 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060609225524.GC726@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.16 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.507 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.507 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:29:14 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEifxcXDV4oK/n3xIRAjSiAJ4mNyWu+1/oCesRm39Hu+coAoTjgACg2iQW Ba0/mrxfPfoc07kenuGRSV4= =JYWo -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- From michael@zolnott.de Sun Jun 11 14:53:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36F563B02CD for ; Sun, 11 Jun 2006 14:53:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28561-02 for ; Sun, 11 Jun 2006 14:53:19 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id F36443B02A7 for ; Sun, 11 Jun 2006 14:53:17 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3113 [172.22.158.41]) by mwinf3105.me.freeserve.com (SMTP Server) with ESMTP id EDF821C01BEE for ; Sun, 11 Jun 2006 20:28:36 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id A35105C00087 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id 4868F5C00084 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) X-ME-UUID: 20060611182826296.4868F5C00084@mwinf3113.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 0EA072356B; Sat, 10 Jun 2006 23:59:06 +0100 (BST) Date: Sat, 10 Jun 2006 23:59:06 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060610225904.GA6852@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.324 tagged_above=-999 required=2 tests=[AWL=-0.183, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.324 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:53:23 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEi064XDV4oK/n3xIRAnh3AJ9IxGDAYCsDMbrCeB5MUQmb+k2jqACgz7qH 0flJ2aY7euqfiqe2jXibZRs= =ChBT -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- From yeti@physics.muni.cz Sun Jun 11 18:08:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 211243B0697 for ; Sun, 11 Jun 2006 18:08:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05325-01 for ; Sun, 11 Jun 2006 18:08:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9C4F63B0350 for ; Sun, 11 Jun 2006 18:08:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5BKghIY010616 for ; Sun, 11 Jun 2006 22:42:44 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0B40B23D59; Sun, 11 Jun 2006 22:42:43 +0200 (CEST) Date: Sun, 11 Jun 2006 22:42:47 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060611204247.GD30886@potato.chello.upc.cz> References: <20060609225524.GC726@zolnott06.zolnott> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060609225524.GC726@zolnott06.zolnott> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 22:08:21 -0000 On Fri, Jun 09, 2006 at 11:55:26PM +0100, Michael Ott wrote: > I try to compile an application under winxp. Under Linux i work with > some gnome lib (for printing) and this i cannot do under win32. > > But i got an error before: > I use only libglade-2.0 and gtk+-2.0 under win32. > > When i try to compile i get on the following line: > > sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); Do not use sprintf(), use g_snprintf() or g_strdup_printf() (and see below). > i got the following error: > > 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passing arg 2 of `sprintf' makes pointer from integer without a cast The error probably comes from implicitly declared _(). When a C function is not declared, the compiler invents an implicit declaration with int return value -- and you definitely want to tell it to make a lot noise instead, for gcc it's -Werror-implicit-function-declaration and for MSVC it's #pragma warning(error:4013) _() is a common convenience macro defined #define _(x) gettext(x) but it's up to you to define it. Why you mark "%02d.%02d.%d" as translatable anyway? Either the format is fixed and then it must not be translated, or you want it translatable for some reason, but then you never know how c_str needs to be long, so use g_strdup_printf(). Yeti -- Anonyms eat their boogers. From mclasen@redhat.com Mon Jun 12 12:04:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41C3B3B000C; Mon, 12 Jun 2006 12:04:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09149-04; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 7270D3B009D; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc9030255; Mon, 12 Jun 2006 12:03:37 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc3007778; Mon, 12 Jun 2006 12:03:37 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CG3blQ018463; Mon, 12 Jun 2006 12:03:37 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 12:03:36 -0400 Message-Id: <1150128216.15532.14.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_LQ=0.077, TW_RX=0.077, TW_TR=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GLib 2.11.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 16:04:32 -0000 GLib 2.11.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.3.tar.bz2 md5sum: 41931c4965f7e1848f81b800914905cd glib-2.11.3.tar.gz md5sum: cd78ebc535e29cdef0fed9487aa21dac This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.2 to GLib 2.11.3 =================================================== * GBookmarkFile: - g_bookmark_file_move_item: Return TRUE in case of an empty target * Bugs fixed: 343919 gunicollate.c: strxfrm bug on VC8 * Updated translations (fi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343919 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Kazuki Iwamoto, Tor Lillqvist Matthias Clasen June 12, 2006 From mitch@gimp.org Mon Jun 12 14:02:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888803B0461 for ; Mon, 12 Jun 2006 14:02:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21914-06 for ; Mon, 12 Jun 2006 14:02:17 -0400 (EDT) Received: from mitch.gimp.org (unknown [88.134.1.244]) by menubar.gnome.org (Postfix) with ESMTP id 0C81D3B0132 for ; Mon, 12 Jun 2006 12:07:15 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FpMpr-0003Vw-00; Sun, 11 Jun 2006 12:06:23 +0200 From: Michael Natterer To: Murray Cumming In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> References: <1149973944.5715.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 11 Jun 2006 12:06:16 +0200 Message-Id: <1150020377.3010.29.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.572 tagged_above=-999 required=2 tests=[AWL=-0.919, BAYES_00=-2.599, RCVD_IN_NJABL_DUL=1.946] X-Spam-Score: -1.572 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 18:02:20 -0000 On Sat, 2006-06-10 at 23:12 +0200, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc Because the format of the serialized rich text data is arbitrary. Basically it's a blob of binary data of size "length", and not text. ciao, --mitch From mclasen@redhat.com Mon Jun 12 15:43:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 851123B00E5; Mon, 12 Jun 2006 15:43:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-06; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 5B16F3B0010; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWav007572; Mon, 12 Jun 2006 15:35:32 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWUd001833; Mon, 12 Jun 2006 15:35:32 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CJZWlQ009694; Mon, 12 Jun 2006 15:35:32 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 15:35:31 -0400 Message-Id: <1150140931.15532.18.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.541 X-Spam-Level: Cc: Subject: GTK+ 2.8.19 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 19:43:04 -0000 GTK+ 2.8.19 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.19.tar.bz2 md5sum: 1a03dbed4b794194a610e9d7eb175b06 gtk+-2.8.19.tar.gz md5sum: 604d3263498994c58af378f0ec076e6f This is a bugfix release in the 2.8.x series. It fixes a rare memory corruption issue when using the deprecated GdkFont API. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.18 to GTK+ 2.8.19 =================================================== Bugs fixed: 341327 Memory corruption inside glib 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 343425 "grab-notify"-signal is not correctly propagated for internal children 344244 Window resizing not working when keeping the aspect fixed 344496 CRLF converting via Clipboard Updated translations (ne) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343425,341327,344244,337491,344496 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Markku Vire, Sampo Savolainen, Tim Janik, Tor Lillqvist, Chris Wilson June 12, 2006 Matthias Clasen From mclasen@redhat.com Tue Jun 13 02:09:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 72FE93B00AF; Tue, 13 Jun 2006 02:09:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12183-04; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id B2F773B000C; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D681s3022181; Tue, 13 Jun 2006 02:08:01 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D67uRP017686; Tue, 13 Jun 2006 02:07:56 -0400 Received: from [172.16.83.145] (vpn83-145.boston.redhat.com [172.16.83.145]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5D67tQC015619; Tue, 13 Jun 2006 02:07:56 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Organization: Red Hat Date: Tue, 13 Jun 2006 02:09:42 -0400 Message-Id: <1150178982.4081.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.2.1 (2.7.2.1-4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_KB=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GTK+ 2.9.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:09:16 -0000 GTK+ 2.9.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.3.tar.bz2 md5sum: d73039a3b5847c352f5740ac908be7d2 gtk+-2.9.3.tar.gz md5sum: 0156eef91d2bbb23f1b6ccb49335fae5 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.2 to 2.9.3 ============================================ * GtkPrintOperation: - Introduce an allow-async property - Introduce a GtkPrintOperationAction enumeration - Rename pdf_target to export_filename - Allow to hide "Print to PDF" in the low-level API * GtkNotebook: - Add a destroy notify to gtk_notebook_set_window_creation_hook. * GtkTreeView: - Support grid lines * GtkRange: - Add a number of new stle properties which allow more fexible stepper theming * Bugs fixed: 153212 Have the Paste kbd shortcut jump to the location in the buffer 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 339739 gtk/gtkprintoperation-win32.c: 3 compile error 342339 GtkRange::stepper-spacing style property not implemented correctly 343945 Buttons of a GtkAssistant are not accessible 344148 Wrong reqs for ATK 344209 gtk_notebook_set_window_creation_hook() has no destroy func. 344232 GtkEntry's "Delete" context menu item is sensitive on a non-editable GtkEntry 344244 Window resizing not working when keeping the aspect fixed 344288 gtk_print_operation_preview_is_selected must return a value 344386 gdk-2.0-uninstalled.pc.in and gdkconfig.h 344496 CRLF converting via Clipboard 344504 GtkPrintCapabilities not in gtktypebuiltins.h 344505 Wrong signal registration for create_custom_widget 344512 cvs build issue 344513 pdf print module's print_stream not calling destroy notify 344518 NULL unref in page setup dialogue 344543 gtk_progress_bar_pulse calls gtk_progress_bar_paint directly 344560 gtk_print_settings_[sg]et_scale shouldn't be in percent 344607 memory leaks in gtkrecentchooserdefault.c and gtkrecentchoosermenu.c 344624 Memory leak in gtk_tree_model_filter_finalize: User data not freed 337603 Possible off-by-one in gdk_pango_layout_line_get_clip_region 344239 Wrong filename for gtk-find stock item. 344528 comma at end of GtkPrintOperationAction enum causes mozilla compilation error 344290 horizontal-padding not take into account when placing submenus 344558 document print dialogue response codes 339592 Add print-to-postscript 342249 Allow to draw upper and lower sides of GtkRange's trough differently 344530 gtk_recent_chooser_widget_new_for_manager and gtk_recent_chooser_menu_new_for_manager should allow NULL manager arg * Updated translations (es,fi,gu,ko,th,wa) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=153212,337491,339739,342339,343945,344148,344209,344232,344244,344288,344386,344496,344504,344505,344512,344513,344518,344543,344560,344607,344624,337603,344239,344528,344290,344558,339592,342249,344530 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Behdad Esfahbod, Bastian Nocera, Alexander Larsson, J黵g Billeter, Murray Cumming, Milosz Derezynski, Tor Lillqvist, Kazuki Iwamoto, Chris Wilson, Michael Natterer, Benjamin Berg, Marko Anastasov, Christian Persch, Masatake Yamamoto, Elijah Newren, John Finlay, Emmanuele Bassi, David Malcolm, John Darrington, Christian Weiske, Yvgen Muntyan, Martyn Russell, Kristian Rietveld June 13, 2006 Matthias Clasen From suryakiran.gullapalli@gmail.com Tue Jun 13 02:17:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ECF3B015D for ; Tue, 13 Jun 2006 02:17:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12730-02 for ; Tue, 13 Jun 2006 02:17:09 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 1E5ED3B00AF for ; Tue, 13 Jun 2006 02:17:08 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2351869nzo for ; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AjdeG/my9aZKptVxVu2SIogubCWxKAr3HX1opiXSepv2WV/xdlS7lqfXrYoQlSpChmZcBUDN5LhZopltI7Ei+MXADb5GyUs2yol7NRqVgmzN3F04gW/KosoogyTrCbFXpCbVoZwCa32PIFzGvURU4zgEsm1eSsPmN/+VaRtR7AM= Received: by 10.36.56.4 with SMTP id e4mr5918423nza; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Message-ID: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> Date: Tue, 13 Jun 2006 11:46:23 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9016_20460533.1150179383165" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.859 tagged_above=-999 required=2 tests=[AWL=-0.132, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.859 X-Spam-Level: Subject: Font Path X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:17:15 -0000 ------=_Part_9016_20460533.1150179383165 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_9016_20460533.1150179383165 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_9016_20460533.1150179383165-- From suryakiran.gullapalli@gmail.com Tue Jun 13 06:52:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5924B3B000A for ; Tue, 13 Jun 2006 06:52:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20305-10 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 78A063B00C9 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2460005nzo for ; Tue, 13 Jun 2006 03:50:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UcWT8tNT7p4SbjxzYU7oPici9Ro4C0nxkQ0RGHY/Ox9lpXzzZIEYgNNa4PMdAJvSOypndwVY9RDFl5b+ipj4/a3Fo9hblR+xxl8x2fO7IQqHgwcFB5ScMUIHWv7eSQXZ4OML/pwhL6o75U8+bodUFhK/ChF1yUImiQujKV861Uc= Received: by 10.36.8.4 with SMTP id 4mr10540719nzh; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Message-ID: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> Date: Tue, 13 Jun 2006 16:20:52 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_559_15776072.1150195852962" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.114 tagged_above=-999 required=2 tests=[AWL=-0.876, BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.114 X-Spam-Level: Subject: Theme engine tutorial. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 10:52:23 -0000 ------=_Part_559_15776072.1150195852962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_559_15776072.1150195852962 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_559_15776072.1150195852962-- From andi_sz_2000@yahoo.com Mon Jun 12 11:51:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C6323B00D4 for ; Mon, 12 Jun 2006 11:51:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08963-02 for ; Mon, 12 Jun 2006 11:51:53 -0400 (EDT) Received: from web51612.mail.yahoo.com (web51612.mail.yahoo.com [68.142.224.85]) by menubar.gnome.org (Postfix) with SMTP id 8A69F3B00D8 for ; Mon, 12 Jun 2006 11:51:52 -0400 (EDT) Received: (qmail 98982 invoked by uid 60001); 12 Jun 2006 15:51:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=twFPqLknw7rC+J3lu/TUPVojwbQkB+djl+EvcOmiR4QyNT69l3nofSk9rPpvx7m2zLc/2k70C+kP5pQqlLOHFuJGzNgOWOW1XOfn0p/woPoIAGZx4v0s0di6G84r+aCvTf57YEqin+6hSK+/3QOTRp1Y6dxXdhIifQLJExfDXAA= ; Message-ID: <20060612155104.98980.qmail@web51612.mail.yahoo.com> Received: from [85.204.36.18] by web51612.mail.yahoo.com via HTTP; Mon, 12 Jun 2006 08:51:04 PDT Date: Mon, 12 Jun 2006 08:51:04 -0700 (PDT) From: Andrea Szenasi To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, FROM_HAS_ULINE_NUMS=0.291, HOT_NASTY=0.157] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:25 -0400 Subject: question: connecting to mysql X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrea Szenasi List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 15:51:57 -0000 Hi all, i am a beginner in GTK PHP and i have problem connecting to MySQL 5.0.18. I am using GTK-PHP2 with PHP5. I use @mysql_connect, so i cant see the error message. But if I use just mysql_connect, then i got the following error message: Fatal:error: Call to undefined function mysql_connect() in XXX on line XXX . With PHP5 (classic, no GTK), the connection is working, so I have no idea what's the problem. Thanks in advance, Andi From mattias.nissler@gmx.de Sun Jun 11 06:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1F53B0095 for ; Sun, 11 Jun 2006 06:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05002-04 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 4B79D3B00D3 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 10:13:59 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp020) with SMTP; 11 Jun 2006 12:13:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Jun 2006 12:13:52 +0200 Message-Id: <1150020832.27952.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.494 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 10:43:38 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From behdad.esfahbod@gmail.com Mon Jun 12 18:10:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C1AE3B00A5 for ; Mon, 12 Jun 2006 18:10:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00834-05 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 337843B00F5 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h26so959411wxd for ; Mon, 12 Jun 2006 15:09:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:sender; b=HkVpdki0/g3XkGcHUm613LiH99RNWp83QpOiB04twtI9/oyY5QJs7xgUW9ugXUYWTW0FQESua3SiFes9GpwcHFnulMB+jmu6Frg1gjSTz94Z0WNKazKYJCx/0yCrKVvi+sIhO9793kd+R7hBbKFWLBqlIyo5yetvED1gx6HIjnc= Received: by 10.70.36.1 with SMTP id j1mr6891335wxj; Mon, 12 Jun 2006 14:44:52 -0700 (PDT) Received: from to-dhcp26.toronto.redhat.com ( [63.250.163.171]) by mx.gmail.com with ESMTP id h18sm3879342wxd.2006.06.12.14.44.50; Mon, 12 Jun 2006 14:44:51 -0700 (PDT) From: Behdad Esfahbod To: Pango Release Lists , gtk-app-devel-list@gnome.org, gtk-devel-list@gnome.org, gtk-i18n-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HZBsNn3KdPR3jVVwB9gO" Date: Mon, 12 Jun 2006 17:44:37 -0400 Message-Id: <1150148678.10765.8.camel@home> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Sender: Behdad Esfahbod X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Cc: Subject: Pango-1.13.2 released [unstable] X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 22:10:14 -0000 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pango-1.13.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ or http://download.gnome.org/sources/pango/1.13/ 28a6ea9d43c4cd398e7352032f775401 pango-1.13.2.tar.bz2 17d78473c05fece044c6a3b44519b61f pango-1.13.2.tar.gz This is a development release leading up to Pango-1.14.0, which will be released just in time for GNOME-2.16. Notes: * This is unstable development release. While it has had fairly extensive testing, there are likely bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of Pango-1.12. If you have problems, you'll need to reinstall Pango-1.12.x * Bugs should be reported to http://bugzilla.gnome.org. About Pango =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x. Pango is designed to be modular; the core Pango layout engine can be used with different font backends. There are three basic backends, with multiple options for rendering with each. - Client side fonts using the FreeType and fontconfig libraries. Rendering can be with with Cairo or Xft libraries, or directly to an in-memory buffer with no additional libraries. - Native fonts on Microsoft Windows. (Optionally using Uniscribe for complex-text handling). Rendering can be done via Cairo or directly using the native Win32 API. - Native fonts on MacOS X, rendering via Cairo. The integration of Pango with Cairo (http://cairographics.org) provides a complete solution with high quality text handling and graphics rendering. Dynamically loaded modules then handle text layout for particular combinations of script and font backend. Pango ships with a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported. As well as the low level layout rendering routines, Pango includes PangoLayout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text. More information about Pango is available from http://www.pango.org/. Pango 1.13.2 depends on version 2.10.0 or newer of the GLib library and version 1.1.2 or newer of the cairo library (if the cairo backend is desired); more information about GLib and cairo can be found at http://www.gtk.org/ and http://cairographics.org/ respectively. Overview of changes between 1.13.1 and 1.13.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * Improved hexbox drawing, and font metrics calculations. * Synthesize italic variants on win32 [Hans Breuer] * New public API: - pango_cairo_show_error_underline - pango_cairo_error_underline_path - pango_font_describe_with_absolute_size * Misc fixes. * Bugs fixed in this release: Bug 326960 =E2=80=93 hex box drawing for win32 and atsui backends of cairo Bug 343717 =E2=80=93 License information in unclear. Bug 343355 =E2=80=93 Add pango_cairo_show_error_underline & pango_cairo_error_underline_path Bug 343966 =E2=80=93 pango Cygwin build fixes Patch from Cygwin Ports maintainer. Bug 343796 =E2=80=93 Italic Chinese character can't be show correctly in Win32. Bug 314114 =E2=80=93 max_x_advance not appropriate for approximate_(char|digit)_width Bug 341138 =E2=80=93 Using TTC font, Gtk2 programs begin to eating big mem= ory and have many cpu usage. Patch from Yong Li. Bug 336153 =E2=80=93 Mark to mark positioning (Lookup Type 6) isn't correc= t when using MarkAttchmentType Patch from Tin Myo Htet. Bug 333984 =E2=80=93 pango_language_from_string improvements Bug 125378 =E2=80=93 Better underline thickness handling Bug 339730 =E2=80=93 Pango needlessly falls back away from a Type 1 font i= nto a TTF font Bug 342562 =E2=80=93 Support absolute sizes in pango_font_description_to/from_string Bug 341922 =E2=80=93 pango should handle more characters as zero width Patch from Roozbeh Pournader Bug 342525 =E2=80=93 With PangoFc and PangoWin32, approximate digit width = is not what it says Bug 342079 =E2=80=93 pangoatsui-private.h missing from release Behdad Esfahbod 12 June 2006 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEjeBFn+4E5dNTERURApTwAJ9OvqbaG1xnQYzGPC9u0WPi30b6ggCfXNvZ oFfMwctzkAaKRETc/0aDRj0= =Wl7j -----END PGP SIGNATURE----- --=-HZBsNn3KdPR3jVVwB9gO-- From ibaldo@adinet.com.uy Tue Jun 13 14:57:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 16B3A3B03F2 for ; Tue, 13 Jun 2006 14:57:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02939-02 for ; Tue, 13 Jun 2006 14:57:02 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 2FFFE3B00C4 for ; Tue, 13 Jun 2006 14:57:01 -0400 (EDT) Received: from [201.217.132.210] (201.217.132.210) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009A5526 for gtk-list@gnome.org; Tue, 13 Jun 2006 15:56:17 -0300 Message-ID: <448F0A43.8030606@adinet.com.uy> Date: Tue, 13 Jun 2006 15:56:03 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.182 tagged_above=-999 required=2 tests=[AWL=-0.645, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.182 X-Spam-Level: Subject: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 18:57:07 -0000 Hello. I must be doing something wrong but I don't know what is it, I can't believe that it is a bug in libglade since it should hit a lot of applications and people and I am not very experienced with GTK2 (I used GTK1 some long time ago though). It seems that libglade is not connecting the realize event of the drawing area but I can't believe it. Can someone tell what I am doing wrong or what I am missing? I googled for this, read a lot of documentation, invested like 4 hours and still don't get it. I know I can do some workarounds to what I am trying to do, but I think that it is better to learn. Your toughts are very appreciated. Here is my testglade.c file: /* Compile with: gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags --libs) -export-dynamic */ #include #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GladeXML *gxml; gtk_init(&argc, &argv); gxml = glade_xml_new("test.glade", NULL, NULL); glade_xml_signal_autoconnect(gxml); gtk_main(); return 0; } Here is my test.glade file: True window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True I made a testgtk.c file too to see if I can get the realize event and this works (I used a notebook because thats what I am doing in my real application which uses libglade): /* Compile with: gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) */ #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GtkWidget *window, *nb, *lbl, *da; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); da = gtk_drawing_area_new (); gtk_widget_set_size_request (da, 100, 100); g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); lbl = gtk_label_new ("A notebook with a Drawing Area"); nb = gtk_notebook_new (); gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), GTK_WIDGET(lbl)); gtk_container_add (GTK_CONTAINER (window), nb); gtk_widget_show_all (window); gtk_main(); return 0; } Goodbye. P.s.: I posted this email to gtk-app-devel-list yesterday but it didn't show up... -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From ibaldo@adinet.com.uy Tue Jun 13 21:16:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EA96E3B00D4; Tue, 13 Jun 2006 21:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12110-07; Tue, 13 Jun 2006 21:16:26 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 6CF0B3B0147; Tue, 13 Jun 2006 21:16:25 -0400 (EDT) Received: from [201.217.133.125] (201.217.133.125) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009C939E; Tue, 13 Jun 2006 22:15:32 -0300 Message-ID: <448F404C.4020209@adinet.com.uy> Date: Tue, 13 Jun 2006 19:46:36 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org References: <448DEC68.9000706@adinet.com.uy> In-Reply-To: <448DEC68.9000706@adinet.com.uy> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.142 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.142 X-Spam-Level: Cc: Subject: Re: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 01:16:32 -0000 Hello. Sorry for the crosspost, I tought that gtk-app-devel-list wasn't working but what isn't working is my ISP, for some reason I don't receive the emails of this mailing lists so I have to watch the archives :-(, and since I sent this email to gtk-list too I think that it is apropiate to close this thread there as well since maybe someone answers it without knowing that I already discovered my problem. I will not disturb on gtk-list anymore. Well, now I get it! libglade first creates all widgets and *shows* them because that is what is told on the XML file, after that it autoconnects all the events, but it is already too late for the realize event since the widgets are already realized :-). Silly me... I couldn't figure it before. Solution: don't enable the visible attribute on widgets that you want to catch the realize event and show this widgets manually with your own code after all signals are autoconnected. Thank you and goodbye. P.s.: now I need to figure out why the unrealize signal isn't emitted, but maybe because I use gtk_main_quit instead of destroying the main window... El 12/06/06 19:36, Ivan Baldo escribi: > Hello. > I must be doing something wrong but I don't know what is it, I > can't believe that it is a bug in libglade since it should hit a lot > of applications and people and I am not very experienced with GTK2 (I > used GTK1 some long time ago though). > It seems that libglade is not connecting the realize event of the > drawing area but I can't believe it. > Can someone tell what I am doing wrong or what I am missing? I > googled for this, read a lot of documentation, invested like 4 hours > and still don't get it. I know I can do some workarounds to what I am > trying to do, but I think that it is better to learn. Your toughts are > very appreciated. > Here is my testglade.c file: > > /* > Compile with: > gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags > --libs) -export-dynamic > */ > > #include > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GladeXML *gxml; > gtk_init(&argc, &argv); > gxml = glade_xml_new("test.glade", NULL, NULL); > glade_xml_signal_autoconnect(gxml); > gtk_main(); > return 0; > } > > > Here is my test.glade file: > > > > > > > > True > window1 > GTK_WINDOW_TOPLEVEL > GTK_WIN_POS_NONE > False > True > False > True > False > False > GDK_WINDOW_TYPE_HINT_NORMAL > GDK_GRAVITY_NORTH_WEST > True > False > > > > True > last_modification_time="Mon, 12 Jun 2006 22:21:03 GMT"/> > > > > > > > > I made a testgtk.c file too to see if I can get the realize event > and this works (I used a notebook because thats what I am doing in my > real application which uses libglade): > /* > Compile with: > gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) > */ > > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GtkWidget *window, *nb, *lbl, *da; > gtk_init(&argc, &argv); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > da = gtk_drawing_area_new (); > gtk_widget_set_size_request (da, 100, 100); > g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); > lbl = gtk_label_new ("A notebook with a Drawing Area"); > nb = gtk_notebook_new (); > gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), > GTK_WIDGET(lbl)); > gtk_container_add (GTK_CONTAINER (window), nb); > gtk_widget_show_all (window); > gtk_main(); > return 0; > } > > Goodbye. > P.s.: I still don't know where to post this, I think the correct place > is here iin gtk-app-devel-list but maybe it should be gtk-list? > > -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From kereoz@yahoo.fr Wed Jun 14 11:41:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525F23B029F for ; Wed, 14 Jun 2006 11:41:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01059-03 for ; Wed, 14 Jun 2006 11:41:52 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id E2C1F3B01CF for ; Wed, 14 Jun 2006 11:41:51 -0400 (EDT) Received: (qmail 57560 invoked by uid 60001); 14 Jun 2006 15:41:09 -0000 Message-ID: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 14 Jun 2006 17:41:09 CEST Date: Wed, 14 Jun 2006 17:41:09 +0200 (CEST) From: Christophe HAUSER Subject: GtkFixed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.215 tagged_above=-999 required=2 tests=[AWL=0.384, BAYES_00=-2.599] X-Spam-Score: -2.215 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 15:41:54 -0000 Hello, I've got a problem using GtkFixed. Using the following code, the window is empty when I launch the app. fixed = gtk_fixed_new(); Moz = gtk_moz_embed_new(); gtk_container_add (GTK_CONTAINER (window), fixed); gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); gtk_widget_show_all(window); Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tvb@gnome.org Wed Jun 14 13:52:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36FAE3B0081 for ; Wed, 14 Jun 2006 13:52:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17448-10 for ; Wed, 14 Jun 2006 13:52:53 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id DB2C83B000E for ; Wed, 14 Jun 2006 13:52:52 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 4948015A7F; Wed, 14 Jun 2006 13:51:46 -0400 (EDT) Message-ID: <44904EFB.2060907@gnome.org> Date: Wed, 14 Jun 2006 14:01:31 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER Subject: Re: GtkFixed References: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_HELO_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 17:52:54 -0000 Christophe HAUSER wrote: > Hello, > > I've got a problem using GtkFixed. > Using the following code, the window is empty when I > launch the app. > > fixed = gtk_fixed_new(); > Moz = gtk_moz_embed_new(); > > gtk_container_add (GTK_CONTAINER (window), fixed); > gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); > > gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); > gtk_widget_show_all(window); Hmmm, looks like you have a fixed child with width/height = 0; try setting the size-request, since fixed doesnt allocate any size that you dont request. Cheers, -Tristan From M.Kahn@Astronautics.com Wed Jun 14 16:31:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03783B013D for ; Wed, 14 Jun 2006 16:31:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15984-10 for ; Wed, 14 Jun 2006 16:31:23 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 7DC8E3B0135 for ; Wed, 14 Jun 2006 16:31:22 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68FF1.5E830686" Subject: Button background colors Date: Wed, 14 Jun 2006 15:30:29 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaP8WA158meoUl2QFmwJ7Wu6VRUvQ== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.082 tagged_above=-999 required=2 tests=[AWL=0.439, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.082 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 20:31:25 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 =20 ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

 

------_=_NextPart_001_01C68FF1.5E830686-- From paul@linuxaudiosystems.com Wed Jun 14 17:26:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CF6E3B02DC for ; Wed, 14 Jun 2006 17:26:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23464-07 for ; Wed, 14 Jun 2006 17:26:36 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id AC98D3B0388 for ; Wed, 14 Jun 2006 17:26:35 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0V00LGSCVCHRK9@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Jun 2006 16:26:01 -0500 (CDT) Date: Wed, 14 Jun 2006 17:26:22 -0400 From: Paul Davis Subject: Re: Button background colors In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150320382.1765.96.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 21:26:42 -0000 On Wed, 2006-06-14 at 15:30 -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file > because I am programming to requirements that specify different > background colors for different buttons. gtk_widget_set_name (buttonwidget, "myNameForThisSpecialButton"); then use "myNameForThisSpecialButton" in an RC file. From ben@benjohnson.net Wed Jun 14 22:09:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B08C13B00F3 for ; Wed, 14 Jun 2006 22:09:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05224-06 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: from server019.dfw.nationwide.net (server019.dfw.nationwide.net [206.123.129.82]) by menubar.gnome.org (Postfix) with SMTP id 604B53B0018 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: (qmail 20394 invoked from network); 15 Jun 2006 02:08:31 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 15 Jun 2006 02:08:31 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 0AA77E4067 for ; Wed, 14 Jun 2006 19:08:32 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21661-10 for ; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id A3C6BE4071; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Date: Wed, 14 Jun 2006 19:08:31 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615020831.GP11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.551 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599] X-Spam-Score: -2.551 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 02:09:12 -0000 On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file because I am > programming to requirements that specify different background colors for > different buttons. > > I have tried using gtk_widget_modify_bg the button, using all combinations > of creating the button with and without a label. I use gtk_widget_modify_bg() without trouble. piece of a function: struct somethingorother pagestate_colors = { blah, blah, blah }; static void update_examples_from_state( GtkWidget * toggle ) { GdkColor color = pagestate_colors.scheme_bg_normal; gtk_widget_modify_bg( toggle, GTK_STATE_NORMAL, &color); gtk_widget_modify_bg( toggle, GTK_STATE_ACTIVE, &color); gtk_widget_modify_bg( toggle, GTK_STATE_PRELIGHT, &color); gtk_widget_modify_bg( toggle, GTK_STATE_SELECTED, &color); gtk_widget_modify_bg( toggle, GTK_STATE_INSENSITIVE, &color); } after running that you have to let the main event processing loop run a little to let your changes take effect. I am using using 2.6.8-1 but I can't imagine this functionality would have changed. - Anna From laowenbo@gmail.com Thu Jun 15 02:38:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EC5B3B02E7 for ; Thu, 15 Jun 2006 02:38:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17015-01 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id B09DC3B0118 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so183376pyd for ; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr2447571pyi; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.109.19 with HTTP; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 14:37:56 +0800 From: "lao wb" To: gtk-list@gnome.org Subject: Where to get more information about GDK MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1639_31450020.1150353476125" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -0.659 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 06:38:34 -0000 ------=_Part_1639_31450020.1150353476125 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, i am a newcomer The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk, but look like there is no www.gdk.org, another site i can find is developer.gnome.org, while lack of enough examples. I really need examples to know how to use the tricky gdk_XXX APIs. Thanks in advance! laowenbo ------=_Part_1639_31450020.1150353476125 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,
i am a newcomer
The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk,  but look like there is no www.gdk.org , another site i can find is developer.gnome.org, while lack of enough examples.  I  really  need examples  to  know how to use the tricky gdk_XXX APIs. Thanks  in advance!

laowenbo
------=_Part_1639_31450020.1150353476125-- From yeti@physics.muni.cz Thu Jun 15 04:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 407AC3B03BB for ; Thu, 15 Jun 2006 04:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23572-06 for ; Thu, 15 Jun 2006 04:48:08 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 74E203B00F7 for ; Thu, 15 Jun 2006 04:48:07 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5F8laRp032159 for ; Thu, 15 Jun 2006 10:47:37 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id DBA3623D5E; Thu, 15 Jun 2006 10:47:36 +0200 (CEST) Date: Thu, 15 Jun 2006 10:47:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615084737.GM2858@potato.chello.upc.cz> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 08:48:10 -0000 On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > I use gtk_widget_modify_bg() without trouble. piece of a function: It works for people who use a decent Gtk+ theme. But themes and theme engines can easily make similar things stop working. Try just style "default" { bg_pixmap[NORMAL] = "someimage" } widget_class "*" style "default" in your gtkrc. I am afraid the requirement of particular colors goes directly against themeability. One cannot have both. Yeti -- Anonyms eat their boogers. From rvaughan@gmail.com Thu Jun 15 08:11:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F45E3B03E8 for ; Thu, 15 Jun 2006 08:11:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05367-05 for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 422B93B03BB for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so845715uge for ; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr1254247ugm; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.97.17 with HTTP; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 13:11:47 +0100 From: "Richard Vaughan" To: gtk-list@gnome.org Subject: Layered Drawing Areas MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.026 tagged_above=-999 required=2 tests=[AWL=1.068, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: 0.026 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:11:53 -0000 Hi, Has anyone managed to get multiple drawing areas to layer transparently ontop of eachother? I am trying to create an app that looks like it will need 3 or four layers of information drawn ontop of each other - but I want to be able to work with the layers independantly, and I want to be able to see down to the bottom layer. Using a fixed container I can have the layers (at least it seems to do what I think I want), but when I draw in a layer it seems to blank out the 'destroyed' area. Is there a way of setting the transparency, or linking the background image for the layer above to the layer beneath it? If it changes anything I am using GPE on an Ipaq... Thanks, Richard From paul@linuxaudiosystems.com Thu Jun 15 08:56:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA8FA3B05A7 for ; Thu, 15 Jun 2006 08:56:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10559-01 for ; Thu, 15 Jun 2006 08:56:36 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B95773B04A2 for ; Thu, 15 Jun 2006 08:56:11 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W00MXXJXDED5C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 07:56:02 -0500 (CDT) Date: Thu, 15 Jun 2006 08:56:23 -0400 From: Paul Davis Subject: Re: Layered Drawing Areas In-reply-to: To: Richard Vaughan Message-id: <1150376183.1765.118.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:56:47 -0000 On Thu, 2006-06-15 at 13:11 +0100, Richard Vaughan wrote: > Hi, > > Has anyone managed to get multiple drawing areas to layer > transparently ontop of eachother? > > I am trying to create an app that looks like it will need 3 or four > layers of information drawn ontop of each other - but I want to be > able to work with the layers independantly, and I want to be able to > see down to the bottom layer. > > Using a fixed container I can have the layers (at least it seems to do > what I think I want), but when I draw in a layer it seems to blank out > the 'destroyed' area. Is there a way of setting the transparency, or > linking the background image for the layer above to the layer beneath > it? > > If it changes anything I am using GPE on an Ipaq... GnomeCanvas widget. GTK widgets do not (currently) support any notion of alpha transparency or z-order (stacking). The Canvas does. It has no relationships with Gnome other than those shared with GTK. GnomeCanvas is no longer "supported", but as yet its successor has not emerged and there are several contenders. --p From kereoz@yahoo.fr Thu Jun 15 10:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A85B3B05A7 for ; Thu, 15 Jun 2006 10:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16151-02 for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id 36F783B05BC for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: (qmail 4610 invoked by uid 60001); 15 Jun 2006 14:17:18 -0000 Message-ID: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 16:17:17 CEST Date: Thu, 15 Jun 2006 16:17:17 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <44904EFB.2060907@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.274 tagged_above=-999 required=2 tests=[AWL=0.325, BAYES_00=-2.599] X-Spam-Score: -2.274 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 14:17:33 -0000 I tried setting the size-request, but the widget is still not shown...and I've got no error while compiling... I can run the app without any error, but I only see the main window... > Hmmm, looks like you have a fixed child with > width/height = 0; > try setting the size-request, since fixed doesnt > allocate any size > that you dont request. > > Cheers, > -Tristan > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:11:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDA413B0427 for ; Thu, 15 Jun 2006 11:11:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18523-06 for ; Thu, 15 Jun 2006 11:11:29 -0400 (EDT) Received: from web25909.mail.ukl.yahoo.com (web25909.mail.ukl.yahoo.com [217.12.10.207]) by menubar.gnome.org (Postfix) with SMTP id C78DB3B0261 for ; Thu, 15 Jun 2006 11:11:28 -0400 (EDT) Received: (qmail 17522 invoked by uid 60001); 15 Jun 2006 15:11:03 -0000 Message-ID: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25909.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:11:02 CEST Date: Thu, 15 Jun 2006 17:11:02 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615145020.HUVX16286.aamtaout03-winn.ispmail.ntl.com@smtp.ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.242, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:11:31 -0000 I think it will help :) But about the size request, I wonder if my code is right : GtkRequisition *req ; req->height = 300; req->width = 400; gtk_widget_size_request(GTK_WIDGET(Moz), req); Maybe I forget something ? It doesn't work better with a button or any other widget, but when it is something else than a mozilla widget, I can see it very small :) It is not resized... > This may help or may not? > Sometimes I have found with GtkContainer derived > widgets the requested position/layout is overridden. > Do a search for _gtk_widget_get_aux_info in the gtk > code. > > Calls to gtk_widget_set_uposition and > gtk_widget_set_usize create a GtkWidgetAuxInfo > structure which holds the location and positional > information from the fore mentioned calls. Once > created these values are used as default in size > requests. > > Could the moz widget be using > gtk_widget_set_uposition or gtk_widget_set_usize > internally? > > Regards > > ----------------------------------------- > Email sent from www.ntlworld.com > Virus-checked using McAfee(R) Software > Visit www.ntlworld.com/security for more information > > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:27:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E921A3B05D7 for ; Thu, 15 Jun 2006 11:27:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19172-08 for ; Thu, 15 Jun 2006 11:27:23 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id D9EB83B05DE for ; Thu, 15 Jun 2006 11:27:22 -0400 (EDT) Received: (qmail 6262 invoked by uid 60001); 15 Jun 2006 15:26:43 -0000 Message-ID: <20060615152643.6260.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:26:43 CEST Date: Thu, 15 Jun 2006 17:26:43 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.311 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.311 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:27:26 -0000 Ok, I found the problem : I called the function gtk_widget_size_request instead of gtk_widget_set_size_request There is something strange : I didn't find gtk_widget_set_size_request in GTK documentation, but I found gtk_widget_size_request --- Christophe HAUSER a 閏rit : > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > > > > Christophe HAUSER > http://kereoz.sup.fr > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la > meilleure protection possible contre les messages > non sollicit閟 > http://mail.yahoo.fr Yahoo! Mail > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From paul@linuxaudiosystems.com Thu Jun 15 11:54:59 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8F83D3B0623 for ; Thu, 15 Jun 2006 11:54:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21029-03 for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 5B6DC3B063D for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W0030XS358E42@vms042.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 10:52:17 -0500 (CDT) Date: Thu, 15 Jun 2006 11:52:39 -0400 From: Paul Davis Subject: Re: RE : Re: RE : Re: GtkFixed In-reply-to: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> To: Christophe HAUSER Message-id: <1150386759.22276.5.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:54:59 -0000 On Thu, 2006-06-15 at 17:11 +0200, Christophe HAUSER wrote: > I think it will help :) > But about the size request, I wonder if my code is > right : > > GtkRequisition *req ; > req->height = 300; > req->width = 400; > > gtk_widget_size_request(GTK_WIDGET(Moz), req); gtk_widget_set_size_request() From cole-anstey@ntlworld.com Thu Jun 15 13:44:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A2983B0314 for ; Thu, 15 Jun 2006 13:44:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25557-02 for ; Thu, 15 Jun 2006 13:44:03 -0400 (EDT) Received: from queue01-winn.ispmail.ntl.com (queue01-winn.ispmail.ntl.com [81.103.221.55]) by menubar.gnome.org (Postfix) with ESMTP id 62F8D3B0126 for ; Thu, 15 Jun 2006 13:44:02 -0400 (EDT) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20060615145316.CKIP28076.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 Received: from smtp.ntlworld.com ([81.103.221.25]) by aamtaout04-winn.ispmail.ntl.com with SMTP id <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 X-Mailer: Openwave WebEngine, version 2.8.17 (webedge20-101-1107-20041027) X-Originating-IP: [146.82.1.162] From: To: Subject: Re: RE : Re: GtkFixed Date: Thu, 15 Jun 2006 14:53:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.572 tagged_above=-999 required=2 tests=[AWL=-0.718, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -0.572 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 17:44:04 -0000 > > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > This may help or may not? Sometimes I have found with GtkContainer derived widgets the requested position/layout is overridden. Do a search for _gtk_widget_get_aux_info in the gtk code. Calls to gtk_widget_set_uposition and gtk_widget_set_usize create a GtkWidgetAuxInfo structure which holds the location and positional information from the fore mentioned calls. Once created these values are used as default in size requests. Could the moz widget be using gtk_widget_set_uposition or gtk_widget_set_usize internally? Regards ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From adc4444@hotmail.com Thu Jun 15 14:07:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9713A3B0397 for ; Thu, 15 Jun 2006 14:07:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26238-06 for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 7FBC63B007F for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 Jun 2006 11:07:10 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Thu, 15 Jun 2006 18:07:09 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com From: "DC A" To: gtk-list@gnome.org Subject: Problem in updating progress bar Date: Thu, 15 Jun 2006 18:07:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Jun 2006 18:07:10.0440 (UTC) FILETIME=[85713E80:01C690A6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.162 tagged_above=-999 required=2 tests=[AWL=-2.069, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 18:07:45 -0000 What could be the reason for using gtk_events_pending() and gtk_main_iteration() in the following code snippet: for( gflt=0; gflt<=1; ){ gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); //update while (gtk_events_pending ()) gtk_main_iteration (); gflt += 0.1; sleep(1); if ( gflt > 1 ) break; } why the code cannot update the progressbar without these two functions? I saw the API but still it is not clear to me. Thanks. --AD _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From yeti@physics.muni.cz Thu Jun 15 16:27:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 733223B01A1 for ; Thu, 15 Jun 2006 16:27:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31273-10 for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 575F33B006C for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5FJHlVX028614 for ; Thu, 15 Jun 2006 21:17:48 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 2DC7C23D5E; Thu, 15 Jun 2006 21:17:47 +0200 (CEST) Date: Thu, 15 Jun 2006 21:17:50 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Problem in updating progress bar Message-ID: <20060615191750.GO30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:27:57 -0000 On Thu, Jun 15, 2006 at 06:07:09PM +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. Have yor read the FAQ too? http://www.gtk.org/faq/#AEN602 Also, are you aware gtk_progress_bar_update() is deprecated? gtk_progress_bar_set_fraction() -- which is the function to use -- only queues the drawing. The drawing then actually occurs in Gtk+ main loop, which does not have a chance to run without gtk_main_iteration(). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Thu Jun 15 16:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F7FB3B01A1 for ; Thu, 15 Jun 2006 16:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00430-05 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id BFC843B0237 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0X009IA2VD7944@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 14:45:14 -0500 (CDT) Date: Thu, 15 Jun 2006 15:45:35 -0400 From: Paul Davis Subject: Re: Problem in updating progress bar In-reply-to: To: DC A Message-id: <1150400735.22276.22.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:53:34 -0000 On Thu, 2006-06-15 at 18:07 +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. google for "event based programming main loop" programming GUIs is very different in its basic control flow model than writing simple non-user-driven procedural software. From M.Kahn@Astronautics.com Thu Jun 15 16:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 740B13B03D2 for ; Thu, 15 Jun 2006 16:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00479-06 for ; Thu, 15 Jun 2006 16:54:44 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 79F013B0311 for ; Thu, 15 Jun 2006 16:54:43 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C690BD.DA53493A" Subject: RE: Button background colors Date: Thu, 15 Jun 2006 15:54:10 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019481FF@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSABaKA0g From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:54:47 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A coworker came to my rescue on this one. I am a Linux developer and this application had to work under Windows. It turns out that if your Windows desktop theme is set to "Windows XP" then you cannot change the background color of your buttons. If you change your desktop theme to "Windows Classic" then the gtk_widget_modify_style approach works. The gtk_widget_set_style and other approaches may also work, but I haven't tested them. We have a short deadline on this app - I'll test it later. =20 Thanks to everyone who gave it a look. What a surprise it turned out to be a Windows problem, not a GTK problem. =20 Michael Kahn =20 ________________________________ From: Michael Kahn=20 Sent: Tuesday, June 13, 2006 8:49 PM To: 'gtk-list@gnome.org' Subject: Button background colors =20 I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A coworker came to my rescue on = this one.  I am a Linux developer and this application had to work under Windows.  It turns out that if your Windows desktop theme is set to = “Windows XP” then you cannot change the background color of your = buttons.  If you change your desktop theme to “Windows Classic” then the = gtk_widget_modify_style approach works.  The gtk_widget_set_style  and other = approaches may also work, but I haven’t tested them.  We have a short = deadline on this app – I’ll test it later.

 

Thanks to everyone who gave it a look.  What a surprise it turned out to be a Windows problem, not a = GTK problem.

 

  Michael = Kahn

 


From: = Michael Kahn
Sent: Tuesday, June 13, = 2006 8:49 PM
To: = 'gtk-list@gnome.org'
Subject: Button = background colors

 

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C690BD.DA53493A-- From BillS@techsi.com Thu Jun 15 18:05:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348F23B01FF for ; Thu, 15 Jun 2006 18:05:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02711-10 for ; Thu, 15 Jun 2006 18:05:22 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 09F4F3B018C for ; Thu, 15 Jun 2006 18:05:21 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k5FLp1AZ024125 for ; Thu, 15 Jun 2006 16:51:06 -0500 From: "Bill Sousan" To: Subject: use of gtk rc files slows down display Date: Thu, 15 Jun 2006 17:04:18 -0500 Message-ID: <000601c690c7$aa62c850$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C6909D.C18CC050" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.603 tagged_above=-999 required=2 tests=[AWL=-0.682, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.603 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 22:05:25 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using some existing rc files for my gtk application that I pulled off of the web and noticed a considerable slow down in the display versus when not using an rc file (the one passed to gtk_rc_parse() function). Are there considerations that I need to be aware of if I want to use to rc files to have a nice "skin" without the slowdown? Thanks, Bill ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using some existing rc files for my gtk = application that I pulled off of the web and noticed a considerable slow down in the = display versus when not using an rc file (the one passed to gtk_rc_parse() function).  Are there considerations that I need to be aware of if = I want to use to rc files to have a nice “skin” without the = slowdown?

 

Thanks,

Bill

 

 

------=_NextPart_000_0007_01C6909D.C18CC050-- From diego@otello.alma.unibo.it Fri Jun 16 01:40:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C38C23B006C for ; Fri, 16 Jun 2006 01:40:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18193-03 for ; Fri, 16 Jun 2006 01:40:09 -0400 (EDT) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 852AC3B0011 for ; Fri, 16 Jun 2006 01:39:59 -0400 (EDT) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 44DB0122256; Fri, 16 Jun 2006 03:38:40 -0400 (EDT) Message-ID: <449243F6.6010901@otello.alma.unibo.it> Date: Fri, 16 Jun 2006 07:39:02 +0200 From: Diego Zuccato User-Agent: Thunderbird 1.5.0.2 (X11/20060422) MIME-Version: 1.0 To: DC A Subject: Re: Problem in updating progress bar References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.558 tagged_above=-999 required=2 tests=[AWL=0.041, BAYES_00=-2.599] X-Spam-Score: -2.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 05:40:28 -0000 DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. 'Cause you're blocking the main loop (which handles all the updating). But that sleep(1) still blocks for a whole second any action: your GUI will act quite strangely! Could be really better to handle a timeout/idle callback. If all you have to do is some lengthy operation, you could use a thread that does it and updates a "percentage indicator" (a shared variable). In the main program (the GUI manager) you set up a timeout callback (the timeout is up to you: from .1 to tenths of seconds) that reads the shared variable and updates the progress bar. This way you won't have to bother about locks: just DON'T do anything GUI-related in the calc thread. BYtE, Diego. From lists@nabble.com Fri Jun 16 07:14:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12D983B0007 for ; Fri, 16 Jun 2006 07:14:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26539-04 for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id C61543B002C for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FrCGc-0008HH-NC for gtk-list@gnome.org; Fri, 16 Jun 2006 04:13:34 -0700 Message-ID: <4898493.post@talk.nabble.com> Date: Fri, 16 Jun 2006 03:58:40 -0700 (PDT) From: prashu To: gtk-list@gnome.org Subject: Regarding GTK player MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: prashan@sasken.com X-Nabble-From: prashu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.316 tagged_above=-999 required=2 tests=[AWL=2.285, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.316 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 11:14:35 -0000 hi all... i am designing user inerface to mobiles for mobiles. For UI i selected GTK as framework. I am writting in C langauge. What actually i need is one playlist window which contains audio files from particular directory. on selecting file from playlist another window should open. which contains play and pause buttons. If any one have code of this thing , please mail to my id, prashan@sasken.com. with regards, Prashanth KM -- View this message in context: http://www.nabble.com/Regarding-GTK-player-t1797584.html#a4898493 Sent from the Gtk+ - General forum at Nabble.com. From adc4444@hotmail.com Fri Jun 16 14:07:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C2A253B026A for ; Fri, 16 Jun 2006 14:07:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11049-01 for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 5D7A93B030D for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 16 Jun 2006 11:05:35 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Fri, 16 Jun 2006 18:05:30 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com In-Reply-To: <449243F6.6010901@otello.alma.unibo.it> From: "DC A" To: diego@otello.alma.unibo.it, gtk-list@gnome.org Subject: Re: Problem in updating progress bar Date: Fri, 16 Jun 2006 18:05:30 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 16 Jun 2006 18:05:35.0606 (UTC) FILETIME=[77547960:01C6916F] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.156 tagged_above=-999 required=2 tests=[AWL=-2.063, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.156 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 18:07:54 -0000 Thank you all for explaining this problem. --DC _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From papel@free.fr Wed Jun 14 07:03:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB43B01B1 for ; Wed, 14 Jun 2006 07:03:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16109-06 for ; Wed, 14 Jun 2006 07:03:40 -0400 (EDT) Received: from swip.net (mailfe04.tele2.fr [212.247.154.108]) by menubar.gnome.org (Postfix) with ESMTP id 9DBBD3B0093 for ; Wed, 14 Jun 2006 07:03:39 -0400 (EDT) X-T2-Posting-ID: 4qjjVdH8TQlq0xUsIYMW3y8I4nzdJt8e7HSuCLByD9Y= X-Cloudmark-Score: 0.000000 [] Received: from [80.170.52.241] (HELO localhost) by mailfe04.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 212846123 for gtk-list@gnome.org; Wed, 14 Jun 2006 13:03:02 +0200 Message-ID: <448FEC06.9090600@free.fr> Date: Wed, 14 Jun 2006 12:59:18 +0200 From: Papel User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.12) Gecko/20050920 X-Accept-Language: fr, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk events ??? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.898 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -0.898 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 11:03:42 -0000 Hello, From a few days ago, i have a lot of problems with gtk events (MainLoop). I have created a GTK frame into a main widget and a box into this frame. I have reparent this widget (window) to a XWindow. I would like to send events (XEvents) to this widget. How I can do to send this XEvents to GtkEvents to the widget ??? I have tried : gtk_widget_event / gtk_main_iteration_do / gtk_main_do_event / etc... Thank you in advance MCB From root@gateshead-online.co.uk Thu Jun 15 03:57:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B35803B0155 for ; Thu, 15 Jun 2006 03:57:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20648-07 for ; Thu, 15 Jun 2006 03:57:12 -0400 (EDT) Received: from gateshead-online.co.uk (p15122568.pureserver.info [217.160.177.192]) by menubar.gnome.org (Postfix) with ESMTP id 1EC033B02FA for ; Thu, 15 Jun 2006 03:57:09 -0400 (EDT) Received: from root by gateshead-online.co.uk with local (Exim 4.30) id 1Fqmic-0008Bj-Jf for gtk-list@gnome.org; Thu, 15 Jun 2006 08:56:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17553.4798.584679.71190@p15122568.pureserver.info> Date: Thu, 15 Jun 2006 08:56:46 +0100 To: gtk-list@gnome.org From: dale_mellor@users.sourceforge.net Subject: Re: Button background colors In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> X-Mailer: VM 7.18 under Emacs 21.4.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.503 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961] X-Spam-Score: -1.503 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 07:57:14 -0000 I too use gtk_widget_modify_bg without trouble on a GtkButton object, using GTK version 2.9.2. Anna writes: > On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > > I am using Gtk 2.8.18. > > > > I would like to know how to set the background color in a GtkButton. > > > > I cannot set the background in a style, theme, or resource file because I am > > programming to requirements that specify different background colors for > > different buttons. > > > > I have tried using gtk_widget_modify_bg the button, using all combinations > > of creating the button with and without a label. > > I use gtk_widget_modify_bg() without trouble. piece of a function: > From jose.francisco.hevia@gmail.com Thu Jun 15 05:27:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B20D43B0270 for ; Thu, 15 Jun 2006 05:27:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25836-07 for ; Thu, 15 Jun 2006 05:27:38 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8A7003B0353 for ; Thu, 15 Jun 2006 05:27:37 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so51745nfe for ; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.47.10 with SMTP id u10mr360304nfu; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 15 Jun 2006 02:27:35 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 11:27:35 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Button background colors In-Reply-To: <20060615084737.GM2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.104 tagged_above=-999 required=2 tests=[AWL=0.195, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.104 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 09:27:39 -0000 MjAwNi82LzE1LCBEYXZpZCBOZehhcyAoWWV0aSkgPHlldGlAcGh5c2ljcy5tdW5pLmN6PjoKPiBP biBXZWQsIEp1biAxNCwgMjAwNiBhdCAwNzowODozMVBNIC0wNzAwLCBBbm5hIHdyb3RlOgo+ID4K PiA+IEkgdXNlIGd0a193aWRnZXRfbW9kaWZ5X2JnKCkgd2l0aG91dCB0cm91YmxlLiAgcGllY2Ug b2YgYSBmdW5jdGlvbjoKPgo+IEl0IHdvcmtzIGZvciBwZW9wbGUgd2hvIHVzZSBhIGRlY2VudCBH dGsrIHRoZW1lLiAgQnV0IHRoZW1lcwo+IGFuZCB0aGVtZSBlbmdpbmVzIGNhbiBlYXNpbHkgbWFr ZSBzaW1pbGFyIHRoaW5ncyBzdG9wIHdvcmtpbmcuCj4gVHJ5IGp1c3QKPgo+IHN0eWxlICJkZWZh dWx0IiB7Cj4gICAgYmdfcGl4bWFwW05PUk1BTF0gPSAic29tZWltYWdlIgo+IH0KPiB3aWRnZXRf Y2xhc3MgIioiIHN0eWxlICJkZWZhdWx0Igo+Cj4gaW4geW91ciBndGtyYy4KPgo+IEkgYW0gYWZy YWlkIHRoZSByZXF1aXJlbWVudCBvZiBwYXJ0aWN1bGFyIGNvbG9ycyBnb2VzCj4gZGlyZWN0bHkg YWdhaW5zdCB0aGVtZWFiaWxpdHkuICBPbmUgY2Fubm90IGhhdmUgYm90aC4KPgo+IFlldGkKCkF0 IGZpcnN0LCBJIGFncmVlZCB3aXRoIHRoaXMuIE5vdyBJIGtub3cgdGhhdCBpdCdzIHBvc3NpYmxl IHRvIG1ha2UgYW4KaW50ZWxsaWdlbnQgcHJvZ3JhbSB0aGF0IGtub3dzIHdpdGNoIGNvbG9ycyBh cmUgeW91IHVzaW5nIGFuZCB0YWtlCmFjdGlvbiBmcm9tIGl0LgoKODAgcGVyIGNlbnQgb2YgdGhl bWVzIGFyZSBhbG1vc3Qgd2hpdGUgZm9yIGJ1dHRvbnMsIEkgbGlrZSBkYXJrIG9uZXMuClRoaXMg Y291bGQgYmUgZGV0ZWN0ZWQgYnkgdGhlIHByb2dyYW0gYW5kIGRlY2lkZToKSWYgeW91IGFyZSB1 c2luZyBicmlnaHQgdGhlbWVzIHtzZWxlY3QgdGhpcyBjb2xvcnMufQplbHNlIHtzZWxlY3QgdGhl IG90aGVyIG9uZXMufQpiYXNlZCBpbiBjb250cmFzdCBiZXR3ZWVuIHRoZW0KClRoZW1lYWJpbGl0 eSBpcyB2ZXJ5IGltcG9ydGFudCBmb3IgR3RrLCBidXQgdXNpbmcgY29sb3JzIGxpa2Ugc2NhbGFi bGUKaWNvbnMgKGxvb2sgYXQgdGhlc2UgZmlsbXMgd2l0aCB0aGUgInJlZCBidXR0b24iKSB3aXRo b3V0IGhhdmluZyB0bwpib3RoZXIgd2l0aCBjb21wbGV4aXR5IGdpdmVzIGd0ayBhIGxvdCBvZiBw b3dlciB0byBnaXZlIGl0IGF3YXkuCgogICAgICAgICAgICBKb3NlIEhldmlhCg== From kstachowski@o2.pl Thu Jun 15 19:00:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1AB673B00D0 for ; Thu, 15 Jun 2006 19:00:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04700-08 for ; Thu, 15 Jun 2006 19:00:27 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 03CFC3B0080 for ; Thu, 15 Jun 2006 19:00:26 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2035C58014 for ; Fri, 16 Jun 2006 00:59:51 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: drawing a generated bitmap Date: Thu, 15 Jun 2006 22:59:50 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606152259.50433.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.102 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: 1.102 X-Spam-Level: * X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 23:00:28 -0000 hello :) i understand this is a basic question and am sorry for my ignorance. i really haven't managed to find an answer though i've searched quite a time. i've actually got two problems (using nemerle (mono, i.e. gtk#)): 1. i'd like to generate a terrain heightmap and draw it onto a widget. should i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), try to convert it to an xpm (how?) or what other method would be most appropriate? (please, read the second question before answering this one) 2. i'd like to be able to fluently change the colours while the heightmap is already generated. in the old days (i haven't written much for quite a time) it was possible to just draw a bitmap onto the screen and keep redefining the colours, which was pretty fast and looked nice in its way. is it still doable? i'd need it for altering the water level on the map. any help would be appreciated :) From zhaolj@gmail.com Fri Jun 16 03:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46A9B3B000B for ; Fri, 16 Jun 2006 03:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20725-04 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 76F973B0007 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so510575pyd for ; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.15.11 with SMTP id s11mr424956pyi; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Message-ID: <9f5a93cb0606160026o65c6bc68gdd9b2a4ad88f4264@mail.gmail.com> Date: Fri, 16 Jun 2006 15:26:41 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.818 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.818 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 07:27:56 -0000 RGVhciBBbGwsCgpJIGhhdmUgYSBwcm9ibGVtIHdoZW4gSSBjcmVhdGUgYSBuZXcgR1NvdXJjZSBz dHJ1Y3R1cmUuCgpJbiBmYWN0LCBJIHdvdWxkIHNlbmQgc29tZSBldmVudHMgdG8gdGhlIG1haW4g bG9vcCBvZiBteSBhcHAgZnJvbQpvdGhlciB0aHJlYWRzIG9ubHkgd2l0aCB0aGUgZ2xpYiBBUElz LiBJIGNyZWF0ZSBteSBvd24gR1NvdXJjZQpzdHJ1Y3R1cmUgYW5kIGF0dGFjaCBpdCB3aXRoIHRo ZSBkZWZhdWx0IG1haW4gY29udGV4dC4gQnV0IEkgYWx3YXlzCmdldCBhIHNlZ21lbnQgZmF1bHQg d2hlbiB0aGUgb3RoZXIgdGhyZWFkIHNlbmQgc29tZSB0aGluZyB0byB0aGUgbWFpbgpsb29wLiBJ IGZpbmQgZXZlcnkgZmV3IGluZm9ybWF0aW9uIGFib3V0IHVzaW5nIEdTb3VyY2UuCgpXaGVyZSBj YW4gSSBmaW5kIGFuIGV4YW1wbGUgb2YgdXNpbmcgR1NvdXJjZSAobm90IHVzaW5nCmdfaWRsZV9z b3VyY2VfbmV3LCBub3IgZ190aW1lb3V0X3NvdXJjZV9uZXcpID8gb3IgQ2FuIHlvdSBndXlzIHN1 Z2dlc3QKbWUgYmV0dGVyIHNvbHV0aW9uIGFib3V0IHNlbmQgZXZlbnQgd2l0aCBteSBvd24gZGF0 YSB0byBtYWluIGxvb3AKKG1haW4gbG9vcCBjYW4gbm90IGJlIHN0b3BlZCBvciBibG9ja2VkKSBv bmx5IHVzaW5nIGdsaWIgQVBJcz8KClRoYW5rcyBpbiBhZHZhbmNlIQoKLS0gClJlZ2FyZHOjoQoK TGlhbmdqaW5nCg== From andyggill@gmail.com Fri Jun 16 09:51:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF0263B0011 for ; Fri, 16 Jun 2006 09:51:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30311-07 for ; Fri, 16 Jun 2006 09:51:39 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by menubar.gnome.org (Postfix) with ESMTP id BC4D33B0007 for ; Fri, 16 Jun 2006 09:51:38 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so487632nfe for ; Fri, 16 Jun 2006 06:50:41 -0700 (PDT) Received: by 10.48.43.7 with SMTP id q7mr1735277nfq; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Received: by 10.49.58.15 with HTTP; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Message-ID: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> Date: Fri, 16 Jun 2006 14:50:40 +0100 From: "andy gill" To: gtk-list@gnome.org Subject: opengl and gtk MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_113283_13878838.1150465840774" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.161 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -0.161 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 13:51:42 -0000 ------=_Part_113283_13878838.1150465840774 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree. what's the best (i.e. documented and supported) way of getting opengl and gtk to work together? cheers. ------=_Part_113283_13878838.1150465840774 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree.
what's the best (i.e. documented and supported) way of getting opengl and gtk to work together?

cheers.
------=_Part_113283_13878838.1150465840774-- From zhaolj@gmail.com Sat Jun 17 12:32:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 872CF3B0139 for ; Sat, 17 Jun 2006 12:32:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27157-09 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id 3DAF43B00E6 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so865244pyd for ; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr6012908pyi; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Message-ID: <9f5a93cb0606170932i455c53c0ved3aa0c501215662@mail.gmail.com> Date: Sun, 18 Jun 2006 00:32:02 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.597 tagged_above=-999 required=2 tests=[AWL=0.779, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -1.597 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 16:32:47 -0000 RGVhciBBbGwsCgpTb3JyeSwgSSBhbSBub3Qgc3VyZSBpZiBJIHBvc3QgdGhpcyBxdWVzdGlvbiB0 d2ljZSBpbiB0aGlzIGxpc3QuIEJ1dAppdCBzZWVtcyB0aGUgZmlyc3QgdGltZSB3YXMgZmFpbGVk LgoKSSBoYXZlIGEgcHJvYmxlbSB3aGVuIEkgY3JlYXRlIGEgbmV3IEdTb3VyY2Ugc3RydWN0dXJl LgoKSW4gZmFjdCwgSSB3b3VsZCBzZW5kIHNvbWUgZXZlbnRzIHRvIHRoZSBtYWluIGxvb3Agb2Yg bXkgYXBwIGZyb20Kb3RoZXIgdGhyZWFkcyBvbmx5IHdpdGggdGhlIGdsaWIgQVBJcy4gSSBjcmVh dGUgbXkgb3duIEdTb3VyY2UKc3RydWN0dXJlIGFuZCBhdHRhY2ggaXQgd2l0aCB0aGUgZGVmYXVs dCBtYWluIGNvbnRleHQuIEJ1dCBJIGFsd2F5cwpnZXQgYSBzZWdtZW50IGZhdWx0IHdoZW4gdGhl IG90aGVyIHRocmVhZCBzZW5kIHNvbWUgdGhpbmcgdG8gdGhlIG1haW4KbG9vcC4gSSBmaW5kIGV2 ZXJ5IGZldyBpbmZvcm1hdGlvbiBhYm91dCB1c2luZyBHU291cmNlLgoKV2hlcmUgY2FuIEkgZmlu ZCBhbiBleGFtcGxlIG9mIHVzaW5nIEdTb3VyY2UgKG5vdCB1c2luZwpnX2lkbGVfc291cmNlX25l dywgbm9yIGdfdGltZW91dF9zb3VyY2VfbmV3KSA/IG9yIENhbiB5b3UgZ3V5cyBzdWdnZXN0Cm1l IGJldHRlciBzb2x1dGlvbiBhYm91dCBzZW5kIGV2ZW50IHdpdGggbXkgb3duIGRhdGEgdG8gbWFp biBsb29wCihtYWluIGxvb3AgY2FuIG5vdCBiZSBzdG9wZWQgb3IgYmxvY2tlZCkgb25seSB1c2lu ZyBnbGliIEFQSXM/CgpUaGFua3MgaW4gYWR2YW5jZSEKCi0tIApSZWdhcmRzo6EKCkxpYW5namlu Zwo= From ben@benjohnson.net Sat Jun 17 16:19:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6D3B02A9 for ; Sat, 17 Jun 2006 16:19:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06354-09 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: from server016.dfw.nationwide.net (server016.dfw.nationwide.net [206.123.129.79]) by menubar.gnome.org (Postfix) with SMTP id C8CD93B00D2 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: (qmail 15137 invoked from network); 17 Jun 2006 20:17:13 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Sat, 17 Jun 2006 20:17:13 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 2E560E4067 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00589-06 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id E181DE4071; Sat, 17 Jun 2006 13:17:12 -0700 (PDT) Date: Sat, 17 Jun 2006 13:17:12 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617201712.GF11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.515 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.515 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:19:46 -0000 On Thu, Jun 15, 2006 at 11:27:35AM +0200, Jose Hevia wrote: > 2006/6/15, David Ne?as (Yeti) : > > On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > > > > > I use gtk_widget_modify_bg() without trouble. piece of a function: > > > > It works for people who use a decent Gtk+ theme. But themes > > and theme engines can easily make similar things stop working. > > Try just > > > > style "default" { > > bg_pixmap[NORMAL] = "someimage" > > } > > widget_class "*" style "default" > > > > in your gtkrc. > > > > I am afraid the requirement of particular colors goes > > directly against themeability. One cannot have both. > > > > Yeti > > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them > > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I have a "widget" (actually, a dialog with database interface) that allows users to create button background colors, and apply that "theme" to a "class" of buttons in the application. This was an important element to have in my app because the buttons, from the GTK+ point of view, are all more or less the same, and are created on-the-fly at the user's bequest. The user is allowed to group the buttons in any way they see fit. It works quite well with two great benefits: it gets around inflexabilities in themes and makes button color selection accessible to users who don't know how to use a text editor... much less use a syntax to create a complex theme. - Anna From yeti@physics.muni.cz Sat Jun 17 16:45:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F38AC3B07E3 for ; Sat, 17 Jun 2006 16:45:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09232-08 for ; Sat, 17 Jun 2006 16:45:26 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 7746F3B0805 for ; Sat, 17 Jun 2006 16:45:25 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HHKKwI018732 for ; Sat, 17 Jun 2006 19:20:21 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0804923CE9; Sat, 17 Jun 2006 19:20:20 +0200 (CEST) Date: Sat, 17 Jun 2006 19:20:23 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060617172023.GS30886@potato.chello.upc.cz> References: <200606152259.50433.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606152259.50433.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:45:29 -0000 On Thu, Jun 15, 2006 at 10:59:50PM +0000, kamil stachowski wrote: > i understand this is a basic question and am sorry for my ignorance. i really > haven't managed to find an answer though i've searched quite a time. > > i've actually got two problems (using nemerle (mono, i.e. gtk#)): > > 1. i'd like to generate a terrain heightmap and draw it onto a widget. should > i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), > try to convert it to an xpm (how?) or what other method would be most > appropriate? (please, read the second question before answering this one) Don't draw pixel by pixel, it would be awfully slow. Use GdkPixbufs and gdk_draw_pixbuf(). > 2. i'd like to be able to fluently change the colours while the heightmap is > already generated. in the old days (i haven't written much for quite a time) > it was possible to just draw a bitmap onto the screen and keep redefining the > colours, which was pretty fast and looked nice in its way. is it still > doable? Something along these lines should be doable *if* you can get a indexed color visual, which you cannot count on. So I would just redraw it (incidentally I develop a program which uses false-color maps a lot and redrawing works good enough). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Sat Jun 17 17:36:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2443E3B0139 for ; Sat, 17 Jun 2006 17:36:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11011-09 for ; Sat, 17 Jun 2006 17:36:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 0D2693B0104 for ; Sat, 17 Jun 2006 17:36:32 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1000D5OX9ZC3Q3@vms040.mailsrvcs.net> for gtk-list@gnome.org; Sat, 17 Jun 2006 16:34:48 -0500 (CDT) Date: Sat, 17 Jun 2006 17:35:12 -0400 From: Paul Davis Subject: Re: Gtk events ??? In-reply-to: <448FEC06.9090600@free.fr> To: Papel Message-id: <1150580112.8703.55.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <448FEC06.9090600@free.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 21:36:36 -0000 On Wed, 2006-06-14 at 12:59 +0200, Papel wrote: > Hello, > > From a few days ago, i have a lot of problems with gtk events (MainLoop). > I have created a GTK frame into a main widget and a box into this frame. > I have reparent this widget (window) to a XWindow. > I would like to send events (XEvents) to this widget. How I can do to > send this XEvents to GtkEvents to the widget ??? > > I have tried : gtk_widget_event / gtk_main_iteration_do / > gtk_main_do_event / etc... you're not thinking clearly. GTK is a multiplatform GUI toolkit. its backend is not just X Window, but includes the DirectFB (framebuffer) system on Linux, the GDI API (and others on win32) and recently Quartz/Aqua on OS X. sending GTK events doesn't mean sending events that are translated all the way down to the backend's notion of an "event". if you send a GTK "Button Press" event to a widget, GTK will do that entirely within its own event system, without any reference to the backend you are using. back to basics: why have you reparented the window inside a non-GTK XWindow? --p From yeti@trific.ath.cx Sat Jun 17 19:05:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F32E3B00DC for ; Sat, 17 Jun 2006 19:05:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13816-04 for ; Sat, 17 Jun 2006 19:05:33 -0400 (EDT) Received: from trific.ath.cx (rb5bf232.chello.upc.cz [89.176.185.232]) by menubar.gnome.org (Postfix) with ESMTP id 026623B00AA for ; Sat, 17 Jun 2006 19:05:32 -0400 (EDT) Received: by trific.ath.cx (Postfix, from userid 16809) id 34EC4156127; Sun, 18 Jun 2006 00:09:49 +0200 (CEST) Date: Sun, 18 Jun 2006 00:09:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617220938.GW30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 23:05:34 -0000 On Thu Jun 15 05:27:35 2006, Jose Hevia wrote: > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them How this makes the look consistent with Bumblebee [the theme]? Colors are not the only part of look and feel and they are the easiest part. When the theme uses pixmap backgrounds you should [in most cases] take the pixmap, give it a tint and use it instead of a solid color. Etc. Hackish theme engines like the qt one do not make it easier either. > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I agree with the importance, but I don't agree with the statement it is solved. The only real solution would be taking your app specific widgets into account in the theme itself and drawing themed icons for it if necessary. Not very realistic. Instead we are left with a bunch of heuristics, workarounds and hacks that do something not too awful in some common cases. Yeti -- Anonyms eat their boogers. From lists@nabble.com Sat Jun 17 22:11:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D2483B00EC for ; Sat, 17 Jun 2006 22:11:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20102-07 for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id AFE163B000B for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Frmk9-00052t-CL for gtk-list@gnome.org; Sat, 17 Jun 2006 19:10:29 -0700 Message-ID: <4920028.post@talk.nabble.com> Date: Sat, 17 Jun 2006 19:10:29 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to draw a rectangle on a GtkImage widget? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 02:11:42 -0000 Hi All, I am displaying an image in the main window with a thumbnail of the same image on one side. The thumbnail always shows the entire image while the main window shows just a part of the image because of zoom. Now I want to draw a rectange in the thumbnail to indicate which part of the image is currently displayed in the main window. How can I achieve this? Thanks!! -- View this message in context: http://www.nabble.com/How-to-draw-a-rectangle-on-a-GtkImage-widget--t1805314.html#a4920028 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Sun Jun 18 02:56:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6C5B3B008A for ; Sun, 18 Jun 2006 02:56:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28242-09 for ; Sun, 18 Jun 2006 02:55:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8DBF53B014D for ; Sun, 18 Jun 2006 02:55:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HMJ3jN031835 for ; Sun, 18 Jun 2006 00:19:04 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 19A4223D5D; Sun, 18 Jun 2006 00:19:03 +0200 (CEST) Date: Sun, 18 Jun 2006 00:19:08 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Mailing list problems? Message-ID: <20060617221907.GX30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 06:56:00 -0000 Hello, a couple of days ago my e-mails took almost a day to deliver (and it still takes a long time). But that was a small problem, now when I look at the archives, e.g. http://mail.gnome.org/archives/gtk-list/ I see only ========================================================================== The gtk-list Archives You can get more information about this list. Archive View by: Downloadable version June 2006: [ Thread ] [ Subject ] [ Author ] [ Date ] [ Gzip'd Text 7 KB ] ========================================================================== IOW there is only June 2006 -- and even that is incomplete. Other Gtk+ lists look similarly empty. Did something bad happen to them? Yeti -- Anonyms eat their boogers. From dov.grobgeld@gmail.com Sun Jun 18 04:10:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7A56F3B01BA for ; Sun, 18 Jun 2006 04:10:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31006-02 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 840143B01B4 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so1633845nzo for ; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.14.31 with SMTP id r31mr2636632nzi; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.21.57 with HTTP; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Message-ID: Date: Sun, 18 Jun 2006 11:08:28 +0300 From: "Dov Grobgeld" To: "andy gill" Subject: Re: opengl and gtk In-Reply-To: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 08:10:00 -0000 As far as I understand gtkglext is currently the prefered method of using GL within gtk. I have recently used it in a cross platform application that works fine both on Linux and on Win32. Regards, Dov On 6/16/06, andy gill wrote: > is there any officially supported way of integrating opengl into a > gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to > have varying levels of support for different platforms/language bindings, > and i don't quite understand why there isn't opengl support in the main > tree. > what's the best (i.e. documented and supported) way of getting opengl and > gtk to work together? > > cheers. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From kstachowski@o2.pl Sun Jun 18 07:29:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C2BB3B03F5 for ; Sun, 18 Jun 2006 07:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20622-07 for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 44C653B02EF for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2B8285807B for ; Sun, 18 Jun 2006 13:28:32 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 11:28:31 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200606181128.31582.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.444 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -1.444 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 11:29:39 -0000 thank you for the answer :) > Don't draw pixel by pixel, it would be awfully slow. > Use GdkPixbufs and gdk_draw_pixbuf(). you mean "don't draw pixel by pixel using drawpoint", is that it? > Something along these lines should be doable *if* you can > get a indexed color visual, which you cannot count on. So > I would just redraw it (incidentally I develop a program > which uses false-color maps a lot and redrawing works good > enough). that's a pity but i'll have to cope with that if there's no other way. however, i ran into a problem with colourmaps. i was using gdk.image (has the putpixel method which treats the colours in a more traditional way, and seems to be fast enough for my needs) but didn't manage to change the colours it uses. i keep getting a blue gradient which is not precisely what i want. here's the code: def img=Image(ImageType.Fastest,Visual.System,500,500); for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) img.PutPixel(x,y,(x+y):>UInt32); def gc=GC(args.Event.Window); mutable col=Color(0xff,0,0); gc.Colormap.AllocColor(ref col,true,true); img.Colormap=gc.Colormap; args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); i don't seem to be able to spot anything red in the result. could you please tell me what i am doing wrong? From yeti@physics.muni.cz Sun Jun 18 09:43:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8AFFD3B0BF1 for ; Sun, 18 Jun 2006 09:43:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28794-01 for ; Sun, 18 Jun 2006 09:43:29 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 128E23B0C68 for ; Sun, 18 Jun 2006 09:41:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5ICGX47030918 for ; Sun, 18 Jun 2006 14:16:34 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 5E0A123D5F; Sun, 18 Jun 2006 14:16:33 +0200 (CEST) Date: Sun, 18 Jun 2006 14:16:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060618121635.GZ30886@potato.chello.upc.cz> References: <200606181128.31582.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606181128.31582.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_XF=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 13:43:45 -0000 On Sun, Jun 18, 2006 at 11:28:31AM +0000, kamil stachowski wrote: > > Don't draw pixel by pixel, it would be awfully slow. > > Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? Yes, I do -- and I still mean it. > however, i ran into a problem with colourmaps. i was using gdk.image (has the > putpixel method which treats the colours in a more traditional way, and seems > to be fast enough for my needs) but didn't manage to change the colours it > uses. i keep getting a blue gradient which is not precisely what i want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could you please > tell me what i am doing wrong? Well, I can't speak Nemerle, but as far as I understand it, you first fill the image with arbitrary values no one knows which color they correspond to in the colormap, then allocate one very dark red color (full red is 0xffff in Gdk) but never use it -- the `pixel' field filled by AllocColor is the value to use with PutPixel -- and after all that you set the image's colormap. To draw you have to allocate the colors *first* -- and note if the display is not direct/true-color, it has a limited number of colors and you will not be able to allocate a new color for each unique (x+y):>UInt32 value. So, please save yourself all the hassle and just use GdkPixbuf. Yeti -- Anonyms eat their boogers. From riboaz@xs4all.nl Sun Jun 18 10:04:43 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBDDB3B0B99 for ; Sun, 18 Jun 2006 10:04:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29603-07 for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by menubar.gnome.org (Postfix) with ESMTP id 569E53B0BAA for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from [192.168.1.101] (dpc6744211093.direcpc.com [67.44.211.93]) by smtp-vbr7.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5IDtEGv072056 for ; Sun, 18 Jun 2006 15:55:17 +0200 (CEST) (envelope-from riboaz@xs4all.nl) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <200606181128.31582.kstachowski@o2.pl> References: <200606181128.31582.kstachowski@o2.pl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <14003C28-5DE0-4295-9EC8-E2D3D0A8F9A0@xs4all.nl> Content-Transfer-Encoding: 7bit From: Richard Boaz Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 17:55:07 +0200 To: gtk-list@gnome.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -2.445 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:04:44 -0000 hi, i do something like this in an application to draw probability density function plots. what i do is render the image to an internal RGB buffer, followed by gdk_draw_rgb_image() to render it to the internal pixmap (this pixmap subsequently rendered to the screen): width = DrawingArea->allocation.width; height = DrawingArea->allocation.height; rgbbuf = malloc(width * height * 3); memset(rgbbuf, 240, width * height * 3); // set the background to GREY=(240, 240, 240) DrawBufferImage(rgbbuf, width, height, data); gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); free(rgbbuf); inside the DrawBufferImage() routine, i examine the data, point by point, and assign each pixel to be the RGB combination corresponding to the colour defined/assigned for each data value. my input data also dictates an absolute starting size, so inside the DrawBufferImage() routine, i also magnify the image using a bi-cubic spline interpolation algorithm. the speed achieved in ultimately rendering the image is as fast as possible, and there is no real discernable delay between receiving the data to plot and rendering the image to the screen, i.e., it's instantaneous. plotting pixel by pixel (and magnifying to boot) can result in a quickly drawn image (depending on the number of data points, of course), if gone about in the right manner. cheers, richard On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > thank you for the answer :) > >> Don't draw pixel by pixel, it would be awfully slow. >> Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? > >> Something along these lines should be doable *if* you can >> get a indexed color visual, which you cannot count on. So >> I would just redraw it (incidentally I develop a program >> which uses false-color maps a lot and redrawing works good >> enough). > > that's a pity but i'll have to cope with that if there's no other way. > > however, i ran into a problem with colourmaps. i was using > gdk.image (has the > putpixel method which treats the colours in a more traditional way, > and seems > to be fast enough for my needs) but didn't manage to change the > colours it > uses. i keep getting a blue gradient which is not precisely what i > want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could > you please > tell me what i am doing wrong? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From gaal@forum2.org Sun Jun 18 10:06:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 435323B0BB8 for ; Sun, 18 Jun 2006 10:06:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29678-04 for ; Sun, 18 Jun 2006 10:06:01 -0400 (EDT) Received: from smtp2.actcom.co.il (smtp2.actcom.co.il [192.114.47.35]) by menubar.gnome.org (Postfix) with ESMTP id 650563B0BCC for ; Sun, 18 Jun 2006 10:06:00 -0400 (EDT) Received: from sike (line25-249.adsl.actcom.co.il [192.115.25.249]) by smtp2.actcom.co.il (8.13.3/8.13.3) with ESMTP id k5IDMLPC010326 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jun 2006 16:22:28 +0300 Received: from roo by sike with local (Exim 4.62) (envelope-from ) id 1FrxCy-0004RL-3X for gtk-list@gnome.org; Sun, 18 Jun 2006 16:22:14 +0300 Received: by sike (hashcash-sendmail, from uid 1000); Sun, 18 Jun 2006 16:20:55 +0300 Date: Sun, 18 Jun 2006 16:20:54 +0300 From: Gaal Yahas To: gtk-list@gnome.org Subject: Interrupt signal, GLib, threads Message-ID: <20060618132054.GL9396@sike.forum2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 X-Hashcash: 1:26:060618:gtk-list@gnome.org::gDKzIiB7k7Eeir0+:0000000000000000000 000000000000000000000007LSqZ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.509 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599] X-Spam-Score: -2.509 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:06:04 -0000 I have a GLib/GThread console application that runs fine on Linux and Solaris. But ever since I added threading, when the user hits ^C in the shell the signal is ignored. Does using GThread automatically mask signals? What do I do to get them back? When running my app under gdb, incidentally, ^C works as expected (that is, it drops me in a gdb prompt wherever I was). -- Gaal Yahas http://gaal.livejournal.com/ From kstachowski@o2.pl Sun Jun 18 10:36:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C9DB3B0BEE for ; Sun, 18 Jun 2006 10:36:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30842-02 for ; Sun, 18 Jun 2006 10:36:26 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id B38393B0B9E for ; Sun, 18 Jun 2006 10:36:25 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id AF99258082 for ; Sun, 18 Jun 2006 16:35:40 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:35:39 +0000 User-Agent: KMail/1.9.1 References: <200606181128.31582.kstachowski@o2.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200606181435.39660.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.392 tagged_above=-999 required=2 tests=[AWL=-0.789, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -1.392 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:36:28 -0000 hello :) thank you very much for your answer :) but i'm afraid i won't be able to use it. the access to the rgb class seems= to=20 be either very much limited in gtk sharp (mono) compared to the original an= d=20 other bindings, or at least quite a way beyond my programming skills. i think i'm supposed to be using a gdk.pixbuf instead but than again i can'= t=20 or don't know how to access the memory directly. anyways, in the meantime i've received another answer which made me finally= =20 grab the concept behind colour allocation and colour.pixel value. it seems= =20 that i eventually got an idea of what i'm actually writing :) still, thanks a lot for the answer once again:) Dnia niedziela, 18 czerwca 2006 15:27, napisa=B3e=B6: > hi, > > i do something like this in an application used to draw probability > density function plots. what i do is render the image to an internal > RGB buffer followed by gdk_draw_rgb_image() to render it to the > internal pixmap (this pixmap subsequently rendered to the screen): > > width =3D DrawingArea->allocation.width; > height =3D DrawingArea->allocation.height; > rgbbuf =3D malloc(width * height * 3); > memset(rgbbuf, 240, width * height * 3); // set the background to > GREY=3D(240, 240, 240) > DrawBufferImage(rgbbuf, width, height, data); > gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], > 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); > free(rgbbuf); > > my input data dictates an absolute starting size, so inside my > DrawBufferImage() routine, i also magnify the image using a bi-cubic > spline interpolation algorithm. the speed achieved in ultimately > rendering the image is as fast as possible, and there is no real > discernable delay between receiving the data to plot and rendering > the image to the screen, i.e., it's instantaneous. > > plotting pixel by pixel (and magnifying to boot) can result in a > quickly drawn image (depending on the number of data points, of > course), if gone about in the right manner. > > cheers, > > richard > > On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > > thank you for the answer :) > > > >> Don't draw pixel by pixel, it would be awfully slow. > >> Use GdkPixbufs and gdk_draw_pixbuf(). > > > > you mean "don't draw pixel by pixel using drawpoint", is that it? > > > >> Something along these lines should be doable *if* you can > >> get a indexed color visual, which you cannot count on. So > >> I would just redraw it (incidentally I develop a program > >> which uses false-color maps a lot and redrawing works good > >> enough). > > > > that's a pity but i'll have to cope with that if there's no other way. > > > > however, i ran into a problem with colourmaps. i was using > > gdk.image (has the > > putpixel method which treats the colours in a more traditional way, > > and seems > > to be fast enough for my needs) but didn't manage to change the > > colours it > > uses. i keep getting a blue gradient which is not precisely what i > > want. > > here's the code: > > > > def img=3DImage(ImageType.Fastest,Visual.System,500,500); > > for (mutable x=3D0, x<500; x++) for (mutable y=3D0; y<500; y++) > > img.PutPixel(x,y,(x+y):>UInt32); > > > > def gc=3DGC(args.Event.Window); > > mutable col=3DColor(0xff,0,0); > > gc.Colormap.AllocColor(ref col,true,true); > > img.Colormap=3Dgc.Colormap; > > > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > > > i don't seem to be able to spot anything red in the result. could > > you please > > tell me what i am doing wrong? > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list From tomee@kadu.net Sun Jun 18 10:55:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C71413B0100 for ; Sun, 18 Jun 2006 10:55:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31378-02 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from mail.chilan.com (mail.chilan.com [82.160.212.9]) by menubar.gnome.org (Postfix) with ESMTP id 3229A3B0077 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from aereo (aaso91.neoplus.adsl.tpnet.pl [83.5.226.91]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by mail.chilan.com (Postfix) with ESMTP id 4713723F60 for ; Sun, 18 Jun 2006 16:54:00 +0200 (CEST) From: Tomek Jarzynka To: gtk-list@gnome.org Subject: No icons in Open File dialog Date: Sun, 18 Jun 2006 16:53:58 +0200 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181653.59412.tomee@kadu.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:55:15 -0000 Hello, after playing around with unstable packages I messed up GTK - i.e. it doesn't display folder and file icons in the Open File dialog, only text. I've downgraded to the latest stable versions available for Mandriva 2006 (2.8.3) but still no icons appear. I can change the theme with gtk-chtheme (I am using KDE), but still there are no icons. I get no errors in the console. How do I fix that? Where to look for the icon configuration files that may be missing or corrupted? -- tomasz k. jarzynka / 601 706 601 / tomee(a-t)kadu(d-o-t)net "You laugh because I'm different. I laugh beacuse you're all the same." From nf2@scheinwelt.at Sun Jun 18 18:55:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 462013B00AF; Sun, 18 Jun 2006 18:55:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12908-03; Sun, 18 Jun 2006 18:55:31 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 208EC3B00B2; Sun, 18 Jun 2006 18:55:30 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1Fs69X-0004Oc-Kv; Mon, 19 Jun 2006 00:54:01 +0200 Message-ID: <4495D984.5090705@scheinwelt.at> Date: Mon, 19 Jun 2006 00:53:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gtk-list@gnome.org, gnome vfs list Subject: libxdg-vfs and Gtk-Filechooser Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 9d02a3267670e8bb77f537b38fda5a39 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.012, BAYES_00=-2.599, TW_XD=0.077] X-Spam-Score: -2.51 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 22:55:34 -0000 Hi, The experimental "libxdg-vfs" provides a generic interface to VFS libraries. It tries to autodetect the current desktop and then connects to Gnome-VFS or KIO by launching the backend executables xdg_vfs_gnome or xdg_vfs_kde. http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html The target of "libxdg-vfs" would be giving applications access to ftp/smb shares etc... Of course this also involves bringing VFS access to filechoosers. AFAIK Gtk-Filechooser has pluggable backends (GtkFilesystem). It would be interesting if it could also run on top of "libxdg-vfs". The problem is, that i couldn't find any documentation how to implement a GtkFilesystem module. Could you please give me an introduction and maybe tell me about the specific requirements for a GtkFilesystem? Perhaps i need to provide more functions through "libxdg-vfs": listing and mounting Volumes, obtaining icon-paths,... Regards, Norbert From kstachowski@o2.pl Mon Jun 19 01:31:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03CC3B02D0 for ; Mon, 19 Jun 2006 01:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26079-03 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 501B13B0CE7 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 541273A0414 for ; Mon, 19 Jun 2006 00:05:44 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 88F8C58010 for ; Mon, 19 Jun 2006 00:05:13 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Date: Sun, 18 Jun 2006 22:05:08 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200606182205.09332.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.108, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 05:31:54 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm very sorry about the mess with my posts... this is the first time i'm using a mailing list... From kstachowski@o2.pl Mon Jun 19 02:29:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3900E3B0D4C for ; Mon, 19 Jun 2006 02:29:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28331-03 for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 6FC8A3B0D5D for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 0FEDB2A42D9 for ; Sun, 18 Jun 2006 16:16:06 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id B93C9748099 for ; Sun, 18 Jun 2006 16:15:35 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:15:34 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181415.34985.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.446 tagged_above=-999 required=2 tests=[AWL=-0.766, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -1.446 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 06:29:17 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm sorry if this post appears as a new thread. it's my first time using a mailing list... From kstachowski@o2.pl Mon Jun 19 03:12:18 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 049243B0469 for ; Mon, 19 Jun 2006 03:12:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29499-07 for ; Mon, 19 Jun 2006 03:12:17 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 344293B0198 for ; Mon, 19 Jun 2006 03:12:02 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id A33D22A7E30 for ; Mon, 19 Jun 2006 02:07:22 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 829CB748066 for ; Mon, 19 Jun 2006 02:06:52 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: re: drawing a generated bitmap Date: Mon, 19 Jun 2006 00:06:51 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606190006.52079.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.402 tagged_above=-999 required=2 tests=[AWL=-0.799, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077, TW_XF=0.077] X-Spam-Score: -1.402 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 07:12:18 -0000 hello :) sorry for writing to you at your private address instead of the gtk list but it seems that using a mailing list exceeds my computer skills :/ anyway, i'd like to thank you very much for your answer. it made me finally understand how stuff works. here's the answer i think i failed to post on the list: >> Well, I can't speak Nemerle, but as far as I understand it, >> you first fill the image with arbitrary values no one knows >> which color they correspond to in the colormap, then >> allocate one very dark red color (full red is 0xffff in >> Gdk) but never use it -- the `pixel' field filled by >> AllocColor is the value to use with PutPixel -- and after >> all that you set the image's colormap. >> To draw you have to allocate the colors *first* -- and note >> if the display is not direct/true-color, it has a limited >> number of colors and you will not be able to allocate a new >> color for each unique (x+y):>UInt32 value. > so that's the way it works! oh dear, thank you very much! you've saved me > headache for at least a week :) > the thing is that i got completely lost about the concept of colour > allocation and colour.pixel value. i've utterly failed to understand the > meaning of "hardware pixel" as it is put in the docs. > actually, this also why i sticked to image instead of pixbuf - i thought > image.putpixel's colour parameter was the traditional way, and was afraid to > use pixbuf.drawpoint's gc.foreground because i couldn't understand it. > but now the penny dropped, thank you a great lot :) i definitely owe you a > beer or two in case we ever met :) thanks again, kamil stachowski From lists@nabble.com Mon Jun 19 05:10:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5E0723B008F for ; Mon, 19 Jun 2006 05:10:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-05 for ; Mon, 19 Jun 2006 05:10:31 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E4EB73B0014 for ; Mon, 19 Jun 2006 05:10:30 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFlX-0004aX-HJ for gtk-list@gnome.org; Mon, 19 Jun 2006 02:09:51 -0700 Message-ID: <4932993.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:09:51 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Is there any widget on which I can plot my own primitives? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:10:32 -0000 I have explored some widgets such as GtkImage and GnomeCanvas, but none of them provide the functions I need. Does anyone got any idea? Thanks! -- View this message in context: http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Mon Jun 19 05:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3EC43B0004 for ; Mon, 19 Jun 2006 05:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01908-01 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 72F253B00A4 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFsB-0004kJ-Do for gtk-list@gnome.org; Mon, 19 Jun 2006 02:16:43 -0700 Message-ID: <4933077.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:16:43 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the mouse move and double click event? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:17:33 -0000 I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, I need to capture the coordination of the cursor. In VC++, this can be easily achieved by using the OnMouseMove() function. But in Gtk, I cannot find any similar signal to map. Does anyone got any idea? Thanks!! -- View this message in context: http://www.nabble.com/How-to-capture-the-mouse-move-and-double-click-event--t1810142.html#a4933077 Sent from the Gtk+ - General forum at Nabble.com. From z_b_r@poczta.fm Mon Jun 19 05:36:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 633A53B00A4 for ; Mon, 19 Jun 2006 05:36:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01950-04 for ; Mon, 19 Jun 2006 05:36:03 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id C12ED3B0004 for ; Mon, 19 Jun 2006 05:36:02 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id 66C9F373E63; Mon, 19 Jun 2006 11:35:15 +0200 (CEST) Received: from poczta.interia.pl (f27.poczta.interia.pl [10.217.2.27]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 09FB9373E29 for ; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 0B5532E5C9D; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id DC2132E5C98 for ; Mon, 19 Jun 2006 11:35:09 +0200 (CEST) Date: 19 Jun 2006 11:35:09 +0200 From: hm Subject: Drawing images ( with transparency ) one on another To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060619093509.DC2132E5C98@poczta.interia.pl> X-EMID: 1aa40acc X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.455 tagged_above=-999 required=2 tests=[AWL=-0.971, BAYES_40=-0.185, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:36:05 -0000 =0AHi, =0A=0A I`ve got a problem. I`ve got two separate images. One is bac= kground for the secondone. Secondone is partially transparent. There is al= so table. Question is : how to draw in one of the table`s cells the backgra= ound, and on this background ( as a second layer ) second image (transparen= t) ? I know ( of course ) how to create images, tables.=0A=0Athanks ---------------------------------------------------------------------- Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 From jean.brefort@normalesup.org Mon Jun 19 06:43:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A42C3B00C8 for ; Mon, 19 Jun 2006 06:43:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05026-01 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 7BF243B0091 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5E409225FA; Mon, 19 Jun 2006 12:43:01 +0200 (CEST) Subject: Re: Is there any widget on which I can plot my own primitives? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:46:15 +0200 Message-Id: <1150713975.8915.1.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.892 tagged_above=-999 required=2 tests=[AWL=-0.362, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.892 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:43:49 -0000 Le lundi 19 juin 2006 02:09 -0700, heavenscape a 閏rit : > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. Which functions do you need? > Does anyone got any idea? Thanks! May be GtkDrawingArea? Regards, Jean From jean.brefort@normalesup.org Mon Jun 19 06:47:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A8DF3B015D for ; Mon, 19 Jun 2006 06:47:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05099-08 for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by menubar.gnome.org (Postfix) with ESMTP id 5B4743B008F for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp3-g19.free.fr (Postfix) with ESMTP id 4AF08444E6; Mon, 19 Jun 2006 12:46:28 +0200 (CEST) Subject: Re: How to capture the mouse move and double click event? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4933077.post@talk.nabble.com> References: <4933077.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:49:42 +0200 Message-Id: <1150714182.8915.6.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.891 tagged_above=-999 required=2 tests=[AWL=-0.361, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.891 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:47:09 -0000 Le lundi 19 juin 2006 02:16 -0700, heavenscape a 閏rit : > I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, > I need to capture the coordination of the cursor. In VC++, this can be > easily achieved by using the OnMouseMove() function. But in Gtk, I cannot > find any similar signal to map. > > Does anyone got any idea? Thanks!! The "motion-notify-event" signal is most probably what you need. Regards, Jean From lieven@quasar3d.nl Mon Jun 19 07:28:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A099F3B00A5 for ; Mon, 19 Jun 2006 07:28:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06013-07 for ; Mon, 19 Jun 2006 07:28:08 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 0257C3B000F for ; Mon, 19 Jun 2006 07:28:07 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JBQgWa009810 for ; Mon, 19 Jun 2006 13:26:45 +0200 To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? References: <4932993.post@talk.nabble.com> Message-ID: From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 19 Jun 2006 13:26:42 +0200 In-Reply-To: <4932993.post@talk.nabble.com> User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 11:28:11 -0000 Hi, Use the GtkDrawingArea. You can draw to it using Gdk or maybe Cairo (not sure if that's already in the stable version). Google gave me this tutorial: http:// www.gtk.org/tutorial/x2491.html Greets, Lieven van der Heide. On Mon, 19 Jun 2006 11:09:51 +0200, heavenscape wrote: > > I have explored some widgets such as GtkImage and GnomeCanvas, but none > of > them provide the functions I need. > > Does anyone got any idea? Thanks! > -- > View this message in context: > http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lieven@quasar3d.nl Mon Jun 19 08:15:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 540D53B0AAF for ; Mon, 19 Jun 2006 08:15:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09991-10 for ; Mon, 19 Jun 2006 08:15:06 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 75A0A3B0444 for ; Mon, 19 Jun 2006 08:15:05 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JCDXWa008938 for ; Mon, 19 Jun 2006 14:13:33 +0200 Date: Mon, 19 Jun 2006 14:13:33 +0200 To: gtk-list@gnome.org Subject: Different thickness depending on widget properties. From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=0.109, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.356 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:15:08 -0000 Hi, I am currently working on the wimp theme engine, and I would like to have different thickness property values depending on whether the edge type is etched, or sunken. What would be the best approach on doing so? Also, I'm wondering why the GtkFrame is used for both visually grouping widgets together (like the windows groupbox), aswell as adding edges to widgets (like the drop down list in the combobox seems to be doing). They may have the same functionality (which is none, afaik ;)), and in the default theme they may look the same, but imho there really is a difference between a grouping frame and an edge, and when you're theming, it may be very likely that you want to theme them differently. So I think it would be easier if it were different widgets. Greets, Lieven van der Heide. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From yeti@physics.muni.cz Mon Jun 19 09:03:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B68713B0387 for ; Mon, 19 Jun 2006 09:03:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12359-02 for ; Mon, 19 Jun 2006 09:03:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id CE0ED3B0246 for ; Mon, 19 Jun 2006 09:03:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JAfVKW028290 for ; Mon, 19 Jun 2006 12:41:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4E12123CE6; Mon, 19 Jun 2006 12:41:31 +0200 (CEST) Date: Mon, 19 Jun 2006 12:41:32 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Drawing images ( with transparency ) one on another Message-ID: <20060619104132.GW2858@potato.chello.upc.cz> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:03:16 -0000 On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. Either use gdk_draw_pixbuf() if the correct order (first base, then the one with alpha channel) in expose event handler, or use gdk_pixbuf_composite() and draw the final image. Yeti -- Anonyms eat their boogers. From jmad@maerskdata.dk Mon Jun 19 09:04:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DAE2B3B0312 for ; Mon, 19 Jun 2006 09:04:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12532-05 for ; Mon, 19 Jun 2006 09:04:52 -0400 (EDT) Received: from smddisadksgd001.mdd.local (mail.maerskdata.dk [85.89.224.39]) by menubar.gnome.org (Postfix) with ESMTP id 810BC3B006A for ; Mon, 19 Jun 2006 09:04:51 -0400 (EDT) Received: from smdgldodksgd005.mdd.local ([172.29.201.20]) by smddisadksgd001.mdd.local with InterScan VirusWall; Mon, 19 Jun 2006 14:33:26 +0200 Subject: xevent ? To: gtk-list@gnome.org Cc: X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 From: Jens Madsen Date: 19-Jun-2006 14:33:25 CEDT Message-ID: X-MIMETrack: Serialize by Router on SDRMAIL01/MDG(Release 6.5.3|September 14, 2004) at 19-06-2006 14:33:27 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.519 tagged_above=-999 required=2 tests=[AWL=-0.699, BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, INVALID_DATE=2.193] X-Spam-Score: 0.519 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:04:55 -0000 Hi, I am converting some old x-windows software to GTK. It contains a handler for receiving xevents from other applications. What sort of GTK api should I use for receiving/sending the x-events ? Best regards Jens Madsen From simon@thegestalt.org Mon Jun 19 10:43:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CFD73B0123 for ; Mon, 19 Jun 2006 10:43:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15901-01 for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from mail.thegestalt.org (kanga.astray.com [195.82.114.48]) by menubar.gnome.org (Postfix) with ESMTP id 6C54F3B017E for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from simon by mail.thegestalt.org with local (Exim 4.12) id 1FsKwK-00071M-00 for gtk-list@gnome.org; Mon, 19 Jun 2006 15:41:20 +0100 Date: Mon, 19 Jun 2006 15:41:20 +0100 From: Simon Wistow To: gtk-list@gnome.org Subject: Problems using GTK in Maya Message-ID: <20060619144120.GJ7044@thegestalt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.455 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_RG=0.077] X-Spam-Score: -2.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 14:43:40 -0000 I've attempted to write a dialog for Maya using GTK but it consistently causes segfaults. The dialog will launch and return successfully but the next button I press will causes a Maya crash with the message The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 62194 error_code 8 request_code 42 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) And so far I've been unable to geta back trace out of GDB or Totalview. I've narrowed it down to a test case string create_dialog { int argc = 0; char** argv = 0; // Initialize the widget set if (!gtk_init_check (&argc, &argv)) { return ""; } // drain the event loop while (gtk_events_pending ()) { gtk_main_iteration (); } return ""; } either with or without the event loop draining. Am I doing something fundamentally wrong? Do I need to do somethign with XEmbed? Is GTK just not suited to this? Do I need to sacrifice a different breed of chicken? I'm using GTK 2.69 for what it's worth. Simon -- X-Gleitschirmfliegen: macht Spaaaasss! From paul@linuxaudiosystems.com Mon Jun 19 12:36:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E4033B03A5 for ; Mon, 19 Jun 2006 12:36:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20590-07 for ; Mon, 19 Jun 2006 12:36:08 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 14F6B3B01C6 for ; Mon, 19 Jun 2006 12:36:07 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1400EA98NCJ2C6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Mon, 19 Jun 2006 11:33:12 -0500 (CDT) Date: Mon, 19 Jun 2006 12:33:38 -0400 From: Paul Davis Subject: Re: xevent ? In-reply-to: <1150734280.8703.98.camel@localhost.localdomain> To: Jens Madsen Message-id: <1150734818.8703.101.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1150734280.8703.98.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GD=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 16:36:11 -0000 On Mon, 2006-06-19 at 14:33 +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? basically, you can't. GTK is a cross platform toolkit, so it doesn't have an API that exposes backend details like XEvent. if you root around in the sources of gdk, especially the gdk-x11 directory, you will find some stuff that could be useful. but its not GTK and not even really GDK, since these APIs are designed to work on a variety of backends, including several that are not X Window related. --p From jose.francisco.hevia@gmail.com Mon Jun 19 06:50:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B57E3B007B for ; Mon, 19 Jun 2006 06:50:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05221-03 for ; Mon, 19 Jun 2006 06:50:53 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id DDACA3B013E for ; Mon, 19 Jun 2006 06:50:52 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so538227hue for ; Mon, 19 Jun 2006 03:49:46 -0700 (PDT) Received: by 10.49.72.7 with SMTP id z7mr4462656nfk; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2006 12:49:45 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4932993.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Mon, 19 Jun 2006 14:33:36 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:50:56 -0000 2006/6/19, heavenscape : > > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. > Does anyone got any idea? Thanks! Oh, yes, I'm looking my crystal ball, but I can't manage to get to know what kind of functions you need :-) But I'm sure you know, so please, give more info. Jose Hevia From lists@nabble.com Mon Jun 19 21:48:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9193B09BA for ; Mon, 19 Jun 2006 21:48:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15436-06 for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 142DA3B059B for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsVLU-0004uW-Mp for gtk-list@gnome.org; Mon, 19 Jun 2006 18:48:00 -0700 Message-ID: <4947880.post@talk.nabble.com> Date: Mon, 19 Jun 2006 18:48:00 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Trouble with GtkImage on button press event! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 01:48:41 -0000 I need to capture the button press event on a GtkImage widget, and I use the following code: w = lookup_widget(MainWnd,"image1"); gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); and I mapped the "Button press event" using glade, but it never worked. Anyone knows why? -- View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Mon Jun 19 23:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DA3403B022F for ; Mon, 19 Jun 2006 23:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19691-10 for ; Mon, 19 Jun 2006 23:15:01 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9BAA53B036C for ; Mon, 19 Jun 2006 23:15:00 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JI2VFE002259 for ; Mon, 19 Jun 2006 20:02:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4559923D5E; Mon, 19 Jun 2006 20:02:31 +0200 (CEST) Date: Mon, 19 Jun 2006 20:02:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: xevent ? Message-ID: <20060619180234.GF30886@potato.chello.upc.cz> References: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:15:04 -0000 On Mon, Jun 19, 2006 at 04:22:25PM +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? See gdk_add_client_message_filter() and related funcs. At least I think they are intended for this situation, fortunately I have never needed them. Yeti -- Anonyms eat their boogers. From lists@nabble.com Mon Jun 19 23:37:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 155253B032C for ; Mon, 19 Jun 2006 23:37:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20664-03 for ; Mon, 19 Jun 2006 23:37:49 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 0B8933B03A6 for ; Mon, 19 Jun 2006 23:37:48 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsX2j-0006su-9z for gtk-list@gnome.org; Mon, 19 Jun 2006 20:36:45 -0700 Message-ID: <4948583.post@talk.nabble.com> Date: Mon, 19 Jun 2006 20:36:45 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: trouble getting the current size of GtkViewport MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:37:52 -0000 I am displaying an image inside a GtkViewport (which is in a scrolled window), my main window resizes frequently (and so the viewport), and i want the image to rescale to fit the current size of the viewport. Anybody has any idea how to get the current size of the viewport? Thanks a lot!!!! -- View this message in context: http://www.nabble.com/trouble-getting-the-current-size-of-GtkViewport-t1815369.html#a4948583 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Tue Jun 20 01:47:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC0303B05AF for ; Tue, 20 Jun 2006 01:47:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26815-06 for ; Tue, 20 Jun 2006 01:47:47 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 08FEA3B031E for ; Tue, 20 Jun 2006 01:47:41 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id C710471130; Tue, 20 Jun 2006 07:46:38 +0200 (CEST) Subject: Re: Trouble with GtkImage on button press event! From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 07:49:52 +0200 Message-Id: <1150782592.14978.0.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.853 tagged_above=-999 required=2 tests=[AWL=-0.400, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.853 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 05:47:48 -0000 Le lundi 19 juin 2006 18:48 -0700, heavenscape a 閏rit : > I need to capture the button press event on a GtkImage widget, and I use the > following code: > > w = lookup_widget(MainWnd,"image1"); > gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); > > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? do you call glade_xml_signal_autoconnect in your code? > View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From andrew@operationaldynamics.com Tue Jun 20 02:16:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC8873B0F1C for ; Tue, 20 Jun 2006 02:16:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28283-07 for ; Tue, 20 Jun 2006 02:16:40 -0400 (EDT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by menubar.gnome.org (Postfix) with SMTP id 8BF9B3B0EBA for ; Tue, 20 Jun 2006 02:16:39 -0400 (EDT) Received: (qmail 57818 invoked by uid 0); 20 Jun 2006 05:49:08 -0000 Received: from unknown (HELO procyon) (unknown) by unknown with SMTP; 20 Jun 2006 05:49:08 -0000 X-pair-Authenticated: 150.101.122.233 Subject: Re: Trouble with GtkImage on button press event! From: Andrew Cowie To: gtk-list@gnome.org In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain Organization: Operational Dynamics Date: Tue, 20 Jun 2006 15:48:53 +1000 Message-Id: <1150782533.17295.4.camel@procyon.operationaldynamics.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.384 tagged_above=-999 required=2 tests=[AWL=0.215, BAYES_00=-2.599] X-Spam-Score: -2.384 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:16:42 -0000 On Mon, 2006-06-19 at 18:48 -0700, heavenscape wrote: > I need to capture the button press event on a GtkImage widget... > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? [gtk] Images themselves don't have [gdk] Windows underneath them, and only such Windows receive events. There is thus a "helper" class called GtkEventBox. You have to nest the Image inside an EventBox to which you can then hook up mouse button press events. http://developer.gnome.org/doc/API/2.0/gtk/GtkEventBox.html or http://java-gnome.sourceforge.net/docs/javadoc/org/gnu/gtk/EventBox.html AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Website: http://www.operationaldynamics.com/ Blog: http://research.operationaldynamics.com/blogs/andrew/ GPG key: 0945 9282 449C 0058 1FF5 2852 2D51 130C 57F6 E7BD From lists@nabble.com Tue Jun 20 02:46:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA183B038D for ; Tue, 20 Jun 2006 02:46:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30258-08 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 873AB3B0085 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsZzm-00022R-Mg for gtk-list@gnome.org; Mon, 19 Jun 2006 23:45:54 -0700 Message-ID: <4950061.post@talk.nabble.com> Date: Mon, 19 Jun 2006 23:45:54 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the scroll event of the scrolled window? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:46:56 -0000 I need to track the scroll events of the GtkScrolledWindow, and i use following code: GtkWidget* w = lookup_widget(MainWnd,"scrolledwindow1"); gtk_widget_add_events (w, GDK_SCROLL_MASK); and I mapped the scroll child event with glade, but it does not work. Anyone knows why? -- View this message in context: http://www.nabble.com/How-to-capture-the-scroll-event-of-the-scrolled-window--t1815899.html#a4950061 Sent from the Gtk+ - General forum at Nabble.com. From prashan@sasken.com Tue Jun 20 04:48:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC4BB3B0E25 for ; Tue, 20 Jun 2006 04:48:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03632-08 for ; Tue, 20 Jun 2006 04:47:55 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id 1A6C73B0F64 for ; Tue, 20 Jun 2006 04:47:53 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8jlRJ007178 for ; Tue, 20 Jun 2006 14:15:47 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8ji59007156for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5K8jiKm016268for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Message-ID: <4497B5B8.1080000@sasken.com> Date: Tue, 20 Jun 2006 14:15:44 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: proggressbar.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:75.63018 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.072 tagged_above=-999 required=2 tests=[AWL=-0.074, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.072 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 08:48:03 -0000 how to design a progressbar, and add to my application window? with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From prashan@sasken.com Tue Jun 20 07:07:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D06E33B032F for ; Tue, 20 Jun 2006 07:07:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10540-04 for ; Tue, 20 Jun 2006 07:07:04 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id B9BA63B03AD for ; Tue, 20 Jun 2006 07:07:03 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6ERJ012845 for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6E59012842for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5KB6EKm016317for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Message-ID: <4497D6A6.20505@sasken.com> Date: Tue, 20 Jun 2006 16:36:14 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Please help me.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:25.28121 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.3 tagged_above=-999 required=2 tests=[AWL=0.298, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:07:06 -0000 hi all... I am doing GUI for audio players using *GTK* as framework. i have to design a *playlist* which contains files from one* directory*, on selecting file from playlist another window should open,which contains play,* pause and stop buttons and one progress bar*. i have to write *events* for those play & all buttons. if anybody have idea of this please help me. or tell me where i get source code of this. with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From paul@linuxaudiosystems.com Tue Jun 20 07:52:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 318133B044D for ; Tue, 20 Jun 2006 07:52:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-01 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B16773B03B8 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J15007F0Q8GB21C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Tue, 20 Jun 2006 06:50:40 -0500 (CDT) Date: Tue, 20 Jun 2006 07:51:07 -0400 From: Paul Davis Subject: Re: proggressbar.. In-reply-to: <4497B5B8.1080000@sasken.com> To: Kalli Math Message-id: <1150804267.8703.134.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <4497B5B8.1080000@sasken.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.547 tagged_above=-999 required=2 tests=[AWL=0.052, BAYES_00=-2.599] X-Spam-Score: -2.547 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:52:07 -0000 On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? it is customary to show some indication that you've attempted to find an answer to such simple, basic questions before asking a mailing list. www.gtk.org has lots of documentation on the GTK API, and links to lots of example source code which you are expected to make use of to find useful, real world, working examples. if you don't understand even the basic idea behind using GTK (or any GUI toolkit), mailing lists are not the right place to begin. From linuxhippy@gmail.com Tue Jun 20 09:27:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 520BE3B02A4 for ; Tue, 20 Jun 2006 09:27:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17603-06 for ; Tue, 20 Jun 2006 09:27:34 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 14A793B01A8 for ; Tue, 20 Jun 2006 09:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so742257hue for ; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.40.10 with SMTP id n10mr2592344hun; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Message-ID: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Date: Tue, 20 Jun 2006 15:26:51 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Scrolling performance MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 13:27:36 -0000 Hi there, I recently updated to OpenSuSE 10.1 since some people suggested that Eclipse/GTK's performance is better with gtk 2.8. My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with latest NVidia binary drivers, renderaccel enabled. GTK applications tend to be very unresponsive compared to other toolkits: - Slow expose reaction. If I move a window above e.g. gtk-demo I see a repaint-lag of about 2-3cm. - Slow scrolling. Even fast scrolling inside of the filechooser is not smooth. I can see scrolling srtifacts which look like caused by asynchronous repainting of the scrolled area. - Slow layouting, especially for Text composnents: Moving e.g. the vertical splitters of gftp (one pane a table as content, other table is empty) is done with about 5fps. Even my old P233 with Windows2000 can do compareable GUI operations without any problems. Also reslayouting/repainting windows after window-size change is slow. - Sluggish Menu-behaviour. In gftp I can feel a ~400ms lag, therefor it takes about 400ms for the menu to catch up to my mouse-pointer if I move with about 500pixel/s. - Eclipse in general is just _very_ slow at all. If large popup menus go away you see the background about 300-500ms repainting itself. Netbeans (Swing based) is way faster, only after start its slow (till the java JIT compiled the hot spots). I know this is an opensource project, I know if something bothers me I can grab the code and enhance it or dontate some money to make someone else fix my problems. However I still go to school and currently have to do my diploma -> no money, no time. I know its unpolite to post such problems to the list, but bad performance has been discussed since ... I guess the 2.0 release. I still remember many projects refusing to upgarde with tables of micro-benchmarks. Till a long time improvements are promiesed, fast paths in pango, enhanced speed of cairo, better repaint handling and whatsoever. If I start a application which links against GTK-2.8 _feels_ exactly as good damn slow as GTK-2.0. The I start a GTK-1.2 based problem and can't trust my eyes ... what happend to GTK. At times of GTK-1.2 I preffered GTK since it felt a bit faster than QT-2.x but now QT is lightening fast compared to GTK-2.x not talking about high-performance libraries like FOX or FLTK. I used Mozilla/GTK1.2 builds as long as they were available, since even mozilla slowed down by only using GDK(2). I just don't get it why I need a 3ghz PC to not see repaint lags or 5fps layout updates. These things worked years ago ten times better than now (and no, this are not themes. GTK-1/QT-2 were themed too with tons of pixmaps). What has happend? I guess performance regression testing is something never here has heard of :-/ And where to start getting my hands on? I just can't work with this crap anymore, but since GTK is on the way to be used as the default toolkit ... it seems there's no way arround it. Which profiling tools do you recommend? Do you think using the intel compiler is worth a try? Where does all the time go to? I've done some sysprof-profiling and its shows than pango is not the evil. Are maybe the repaint algorythmns not optimal, repainting too often too large areas/hidden components? Sorry for wasting your time and your energy, a frustrated Clemens From mclasen@redhat.com Tue Jun 20 11:22:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B32C3B043F; Tue, 20 Jun 2006 11:22:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-09; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 71CF13B00E7; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLnL004523; Tue, 20 Jun 2006 11:21:21 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLNA016479; Tue, 20 Jun 2006 11:21:21 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5KFLKdH032719; Tue, 20 Jun 2006 11:21:20 -0400 Subject: GLib 2.11.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Date: Tue, 20 Jun 2006 11:21:20 -0400 Message-Id: <1150816880.15532.58.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 15:22:11 -0000 GLib 2.11.4 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.4.tar.bz2 md5sum: 9d3a94baa4bfcd9a579b45eea6de3a8c glib-2.11.4.tar.gz md5sum: f7768bc7ed524c6b40cb87daccb6c2b2 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.3 to GLib 2.11.4 =================================================== * GBookmarkFile: - g_bookmark_file_remove_item returns a boolean * g_mkstemp accepts the XXXXXX in the middle of the template * Bugs fixed: 344868 g_key_file_to_data should separate groups * Updated translations (de,es,fr,gu,hi,ko,th) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=344868 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Christian Persch, Federico Mena Quintero Matthias Clasen June 20, 2006 From torriem@chem.byu.edu Tue Jun 20 14:00:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AAD953B04F0 for ; Tue, 20 Jun 2006 14:00:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02250-08 for ; Tue, 20 Jun 2006 14:00:13 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 8D0CF3B0302 for ; Tue, 20 Jun 2006 14:00:02 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5KFR9lG010025 for ; Tue, 20 Jun 2006 09:27:10 -0600 Subject: Re: Please help me.. From: Michael L Torrie To: gtk-list@gnome.org In-Reply-To: <4497D6A6.20505@sasken.com> References: <4497D6A6.20505@sasken.com> Content-Type: text/plain Date: Tue, 20 Jun 2006 09:27:09 -0600 Message-Id: <1150817229.26278.4.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Tue, 20 Jun 2006 09:27:10 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.514 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.514 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:00:23 -0000 On Tue, 2006-06-20 at 16:36 +0530, Kalli Math wrote: > hi all... > > I am doing GUI for audio players using *GTK* as framework. i have to > design a *playlist* which contains files from one* directory*, on > selecting file from playlist another window should open,which contains > play,* pause and stop buttons and one progress bar*. i have to write > *events* for those play & all buttons. if anybody have idea of this > please help me. or tell me where i get source code of this. Do you have a specific question? I doubt anyone here will write your program for you. > > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mitch@gimp.org Tue Jun 20 14:16:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C5693B03C5 for ; Tue, 20 Jun 2006 14:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03488-03 for ; Tue, 20 Jun 2006 14:16:26 -0400 (EDT) Received: from mitch.gimp.org (fuckup.club.berlin.ccc.de [195.160.172.2]) by menubar.gnome.org (Postfix) with ESMTP id 86EB33B0341 for ; Tue, 20 Jun 2006 14:16:25 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FsknV-0007g7-00; Tue, 20 Jun 2006 20:17:58 +0200 Subject: Re: proggressbar.. From: Michael Natterer To: Kalli Math In-Reply-To: <4497B5B8.1080000@sasken.com> References: <4497B5B8.1080000@sasken.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 20:17:57 +0200 Message-Id: <1150827477.31698.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:16:27 -0000 I think it would help a bit if you a) asked specific questions b) didn't have 3 times as much advertizing as content in your mail c) didn't have this idiotic disclaimer On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Tue Jun 20 14:20:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D25DE3B03E3 for ; Tue, 20 Jun 2006 14:20:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03798-03 for ; Tue, 20 Jun 2006 14:20:52 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 120A73B0401 for ; Tue, 20 Jun 2006 14:20:51 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id i30so402545wxd for ; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.19.6 with SMTP id 6mr10823687wxs; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Message-ID: <522c6460606201120g780d763dvf18c90f7fb461681@mail.gmail.com> Date: Tue, 20 Jun 2006 19:20:51 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:20:54 -0000 On 6/20/06, Clemens Eisserer wrote: > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Hi Clemens, I've not tried suse 10.1, but older suses used to install a theme engine for gtk which tried to copy the current KDE theme. It always caused me problems: it was slow, very ugly, and had repaint errors. Maybe it's better than it used to be, but if you have not disabled it, I think it's worth trying without. I forget what the package you have to remove is called, maybe try something like rpm -q a | grep -i gtk | grep -i engine (untested) and see if it lists any theme engines. GTK on the default theme should be fast. John From patrick.jacquotf@free.fr Tue Jun 20 15:18:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A6EB3B046A for ; Tue, 20 Jun 2006 15:18:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07752-07 for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 9EC583B047F for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp2-g19.free.fr (Postfix) with ESMTP id C6C8F73297; Tue, 20 Jun 2006 21:18:10 +0200 (CEST) Subject: Re: Drawing images ( with transparency ) one on another From: Patrick Jacquot To: hm In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 21:17:43 +0200 Message-Id: <1150831063.12639.2.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.582 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599] X-Spam-Score: -2.582 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:18:15 -0000 Le lundi 19 juin 2006 11:35 +0200, hm a 閏rit : > Hi, > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. > > thanks > > ---------------------------------------------------------------------- > Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 > One solution could be to prepare the composite image with the imagemagick library, then to display that composite image HTH -- Patrick From Valdis.Kletnieks@vt.edu Tue Jun 20 15:31:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 908813B04C0 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08815-08 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 9C8D13B04A5 for ; Tue, 20 Jun 2006 15:31:30 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KJVPU2012082; Tue, 20 Jun 2006 15:31:25 -0400 Message-Id: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 15:26:51 +0200." <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150831885_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 15:31:25 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.596 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.596 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:31:31 -0000 --==_Exmh_1150831885_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 15:26:51 +0200, Clemens Eisserer said: > Where does all the time go to? I've done some sysprof-profiling and > its shows than pango is not the evil. Are maybe the repaint > algorythmns not optimal, repainting too often too large areas/hidden > components? So where *does* the time go to, if not pango? The more detail you can provide, the easier it is to track down. For what it's worth, I'm using an older Dell C840 laptop (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer, and it's able to keep up just fine. (Although I admit that if I grab one 700x1000 window and start using the mouse to move it back and forth as fast as I can move the mouse, in front of 2 other 700x1000 windows, and the window manager is doing the moving window in translucent mode as well, that *will* spike the processor up to about 100% and only 8 or 10 redraws per second. I'm not saying it's *not* an issue for you, but simply pointing out that not everybody is seeing the problem - on my machine, GTK2 *is* a bit heavier than GTK1, but not to the point where it's a major issue. And in general, it's really hard to chase down performance regressions in an open-source project without somebody actually seeing the problem and willing to work in some detail to chase it down (been there myself - there's been more than a few times when I've been literally the only person who was both seeing a given bug in the Linux kernel and in a position to help debug it...) --==_Exmh_1150831885_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmE0NcC3lWbTT17ARAu6DAKCFrdWzrt6jGOyh69x5OyWXCTOWfQCfdYba DBRnnX3k5h5Y8BId+X2kJlo= =y5ZG -----END PGP SIGNATURE----- --==_Exmh_1150831885_3210P-- From linuxhippy@gmail.com Tue Jun 20 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A25C13B037B for ; Tue, 20 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11895-05 for ; Tue, 20 Jun 2006 16:21:18 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id C470F3B0270 for ; Tue, 20 Jun 2006 16:21:17 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so710136hud for ; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.69.7 with SMTP id r7mr2961683hua; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Message-ID: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Date: Tue, 20 Jun 2006 22:21:16 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.561 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 20:21:19 -0000 Hi again, Maybe GTK is using X in a way it does not like? > of 2 other 700x1000 windows, and the window manager is doing the moving window > in translucent mode as well, that *will* spike the processor up to about 100% > and only 8 or 10 redraws per second. Well but then a composition manager is installed (as far as I know this is needed for transculesent windows), the window-content is cached in a pixmap and just this pixmap is drawn overe and over and the application does not receive a single expose event by X - So it has in fact nothing to do with GTK. Thanks for the tip with the theme, the only theme I've installed is called "Raleigh". > (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer Well but it should be enough to handle these simple tasks very fast. If QT can do it fast, GTK should be able too. I just wonder why QT performs that well (and many other toolkits I've used too like FOX or FLTK) but everytime it comes down to bad performance of GTK the following things happen: 1.) Not even one comment from a developer. Maybe there are not enough, maybe nobody cares, ore maybe they can't cope with critic? I don't know. 2.) Some fans respond that on their machines its working fast enough. Fighting against that one that brought up the topic to show him that their favourite Gui toolkit is not as weak as it looks. 3.) The discussion dies with or without a flame. -> no result, nothing changes. I see/saw quite frequently complaints about GTK's performance, I saw tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away from GTK-2 because they were concerned loosing users when switching to this toolkit. > So where *does* the time go to, if not pango? The more detail you can > provide, the easier it is to track down. I did some sysprof testing back when I tried to analyze why the Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default theme). It was almost a flat profile, but X spiked quite a lot. Doing the same test (invalidating eclispe's main window) shows about half (!!!) of the time is spent in X. The test with gftp (moving splitters) shows X using 67.1% of CPU whereas gftp itself only consumes 31%. I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). lg Clemens From myeates@jpl.nasa.gov Tue Jun 20 17:24:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B67933B090F for ; Tue, 20 Jun 2006 17:24:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14950-08 for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from nmta3.jpl.nasa.gov (nmta.jpl.nasa.gov [137.78.160.108]) by menubar.gnome.org (Postfix) with ESMTP id 9336B3B082C for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from xmta3.jpl.nasa.gov (xmta3.jpl.nasa.gov [137.78.160.111]) by nmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlIa004610 for ; Tue, 20 Jun 2006 14:24:47 -0700 Received: from [137.78.28.25] (matslab.jpl.nasa.gov [137.78.28.25]) by xmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlK8000301 for ; Tue, 20 Jun 2006 14:24:47 -0700 Message-ID: <4498679B.7000508@jpl.nasa.gov> Date: Tue, 20 Jun 2006 14:24:43 -0700 From: Mathew Yeates User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: matslab.jpl.nasa.gov [137.78.28.25] X-Source-Sender: myeates@jpl.nasa.gov X-AUTH: Internal IP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.568 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599] X-Spam-Score: -2.568 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:24:49 -0000 Hi When I try and compile I get the error in my subject line. This is with a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Mathew From Valdis.Kletnieks@vt.edu Tue Jun 20 17:30:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4628D3B082C for ; Tue, 20 Jun 2006 17:30:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15364-10 for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 4B7023B05CA for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KLUJKk016876; Tue, 20 Jun 2006 17:30:19 -0400 Message-Id: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 22:21:16 +0200." <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150839019_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 17:30:19 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.558 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:23 -0000 --==_Exmh_1150839019_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 22:21:16 +0200, Clemens Eisserer said: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. Maybe none of the developers are seeing your issue, and none of the usual bleeding-edge testers see it either. This makes it hard for them to fix it. > 2.) Some fans respond that on their machines its working fast enough. I'm suspecting you're addressing me with that comment. ;) My point was that it *isn't* the case where every single GTK2 system is seeing horrid performance, and that it always sucks in every case. You seem to be encountering an issue that is *not* present on every system. (On the other hand, if computers and users didn't keep finding new ways to trip over obscure corner cases, I'd be unemployed, so I'm not complaining ;) > I see/saw quite frequently complaints about GTK's performance, I saw > tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away > from GTK-2 because they were concerned loosing users when switching to > this toolkit. Because usually the person complaining disappears before providing useful info like this: > > So where *does* the time go to, if not pango? The more detail you can > > provide, the easier it is to track down. > I did some sysprof testing back when I tried to analyze why the > Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default > theme). It was almost a flat profile, but X spiked quite a lot. Doing > the same test (invalidating eclispe's main window) shows about half > (!!!) of the time is spent in X. The test with gftp (moving splitters) > shows X using 67.1% of CPU whereas gftp itself only consumes 31%. > I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). OK, *now* we have something that we can start looking into - we now know that at least part of the problem is that gftp is generating some very sub-optimal X requests. And we have a test case that reproduces easily (although on my box moving the main horizontal splitter in the gftp gui up and down result in about 70% gftp-gtk and 25% in the X server). I'll take a closer look at this later tonight - the kernel I have booted at the moment doesn't have oprofile support. (And no, I don't pretend to know the GTK innards well enough to fix this, but I've been doing systems debugging and tuning for enough decades that I certainly should be able to get a clear and coherent bugzilla out of it so that somebody else can run with it from there...) --==_Exmh_1150839019_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmGjrcC3lWbTT17ARAipXAJ0VwdLBfSxH0117D7jSuyfn23bE9gCgudlr 1k0WTieYG9P86q3XX2RzYns= =rDWz -----END PGP SIGNATURE----- --==_Exmh_1150839019_3210P-- From mleisher@crl.nmsu.edu Tue Jun 20 17:30:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC5483B0ACC for ; Tue, 20 Jun 2006 17:30:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-02 for ; Tue, 20 Jun 2006 17:30:38 -0400 (EDT) Received: from crl.nmsu.edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id A09343B0BBE for ; Tue, 20 Jun 2006 17:30:36 -0400 (EDT) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.nmsu.edu (8.13.6/8.13.6) with ESMTP id k5KLUYPh018088; Tue, 20 Jun 2006 15:30:34 -0600 Message-ID: <44986900.7080407@crl.nmsu.edu> Date: Tue, 20 Jun 2006 15:30:40 -0600 From: Mark Leisher User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Clemens Eisserer Subject: Re: Scrolling performance References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.2/1551/Tue Jun 20 07:37:21 2006 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.494 tagged_above=-999 required=2 tests=[AWL=-0.840, BAYES_00=-2.599, DNS_FROM_RFC_BOGUSMX=1.945] X-Spam-Score: -1.494 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:44 -0000 Clemens Eisserer wrote: > >> (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer > Well but it should be enough to handle these simple tasks very fast. > If QT can do it fast, GTK should be able too. > > I just wonder why QT performs that well (and many other toolkits I've > used too like FOX or FLTK) but everytime it comes down to bad > performance of GTK the following things happen: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. > 2.) Some fans respond that on their machines its working fast enough. > Fighting against that one that brought up the topic to show him that > their favourite Gui toolkit is not as weak as it looks. > 3.) The discussion dies with or without a flame. > -> no result, nothing changes. I run GTK+ 2.8 on a 400MHz Pentium II box (512MB, Slackware 9) every day without any noticeable performance problems. At one time or another I have used pretty much all versions of GTK+ on this machine without any performance problems. In fact I just installed all the latest libraries last night and didn't experience any performance problems with any programs I linked to the new libraries. Your performance problem is most likely configuration or distribution-specific. Thus the lack of response from the developers. The discussion founders because nothing needs changing except perhaps your system, which your fellow travelers can only help with up to a point because most of us don't have your specific setup. I will say that it not a good sign that problems like yours can't be diagnosed easily. The accretion of mass and complexity in the OS and GUI is making it increasingly difficult to determine where to start troubleshooting. -- ------------------------------------------------------------------------ Mark Leisher Computing Research Lab They never open their mouths New Mexico State University without subtracting from the Box 30001, MSC 3CRL sum of human knowledge. Las Cruces, NM 88003 -- Thomas Bracket Reed (1839-1902) From tml@iki.fi Tue Jun 20 17:49:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33B5C3B0954 for ; Tue, 20 Jun 2006 17:49:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16362-09 for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 3898C3B028D for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 349E1151226; Wed, 21 Jun 2006 00:49:32 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17560.28006.652000.134571@gargle.gargle.HOWL> Date: Wed, 21 Jun 2006 00:49:26 +0300 To: Mathew Yeates Subject: Re: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix In-Reply-To: <4498679B.7000508@jpl.nasa.gov> References: <4498679B.7000508@jpl.nasa.gov> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.329 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.329 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:49:40 -0000 Mathew Yeates writes: > When I try and compile I get the error in my subject line. This is with > a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Presumably you get the error when running your code, not compiling? Anyway, you probably have an older version of the GNU iconv Dll, iconv.dll, in your Windows System32 folder. (Or something totally unrelated that just happens to also be called iconv.dll.) Hide that other iconv.dll. If you later then notice that some 3rd-party app that has installed it in the system32 folder starts complaining about it missing, copy it to that app's executable's folder, where it should have been in the first place. --tml From jcupitt@gmail.com Tue Jun 20 17:57:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D481A3B026F for ; Tue, 20 Jun 2006 17:57:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17120-07 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.203]) by menubar.gnome.org (Postfix) with ESMTP id 9A3F33B0244 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h30so11009wxd for ; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.92.17 with SMTP id p17mr11155104wxb; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Message-ID: <522c6460606201457k7a194a19n956616ccdaeb85da@mail.gmail.com> Date: Tue, 20 Jun 2006 22:57:34 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:57:43 -0000 On 6/20/06, Clemens Eisserer wrote: > Thanks for the tip with the theme, the only theme I've installed is > called "Raleigh". I found the package: http://www.novell.com/products/linuxpackages/suselinux/gtk-qt-engine.html it is installed by default, so unless you've removed it, you are probably using it. Worth checking anyway. I used to use gtk2.4 apps under suse on a very old 450MHz PII machine and performance was not obviously worse than Qt (for me). John From linuxhippy@gmail.com Tue Jun 20 18:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4FC13B0170 for ; Tue, 20 Jun 2006 18:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20290-07 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 2388D3B08F1 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so720860hud for ; Tue, 20 Jun 2006 15:41:32 -0700 (PDT) Received: by 10.78.17.4 with SMTP id 4mr3049235huq; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Message-ID: <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Date: Wed, 21 Jun 2006 00:41:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.37 tagged_above=-999 required=2 tests=[AWL=-0.155, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -2.37 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 22:41:37 -0000 Hi again, > I'm suspecting you're addressing me with that comment. ;) Well, maybe ;) When I wrote the original post I was quite frustrated since I was unhappy about GTKs performance since a long time (I used FC3 (2.4) and FC4(2.6) and now OpenSuSE 10.1 (2.8), my laptop died (2.6ghz) and now I've to work on an Athlon-1000 where all gtk programs are the same oder of magnitude slower than on my laptop, I just can feel it much more because of the slowness of the machine itself. > Because usually the person complaining disappears before providing useful > info like this: Well I understand that this leads to frustration over the time. I am too one of those guys crying very loud, however I am a java-programmer working with Eclipse since about 2 years. I can choose between a slow GTK2 interface or an unuseable but fast Motif based, and that for the tool I work most of the time with :-/ So ... yes I am interested in investing time to at least help abit with informations ;) For now my timeframe is *very* limmited (my current project has its deadline about 2-3 weeks), but I am of course I am willed to help. I would also be willed to get my hands on code ... if someone would be patient enough to help me at the beginning ;) I did some oprofiling, however I don't have a vmlinz-file handy so its quite a bit useless: 5558 39.2930 no-vmlinux 2116 14.9593 libfb.so 1319 9.3248 nvidia_drv.so 1031 7.2888 Xorg 603 4.2630 libqt-mt.so.3.3.5 550 3.8883 libc-2.4.so 470 3.3227 libgobject-2.0.so.0.800.5 416 2.9410 libcairo.so.2.2.3 337 2.3825 libglib-2.0.so.0.800.5 304 2.1492 libgdk-x11-2.0.so.0.800.10 272 1.9229 libpango-1.0.so.0.1001.1 201 1.4210 libX11.so.6.2 177 1.2513 libpthread-2.4.so 155 1.0958 libgtk-x11-2.0.so.0.800.10 > I'll take a closer look at this later tonight - the kernel I have booted at the > moment doesn't have oprofile support. Thanks for looking into this. lg Clemens From Valdis.Kletnieks@vt.edu Tue Jun 20 19:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1109D3B0357 for ; Tue, 20 Jun 2006 19:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24750-03 for ; Tue, 20 Jun 2006 19:43:33 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id C354B3B02B8 for ; Tue, 20 Jun 2006 19:43:32 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KNhQN3004405; Tue, 20 Jun 2006 19:43:26 -0400 Message-Id: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Wed, 21 Jun 2006 00:41:31 +0200." <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150847006_3852P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 19:43:26 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.404 tagged_above=-999 required=2 tests=[AWL=-0.150, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_IB=0.077] X-Spam-Score: -1.404 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 23:43:38 -0000 --==_Exmh_1150847006_3852P Content-Type: text/plain; charset=us-ascii On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > I did some oprofiling, however I don't have a vmlinz-file handy so its > quite a bit useless: > 5558 39.2930 no-vmlinux Bummer. With a system time *that* high, I'm wondering if there's something odd going on here... a vmlinux to help split that out would certainly help a lot in debugging here.. > 2116 14.9593 libfb.so > 1319 9.3248 nvidia_drv.so > 1031 7.2888 Xorg > 603 4.2630 libqt-mt.so.3.3.5 > 550 3.8883 libc-2.4.so > 470 3.3227 libgobject-2.0.so.0.800.5 Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a generic GTK issue, not gftp, unless the 3 other apps I tested did the same wrong thing with it.. ;) samples % image name app name symbol name 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process 5232 6.7536 libfb.so libfb.so (no symbols) 4834 6.2398 Xorg Xorg (no symbols) 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy 2172 2.8037 vmlinux vmlinux get_page_from_freelist 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock 1359 1.7542 nvidia nvidia (no symbols) 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup (or, done by shared library: 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 10538 13.6027 vmlinux 5594 7.2209 libc-2.4.90.so 5377 6.9408 libgobject-2.0.so.0.1102.1 5232 6.7536 libfb.so 4953 6.3934 Xorg 4784 6.1753 nvidia_drv.so 3933 5.0768 libpthread-2.4.90.so At least in my case, the top hog appears to be too much work done scaling theme pixmaps over and over, when they're likely to be invalidated by another resize before the scaling is completed.... You probably mentioned it before, but what GTK2 theme are you using? --==_Exmh_1150847006_3852P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmIgecC3lWbTT17ARAvXtAKDYfozX87Bk7LwUKWF75kNiCuBY2gCgp136 iJcjpeJlIWrhq/fYvfTtwEc= =x8rS -----END PGP SIGNATURE----- --==_Exmh_1150847006_3852P-- From nick.soffe@bioch.ox.ac.uk Wed Jun 21 04:41:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 68FAD3B0A36 for ; Wed, 21 Jun 2006 04:41:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-02 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from relay0.mail.ox.ac.uk (relay0.mail.ox.ac.uk [129.67.1.161]) by menubar.gnome.org (Postfix) with ESMTP id 910DE3B07B7 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from smtp1.herald.ox.ac.uk ([163.1.0.247]) by relay0.mail.ox.ac.uk with esmtp (Exim 4.62) (envelope-from ) id 1FsyHA-0005TT-2r for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Received: from nmrpc.bioch.ox.ac.uk ([129.67.77.14]) by smtp1.herald.ox.ac.uk with esmtp (Exim 3.36 #1) id 1FsyHA-0000gW-01 for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Date: Wed, 21 Jun 2006 09:39:16 +0100 (GMT Daylight Time) From: Nick Soffe To: Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Message-ID: X-X-Sender: bioc0391@imap228.herald.ox.ac.uk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 08:41:32 -0000 On Tue, 20 Jun 2006, Clemens Eisserer wrote: > Hi there, > > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Clemens, I don't know if this has any relevance now, but I experienced similar poor performance a while ago with a machine who's configuration was very similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the Nvidia binary driver current at the time (a couple of years ago). The driver worked well for 3d applications (glxgears gave much higher fps) but seemed to devastate the 2d performance particularly with GTK2 applications. Changing back to the open source 'nv' driver seemed to work much better. I never knew whether the problem was hardware or software related and eventually swapped the graphics card for an inexpensive radeon using the OS 'radeon' driver. This combination worked much better for me so I never investigated further. Nick From linuxhippy@gmail.com Wed Jun 21 07:44:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 173903B0F80 for ; Wed, 21 Jun 2006 07:44:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01010-04 for ; Wed, 21 Jun 2006 07:44:13 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id AFCBC3B0EEF for ; Wed, 21 Jun 2006 07:44:12 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so800375hud for ; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.51.9 with SMTP id y9mr3301492huy; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Message-ID: <194f62550606210444r79f41268xebc6eb2a75e46f20@mail.gmail.com> Date: Wed, 21 Jun 2006 13:44:10 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.735 tagged_above=-999 required=2 tests=[AWL=-0.693, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.735 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 11:44:14 -0000 Hello Nick, > I don't know if this has any relevance now, but I experienced similar poor > performance a while ago with a machine who's configuration was very > similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the > Nvidia binary driver current at the time (a couple of years ago). Definitivly could be ... all my systems are equiped with NVidia cards (GF488Go, FX5200, GF6600) and I am using the nvidia binary driver on all of my systems. However throwing their closed-source beast away is not an option for me, from time to time I play 3d games or enjoy opengl/shader development for fun. Many others also use the nvidia driver, maybe theres a way it could be solved? It really could be this combination, maybe it could be worked arround (if easy) or someone could file a bugreport at nvidia, however I guess they would like to see specific claims. Does anybody know a better way for profiling X/X requests than oprofile? Thanks a lot for reading, lg Clemens From linuxhippy@gmail.com Wed Jun 21 08:04:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D3E753B090F for ; Wed, 21 Jun 2006 08:04:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02496-05 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id 28A553B0992 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so855999hue for ; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.26.9 with SMTP id 9mr3210819huz; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Message-ID: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> Date: Wed, 21 Jun 2006 14:04:21 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.395 tagged_above=-999 required=2 tests=[AWL=-0.661, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_BF=0.077, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -1.395 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 12:04:27 -0000 Hello Valdis, Thanks again for taking all the time :-) You were right, novell installed by default a gtk-qt-engine package, that was also the reason why I was not able to get rid of "this one and only theme". Now I am using the default theme and its _way_ better, I see about twice as much refreshed when moving gftp's vertical splitter, the horizontal are still very slow. gtk-demo still shows a much higher expose-lag than even konqueror which its much more complex (and skinned) default interface. > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. Great, SuSe (unlike fedora) stores an compressed vmlinux directly in /boot. 4676 19.7391 libfb.so (no symbols) 3647 15.3953 vmlinux-copy default_idle 2445 10.3212 nvidia_drv.so _nv000805X 2031 8.5736 vmlinux-copy get_page_from_freelist 1817 7.6702 Xorg (no symbols) 1130 4.7701 libcairo.so.2.2.3 (no symbols) 888 3.7486 libgobject-2.0.so.0.800.5 (no symbols) 699 2.9507 libpango-1.0.so.0.1001.1 (no symbols) 659 2.7819 libgdk-x11-2.0.so.0.800.10 (no symbols) 638 2.6932 libglib-2.0.so.0.800.5 (no symbols) 482 2.0347 nvidia_drv.so _nv000194X 331 1.3973 libgtk-x11-2.0.so.0.800.10 (no symbols) 315 1.3297 libc-2.4.so _int_malloc 309 1.3044 nvidia (no symbols) This profile looks _very_ strange for me. For what is libfb good ... I am quite sure I am using the binary nvidia driver. A lot if time is "wasted" allocating memory and a lot of time goes to the nvidia drivers doing something. Is there a way to get something like call-graphs out of oprofile, maybe this would illustrate which functions call into _nv000805X or libfb. When moving gftps splitters I still see X (with the default theme) eating cpu-time at about 65% and gftp at about 33%. > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... Just because of interrest couldn't cairo be used for scaling with a fast path through XRender? Does XRender supports scaling of images? Thanks again, lg Clemens From jcupitt@gmail.com Wed Jun 21 09:07:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DF073B0F19 for ; Wed, 21 Jun 2006 09:07:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07105-09 for ; Wed, 21 Jun 2006 09:07:36 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id CE1593B0FD4 for ; Wed, 21 Jun 2006 09:07:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so128046wxc for ; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.78.5 with SMTP id a5mr1084728wxb; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Message-ID: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> Date: Wed, 21 Jun 2006 14:07:35 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.441 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:07:39 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From jcupitt@gmail.com Wed Jun 21 09:22:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941143B0FAC for ; Wed, 21 Jun 2006 09:22:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08193-05 for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 7AF683B0FCF for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so130171wxc for ; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.18.10 with SMTP id 10mr1106184wxr; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Message-ID: <522c6460606210621u56e6c915u4db618c4c3de2cc0@mail.gmail.com> Date: Wed, 21 Jun 2006 14:21:54 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.437 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.437 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:22:00 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From paul@linuxaudiosystems.com Wed Jun 21 09:30:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 524143B0FAC for ; Wed, 21 Jun 2006 09:30:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08899-09 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 6ED913B0FE0 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J17000M8PHWT1L4@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 08:29:57 -0500 (CDT) Date: Tue, 20 Jun 2006 21:00:15 -0400 From: Paul Davis Subject: Re: Scrolling performance In-reply-to: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> To: Valdis.Kletnieks@vt.edu Message-id: <1150851615.8703.171.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.931 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247] X-Spam-Score: -1.931 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:30:03 -0000 On Tue, 2006-06-20 at 19:43 -0400, Valdis.Kletnieks@vt.edu wrote: > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) i talked for a little while with tim janik at LAC2006 this year about this very issue. GTK1's pane widget used the standard draw-with-XOR to indicate the new position of the divider, and the resize didn't occur till mouse release. GTK2, for some unknown reason, abandoned that approach and instead keeps issuing resize events as the mouse moves. its completely and totally braindead as the default behaviour, although i would concede that there are situations where it would be nice to have this available. in ardour, dragging panes around like this causes a more or less complete redraw of our monster canvas widget, which causes absurdly slow and ugly visuals while doing it. i've looked at rewriting GtkPaned to use the old behaviour by default, but it was just too much work for me to get into at the time i was looking into it. --p From linuxhippy@gmail.com Wed Jun 21 10:12:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E2C53B0F79 for ; Wed, 21 Jun 2006 10:12:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11455-01 for ; Wed, 21 Jun 2006 10:12:43 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 024343B0954 for ; Wed, 21 Jun 2006 10:12:42 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so3546903uge for ; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.17.1 with SMTP id 1mr3355654huq; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Message-ID: <194f62550606210712n52adc4fbu66cc223ceec68c87@mail.gmail.com> Date: Wed, 21 Jun 2006 16:12:41 +0200 From: "Clemens Eisserer" To: paul@linuxaudiosystems.com, gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <1150851615.8703.171.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <1150851615.8703.171.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:12:47 -0000 Hello Paul, > GTK2, for some unknown reason, abandoned that > approach and instead keeps issuing resize events as the mouse moves. its > completely and totally braindead as the default behaviour, although i > would concede that there are situations where it would be nice to have > this available. Yes I know, older toolkits used to solve it this way. However most modern toolkits resize the content as soon as the slider is moved and are able to cope with it better than GTK (at least on my machine), e.g. moving the panes of k3b (a KDE based cdrecord frontend, qt: skinned, gtk: default theme) is smooth whereas gftp's panes always give an impression of beeing behind the cursor and showing visual ugliness. However this could also be caused by the nvidia driver, I don't know :-/ Maybe I can create a small video of both programs and upload it somewhere.... lg Clemens From M.Kahn@Astronautics.com Wed Jun 21 10:21:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EA683B106A for ; Wed, 21 Jun 2006 10:21:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11945-10 for ; Wed, 21 Jun 2006 10:21:48 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id D14463B1034 for ; Wed, 21 Jun 2006 10:21:47 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6953D.FE391C43" Subject: GTK Performance on Athlon Date: Wed, 21 Jun 2006 09:21:31 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: GTK Performance on Athlon Thread-Index: AcaVPf3m6pVD3d/ISkecaOL4KsmRdA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.3 tagged_above=-999 required=2 tests=[AWL=-1.116, BAYES_40=-0.185, HTML_MESSAGE=0.001] X-Spam-Score: -1.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:21:51 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. The system clock took off at warp speed (about three times normal speed). When I emailed SuSE, they told me that the BIOS does not provide a solid real-time clock interrupt. (One side-effect of the warp speed system clock was I could not "double click" on anything.) They felt that they may have a fix for this problem in SUSE 10.0. It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance. I really hope this isn't your problem. =20 BTW - I have since returned to using my old 1.7 GHz PC (assembled myself) to run Linux. I won't be taking any chances on the Athlon in the future; that's just too much money to spend on a machine that doesn't play nicely with my preferred flavor of Linux. =20 Michael Kahn =20 ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A few months ago, I bought an HP Athlon PC and = installed SuSE 9.2.  The system clock took off at warp speed (about three = times normal speed).  When I emailed SuSE, they told me that the BIOS = does not provide a solid real-time clock interrupt.  (One side-effect of the = warp speed system clock was I could not “double click” on = anything.)  They felt that they may have a fix for this problem in SUSE 10.0.  = It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance.  I really hope this isn’t your = problem.

 

BTW – I have since returned to using my old 1.7 = GHz PC (assembled myself) to run Linux.  I won’t be taking any = chances on the Athlon in the future; that’s just too much money to spend on a machine that doesn’t play nicely with my preferred flavor of = Linux.

 

  Michael Kahn

 

------_=_NextPart_001_01C6953D.FE391C43-- From paul@linuxaudiosystems.com Wed Jun 21 10:46:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4A2C3B1091 for ; Wed, 21 Jun 2006 10:46:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13938-01 for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 328253B105D for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1700ETJSZ4L7UG@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 09:45:05 -0500 (CDT) Date: Wed, 21 Jun 2006 10:45:33 -0400 From: Paul Davis Subject: Re: GTK Performance on Athlon In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150901133.10221.2.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:46:47 -0000 On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > The system clock took off at warp speed (about three times normal > speed). When I emailed SuSE, they told me that the BIOS does not > provide a solid real-time clock interrupt. (One side-effect of the > warp speed system clock was I could not 鈥渄ouble click鈥 on anything.) > They felt that they may have a fix for this problem in SUSE 10.0. It > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > your GTK performance. I really hope this isn鈥檛 your problem. it sounds quite likely that you have been the victim of some slightly uninformed customer support. was this a dual core Athlon? From Valdis.Kletnieks@vt.edu Wed Jun 21 11:42:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D6F313B0F95 for ; Wed, 21 Jun 2006 11:42:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17781-01 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 381A23B1012 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5LFgNYf004294; Wed, 21 Jun 2006 11:42:24 -0400 Message-Id: <200606211542.k5LFgNYf004294@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: paul@linuxaudiosystems.com Subject: Re: GTK Performance on Athlon In-Reply-To: Your message of "Wed, 21 Jun 2006 10:45:33 EDT." <1150901133.10221.2.camel@localhost.localdomain> From: Valdis.Kletnieks@vt.edu References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> <1150901133.10221.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150904543_3088P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 21 Jun 2006 11:42:23 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.583 tagged_above=-999 required=2 tests=[AWL=0.056, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.583 X-Spam-Level: Cc: gtk-list@gnome.org, Michael Kahn X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 15:42:31 -0000 --==_Exmh_1150904543_3088P Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 21 Jun 2006 10:45:33 EDT, Paul Davis said: > On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > > The system clock took off at warp speed (about three times normal > > speed). When I emailed SuSE, they told me that the BIOS does not > > provide a solid real-time clock interrupt. (One side-effect of the > > warp speed system clock was I could not =E2=80=9Cdouble click=E2=80= =9D on anything.) > > They felt that they may have a fix for this problem in SUSE 10.0. It= > > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > > your GTK performance. I really hope this isn=E2=80=99t your problem.= >=20 > it sounds quite likely that you have been the victim of some slightly > uninformed customer support. was this a dual core Athlon? No, the =22turbo clock ticks=22 problem is a very real issue on certain A= thlon motherboards. There's been several long threads about it on the linux-ke= rnel mailing list, and I believe it's fixed in 2.6.16 or 2.6.17 or so (althoug= h I'd have to go back and check, I wasn't paying much attention because I d= on't have an Athlon). SUSE may well have backported the fix into whatever ker= nel they're shipping with 10.0. And a screaming clock *can* bork double-clicks - imagine where you need t= o get in 2 clicks in under 250 milliseconds, but the system ticks off what it t= hinks is 250ms in only 75ms. And your mouse won't double-click faster than 80m= s. ;) --==_Exmh_1150904543_3088P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmWjfcC3lWbTT17ARAl0OAKCdWN5CkoY/7CUNUYAB9THaAsKlFgCbBk+e PUDaJiUXtpFfp14/cFuJQes= =hmFE -----END PGP SIGNATURE----- --==_Exmh_1150904543_3088P-- From chris@cvine.freeserve.co.uk Wed Jun 21 19:26:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525373B00CF for ; Wed, 21 Jun 2006 19:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12592-06 for ; Wed, 21 Jun 2006 19:26:48 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 2D0E93B009B for ; Wed, 21 Jun 2006 19:26:47 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id 004B21C00083; Thu, 22 Jun 2006 01:26:46 +0200 (CEST) Received: from boulder.homenet (user-2086.l1.c4.dsl.pol.co.uk [81.79.136.38]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id C5F531C00082; Thu, 22 Jun 2006 01:26:45 +0200 (CEST) X-ME-UUID: 20060621232645810.C5F531C00082@mwinf3106.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5LNRE68002592; Thu, 22 Jun 2006 00:27:14 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: proggressbar.. Date: Thu, 22 Jun 2006 00:27:13 +0100 User-Agent: KMail/1.9.1 References: <4497B5B8.1080000@sasken.com> In-Reply-To: <4497B5B8.1080000@sasken.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.989 tagged_above=-999 required=2 tests=[AWL=-1.325, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -0.989 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 23:26:49 -0000 On Tuesday 20 June 2006 09:45, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged > information. In case you are not the original intended Recipient of the > message, you must not, directly or indirectly, use, Disclose, distribute, > print, or copy any part of this message and you are requested to delete it > and inform the sender. Any views expressed in this message are those of the > individual sender unless otherwise stated. Nothing contained in this > message shall be construed as an offer or acceptance of any offer by Sasken > Communication Technologies Limited ("Sasken") unless sent with that express > intent and with due authority of Sasken. Sasken has taken enough > precautions to prevent the spread of viruses. However the company accepts > no liability for any damage caused by any virus transmitted by this email It is reasonably straightforward, but I think your disclaimer prevents me from answering your question. Chris From mclasen@redhat.com Wed Jun 21 23:10:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA4213B0172; Wed, 21 Jun 2006 23:10:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23030-07; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 63BA23B0008; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AclX021506; Wed, 21 Jun 2006 23:10:38 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AcnM019751; Wed, 21 Jun 2006 23:10:38 -0400 Received: from [172.16.83.158] (vpn83-158.boston.redhat.com [172.16.83.158]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5M3AciB004961; Wed, 21 Jun 2006 23:10:38 -0400 Subject: GTK+ 2.9.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Organization: Red Hat Date: Wed, 21 Jun 2006 23:12:41 -0400 Message-Id: <1150945961.4457.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.3 (2.7.3-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:10:42 -0000 GTK+ 2.9.4 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.4.tar.bz2 md5sum: c06cf2cfa66485600d90789c9e58f27c gtk+-2.9.4.tar.gz md5sum: e3fefedc7f1a89b66c71c9967168a857 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are finalized by now. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.3 to 2.9.4 ============================================ * GtkPrintOperation: - UI improvements in the print dialog - Make printing work without a display connection - Replace "Print to PDF" by "Print to file" that can generate PDF or PostScript - Add a function to the low-level API to enumerate all printers * GtkNotebook tab DND has been improved * GtkProgressbar supports text in activity mode * GtkLabel allows to set the wrap mode * GtkStatusIcon supports transparency * Bugs fixed: 344850 Dragging a GtkTreeViewColumn segfaults when using certain GtkTreeViewColumnDropFunc 342458 Stock menu items without icons are broken in recent GTK+ releases. 335873 notebook DND + popup windows 337882 gtk_progress_bar_set_text() does nothing in activity mode 339456 unix print dialogue help button bug 339702 Make sure printing works without a display 341571 tabs too easily reordered 344074 New Feature: get printer list, and get default print 344743 gtk_targets_include_text() should initialize atoms 344838 Allow func to be NULL in gtk_tree_view_set_search_position_func 344891 GtkPrintOperationPreview signal defs correction 345008 Need updated cairo req 345093 print preview temp file issues 345107 Memory leak in gtk_entry_completion_finalize: User data not freed 345194 gdk_window_set_functions() docs need to be updated 345456 grid-lines property is wrongly registered and get/set. 314278 strings in gtk-update-icon-cache are not marked for translation 344707 size group with widgets in hidden container 344897 Entry completion model NULL handling should be documented 345038 gtk_print_job_set_status' status 345106 dialog button box spacings 345176 GtkIconView doc about drag and drop 345275 doc imporovements for gtk_window_move 345320 Two very similiar strings should be made equal 345321 Add meaning of "shortcut" as translator comment 320034 transparency gtkstatusicon 339592 Add print-to-postscript 344867 custom paper file could use keyfile * Updated translations (cs,de,es,fr,gl,gu,hi,ko,ta,th) A list of all bugs fixed in this release can be found at http://bugzilla.gnome.org/buglist.cgi?bug_id=344838,344743,344867,344891,345008,341571,345038,337882,345093,344707,339456,345107,345275,339702,344074,345320,345321,344897,314278,320034,344850,345194,345176,345106,335873,342458,339592,345456 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Christian Persch, John Finlay, Federico Mena Quintero, Michael Emmel, Marko Anastasov, Bastien Nocera, Carlos Garnacho, Yevgen Muntyan, Tommi Komulainen, Tim Janik, Christian Weiske, Behdad Esfahbod, Alexander Larsson, Felipe Heidrich, Hendrik Richter, Claudio Saavedra, Dan Winship, Callum McKenzie, John Palmieri, Murray Cumming, Kristian Rietveld June 21, 2006 Matthias Clasen From lists@nabble.com Wed Jun 21 23:29:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CB3B03DC for ; Wed, 21 Jun 2006 23:29:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24140-01 for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1411D3B026B for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FtFsh-0000bD-BH for gtk-list@gnome.org; Wed, 21 Jun 2006 20:29:23 -0700 Message-ID: <4986548.post@talk.nabble.com> Date: Wed, 21 Jun 2006 20:29:23 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: cannot draw lines in a GtkDrawingArea widget MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.82 tagged_above=-999 required=2 tests=[AWL=-0.708, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.82 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:29:25 -0000 Hi all, I need to draw some lines in a GtkDrawingArea widget, and I use the following code: GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. 10,//the x coordinate of the start point 30,//the y coordinate of the start point 580,//the x coordinate of the end point 30 //the y coordinate of the start point ); it does not work! Anybody knows why? Thanks!! -- View this message in context: http://www.nabble.com/cannot-draw-lines-in-a-GtkDrawingArea-widget-t1827981.html#a4986548 Sent from the Gtk+ - General forum at Nabble.com. From yogesh.ar@gmail.com Thu Jun 22 01:09:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0E443B03C9 for ; Thu, 22 Jun 2006 01:09:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29017-09 for ; Thu, 22 Jun 2006 01:09:41 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id C40353B0098 for ; Thu, 22 Jun 2006 01:09:40 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so202391pyf for ; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.34.18 with SMTP id m18mr649285pyj; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:09:39 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 10:39:39 +0530 From: "Yogesh Arora" To: gtk-list@gnome.org Subject: auromatic scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.382 tagged_above=-999 required=2 tests=[AWL=0.218, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.382 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:09:48 -0000 I have a TextView inside a scroll window. I want to create an animation effect in which TextView scrolls automatically I know there is set_value function in Range class. But for calling that function i will always have to calculate the value. There should be some funtion such as step_increment page_increment can called for step or page_increment From yogesh.ar@gmail.com Thu Jun 22 01:38:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59EBA3B035E for ; Thu, 22 Jun 2006 01:38:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30733-08 for ; Thu, 22 Jun 2006 01:38:31 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id BFA423B0008 for ; Thu, 22 Jun 2006 01:38:30 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id t32so201085pyc for ; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.91.15 with SMTP id t15mr679056pyl; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:38:29 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 11:08:29 +0530 From: "Yogesh Arora" To: "Chris Vine" Subject: Re: proggressbar.. In-Reply-To: <200606220027.13878.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.391 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.391 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:38:32 -0000 is that just due to tall claims he is making...or has it got something to do with india On 6/22/06, Chris Vine wrote: > On Tuesday 20 June 2006 09:45, Kalli Math wrote: > > how to design a progressbar, and add to my application window? > > > > with regards, > > Prashanth km > > > > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > > > SASKEN BUSINESS DISCLAIMER > > This message may contain confidential, proprietary or legally Privileged > > information. In case you are not the original intended Recipient of the > > message, you must not, directly or indirectly, use, Disclose, distribute, > > print, or copy any part of this message and you are requested to delete it > > and inform the sender. Any views expressed in this message are those of the > > individual sender unless otherwise stated. Nothing contained in this > > message shall be construed as an offer or acceptance of any offer by Sasken > > Communication Technologies Limited ("Sasken") unless sent with that express > > intent and with due authority of Sasken. Sasken has taken enough > > precautions to prevent the spread of viruses. However the company accepts > > no liability for any damage caused by any virus transmitted by this email > > It is reasonably straightforward, but I think your disclaimer prevents me from > answering your question. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Thanks Yogesh Dont be intimidated by impossibillity.... be motivated by possibillity! From yeti@physics.muni.cz Thu Jun 22 02:37:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 938243B021B for ; Thu, 22 Jun 2006 02:37:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01472-04 for ; Thu, 22 Jun 2006 02:37:42 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 81A8C3B0234 for ; Thu, 22 Jun 2006 02:37:41 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5M6bdQI030282 for ; Thu, 22 Jun 2006 08:37:40 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 6499123CE9; Thu, 22 Jun 2006 08:37:39 +0200 (CEST) Date: Thu, 22 Jun 2006 08:37:39 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: cannot draw lines in a GtkDrawingArea widget Message-ID: <20060622063739.GM30886@potato.chello.upc.cz> References: <4986548.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4986548.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 06:37:44 -0000 On Wed, Jun 21, 2006 at 08:29:23PM -0700, heavenscape wrote: > > I need to draw some lines in a GtkDrawingArea widget, and I use the > following code: > > GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); > gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow > w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. > 10,//the x coordinate of the start point > 30,//the y coordinate of the start point > 580,//the x coordinate of the end point > 30 //the y coordinate of the start point > ); > > it does not work! Anybody knows why? .From the use of lookup_widget() I assume you don't draw in expose event handler (where you get the widget as function argument and do not have to look it up). Draw in the expose handler -- can you see the lines now? Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Thu Jun 22 07:55:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EB213B0086 for ; Thu, 22 Jun 2006 07:55:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21594-10 for ; Thu, 22 Jun 2006 07:55:40 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id 10CEC3B042E for ; Thu, 22 Jun 2006 07:55:39 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id EB5F427105B; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from poczta.interia.pl (f34.poczta.interia.pl [10.217.2.34]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 8C873271069 for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 8D01125049D; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 3F0DE25049A for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Date: 22 Jun 2006 13:55:30 +0200 From: hm Subject: Two buttons, two images and switching between them To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060622115530.3F0DE25049A@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.765 tagged_above=-999 required=2 tests=[AWL=0.223, BAYES_00=-2.599, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: -0.765 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 11:55:41 -0000 =0AHi !=0A=0A I`ve got a problem : I have window, with two buttons inside= . I`ve got two GtkImage`s, and on a beginning of the program, i`m ( setting= gtk_button_set_image () ) these images to be button`s "icons". =0AI want t= o make a signal function, that handles clicking on both of these buttons. O= n click it should switch images between the buttons. For example i`ve got i= con1, icon2, button1 and button2. =0Abutton1 -> icon1=0Abutton2 -> icon2 ( = icon2 is set to be an icon for button2 )=0A=0Anow.. i`ve got a signal, that= button1 is pressed. So i want now, to have situation :=0A=0Abutton1 -> ico= n2=0Abutton2 -> icon1=0A=0A When I try again to do gtk_button_set_image ( b= utton1, icon2 ) and gtk_button_set_image ( button2, icon1 ) it doesn`t work= propertly ( button1 has icon2 , but button2 has no icon ). I suppose it is= so because of button1 is now "parrent" ( or owner ) of both icons ???? I= `m not quiet sure. I would be appreciate for any clue how to do this. Maybe= there is any method to release icon from being button`s child ? Uhh.. it i= s little twisted :) From betsy.vyce@ctg.com Wed Jun 21 12:39:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 10E193B108D for ; Wed, 21 Jun 2006 12:39:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21747-06 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from smtp.ctg.com (smtp-out.ctg.com [206.201.124.158]) by menubar.gnome.org (Postfix) with ESMTP id 6BC553B1035 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from netmail.ctg.com (netmail.ctg.com [205.142.112.242]) by smtp.ctg.com (Symantec Mail Security) with ESMTP id 4762810CF for ; Wed, 21 Jun 2006 12:39:30 -0400 (EDT) Received: from BUF-EXC1.ctg.com ([205.142.112.13]) by netmail.ctg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 12:39:29 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C69551.44546463"; type="multipart/alternative" Subject: Linux Accessibility Project Date: Wed, 21 Jun 2006 12:39:28 -0400 Message-ID: <46A68DDC98C6464DBB54D968081874CF021EAFD2@BUF-EXC1.ctg.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: Linux Accessibility Project Thread-Index: AcaVUUPWid50p5tHQK+nedj3OL/r1A== From: "Betsy Vyce" To: X-OriginalArrivalTime: 21 Jun 2006 16:39:29.0956 (UTC) FILETIME=[446D9640:01C69551] X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.093 tagged_above=-999 required=2 tests=[BAYES_50=0.001, EXTRA_MPART_TYPE=1.091, HTML_MESSAGE=0.001] X-Spam-Score: 1.093 X-Spam-Level: * X-Mailman-Approved-At: Thu, 22 Jun 2006 11:45:55 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 16:39:38 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C69551.44546463 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C69551.44546463" ------_=_NextPart_002_01C69551.44546463 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Our client, IBM, currently has an immediate opening for candidates with=0D= =0A Internals knowledge of GTK and "GTK custom widget", "Bonobo", AT-SPI",=0D= =0A "ATK", and/or "Accessibility" skills. In general, we are seeking=0D=0A someone with deeper GTK knowledge. The project involves working on=0D=0A solving a set of bugs in the Gnome desktop which can be viewed at the=0D=0A following link:=0D=0A =0D=0A =0D=0A =0D=0A http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.html=0D=0A =0D=0A =0D=0A =0D=0A Candidates MUST have Linux experience. We are looking for someone who=0D= =0A can add new functionality after debugging an issue rather than just a=0D=0A debugger, so we need someone with significant development and/or design=0D= =0A skills.=0D=0A =0D=0A =0D=0A =0D=0A Candidates can work from any location in the U.S. as long as they can=0D=0A work at an IBM facility. If they can be in Austin, TX, then all the=0D=0A better.=0D=0A =0D=0A =0D=0A =0D=0A If anyone is interested in being considered for this opportunity, please=0D= =0A reply to this email with a copy of your resume at your earliest=0D=0A convenience.=0D=0A =0D=0A =0D=0A =0D=0A Regards,=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Betsy Vyce=0D=0A Senior Recruiter, Austin Team=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Tel: 877-222-0688 (Toll Free)=0D=0A =0D=0A Home Office: 303-339-0928=0D=0A =0D=0A Fax: 303-814-1735=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A ------_=_NextPart_002_01C69551.44546463 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0D=0A =0D=0A =0D=0A =0D=0A =0D= =0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A
=0D=0A =0D=0A

Our client, IBM, currently has an immediate opening fo= r=0D=0A candidates with Internals knowledge of GTK and “GTK custom widget&#= 8221;,=0D=0A “Bonobo”, AT-SPI”, “ATK”, and/or “Acc= essibility”=0D=0A skills.  In general, we are seeking someone with deeper GTK knowledg= e.  The=0D=0A project involves working on solving a set of bugs in the Gnome desktop wh= ich=0D=0A can be viewed at the following link:

=0D=0A =0D=0A

 

=0D=0A =0D=0A

http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.ht= ml

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates MUST have Linux experience.  We are lo= oking for=0D=0A someone who can add new functionality after debugging an issue rather tha= n just=0D=0A a debugger, so we need someone with significant development and/or design= =0D=0A skills.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates can work from any location in the U.S. = as long as=0D=0A they can work at an IBM facility.  If they can be in Austin, TX,=0D=0A then all the better.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

If anyone is interested in being considered for this=0D= =0A opportunity, please reply to this email with a copy of your resume at you= r=0D=0A earliest convenience.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Regards,

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A

Betsy Vyce
=0D=0A Senior Re= cruiter,=0D=0A Austin Team

=0D= =0A =0D=0A

=

=0D=0A =0D=0A

 = =

=0D=0A =0D=0A

= Tel: =0D=0A 877-222-0688 (Toll Free)

=0D=0A =0D=0A

= Home=0D=0A Office:  303-339-0928

=0D=0A =0D=0A

= Fax: =0D=0A 303-814-1735

=0D=0A =0D=0A
=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A =0D=0A =0D=0A ------_=_NextPart_002_01C69551.44546463-- ------_=_NextPart_001_01C69551.44546463 Content-Type: image/gif; name="image001.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Description: image001.gif Content-Location: image001.gif R0lGODlhvQBrAPcAAFqmjVmqk7XYzjqSdsHe1ZPFtdyhJMrc05TIukqegp/EtJW+rXG2o47Gtvbo yc3k3dXo4mOkja3VyUyji6TQxODu6un08cni2j2cgezLh9Ho4eCrPEKWem61obzVyuvHffv05C+P cOLw7DKWeua6X/nv2t7u6r3d1EZKizKRcsbi2rja0X29q6DOwVapkYfBse/TmHa5pmCtl3q7qUGe g4G/rd3t6WWwm7rc0mmznjU5gZ7NwJzMvlGmjpnLvEWghvj8+6vUyYnDsuS2VcTh2fT6+DaYfMPg 2Dqaf7LYzajTxpHHt4PArrba0C6Ud+OzTv///4C7p+z18qrRxT6XerLVylGih8Xg13i3otnq5fj7 +p/LvYvBr/v9/FWkiuTx7e/39PP597raz9zs5zuVeDeTdZfHt2WslVKcg5DDsoS9qsjJ3Gmul67U x9Dm36PNv1adhZrJutXj3Ie/rdfX5kKafUabf+jy73CynVldmHS0n12oj6bPwmxvpO3t9PT0+HSt mE6ghXmvm4Gyn/v8/LLOwr3c0mVon8/Q4eLi7Z+hwyyOb+729Hy4pfD39fT39bK0z11hmn+Br3t9 rObm797e6unp8aqsyu/39cLYzujw672/1lZalpGTuvv7/UtPj4W1ovDw9qbIufj4+66wzcTG2qvK vMDC2GGqkm2wmoaIs/L49u3z7+z187W30d3o46Olxvb6+czN3+3285G7qrm71PD08dvb6PT5+IqM tnCqlWFknU5SkZWXvVJWk+Tt6NPU4/H49tjr5UBEiNns5s/n4I2PuGhroXR2qHBypm2plJiav3yw nMLg1/z9/Xi6p/3+/vr8/NDn4f3682inkKPGttnm4EqYf/3+/aepyC+UeMnj3Oby7v79+3d5qpye wY24p6rTyIm3pYKEsbbRxeDq5cba0Pj6+fz471SnkOjz8K/Nv5vMvvf7+uXy7vDXot+pNt3u6eKw Rs/g2Mrk3Ds/hPTfteGuQvrx36/Wy4zEtEehiNjr5uKxSiuNbf///yH5BAEAAP8ALAAAAAC9AGsA AAj/AP8JHEiwoMGDCBMqXMiwocOHECNKnEjR4JSLGDNq3Mixo8cpWiqKHEmypMl//lKqXMmypcuX MP1JOUmzpk2aMXPq3Dnzps+fQBfuHEp0Zc+gSJP6LMqUp9KnUEs2nQrzaNSrWBtS3crSatavYAdy HSszrNmwZLl6PctWadqta9vK/fmWaty5eHHWbXo3r9+Re/n+HXwyMNO+hBM7NFwUseLHCRkTdQy5 MkHJQylbtozZaUMVOBIyenGDARGGAdIVRMJis9S0CzgIZtjBiROELGzrdoJLYRAnEwba3pbVGdi0 aP6hma1w90EETnqs+ucsnO2FLZx0+IfBCfGB0Xbb/25xsEEPhLV3BzG4aoTuGSGvpvWgnPlBEbZx TLht8DrBJE40sdAMuklQkCO2pZPOBPs0Y1AXtglzkG0TTNCDbRUUZIQTCFCw4WnyjQWKQMsdltAK tn3BHX8EIUheQU7kgJoTLxiEoBBhYJJQeiwS5N8/GjihAoxOCEDAF7FkldMi1AwiCijKLMKSOAOV 2BhC+tgWjyOz2GZBQcE4wUN/Mi4EgRPRsLcbAweFx8CZEhIpnnEEqSCeNFjBFIICtvzziByv/GML IP7AMY8mBL0iBy0phUCLHIRYI8eklBYyQFkTiqdbMUQW9FtoC9mp44FOsOCOCPEVRKBuI/TnBDs7 2P9WBEKxMFLMj1C9hEag/ywQQkoRPPIPICMe9Is/A8jxDyFwpJRJQbpgahAE9BxBwLW2NQNEQT44 gQEjAmXXY0Ki2ujEEl0AsQoj2w4EjW03yLAfpz7yh4sTLhgUAAvQ/APhuG61NAArAnnAkin/vBIC IOsQtMAgzdL3zwEqDTIQOeD8qtmKCDGhKTYNEeEEGGqKhwFBDDjRr0C4/vNjt/QOhIR4J+TZUiED KcCSIP8Y7A/PVaY0wECFqBTBQKCotHEFDyTkiA/PvICnQ10MeRARTQigtQBxCiQMMQS1ckRBxIA9 EAFfFmQBD88sMWqIKw1ASM4sLQLIpT8TVGJyAhX/DexApijt2uAHtXQ03TABTaLQRKtEzUALCE74 5AK1pPg/Oieut0rP/mNOxQI9IltKG1P+V0uAEJT5S5dbyUGgj+D9LCsRGAURLo5JkaqNJFMUSysI tRIMQowMf1AspS/FEhyqx8TM5inBkYktmtgihybW0IK35P3lQxABu2Fg/ECtbKhbzQRlqRsD7Tr0 m25LEJTDbkoQ9MxuDRB0wm40qKNkS79oHEzIAT00nKN2QqsKQs41kAfYpgEUuIFtbDCQL9hGCDgQ V4YE4gLgSCAJMnBCAB7SrXNRgAZOABWFKFDCGAjEPTTYgQ+0IUKBUGA8K6hBy57iEmUMRBNScoku /wpSomo8AhBwSKIS4fAr200IAcLpERh+ZBsIBIEBL1DB1P6xvwZogAkxSIIGZvEQdXhPIK1wgguz 5KCBpEwKEnBC/Qaiw6ZN0Acd8IEGTPC/ltBiINVoCQdEQYjOCYQZyCJYQjIxOmnBCIosG5cON6gp 28Sng5oSQEEqYIJOmsAGayFCd5ygox2Wyj39CcCtNMUmm/UQUf+Yx8MUUIgA/kIXiyjHQB4hClbM TSG2wNtdODQQHORHGPmYmXf+EQvb7GAgAnDCDwTyg+hQ8B9dcsJ0BMINTcmAIErQTY1Yto/+XMgI /fmBMZ2Avn9IMByudIndTCEHYf1DDqZQhkpS0P9LgWgCFIdTSOQc6SNICmQblSSjy8Y1M4HkBmQD aSYBHBJNJJgtigXBhBNakI5xAUGNjHACBWA0TbiRpYn++KNCfDZMg/6jAyrABbiCxKIsuRCN/tGC bUQwEAlywyE7/EcznHCDgdzrNvyQ5kD+BS7brGAgcdRHPN8iCEKI4iUW89sw4yeQfznBfE4IA0FC KJ5r/uNMtqGhdh5SyRkIRIdOUKsTNCCQEu5Gk8ysJESjEphrEIIQKYCJNQZ6FwRscCBB6M4InmkQ DXTUCQx420AaQEMatLMhOIgBAzbLgBxMVCAVCIBtntEOgoiArB1QKFRH6VK+7iV15YDJIljRLIL/ mo4ze7nGsho5pUxw77abMUzD5rG9Ri3gANtLHnDlYphFLOAcjygEOHQxiGpoQhQhQAMoBDEA5S6X LZIZwCBMYY4DmAIUeKMuNQDh3e+apTO6AgQzrtFe94IlCvjNr373y9/++ve/URCrfQdM4AIb+MAI TrCCF8zgBjv4wRCOsIQnTOGsgOADHyhBhSuCDhKQAASP6cYGMgCDDYB4wwaxRz9gkJB3GMAAG3iC jGdM4xrb+MY4zrGObyyPIQjkAzHesZCHTOQiG/nINn6xAdCBkBLAwwAOeMw0NuAAfNxDwyguyAcM QAKFdGMalXEACYZgjywfBMxmTrOa18zmNrv5/81wjrOc50xnrPihzre9xSfwDBVFUOIfpaDDP+iA iF7c+RSV+Acw6GCMUfyjFon4hywSPZBSqGIZf1DEJ0jxBz90QhWwWAalBeIKVSjC0bVQxSUEIotT wKIToSBFJyLNZ4RMAhL/QAEy/nHrY9RiFMNQxT+SsYlIyMIP9ejEPyKBiIEAgxdrUIQnNuELQR8i F2v4xCX+MJBNcGINsPjHJfpAh0nk4h+kQEEvJoECRahiHLVGCCTGQQdv+OIfn7CEIoyxBkn4whPD +EMvFOEKSURiFCjwxEAmsYyB3CIPAkGBLP6RB1wP5BirFsguTjHoYfyj4IDuwz/WAPF4G8QSnP9Q xCWQUQpODDoSndjELkpxCEknQxJr4MQmvEGQPmTD4SXfRB4OsQtuDyQPtRgItP/hBx38AeRrEDnJ TX4QThwiEeNWNr4PEYpl9OEb//DEJw6ei2OQ4h+UaHYujAF0gWTjGEb/RyUEjYxwC6QPZ0cECj4u iZFLveRUJ4gxePGPROhgDQKZRCT+gQgdAEMgyUjGP06hgz/n4t6V+EQnrm6JemTjD6c4RB6GkXRk 1FzvvTiEHxDBi0tEAtdQ/3vgCxIKWtNB4Uz/syduLxBLWOIfo7iFQELxe6aXwvabCIXI/wGJXTD9 zv+wxCn+jHZIUDoUf/5DpP8w6tkjhROTgAX/J8DufcUAgxTNLr/618/+9rv//fCPv/znT//62//+ +B+MBS7wgDtkpRkFAAENgQsQcAUVsDsMEQZm0AhqcAHt8AYMKAAFMAYkIQUPcAF3sFcUAQRvEAe9 4xPcoAdlkBIpcAZtADKr4AZ04hBScAHt4xB3kAKL4AUriBAXkABSEgKBUAAzAQ1f0DQJsQUq0QiN oBIjiAUiIQVRQAYkuAdT0AUVMQUpYQY/EQZeQIIj6A920A6MkACBsDINsQVl8IURcQcjuAc1aBAi QAUpkYX+4Ab/gAUpoAcKsQf+EAdicAFHaAhi4A+NUBFagAqNkoV14AgVUQUpsQU/0QYpgQd3/7AK hhAFFwANfegFX6AO0KAFzsAIWTAdUlA2aeMIeOAPCVABPaEOY2CIEWUDYyAFQCAFbgANhoAFVvMP 6qABXsEFi2AHblAEGsAFb2CLduAPehASzsANWUAMvSMFCeAPDxAGFyAlb7AKsYAF9PAPWiACReAM FWADpSUQ2CACWVABuAAEY7BBGpASbPAFq0AAavBZ/wAGWZCKAhELIgANjEAM3FABaYKN3MCOcRAF PQENFZAF3/gPnFgBYPgPX+AGGvAFaWgQaZASeuA/A5EFQeQPeMAIVoAFdRACb1AATLgIZaCIRagS UfAPXDCCdoBXYtCM/jCGTMgHqVAHcyAQYv8Yk1VAEKlAihCwkGegEl9QBQDwKyFABU91kimRkf6w BXVQAP+ACimQCgCwCClgBTylBWfwK4tQB4HgD3UgEFeQEqlgkQSRBcOohTuZAHNIBSSZAmIgEGmQ AnZQBXZABVfwD9yACr8SCDz1Bmy4CHtAgUUgh0v5hwphCEZ4BnGgIlLABmDZCBeADXXgDyHgBQLg D4sAAEyYAhYgAM1YBtbIBylhhylQASIQWGcAmVqoBm5gBX74D1LAhACQAtc4EHGwlFbQgDg5ggkQ C6EJACwZDVXAhqkwB40gJXugBhXgD1zwDwCgEmx4h/9gBv5ABY2QlqhAhf9gA0FUBtvJU7L/2Yx4 YIchMAZMaJmBcIVIGA3NiAUXkBJ5KYghUAdeAIlkOYx78A9C6A+oEAV2gIQK4QxYwBJUUDPxyQYC AQRW4AUVUFpxIICZuQhgEwX+YAUCUZl48A/D+AaZ6Zn/YIf7+Q9f+YekGQjRkAUFAQZXqBKLkAYC AZspSQBm0BsF4A8pIFZBmSEV8Cs7iQ3O+Q+QyYtSwIZUeIUT5Qa/wgfuYqErQQWa9AYaKRDDWACw 6aDtwAXXGQ1ukBIE0KXO+AApwQV34H+C6AX/MJb+QAwWGgJw+A+quBAC4JHSiQvxeQYLupsDoQV8 EAWQeZ7/UIQYqg6BtQcFwIaNgIghAAEc/3mh0OAMMhqH/qAGCMENahAIKGUI/wCbiOkGBRAFdlgG vRGUFDgGv9IG/wAEQQqZCrqp/kCFdvgGWrACUhIHBSEGdJoSZCAFauAPhnqoGhmp/6ACKfEAQlgH QKCmGiCl/vBZuMCECfCpKbEC1nmdWNAG2zSAxZkSzSCmeJqqVoCYXwCb+0SBgvoPqckSbGABXrAI VJCFwcig/pCSQcmdCAEEEGCHk+qqf6gGTCmq/xCUYEMMp5qqq+oPeNoFsAmV+SCDaWkHKmIQsSAG lekPYjAHLcEGnCoQ0fCVUSCIlKqs/ZmX/7AKbqgSVXAHLUqWEXGShtCl38qgiDmRXkAPuf8ZAhR0 roTqD1hwBVdwAQLYBilQBnvQCJ8lrympB0G6EASQEn8ooxCgjhqAsWUwKwL7DwTrD6iqqs8ZlAm7 sP+AC7BpB2yQBhGLEL3qD1WgpfDps/QgDBsrENZJBSGwCBcgVCmhASMrELjAhqigAj+LgQJBAHEQ nWXAtGogDFoABDbQjIsgAvE5ojIrEAVKhYqasxcqEM34rXD4BYHFBlMgANckr3+YmwAgVNn6D22w BbEQDcHgpMFYon2ottUZkyFxtVm7tQf7tf4AlUKYAgUwBVeQujbABRCwuCLQojaAiN/6D00Tt/9g qilhBVDYDMWqpmbgCHkJmQkgEI5AgRD/AIQiEAIpsBBXuAgJYAVZSKljYJlz0AZAEAiIqaV2YAZf 6Q8waqEpMAcnwKxzEJ0CsApp2ShRgA1dUKLo+rn7KhCMMIJ1YAUVGwjgcoV10LQXWgCVuQhTEJX+ oKIY6Q8bzLUBi7D+8pVQOQVMSQWaKhCkib7q67T/EAbNiAr/q7YIPBCC2LuDK59a8JU66A8XQKz+ wAZR8K4iYIeoUABDuhBpMMD+QAZpsC1dUKD+EAi44AUp+Q8VcL9XGZtukJap8A8FkIUA8ABgIAYF sAUFkMMT5QUhkMVp8CtUwKQCYQFFvE94IJ5VMIIQkLbXCZu2ygYpUKplkAJbGwIwmgohjqCgXeDG tjoGcRCSXACt8XEBgZCRUNwuaKkSAOAGbpzFAiG0ZaCiaZoCKZCXxNCiVgCHU1CxKRAFIqAG6fnE G8wQ4TiOvfETvboIZvAG0QnEEHHL5KgUUhBYjTAFaTCCVtCP4CiOw0wQwpzLDmYCeGAHdVsGXqCI iVEFVrAIdVsHbACEcxbNkEHO+cdnAQEAOw== ------_=_NextPart_001_01C69551.44546463-- From linuxhippy@gmail.com Thu Jun 22 13:08:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CBBF3B03E5 for ; Thu, 22 Jun 2006 13:08:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11990-05 for ; Thu, 22 Jun 2006 13:08:30 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id D7CA73B0603 for ; Thu, 22 Jun 2006 13:08:29 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so579907uge for ; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr612924hue; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Message-ID: <194f62550606221008p61ceb686s5402452b96c8c6bb@mail.gmail.com> Date: Thu, 22 Jun 2006 19:08:29 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=-0.080, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 17:08:33 -0000 Hello again, Thanks a lot for sending your results of the 6200. It seems that (on my system) 35% of total cpu time are spent in software rendering related stuff (I guess _nv000805X is some kind of vram readback or upload function). When running gftp with the open-source "nv" driver performance feels way better (but not as ligthening fast as qt) as log as not-AA'ed fonts are used. So by identifying these problematic areas someone could send nvidia an bug-report for the missing XRender hookups/implementations. But I don't have any clue howto identify these :-/ Does anybody know a good technique/tools for finding out which calls to X are slow? Does running gftp in sync mode with some x protocoll analyzer make sence? Thank you in advance, lg Clemens 2006/6/21, John Cupitt : > > Good, glad that helped. There are fast and attractive gtk2 themes as > well: I use clearlooks myself. > > For what it's worth, if I maximise gftp and wiggle the vertical > splitter I see rather similar numbers to you. I have an nvidia 6200 > with driver 1.0-8762 and gtk2.8.18. > > 379387 69.5894 Xorg > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 143932 37.9380 libfb.so > 101881 26.8541 no-vmlinux > 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) > 26745 7.0495 Xorg > 6181 1.6292 libc-2.3.6.so > 1685 0.4441 libextmod.so > 116 0.0306 mouse_drv.so > 42 0.0111 libramdac.so > 1 2.6e-04 libm-2.3.6.so > 125293 22.9820 gftp-gtk > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 20136 16.0711 libpangoft2-1.0.so.0.1201.2 > 16493 13.1635 libcairo.so.2.2.4 > 15452 12.3327 libgobject-2.0.so.0.1000.3 > 13860 11.0621 libpango-1.0.so.0.1201.2 > 12485 9.9646 libc-2.3.6.so > 12299 9.8162 libgdk-x11-2.0.so.0.800.18 > 11823 9.4363 libglib-2.0.so.0.1000.3 > 4191 3.3450 libgtk-x11-2.0.so.0.800.18 > 4190 3.3442 libX11.so.6.2.0 > 2946 2.3513 libpthread-2.3.6.so > 2517 2.0089 no-vmlinux > 2171 1.7327 libpangocairo-1.0.so.0.1201.2 > 2087 1.6657 libXrender.so.1.3.0 > 1887 1.5061 libm-2.3.6.so > 1084 0.8652 libfreetype.so.6.3.8 > 956 0.7630 libclearlooks.so > 352 0.2809 pango-basic-fc.so > 323 0.2578 libgthread-2.0.so.0.1000.3 > 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 > 8 0.0064 ld-2.3.6.so > 3 0.0024 gftp-gtk > > John > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From oystein@gnubg.org Thu Jun 22 15:00:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 66FFE3B006D for ; Thu, 22 Jun 2006 15:00:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19184-03 for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 6F8D03B00BC for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J19009W9ZGSS260@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1900LMZZGRKNH7@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Date: Thu, 22 Jun 2006 21:00:24 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Main Loop, IO Channels and my CLI To: gtk-list@gnome.org Message-id: <449AE8C8.9030709@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig4D0040E48100B18213443258 X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:00:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D0040E48100B18213443258 Content-Type: multipart/mixed; boundary="------------030705090007050505050704" This is a multi-part message in MIME format. --------------030705090007050505050704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I've just made a small glib code that read commands from from a command line interface prompt. It uses g_main_loop and a g_io_channel. I've attached the code. First: It nearly works as expected. The callback is called each time I enter a command, and it's parsed to the command handler. However, I want to expand this to system to use automatic string completion, (the system provided in glib), for all available commands. Now it only handles command as I press enter. I guess I need a extra callback for each keypress. This callback can check if I press and then call g_completion_complete(), but how do I attach such a signal to the main lo= op? Then: Can this be a bug? It work fine unless I use a special scandinavian letter in my commands. Do I have to convert my string at any time? How? (I'm using win32 command prompt window) Example: myprompt> hello You typed: hello myprompt> =C6sop ** (gnubg.exe:3128): WARNING **: Something went wrong Invalid byte sequence in conversion input -=D8ystein --------------030705090007050505050704 Content-Type: text/plain; name="commandsystem.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="commandsystem.c" #include #include static void prompt(){ g_printf("myprompt> "); } static void handlecommand( gchar *sz ){ g_printf( "You typed: %s", sz ); prompt(); } static gboolean mycallback( GIOChannel *channel, GIOCondition cond, gpointer data) { gchar *str_return; gsize length, terminator_pos; GError *error = NULL; if( g_io_channel_read_line( channel, &str_return, &length, &terminator_pos, &error) == G_IO_STATUS_ERROR ) g_warning("Something went wrong"); if ( error != NULL ) { g_printf(error->message); exit(1); } handlecommand( str_return ); g_free( str_return ); return TRUE; } int main(int argc, char* argv[]) { GMainLoop *mainloop = g_main_loop_new( NULL, FALSE); #ifdef G_OS_WIN32 GIOChannel *channel = g_io_channel_win32_new_fd( STDIN_FILENO ); #else GIOChannel *channel = g_io_channel_unix_new( STDIN_FILENO ); #endif prompt(); g_io_add_watch( channel, G_IO_IN, mycallback, NULL ); g_main_loop_run(mainloop); return 0; } --------------030705090007050505050704-- --------------enig4D0040E48100B18213443258 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmujL6kDTFPhwyqYRAmO8AJ90ccVLei/Y2LKl4OmNPvFmCxc48QCbBpkZ DBHxKFHZ30sS+FdQ1vWycnk= =B070 -----END PGP SIGNATURE----- --------------enig4D0040E48100B18213443258-- From tristan.van.berkom@gmail.com Thu Jun 22 15:25:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87E353B0137 for ; Thu, 22 Jun 2006 15:25:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20656-05 for ; Thu, 22 Jun 2006 15:25:06 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id 0E8183B04F4 for ; Thu, 22 Jun 2006 15:25:05 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so586701nzh for ; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: by 10.65.182.16 with SMTP id j16mr3112039qbp; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: from ?66.48.170.242? ( [66.48.170.242]) by mx.gmail.com with ESMTP id q18sm1306507qbq.2006.06.22.12.25.03; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Message-ID: <449AF297.6070003@gnome.org> Date: Thu, 22 Jun 2006 15:42:15 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI References: <449AE8C8.9030709@gnubg.org> In-Reply-To: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.229 tagged_above=-999 required=2 tests=[AWL=0.371, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.229 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:25:07 -0000 貀stein Johansen wrote: >Hi, > >I've just made a small glib code that read commands from from a command >line interface prompt. It uses g_main_loop and a g_io_channel. I've >attached the code. > >First: >It nearly works as expected. The callback is called each time I enter a >command, and it's parsed to the command handler. However, I want to >expand this to system to use automatic string completion, (the system >provided in glib), for all available commands. Now it only handles >command as I press enter. I guess I need a extra callback for each >keypress. This callback can check if I press and then call >g_completion_complete(), but how do I attach such a signal to the main loop? > > > You need to get raw keyboard input from your terminal, in unix you can use tcsetattr(). >Then: >Can this be a bug? It work fine unless I use a special scandinavian >letter in my commands. Do I have to convert my string at any time? How? >(I'm using win32 command prompt window) > >Example: >myprompt> hello >You typed: hello >myprompt> 苨op > >** (gnubg.exe:3128): WARNING **: Something went wrong >Invalid byte sequence in conversion input > > > You might want to change the encoding on the io channel.. if you set it to NULL then it should work. Cheers, -Tristan From tml@iki.fi Thu Jun 22 15:29:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34F8A3B05BF for ; Thu, 22 Jun 2006 15:29:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21008-07 for ; Thu, 22 Jun 2006 15:29:06 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id F38B13B04A4 for ; Thu, 22 Jun 2006 15:29:05 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 636F315138F; Thu, 22 Jun 2006 22:29:02 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.61302.590000.98041@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:28:54 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.33 tagged_above=-999 required=2 tests=[AWL=0.134, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.33 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:29:09 -0000 =D8ystein Johansen writes: > (I'm using win32 command prompt window) And GIOChannel watches work? Wow, I'm amazed. Or actually, in the case of watches for GIOChannels associated with C file descriptors on Win32, GLib uses a separate thread that sits most of the time blocked waiting to read() from the file descriptor, so I guess indeed there is no reason why it wouldn't work for terminal input. > Invalid byte sequence in conversion input > Can this be a bug? It work fine unless I use a special scandinavian > letter in my commands. Do I have to convert my string at any time? > How? I think the input you get from a console window is typically in the so-called OEM code page of your Windows installation. You need to call the GetConsoleCP() function to find out the codepage of the console, and then form the encoding name as a string like "CP437", and tell the GIOChannel to use that encoding. Something like: char codepage[10]; ... sprintf (codepage, "CP%d", GetConsoleCP ()); ... g_io_channel_set_encoding (channel, codepage, &error); (Totally untested, tell us if it works ;) Otherwise GLib assumes the data is in UTF-8, and reading *lines* from a GIOChannel indeed requires it to know the actual encoding of the data, so it will complain when the data isn't proper UTF-8. --tml From tml@iki.fi Thu Jun 22 15:41:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46DF13B022E for ; Thu, 22 Jun 2006 15:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21958-02 for ; Thu, 22 Jun 2006 15:41:35 -0400 (EDT) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 07D893B06CE for ; Thu, 22 Jun 2006 15:41:34 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 9443B1394B7; Thu, 22 Jun 2006 22:41:31 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.62051.621000.757828@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:41:23 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.331 tagged_above=-999 required=2 tests=[AWL=0.133, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.331 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:41:36 -0000 =D8ystein Johansen writes: > However, I want to expand this to system to use automatic string > completion, (the system provided in glib), for all available > commands. Now it only handles command as I press enter. I guess I > need a extra callback for each keypress. This callback can check if > I press and then call g_completion_complete(), but how do I > attach such a signal to the main loop? Ah, I forgot to answer this part. I am afraid you might run into difficulty in doing this on Win32. Or maybe it isn't that hard? There is an API SetConsoleMode(), and mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe it's actually quite similar to Unix, and you can do character-at-a-time input, and your own echo processing. Maybe all you need to do is something like GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); and it will Just Work?=20 --tml From bonefry@gmail.com Thu Jun 22 17:13:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 416803B0601 for ; Thu, 22 Jun 2006 17:13:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26826-10 for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 572B63B061C for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so606362nzh for ; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: by 10.65.95.12 with SMTP id x12mr3218683qbl; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: from ?86.34.237.177? ( [86.34.237.177]) by mx.gmail.com with ESMTP id a5sm1382428qbd.2006.06.22.14.13.35; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Message-ID: <449B07F9.9030500@gmail.com> Date: Fri, 23 Jun 2006 00:13:29 +0300 From: Alex Nedelcu User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: GTK performance on Windows Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.158 tagged_above=-999 required=2 tests=[AWL=0.442, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.158 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:39 -0000 Why is GTK's performance so bad on Windows ? Of all the gui tookits I use, it has the worse performance. I am interested in GTK on Windows because I want to make cross-platform applications. Isn't there a new version on the horizon that will fix this ? Or what can be done to tune the performance of GTK interfaces ? I am using GTK+ version 2.8, and Windows XP. The platform I use is Mono with the GTK# bindings, but I also made tests in Python with the PyGTK.bindings, and I've got the same results. Thank you, From chris@cvine.freeserve.co.uk Thu Jun 22 17:13:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96F463B02CA for ; Thu, 22 Jun 2006 17:13:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27147-02 for ; Thu, 22 Jun 2006 17:13:50 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 774DB3B0769 for ; Thu, 22 Jun 2006 17:13:44 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id A0287580008E; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) Received: from boulder.homenet (user-2802.lns6-c11.dsl.pol.co.uk [84.69.106.242]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id 5BE1E58001A9; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) X-ME-UUID: 20060622211342377.5BE1E58001A9@mwinf3114.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5MLDBgq004659; Thu, 22 Jun 2006 22:13:11 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Two buttons, two images and switching between them Date: Thu, 22 Jun 2006 22:13:11 +0100 User-Agent: KMail/1.9.1 References: <20060622115530.3F0DE25049A@poczta.interia.pl> In-Reply-To: <20060622115530.3F0DE25049A@poczta.interia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606222213.11197.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.306 tagged_above=-999 required=2 tests=[AWL=-0.042, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.306 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:53 -0000 On Thursday 22 June 2006 12:55, hm wrote: > Hi ! > > I`ve got a problem : I have window, with two buttons inside. I`ve got > two GtkImage`s, and on a beginning of the program, i`m ( setting > gtk_button_set_image () ) these images to be button`s "icons". I want to > make a signal function, that handles clicking on both of these buttons. On > click it should switch images between the buttons. For example i`ve got > icon1, icon2, button1 and button2. button1 -> icon1 > button2 -> icon2 ( icon2 is set to be an icon for button2 ) > > now.. i`ve got a signal, that button1 is pressed. So i want now, to have > situation : > > button1 -> icon2 > button2 -> icon1 > > When I try again to do gtk_button_set_image ( button1, icon2 ) and > gtk_button_set_image ( button2, icon1 ) it doesn`t work propertly ( button1 > has icon2 , but button2 has no icon ). I suppose it is so because of > button1 is now "parrent" ( or owner ) of both icons ???? I`m not quiet > sure. I would be appreciate for any clue how to do this. Maybe there is any > method to release icon from being button`s child ? Uhh.. it is little > twisted :) When you substitute an image in button1 the reference count to icon1 would have been decremented, and if you have not taken steps to stop button1 taking ownership of it it will have been destroyed. That may be your problem (although in that case it is surprising that it worked the first time). Chris From oystein@gnubg.org Thu Jun 22 17:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AC523B0242 for ; Thu, 22 Jun 2006 17:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28976-07 for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 18D9A3B022C for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A009X17J7S2C0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A00FW87J6QD35@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Date: Thu, 22 Jun 2006 23:54:39 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <449AF297.6070003@gnome.org> To: Tristan Van Berkom Message-id: <449B119F.1000203@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enigF4FE71D812066FD76946249B X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.563 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599] X-Spam-Score: -2.563 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:54:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF4FE71D812066FD76946249B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tristan Van Berkom wrote: > =D8ystein Johansen wrote: >=20 >> Hi, >> >> I've just made a small glib code that read commands from from a comman= d >> line interface prompt. It uses g_main_loop and a g_io_channel. I've >> attached the code. >> >> First: >> It nearly works as expected. The callback is called each time I enter = a >> command, and it's parsed to the command handler. However, I want to >> expand this to system to use automatic string completion, (the system >> provided in glib), for all available commands. Now it only handles >> command as I press enter. I guess I need a extra callback for each >> keypress. This callback can check if I press and then call >> g_completion_complete(), but how do I attach such a signal to the main= >> loop? >> >> =20 >> > You need to get raw keyboard input from your terminal, in unix > you can use tcsetattr(). >=20 >> Example: >> myprompt> hello >> You typed: hello >> myprompt> =C6sop >> >> ** (gnubg.exe:3128): WARNING **: Something went wrong >> Invalid byte sequence in conversion input > You might want to change the encoding on the io > channel.. if you set it to NULL then it should work. Thank you! Adding this line: g_io_channel_set_encoding (channel, NULL, &error); makes it work. Thank you! Now let me try finding the right codepage as Tor suggests. Hmmm.... gcc -o mycli commandsystem.o -LC:/GTK/lib -lglib-2.0 -lintl -liconv -lkernel32 commandsystem.o(.text+0x3f):commandsystem.c: undefined reference to `GetConsoleCP' It doesn't link? (Yes, I do add -lkernel32) -=D8ystein --------------enigF4FE71D812066FD76946249B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmxGi6kDTFPhwyqYRAm34AJsEdcDQXNEIGbhSJrl8V1Y0BqA7qgCfXAcm 5Ita9vLa8F8qptA4rEeUAHw= =nwVe -----END PGP SIGNATURE----- --------------enigF4FE71D812066FD76946249B-- From itsme_515@hotmail.com Thu Jun 22 18:00:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6F863B06F4 for ; Thu, 22 Jun 2006 18:00:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29478-01 for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from hotmail.com (bay109-f14.bay109.hotmail.com [64.4.19.24]) by menubar.gnome.org (Postfix) with ESMTP id 9A4DC3B067C for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 15:00:53 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Thu, 22 Jun 2006 22:00:50 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com From: "Aar Em" To: gtk-list@gnome.org Subject: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 17:00:50 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 22 Jun 2006 22:00:53.0042 (UTC) FILETIME=[5474C120:01C69647] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.907 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: 1.907 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 22:00:55 -0000 Dear peers, After struggling with this for over a day, I wanted to ask you for your help regarding usage for g_list_insert_sorted. Can someone please help. Here are the operative parts of my program: I have the following struct: typedef struct _message_info { char *from; char *subject; char *face; long *ctime; } MESSAGE_INFO; I have the following comparison function: static gint compare_ctime (gconstpointer a, gconstpointer b) { const MESSAGE_INFO *p1=a,*p2=b; return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); } and the following calling part: Glist *headers; ..... MESSAGE_INFO *m; m = g_new(MESSAGE_INFO,1); m->from = safe_strdup (from); m->subject = safe_strdup (subject); m->face = safe_strdup (xface); m->ctime = ctime; headers = g_list_insert_sorted (headers, m,compare_ctime); .... I get segmentation fault with this, and was wondering how I could fix it. I guess my question is how to use g_list_insert_sorted. I have Googled quite a bit on this, but have not been able to devise the fix. Any help would be very appreciated. Any suggestions? Many thanks and best wishes, Aarem _________________________________________________________________ Don抰 just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ibr@radix50.net Thu Jun 22 19:51:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 934D53B0320 for ; Thu, 22 Jun 2006 19:51:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01890-02 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 340233B0288 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-11-z2.arcor-so.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 12CA117689F for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-11-z2.arcor-so.net (Postfix) with ESMTP id 025AB1C71CE for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id BD69FEAE5C for ; Fri, 23 Jun 2006 01:51:07 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNongI020870 for ; Fri, 23 Jun 2006 01:50:49 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNon3l020869 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:50:49 +0200 Date: Fri, 23 Jun 2006 01:50:49 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622235049.GC30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:51:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From itsme_515@hotmail.com Thu Jun 22 20:01:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 764923B0295 for ; Thu, 22 Jun 2006 20:01:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02104-10 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from hotmail.com (bay109-f40.bay109.hotmail.com [64.4.19.50]) by menubar.gnome.org (Postfix) with ESMTP id 30A843B0176 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 17:01:08 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Fri, 23 Jun 2006 00:01:07 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <20060622235049.GC30610@radix50.net> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 19:01:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 23 Jun 2006 00:01:08.0504 (UTC) FILETIME=[2134E180:01C69658] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.407 tagged_above=-999 required=2 tests=[AWL=-0.714, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.407 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 00:01:10 -0000 Hi, Many thanks! I think I should let you know that g_list_append works fine, except that it does not give me a sorted list by ctime (creation time). org. The debugger crashes just after entering the function at the point of the "return statement". Program received signal SIGSEGV, Segmentation fault. 0x0804db2b in compare_ctime (a=0x8ef5ae0, b=0x0) at count.c:19 /usr/local/aarem/Desktop/gbuffy-0.2.6/count.c:19:339:beg:0x804db2b Btw, I am sorting by the ctime, the creation time of the messages in the mh folder. Many thanks, aarem > >Hello Aarem, > >On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > > Glist *headers; > > ..... > > headers = g_list_insert_sorted (headers, m,compare_ctime); > >Do you initialize headers with NULL? If not, this could be the reason. >Otherwise, use gdb to see where it crashes. > > > > typedef struct _message_info > > { > > char *from; > > char *subject; > > char *face; > > long *ctime; > > } MESSAGE_INFO; >... > > static gint compare_ctime (gconstpointer a, gconstpointer b) > > { > > const MESSAGE_INFO *p1=a,*p2=b; > > > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : >-1); > > } > >I don't know what long *ctime is, but sorting by pointer value looks >suspicious. This shouldn't segfault, but I'm not sure it does what you >want. > > >With kind regards, >Baurzhan. >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dkasak@nusconsulting.com.au Thu Jun 22 22:27:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1AA23B050E for ; Thu, 22 Jun 2006 22:27:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08034-02 for ; Thu, 22 Jun 2006 22:27:05 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 8B07A3B0139 for ; Thu, 22 Jun 2006 22:27:04 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k5N2SbNx017452; Fri, 23 Jun 2006 12:28:38 +1000 Message-ID: <449B5170.6050609@nusconsulting.com.au> Date: Fri, 23 Jun 2006 12:26:56 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Alex Nedelcu , gtk-list@gnome.org Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> In-Reply-To: <449B07F9.9030500@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 462445 - f5bdb0dffa1b X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=462445&m=f5bdb0dffa1b X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.124, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.398 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 02:27:07 -0000 Alex Nedelcu wrote: > Why is GTK's performance so bad on Windows ? > Of all the gui tookits I use, it has the worse performance. > > I am interested in GTK on Windows because I want to make cross-platform > applications. > > Isn't there a new version on the horizon that will fix this ? > Or what can be done to tune the performance of GTK interfaces ? > > I am using GTK+ version 2.8, and Windows XP. > The platform I use is Mono with the GTK# bindings, > but I also made tests in Python with the PyGTK.bindings, and I've got > the same results. > I don't think it's so bad. I'm developing gtk2-perl applications and deploying on a mix of Linux and Windows ( 2000 ) clients, and the performance is actually quite impressive. It even runs inside vmware on my Linux desktop quite well, though obviously not at full speed. As per previous posts re: performance problems, have you tried changing themes? Also, what exactly is slow? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From tml@iki.fi Fri Jun 23 02:23:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C97C3B0567 for ; Fri, 23 Jun 2006 02:23:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18933-03 for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 542053B00ED for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CFBA5151223; Fri, 23 Jun 2006 09:23:38 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17563.35042.590000.373902@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:23:30 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449B119F.1000203@gnubg.org> References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> <449B119F.1000203@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.332 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.332 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:23:44 -0000 =D8ystein Johansen writes: > It doesn't link? (Yes, I do add -lkernel32) Did you #include ?=20 --tml From tml@iki.fi Fri Jun 23 02:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A0813B04C0 for ; Fri, 23 Jun 2006 02:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18926-08 for ; Fri, 23 Jun 2006 02:27:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 0A0133B041F for ; Fri, 23 Jun 2006 02:27:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CEEBD1511A1; Fri, 23 Jun 2006 09:27:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.35295.574000.601419@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:27:43 +0300 To: Alex Nedelcu Subject: Re: GTK performance on Windows In-Reply-To: <449B07F9.9030500@gmail.com> References: <449B07F9.9030500@gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.333 tagged_above=-999 required=2 tests=[AWL=0.131, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.333 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:27:56 -0000 Alex Nedelcu writes: > Why is GTK's performance so bad on Windows ? Because you haven't profiled it and contributed performance improvements? > Of all the gui tookits I use, it has the worse performance. Well, d'oh, you should ask for your money back then! --tml From hdnews@gawab.com Fri Jun 23 02:52:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 596D63B0218 for ; Fri, 23 Jun 2006 02:52:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20492-03 for ; Fri, 23 Jun 2006 02:52:31 -0400 (EDT) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by menubar.gnome.org (Postfix) with ESMTP id D54F03B00ED for ; Fri, 23 Jun 2006 02:52:30 -0400 (EDT) Received: from pegasus.strader.xs4all.nl (strader.xs4all.nl [80.127.15.33]) by smtp-vbr4.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5N6qT2W054997; Fri, 23 Jun 2006 08:52:29 +0200 (CEST) (envelope-from hdnews@gawab.com) Received: from [10.8.0.2] (vpnclient [10.8.0.2] (may be forged)) (authenticated bits=0) by pegasus.strader.xs4all.nl (8.12.10/8.12.10) with ESMTP id k5N6qMbh029399; Fri, 23 Jun 2006 08:52:29 +0200 Message-ID: <449B8FA2.3050501@gawab.com> Date: Fri, 23 Jun 2006 08:52:18 +0200 From: Hans Oesterholt-Dijkema User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tor Lillqvist Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.656 tagged_above=-999 required=2 tests=[AWL=-1.303, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, SPF_SOFTFAIL=1.384, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -0.656 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:52:32 -0000 He must have been adding sleeps in his code. Tor Lillqvist schreef: > Alex Nedelcu writes: > > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! > > --tml > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From nf2@scheinwelt.at Fri Jun 23 04:25:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28DDE3B078E for ; Fri, 23 Jun 2006 04:25:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27712-01 for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 689883B011E for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1FtgyI-0008KO-1Y; Fri, 23 Jun 2006 10:25:02 +0200 Message-ID: <449BA558.7040303@scheinwelt.at> Date: Fri, 23 Jun 2006 10:24:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Sean Middleditch , gtk-list@gnome.org Subject: Re: libxdg-vfs and Gtk-Filechooser References: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> In-Reply-To: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 3eb4023d85beba22221bf02b5aa627a5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, TW_BX=0.077, TW_IB=0.077, TW_XD=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:25:04 -0000 Hi, Sean Middleditch wrote: > Making the GTK file chooser use libxdg is pretty shady. Letting an > application select a file on an FTP share is pointless if the application > itself cannot actually access the file returned by the file chooser. At > best you'd have to have the chooser download/copy the file locally and > return a temporary file path to the app. But then changes to the file > would be lost. Saving the file would be difficult since when saving, the > chooser just returns the URI to the app, which again has no way to write > to any file that isn't local. > http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html libxdg-vfs supports get/put functions for reading and writing files - the application just has to link libxdg-vfs. The libxdg-vfs backend for GTKFileChooser wouldn't be the default, but just for applications which use libxdg-vfs . > The xdg-vfs stuff is interesting, but until there is a complete library > that can be easily integrated into applications, there's little point in > having the file chooser support the xdg stuff. And if you have GTK apps > willing to use a VFS library, you might as well get them to go straight to > the GObject-based gnome-vfs rather than xdg-vfs. > AFAIK gnome-vfs doesn't use GObject in the API. The advantage of libxdg-vfs is, that it uses the VFS system (password storage, protocol handlers, network shares) of the current desktop (KIO *or* Gnome-VFS). Therefore your GTK application will integrate nicely into KDE without directly linking to KIO (or the other way round - a Qt application on Gnome using Gnome-VFS). Also - you don't have a whole desktop-system in the dependencies of your application - Just a little library. (If you want to use Gnome-VFS directly, you also have to link to libGnomeUI - same problem for KIO and the KDE desktop libraries). cheers, Norbert From sven@gimp.org Fri Jun 23 04:54:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1DCD3B038E for ; Fri, 23 Jun 2006 04:54:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29667-05 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from buzzloop.caiaq.de (buzzloop.caiaq.de [212.112.241.133]) by menubar.gnome.org (Postfix) with ESMTP id 667C63B0231 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 9A4CF7F4028; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23383-03; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from [192.168.1.124] (i577B660E.versanet.de [87.123.102.14]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTP id 251EB7F4022; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Subject: Re: Main Loop, IO Channels and my CLI From: Sven Neumann To: =?ISO-8859-1?Q?=D8ystein?= Johansen In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=utf-8 Date: Fri, 23 Jun 2006 10:54:01 +0200 Message-Id: <1151052841.13729.8.camel@bender> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[AWL=0.853, BAYES_00=-2.599] X-Spam-Score: -1.746 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:54:24 -0000 Hi, On Thu, 2006-06-22 at 21:00 +0200, 貀stein Johansen wrote: > I've just made a small glib code that read commands from from a command > line interface prompt. It uses g_main_loop and a g_io_channel. I've > attached the code. > > First: > It nearly works as expected. The callback is called each time I enter a > command, and it's parsed to the command handler. However, I want to > expand this to system to use automatic string completion, (the system > provided in glib), for all available commands. That sounds like fun. When you have something ready and are willing to put it under the GPL, I think it would be interesting to add this code for the GIMP Script-Fu text console mode. The current code needs an overhaul anyway and it would be sweet to have command completion. Sven From linuxhippy@gmail.com Fri Jun 23 06:06:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FFCC3B0231 for ; Fri, 23 Jun 2006 06:06:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01577-01 for ; Fri, 23 Jun 2006 06:06:08 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.202]) by menubar.gnome.org (Postfix) with ESMTP id DB91E3B01D8 for ; Fri, 23 Jun 2006 06:06:07 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so316956hue for ; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.138.14 with SMTP id l14mr1205881hud; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Message-ID: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> Date: Fri, 23 Jun 2006 12:06:06 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.423 tagged_above=-999 required=2 tests=[AWL=-0.381, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.423 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:06:10 -0000 1.) Is this really nescessary? This guy has performance problems on windows asking for help (well, maybe a bit indirect) ... and this is what he gets. Go to QT's bugzilla and search for performance bugs .... 2.) How could he profile it. I asked two times for ways to find out which operations are done in software fallbacks (on X) on this list, no reply. For a non-profgessional profiling GTK and all the stuff it is surrounded by is not trivial and well without no help ... It seems there is not even interrest in speeding up GTK2. lg > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! From tml@iki.fi Fri Jun 23 06:22:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F0CC3B012A for ; Fri, 23 Jun 2006 06:22:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02739-05 for ; Fri, 23 Jun 2006 06:22:24 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 288523B045A for ; Fri, 23 Jun 2006 06:22:23 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id B4B61216477; Fri, 23 Jun 2006 13:22:19 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.49363.293000.582022@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 13:22:11 +0300 To: "Clemens Eisserer" Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.335 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.335 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:22:25 -0000 Clemens Eisserer writes: > 1.) Is this really nescessary? > This guy has performance problems on windows asking for help (well, > maybe a bit indirect) ... and this is what he gets. I am sorry for being a but rude, but I found his mail more of an accusation than a question. > Go to QT's bugzilla and search for performance bugs .... Why? Are the underlying assumptions and historical background of GTK+ and QT at all comparable? > For a non-profgessional profiling GTK and all the stuff it is > surrounded by is not trivial and well without no help ... If one would ask specific question like "I draw 100000 line segments with separate gdk_draw_line() calls, and it's too slow on Win32" one might get better help. --tml From linuxhippy@gmail.com Fri Jun 23 07:33:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 003FB3B03A7 for ; Fri, 23 Jun 2006 07:33:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06705-03 for ; Fri, 23 Jun 2006 07:33:14 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id C32AC3B0061 for ; Fri, 23 Jun 2006 07:33:13 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so327531hue for ; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.157.15 with SMTP id f15mr1224696hue; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Message-ID: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> Date: Fri, 23 Jun 2006 13:33:12 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.49363.293000.582022@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.313 tagged_above=-999 required=2 tests=[AWL=-0.348, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.313 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 11:33:15 -0000 First of all thanks a lot for doing that much work porting GTK to windows. I can't count how many apps I've used myself on windows-pcs which were able to run because of your work. > If one would ask specific question like "I draw 100000 line segments > with separate gdk_draw_line() calls, and it's too slow on Win32" one > might get better help. I installed gimp on some win-xp computers in the company I work for (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These are very much the issues I have on linux but more "visible". Its the UI, menus, window resizing, layout changes or repaint-events sent to the window because its content was invalidated. I can't say wether its really slow or just feels so, maybe the graphic card driver had an influence (nvidia gf4 mx4000) or some other circumstances were not optimal. I simply never did care that much simply because I don't use/like this planform. Its just hard to know whats going wrong, especially if someone is no gtk insider. lg Clemens From linuxhippy@gmail.com Sat Jun 24 06:27:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 803AF3B00EA for ; Sat, 24 Jun 2006 06:27:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06912-07 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 173283B0132 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so449148hue for ; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1550801hue; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Message-ID: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> Date: Sat, 24 Jun 2006 12:27:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.745 tagged_above=-999 required=2 tests=[AWL=0.193, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -1.745 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 10:27:37 -0000 Hello again, I did some further testing and found that even the gtk-demo part "paned widgets" show such low performance if the panes are as large as the whole screen. I further talked to an nvidia driver developer which also analysed the situation and got a profile very similar to mine. This is what he replied: [quote]So I guess I didn't reproduce your problem. In my case, the reason so much time is spent in software solid fills and copies is that GTK seems to create and destroy pixmaps at a fantastic rate. In fact, it creates and destroys a pixmap every time it blinks the cursor. Pixmaps start out in system memory and are only migrated to video memory after they've been used for a while. This means that creating pixmaps, doing two or three rendering operations, and then destroying them is a sure-fire way to make your rendering fall back to software. Future drivers will have an InitialPixmapPlacement nvidia-settings attribute so people can try tweaking this behavior. If I use that to force pixmaps to start in video RAM, then profiling shows that most of the time is spent waiting for the GPU.[/quote] Does even the default theme uses pixmaps for all and everything? Any ideas where to look into this? Thank you in advance, lg Clemens 2006/6/21, Valdis.Kletnieks@vt.edu : > On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > > > I did some oprofiling, however I don't have a vmlinz-file handy so its > > quite a bit useless: > > 5558 39.2930 no-vmlinux > > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. > > > 2116 14.9593 libfb.so > > 1319 9.3248 nvidia_drv.so > > 1031 7.2888 Xorg > > 603 4.2630 libqt-mt.so.3.3.5 > > 550 3.8883 libc-2.4.so > > 470 3.3227 libgobject-2.0.so.0.800.5 > > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) > > samples % image name app name symbol name > 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line > 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process > 5232 6.7536 libfb.so libfb.so (no symbols) > 4834 6.2398 Xorg Xorg (no symbols) > 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop > 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X > 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy > 2172 2.8037 vmlinux vmlinux get_page_from_freelist > 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock > 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock > 1359 1.7542 nvidia nvidia (no symbols) > 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel > 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup > > (or, done by shared library: > > 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 > 10538 13.6027 vmlinux > 5594 7.2209 libc-2.4.90.so > 5377 6.9408 libgobject-2.0.so.0.1102.1 > 5232 6.7536 libfb.so > 4953 6.3934 Xorg > 4784 6.1753 nvidia_drv.so > 3933 5.0768 libpthread-2.4.90.so > > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... > > You probably mentioned it before, but what GTK2 theme are you using? > > > From itsme_515@hotmail.com Sat Jun 24 22:59:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D2E4A3B0165 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14000-06 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from hotmail.com (bay109-f20.bay109.hotmail.com [64.4.19.30]) by menubar.gnome.org (Postfix) with ESMTP id DDB273B00C4 for ; Sat, 24 Jun 2006 22:59:13 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 24 Jun 2006 19:57:12 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Sun, 25 Jun 2006 02:57:07 GMT X-Originating-IP: [63.175.166.181] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <449B14BA.4030509@gnubg.org> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Sat, 24 Jun 2006 21:57:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Jun 2006 02:57:12.0485 (UTC) FILETIME=[0EA7F550:01C69803] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.178 tagged_above=-999 required=2 tests=[AWL=-2.085, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.178 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 02:59:15 -0000 Folks, so I figured it out: turns out that there is what I believe a bug (or a feature) in g_list_insert_sorted -- if the list is null, even then it goes off to sort. This should not happen. If the list is NULL, it should just add to the list. Many thanks and best wishes, Aarem _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From torriem@chem.byu.edu Sun Jun 25 01:12:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 757323B0079 for ; Sun, 25 Jun 2006 01:12:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17632-03 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by menubar.gnome.org (Postfix) with ESMTP id 5E5773B00A6 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (sccrmhc13) with ESMTP id <2006062505113001300mgu3se>; Sun, 25 Jun 2006 05:11:31 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5P5BTrC002542 for ; Sat, 24 Jun 2006 23:11:30 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5P5BOTq002537 for gtk-list@gnome.org; Sat, 24 Jun 2006 23:11:24 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: proggressbar.. From: Michael Torrie To: gtk-list@gnome.org In-Reply-To: References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 24 Jun 2006 23:11:24 -0600 Message-Id: <1151212284.32440.16.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.416 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.416 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 05:12:17 -0000 On Thu, 2006-06-22 at 11:08 +0530, Yogesh Arora wrote: > is that just due to tall claims he is making...or has it got something > to do with india I doubt it has to do with India. I have recently noticed a number of posts from people for whom English is not their native language to this list, posts containing questions that are extremely unclear. It could very well be the language barrier, but several of these posts appear to be asking us to do the work for someone, rather than wanting to read the docs, tutorials, and example code. It is those posts that appear to be demanding that we do their work for them that draw reactions such as this one. Michael > > From yeti@physics.muni.cz Sun Jun 25 03:23:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628F93B0374 for ; Sun, 25 Jun 2006 03:23:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21579-03 for ; Sun, 25 Jun 2006 03:23:22 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8AEA53B030F for ; Sun, 25 Jun 2006 03:23:21 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P7MWuA020910 for ; Sun, 25 Jun 2006 09:22:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id A7E5223D5E; Sun, 25 Jun 2006 09:22:32 +0200 (CEST) Date: Sun, 25 Jun 2006 09:22:33 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060625072233.GK2296@potato.chello.upc.cz> References: <449B14BA.4030509@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 07:23:23 -0000 On Sat, Jun 24, 2006 at 09:57:07PM -0500, Aar Em wrote: > Folks, so I figured it out: turns out that there is what I believe a bug (or > a feature) in g_list_insert_sorted -- if the list is null, even then it goes > off to sort. It does no such thing and never did: http://cvs.gnome.org/viewcvs/glib/glib/glist.c?rev=1.35&view=log > If the list is NULL, it should just add > to the list. And that's exactly what it does since ever. Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Sun Jun 25 05:16:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32E853B01D0 for ; Sun, 25 Jun 2006 05:16:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07093-07 for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: from smtp.poczta.interia.pl (unknown [80.48.65.7]) by menubar.gnome.org (Postfix) with ESMTP id A627E3B013D for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id CEE8237485A; Sun, 25 Jun 2006 11:15:17 +0200 (CEST) Received: from poczta.interia.pl (f30.poczta.interia.pl [10.217.2.30]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 544FC3747D7 for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 4773210C018; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 2006310C00F for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Date: 25 Jun 2006 11:15:12 +0200 From: hm Subject: GtkImage simple question, please help To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060625091512.2006310C00F@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.137 tagged_above=-999 required=2 tests=[AWL=-0.734, BAYES_20=-0.74, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.137 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 09:16:14 -0000 =0AHi !=0A=0A I`ve got a question. Let`s have this piece of code :=0A=0A= =0A...=0A=0A GtkWidget * image1;=0A GtkWidget * button;=0A ...=0A butto= n =3D gtk_button_new ();=0A image =3D gtk_image_new_from_file ( PATH );=0A= gtk_button_set_image ( GTK_BUTTON ( button), image1 );=0A =0Aquestions a= re :=0A=0A* if i`ll call gtk_image_clear (image) .. will it dispose memory = reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap= ? =0A=0A* if answer for previous question is no, it will not dispose the m= emory, then how it is possible to change image inside button ? From yeti@physics.muni.cz Sun Jun 25 06:03:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 047A73B00C9 for ; Sun, 25 Jun 2006 06:03:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08827-02 for ; Sun, 25 Jun 2006 06:03:06 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D10853B008F for ; Sun, 25 Jun 2006 06:03:05 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P9kCR0012281 for ; Sun, 25 Jun 2006 11:46:13 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 840F923D5E; Sun, 25 Jun 2006 11:46:12 +0200 (CEST) Date: Sun, 25 Jun 2006 11:46:14 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: GtkImage simple question, please help Message-ID: <20060625094614.GN2296@potato.chello.upc.cz> References: <20060625091512.2006310C00F@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060625091512.2006310C00F@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 10:03:08 -0000 On Sun, Jun 25, 2006 at 11:15:12AM +0200, hm wrote: > > * if i`ll call gtk_image_clear (image) .. will it dispose memory reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap ? gtk_image_clear() clears the image, therefore the image releases the reference the image holds to the displayed pixbuf (or other objects). But the image will still *exist*, it will be just empty. > * if answer for previous question is no, it will not dispose the memory, then how it is possible to change image inside button ? By setting another image. The button then releases the reference it holds to the old image -- and in the described scenario nothing else holds a reference to it, therefore it will be finalized. Please read the refcounting parts in GObject API docs and GObject tutorial -- and of GtkObject too as although the methods are superseded by GObject methods the intro is more comprehensible (IMO). Yeti -- Anonyms eat their boogers. From suryakiran.gullapalli@gmail.com Sun Jun 25 11:51:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E43F33B008C for ; Sun, 25 Jun 2006 11:51:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19785-07 for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 389173B008F for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id m22so1138082nzf for ; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.36.252.42 with SMTP id z42mr6653491nzh; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Message-ID: <3462bcdb0606250851v35bce67mf725816429f52603@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:09 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Theme engine tutorial. In-Reply-To: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4916_21889957.1151250669841" References: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.729, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:51:36 -0000 ------=_Part_4916_21889957.1151250669841 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_4916_21889957.1151250669841 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_4916_21889957.1151250669841-- From suryakiran.gullapalli@gmail.com Sun Jun 25 11:52:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24C333B008C for ; Sun, 25 Jun 2006 11:52:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20036-02 for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id AB5653B008F for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 40so1027430nzk for ; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.2.65 with SMTP id e65mr6484642nzi; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Message-ID: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:49 +0530 From: "Surya Kiran Gullapalli" To: gtkmm-list@gnome.org, gtk-list@gnome.org Subject: Font Path In-Reply-To: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4920_12764368.1151250709216" References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.439 tagged_above=-999 required=2 tests=[AWL=-0.468, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.439 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:52:27 -0000 ------=_Part_4920_12764368.1151250709216 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_4920_12764368.1151250709216 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_4920_12764368.1151250709216-- From pocmatos@gmail.com Sun Jun 25 12:17:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D32D3B00BB for ; Sun, 25 Jun 2006 12:17:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20843-01 for ; Sun, 25 Jun 2006 12:17:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 04EF43B008C for ; Sun, 25 Jun 2006 12:17:50 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so1536173nzh for ; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.224.8 with SMTP id w8mr1383704nzg; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.66.9 with HTTP; Sun, 25 Jun 2006 09:17:35 -0700 (PDT) Message-ID: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> Date: Sun, 25 Jun 2006 17:17:35 +0100 From: "Paulo J. Matos" To: gtk-list@gnome.org Subject: Using GTK+ with C++ MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.404 tagged_above=-999 required=2 tests=[AWL=-0.158, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.404 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: pocm@sat.inesc-id.pt List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 16:17:53 -0000 Hi all, I know about gtkmm but if I wish to use GTK+ directly, can I do it through C++? Is anyone doing this? Are there any 'tricks' I should know about beyond having to extern "C" the includes of gtk header files? Cheers, -- Paulo Jorge Matos - pocm at sat inesc-id pt Web: http://sat.inesc-id.pt/~pocm Computer and Software Engineering INESC-ID - SAT Group From jcupitt@gmail.com Sun Jun 25 14:02:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A39383B0018 for ; Sun, 25 Jun 2006 14:02:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24527-04 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id 632163B0079 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so538377uge for ; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1804088hue; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.129.2 with HTTP; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Message-ID: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> Date: Sun, 25 Jun 2006 19:02:21 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 18:02:23 -0000 On 6/24/06, Clemens Eisserer wrote: > [quote]So I guess I didn't reproduce your problem. In my case, the > reason so much time is spent in software solid fills and copies is > that GTK seems to create and destroy pixmaps at a fantastic rate. In > fact, it creates and destroys a pixmap every time it blinks the > cursor. Pixmaps start out in system memory and are only migrated to > video memory after they've been used for a while. This means that > creating pixmaps, doing two or three rendering operations, and then > destroying them is a sure-fire way to make your rendering fall back to > software. Future drivers will have an InitialPixmapPlacement > nvidia-settings attribute so people can try tweaking this behavior. If > I use that to force pixmaps to start in video RAM, then profiling > shows that most of the time is spent waiting for the GPU.[/quote] > > Does even the default theme uses pixmaps for all and everything? That's interesting. gtk2 uses pixmaps for double buffering ... for each expose rectangle, it will create an off-screen pixmap, ask all relevant widgets to paint to that, then at the end of expose, paint the off-screen pixmap on the display. I think it can potentially create and destroy quite a lot of pixmaps in a single expose operation. You could try making a test program and turning off double buffering for some widgets: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 John From oystein@gnubg.org Sun Jun 25 16:42:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33D083B0119 for ; Sun, 25 Jun 2006 16:42:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00506-08 for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id A0BBC3B000C for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00KQ1O5QACC0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00I0YO5PEJ33@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Date: Sun, 25 Jun 2006 22:41:43 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <17562.62051.621000.757828@gargle.gargle.HOWL> To: Tor Lillqvist Message-id: <449EF507.2010707@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig87FEA3859F86E18D841D879D X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, TW_LQ=0.077] X-Spam-Score: -2.525 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:42:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig87FEA3859F86E18D841D879D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tor Lillqvist wrote: > =D8ystein Johansen writes: > > However, I want to expand this to system to use automatic string > > completion, (the system provided in glib), for all available > > commands. Now it only handles command as I press enter. I guess I > > need a extra callback for each keypress. This callback can check if > > I press and then call g_completion_complete(), but how do I > > attach such a signal to the main loop? >=20 > Ah, I forgot to answer this part. I am afraid you might run into > difficulty in doing this on Win32. >=20 > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > it's actually quite similar to Unix, and you can do > character-at-a-time input, and your own echo processing. Maybe all you > need to do is something like >=20 > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); >=20 > and it will Just Work?=20 Wow! I just tried this, and it does indeed Just Work! Thanks. I must handle all the characters like backspace and return and so on, but it works... But, it doesn't work on linux.... How can I get character-at-a-time input from a linux console? -=D8ystein --------------enig87FEA3859F86E18D841D879D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEnvUK6kDTFPhwyqYRAtpuAJsEnbvESOizT1xs0ast/iphrHPtpgCdEMi2 fxlkPGgv32vw8JOoa44jBiE= =Hnzr -----END PGP SIGNATURE----- --------------enig87FEA3859F86E18D841D879D-- From linuxhippy@gmail.com Sun Jun 25 16:54:58 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A65A53B00E7 for ; Sun, 25 Jun 2006 16:54:58 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01177-05 for ; Sun, 25 Jun 2006 16:54:56 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 718C23B0079 for ; Sun, 25 Jun 2006 16:54:55 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so595935hue for ; Sun, 25 Jun 2006 13:54:38 -0700 (PDT) Received: by 10.78.167.12 with SMTP id p12mr1824154hue; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Message-ID: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> Date: Sun, 25 Jun 2006 22:54:37 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.427, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:54:58 -0000 Hello John, Thanks a lot for answering. I created a sample program which contains two buttons in a (horizontally) paned window. When I maximize the window and resize the panes I get very slow resizing, however when setting all involved widgets unbuffered resizing is fast (but painting is done with artifacts). Also the profile looks very different: With doublebuffering enabled: 3298 36.0398 libfb.so (no symbols) 1710 18.6865 nvidia_drv.so _nv000805X Widthout doublebuffering: 1974 19.1632 libcairo.so.2.2.3 (no symbols) 1535 14.9015 Xorg (no symbols) 1083 10.5135 libfb.so (no symbols) So there's still some software rendering involved but its _way_ better. I am currently hitting a deadline in a java project, so I'll busy the next 1-2 weeks, however I would really like to get my hands on the buffer manager, do you think theres a chance to get it in (if its well written and stylish correct). I like tuning code, although I've to admit my C/Unix knowledge is rusty, however then its a good training. lg Clemens > That's interesting. gtk2 uses pixmaps for double buffering ... for > each expose rectangle, it will create an off-screen pixmap, ask all > relevant widgets to paint to that, then at the end of expose, paint > the off-screen pixmap on the display. I think it can potentially > create and destroy quite a lot of pixmaps in a single expose > operation. > > You could try making a test program and turning off double buffering > for some widgets: > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > John > From yeti@physics.muni.cz Sun Jun 25 17:09:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2201E3B00C7 for ; Sun, 25 Jun 2006 17:09:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01871-06 for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 3E1553B000C for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5PL9Wtb021542 for ; Sun, 25 Jun 2006 23:09:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1AF7F23D5E; Sun, 25 Jun 2006 23:09:32 +0200 (CEST) Date: Sun, 25 Jun 2006 23:09:36 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Message-ID: <20060625210936.GP2296@potato.chello.upc.cz> References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <449EF507.2010707@gnubg.org> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:09:40 -0000 On Sun, Jun 25, 2006 at 10:41:43PM +0200, ?ystein Johansen wrote: > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? Wouldn't it be better to use GNU readline, at least on Linux? It would give users all the editing operations they are used to and honour their settings. I admit the integration of readline to GLib main loop can be tricky (I think about a second thread which whould just feed complete lines to a pipe managed with GIOChannel on the receiving end), but it can be still more elegant than reimplementation of line editting from scratch. Yeti -- Anonyms eat their boogers. From chris@cvine.freeserve.co.uk Sun Jun 25 17:43:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E5443B0104 for ; Sun, 25 Jun 2006 17:43:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03755-03 for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 843BA3B000C for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 92D711C00089; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 6AFFA1C00088; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) X-ME-UUID: 20060625214312438.6AFFA1C00088@mwinf3012.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PLhBtx004287; Sun, 25 Jun 2006 22:43:11 +0100 From: Chris Vine To: gtk-list@gnome.org, pocm@sat.inesc-id.pt Subject: Re: Using GTK+ with C++ Date: Sun, 25 Jun 2006 22:43:10 +0100 User-Agent: KMail/1.9.1 References: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> In-Reply-To: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606252243.10889.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.323 tagged_above=-999 required=2 tests=[AWL=-1.072, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.323 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:43:15 -0000 On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > Hi all, > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > through C++? Is anyone doing this? Are there any 'tricks' I should > know about beyond having to extern "C" the includes of gtk header > files? They are already declared extern "C" if compiled for a C++ program. There is nothing you need to know - just use them. Chris From chris@cvine.freeserve.co.uk Sun Jun 25 18:28:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D960A3B0122 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05775-02 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id EB0203B013D for ; Sun, 25 Jun 2006 18:28:45 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 9E2E71C00083; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 711621C00082; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) X-ME-UUID: 20060625222840463.711621C00082@mwinf3011.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PMSdtx004517; Sun, 25 Jun 2006 23:28:39 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Date: Sun, 25 Jun 2006 23:28:39 +0100 User-Agent: KMail/1.9.1 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> In-Reply-To: <449EF507.2010707@gnubg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200606252328.39192.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.232 tagged_above=-999 required=2 tests=[AWL=-0.045, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_LQ=0.077] X-Spam-Score: -2.232 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 22:28:47 -0000 On Sunday 25 June 2006 21:41, 貀stein Johansen wrote: > Tor Lillqvist wrote: [snip] > > Ah, I forgot to answer this part. I am afraid you might run into > > difficulty in doing this on Win32. > > > > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > > it's actually quite similar to Unix, and you can do > > character-at-a-time input, and your own echo processing. Maybe all you > > need to do is something like > > > > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > > mode &= ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); > > > > and it will Just Work? > > Wow! I just tried this, and it does indeed Just Work! Thanks. I must > handle all the characters like backspace and return and so on, but it > works... > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? If you are not using an event based toolkit such as GDK/GTK+ for handling the keyboard, then you will have to code on a platform specific basis. If you want to code for a Linux/Unix console and you are using the glib main loop then the easiest thing is to use curses with non-blocking input (see the cbreak() and nodelay() calls) and poll it in a timer event you have set up with g_timeout_add(). If you are feeling adventurous you can dispense with curses and use the termios/tcgetattr()/tcsetattr() interface directly and set up the console that way. If you have no other reason to use the glib main loop (and there are plenty of reasons why you might want to use it), you can make your own program loop with select() and an appropriate timeout which polls the keyboard; or if all you are interested in is keyboard events, you can put curses in single extraction (cbreak) mode but with blocking input (or the equivalent with termios) and use that as your event loop. Chris From torriem@chem.byu.edu Sun Jun 25 20:45:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F2DA53B016F for ; Sun, 25 Jun 2006 20:45:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12049-09 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [216.148.227.153]) by menubar.gnome.org (Postfix) with ESMTP id 957B23B0199 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (rwcrmhc13) with ESMTP id <20060626003351m1300g4ie2e>; Mon, 26 Jun 2006 00:33:51 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5Q0XjV3017707; Sun, 25 Jun 2006 18:33:45 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5Q0XiQj017703; Sun, 25 Jun 2006 18:33:44 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: Font Path From: Michael Torrie To: Surya Kiran Gullapalli In-Reply-To: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 25 Jun 2006 18:33:44 -0600 Message-Id: <1151282024.32440.29.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.377 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.377 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 00:45:16 -0000 On Sun, 2006-06-25 at 21:21 +0530, Surya Kiran Gullapalli wrote: > Hi, > I'm trying to understand the gtk code. I've a question regarding font > path. > What is the font path, gtk application is looking into when one open a > font selection dialog. > > This question arose, due to the fact that garnome ships with bitstream > vera fonts, and when you install it, it goes into the installation > directory ($PREFIX/share... etc) > But when opened a font selection dialog, it shows all the available > fonts on the machine. > > Also if i'm shipping a new application with a new font, and say, i've > to ship this font also. where should i put that font. Also please let > me know if i need to set any environment variables. Fonts are not GTK specific. On Unix (X11) fonts should be installed to $HOME/.fonts If you install fonts to another place on the system, you need to modify the config file in /etc/fonts/fonts.conf and set up the path. For more information, see the specifications at freedesktop.org (fontconfig). Michael > > > Surya > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yeajchao@yahoo.com.cn Sun Jun 25 22:36:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79C833B00D9 for ; Sun, 25 Jun 2006 22:36:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16386-06 for ; Sun, 25 Jun 2006 22:36:52 -0400 (EDT) Received: from web15101.mail.cnb.yahoo.com (web15101.mail.cnb.yahoo.com [202.165.103.70]) by menubar.gnome.org (Postfix) with SMTP id 5BEF03B00A9 for ; Sun, 25 Jun 2006 22:36:50 -0400 (EDT) Received: (qmail 93283 invoked by uid 60001); 26 Jun 2006 02:36:39 -0000 Message-ID: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Received: from [221.8.12.141] by web15101.mail.cnb.yahoo.com via HTTP; Mon, 26 Jun 2006 10:36:39 CST Date: Mon, 26 Jun 2006 10:36:39 +0800 (CST) From: yeajchao Subject: =?gb2312?q?=BB=D8=B8=B4=A3=BA=20Re:=20Using=20GTK+=20with=20C++?= To: gtk-list@gnome.org In-Reply-To: <200606252243.10889.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.53 tagged_above=-999 required=2 tests=[AWL=-1.533, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: 0.53 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 02:36:53 -0000 hello when i using gtk+ with c++,how can i compile my application? --- Chris Vine 写道: > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > Hi all, > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > through C++? Is anyone doing this? Are there any 'tricks' I should > > know about beyond having to extern "C" the includes of gtk header > > files? > > They are already declared extern "C" if compiled for a C++ program. There is > > nothing you need to know - just use them. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ___________________________________________________________ 雅虎免费邮箱-3.5G容量,20M附件 http://cn.mail.yahoo.com/ From laowenbo@gmail.com Sun Jun 25 23:23:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBB8B3B0185 for ; Sun, 25 Jun 2006 23:23:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18438-05 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id 898803B0199 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so1299223pyf for ; Sun, 25 Jun 2006 20:23:32 -0700 (PDT) Received: by 10.35.129.19 with SMTP id g19mr5477137pyn; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Received: by 10.35.103.18 with HTTP; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2006 11:23:31 +0800 From: "lao wb" To: "=?ISO-8859-2?Q?David_Ne=E8as_(Yeti)?=" Subject: Re: Drawing images ( with transparency ) one on another In-Reply-To: <20060619104132.GW2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_47883_15491290.1151292211820" References: <20060619093509.DC2132E5C98@poczta.interia.pl> <20060619104132.GW2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.025 tagged_above=-999 required=2 tests=[AWL=0.073, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.025 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 03:23:34 -0000 ------=_Part_47883_15491290.1151292211820 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline SGksCiAgICBJIG5lZWQgZG8gdGhpcyB0b28gYnV0IGhhdmUgbm90IHN1Y2NlZWRlZCB5ZXQuIEkg dHJ5IHRvIHVzZQpnZGtfZHJhd19waXhidWYgYW5kIGdka19waXhidWZfY29tcG9zaXRlIGluIGV4 cG9zZSBldmVudCBoYW5kbGVyLCBidXQgaXQKc3RpbGwgZG9lc24ndCB3b3JrLiBJIHJlYWxseSBu ZWVkIGhlbHAgdG8gbWFrZSBteSB0ZXN0IGNvZGUgd29yay4KCkxhb3diCgojaW5jbHVkZSA8Z3Rr L2d0ay5oPgojZGVmaW5lIFNURF9XSURUSCAgICA2ODAKI2RlZmluZSBTVERfSEVJR0hUICA0ODAK CnN0YXRpYyBHZGtQaXhidWYgKiBzX2Jhc2VQaXg7CnN0YXRpYyBHZGtQaXhidWYgKiBzX2hvbWVN ZW51UGl4OwoKZ2Jvb2xlYW4gb25fZXhwb3NlKEd0a1dpZGdldCAqIHdpZGdldCwKICAgICAgICAg ICAgICAgICAgIEdka0V2ZW50RXhwb3NlICogcHMsCiAgICAgICAgICAgICAgICAgICBncG9pbnRl ciBkYXRhKQp7CiAgICBnZGtfcGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LAogICAgICAg ICAgICAgICAgICAgICAgICAgc19iYXNlUGl4LCAwLCAwLCBTVERfV0lEVEgsIFNURF9IRUlHSFQs IDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICBHREtfSU5URVJQX05FQVJFU1Qs IDApOwoKICAgIGdka19kcmF3X3BpeGJ1Zih3aWRnZXQtPndpbmRvdywgd2lkZ2V0LT5zdHlsZS0+ YmdfZ2NbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgc19ob21lTWVudVBp eCwgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAgICBTVERfV0lEVEgsCiAgICAgICAgICAg ICAgICAgICAgU1REX0hFSUdIVCwKICAgICAgICAgICAgICAgICAgICBHREtfUkdCX0RJVEhFUl9O T1JNQUwsCiAgICAgICAgICAgICAgICAgICAgMCwgMCk7CiAgICByZXR1cm4gRkFMU0U7Cn0KCgpp bnQgbWFpbihpbnQgYXJnYywgY2hhciAqIGFyZ3ZbXSkKewogICAgR3RrV2lkZ2V0ICogbWFpbldu ZCAgICAgICAgPSBOVUxMOwogICAgR2RrRHJhd2FibGUgKiAgICBwaXhNYXAgICAgPSBOVUxMOwog ICAgR3RrV2lkZ2V0ICogaW1nICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYm94 ICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYnV0dG9uICAgICAgICA9IE5VTEw7 CiAgICBHdGtBZGp1c3RtZW50ICogdmFkaiAgICA9IE5VTEw7CiAgICBHdGtBZGp1c3RtZW50ICog aGFkaiAgICA9IE5VTEw7CiAgICBHZGtCaXRtYXAgICAgICAqIG1zayAgICAgICAgPSBOVUxMOwog ICAgR2RrQml0bWFwICogaG9tZU1lbnUgICAgPSBOVUxMOwoKICAgIGd0a19pbml0KCZhcmdjLCAm YXJndik7CgogICAgbWFpblduZCA9IGd0a193aW5kb3dfbmV3KEdUS19XSU5ET1dfVE9QTEVWRUwp OwoKICAgIGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19XSU5ET1cobWFpblduZCksICJ0ZXN0IGRy YXcuLi5cbiIpOwoKICAgIGd0a19zaWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAi ZGVzdHJveSIsIGd0a19tYWluX3F1aXQsIE5VTEwpOwoKICAgIGltZyA9IGd0a19pbWFnZV9uZXco KTsKICAgIGd0a19jb250YWluZXJfYWRkKEdUS19DT05UQUlORVIobWFpblduZCksIGltZyk7CiAg ICBndGtfc2lnbmFsX2Nvbm5lY3QoR1RLX09CSkVDVChpbWcpLAogICAgICAgICAgICAgICAgICAg ICAgICJleHBvc2UtZXZlbnQiLAogICAgICAgICAgICAgICAgICAgICAgIEdUS19TSUdOQUxfRlVO Qyhvbl9leHBvc2UpLAogICAgICAgICAgICAgICAgICAgICAgIE5VTEwpOwoKICAgIGd0a19jb250 YWluZXJfc2V0X2JvcmRlcl93aWR0aChHVEtfQ09OVEFJTkVSKG1haW5XbmQpLCA1KTsKCiAgICBn dGtfd2lkZ2V0X3Nob3dfYWxsKG1haW5XbmQpOwoKICAgIGhvbWVNZW51ID0gZ2RrX3BpeG1hcF9j cmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93LAogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAmbXNrLAoKJm1haW5XbmQtPnN0eWxlLT5iZ1tHVEtfU1RBVEVfTk9S TUFMXSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImY6L2hvbWVt ZW51LmJtcCIpOyAvKiBhbHBoYQpjaGFubmVsIGJpdG1hcCovCiAgICBzX2hvbWVNZW51UGl4ID0K ICAgIGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgaG9tZU1lbnUsCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGdka19jb2xvcm1hcF9nZXRfc3lzdGVtKCksCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IFNURF9XSURUSCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU1REX0hFSUdIVCk7 CgogICAgcGl4TWFwID0gZ2RrX3BpeG1hcF9jcmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93 LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJm1zaywKCiZtYWluV25k LT5zdHlsZS0+YmdbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAiZjovU3Vuc2V0LmJtcCIpOyAvKiBubyBhbHBoYQpjaGFubmVsIGJpdG1h cCovCiAgICBzX2Jhc2VQaXggPQogICAgZ2RrX3BpeGJ1Zl9nZXRfZnJvbV9kcmF3YWJsZShzX2Jh c2VQaXgsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpeE1hcCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgZ2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgU1REX1dJRFRILAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBTVERfSEVJR0hUKTsKCiAgICBndGtfbWFpbigpOwoKICAgIHJldHVybiAwOwp9CgoyMDA2LzYv MTksIERhdmlkIE5l6GFzIChZZXRpKSA8eWV0aUBwaHlzaWNzLm11bmkuY3o+Ogo+Cj4gT24gTW9u LCBKdW4gMTksIDIwMDYgYXQgMTE6MzU6MDlBTSArMDIwMCwgaG0gd3JvdGU6Cj4gPgo+ID4gICBJ YHZlIGdvdCBhIHByb2JsZW0uIElgdmUgZ290IHR3byBzZXBhcmF0ZSBpbWFnZXMuIE9uZSBpcyBi YWNrZ3JvdW5kCj4gZm9yICB0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRy YW5zcGFyZW50LiBUaGVyZSBpcyBhbHNvIHRhYmxlLgo+IFF1ZXN0aW9uIGlzIDogaG93IHRvIGRy YXcgaW4gb25lIG9mIHRoZSB0YWJsZWBzIGNlbGxzIHRoZSBiYWNrZ3Jhb3VuZCwgYW5kCj4gb24g dGhpcyBiYWNrZ3JvdW5kICggYXMgYSBzZWNvbmQgbGF5ZXIgKSBzZWNvbmQgaW1hZ2UgKHRyYW5z cGFyZW50KSA/ICBJCj4ga25vdyAoIG9mIGNvdXJzZSApIGhvdyB0byBjcmVhdGUgaW1hZ2VzLCB0 YWJsZXMuCj4KPiBFaXRoZXIgdXNlIGdka19kcmF3X3BpeGJ1ZigpIGlmIHRoZSBjb3JyZWN0IG9y ZGVyIChmaXJzdAo+IGJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudAo+IGhhbmRsZXIsIG9yIHVzZSBnZGtfcGl4YnVmX2NvbXBvc2l0ZSgpIGFuZCBk cmF3IHRoZSBmaW5hbAo+IGltYWdlLgo+Cj4gWWV0aQo+Cj4KPiAtLQo+IEFub255bXMgZWF0IHRo ZWlyIGJvb2dlcnMuCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18KPiBndGstbGlzdCBtYWlsaW5nIGxpc3QKPiBndGstbGlzdEBnbm9tZS5vcmcKPiBodHRw Oi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdAo+Cg== ------=_Part_47883_15491290.1151292211820 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: base64 Content-Disposition: inline SGksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgSSBuZWVkIGRvIHRoaXMgdG9vIGJ1dCBoYXZlIG5v dCBzdWNjZWVkZWQgeWV0LiBJIHRyeSB0byB1c2UgZ2RrX2RyYXdfcGl4YnVmIGFuZCBnZGtfcGl4 YnVmX2NvbXBvc2l0ZSBpbiBleHBvc2UgZXZlbnQgaGFuZGxlciwgYnV0IGl0IHN0aWxsIGRvZXNu J3Qgd29yay4gSSByZWFsbHkgbmVlZCBoZWxwIHRvIG1ha2UgbXkgdGVzdCBjb2RlIHdvcmsuPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Ckxhb3diPGJyPjxicj4jaW5jbHVkZSAmbHQ7Z3RrL2d0 ay5oJmd0Ozxicj4jZGVmaW5lIFNURF9XSURUSCZuYnNwOyZuYnNwOyZuYnNwOyA2ODA8YnI+I2Rl ZmluZSBTVERfSEVJR0hUJm5ic3A7IDQ4MDxicj48YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfYmFz ZVBpeDs8YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfaG9tZU1lbnVQaXg7PGJyPjxicj5nYm9vbGVh biBvbl9leHBvc2UoR3RrV2lkZ2V0ICogd2lkZ2V0LCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBHZGtFdmVudEV4cG9zZSAqIHBzLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBncG9pbnRlciBkYXRhKTxicj57PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBnZGtf cGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtzX2Jhc2VQaXgsIDAsIDAs IFNURF9XSURUSCwgU1REX0hFSUdIVCwgMCwgMCwgMCwgMCw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7R0RLX0lOVEVSUF9O RUFSRVNULCAwKTs8YnI+Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ2RrX2RyYXdfcGl4YnVmKHdp ZGdldC0mZ3Q7d2luZG93LCB3aWRnZXQtJmd0O3N0eWxlLSZndDtiZ19nY1tHVEtfU1RBVEVfTk9S TUFMXSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyBzX2hvbWVNZW51 UGl4LCAwLCAwLCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyBTVERfV0lEVEgsIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7IFNU RF9IRUlHSFQsPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgR0RLX1JH Ql9ESVRIRVJfTk9STUFMLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAwLCAwKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJldHVybiBGQUxTRTs8YnI+fTxicj48YnI+ PGJyPmludCBtYWluKGludCBhcmdjLCBjaGFyICogYXJndltdKTxicj57PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyBHdGtXaWRnZXQgKiBtYWluV25kJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtEcmF3YWJsZSAqJm5ic3A7 Jm5ic3A7Jm5ic3A7IHBpeE1hcCZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZu YnNwOyZuYnNwOyBHdGtXaWRnZXQgKiBpbWcmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7 Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsg R3RrV2lkZ2V0ICogYm94Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgPSBOVUxMOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgR3RrV2lkZ2V0ICog YnV0dG9uJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZu YnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogdmFkaiZuYnNwOyZuYnNwOyZuYnNwOyA9 IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogaGFkaiZuYnNwOyZu YnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7ICogbXNrJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAgKiBob21lTWVudSZu YnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19p bml0KCZhbXA7YXJnYywgJmFtcDthcmd2KTs8YnI+PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBtYWlu V25kID0gZ3RrX3dpbmRvd19uZXcoR1RLX1dJTkRPV19UT1BMRVZFTCk7PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19X SU5ET1cobWFpblduZCksICZxdW90O3Rlc3QgZHJhdy4uLlxuJnF1b3Q7KTsmbmJzcDsmbmJzcDsm bmJzcDsgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19z aWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAmcXVvdDtkZXN0cm95JnF1b3Q7LCBn dGtfbWFpbl9xdWl0LCBOVUxMKTsKPGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgaW1nID0gZ3Rr X2ltYWdlX25ldygpOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2NvbnRhaW5lcl9hZGQoR1RL X0NPTlRBSU5FUihtYWluV25kKSwgaW1nKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19zaWdu YWxfY29ubmVjdChHVEtfT0JKRUNUKGltZyksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyAmcXVvdDtleHBvc2UtZXZlbnQmcXVvdDssPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7IEdUS19TSUdO QUxfRlVOQyhvbl9leHBvc2UpLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsgTlVMTCk7PGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2Nv bnRhaW5lcl9zZXRfYm9yZGVyX3dpZHRoKEdUS19DT05UQUlORVIobWFpblduZCksIDUpOzxicj48 YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aWRnZXRfc2hvd19hbGwobWFpblduZCk7PGJyPjxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgaG9tZU1lbnUgPSBnZGtfcGl4bWFwX2NyZWF0ZV9mcm9tX3hw bShtYWluV25kLSZndDt3aW5kb3csPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsgJmFtcDtt c2ssCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZhbXA7bWFpblduZC0mZ3Q7c3R5bGUt Jmd0O2JnW0dUS19TVEFURV9OT1JNQUxdLDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZx dW90O2Y6L2hvbWVtZW51LmJtcCZxdW90Oyk7IC8qIGFscGhhIGNoYW5uZWwgYml0bWFwKi88YnI+ Jm5ic3A7Jm5ic3A7Jm5ic3A7IHNfaG9tZU1lbnVQaXggPTxicj4KJm5ic3A7Jm5ic3A7Jm5ic3A7 IGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCw8YnI+Jm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtob21lTWVudSwgPGJyPiZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0 ZW0oKSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDswLCAw LCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtT VERfV0lEVEgsCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw O1NURF9IRUlHSFQpOzxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHBpeE1hcCA9IGdka19waXht YXBfY3JlYXRlX2Zyb21feHBtKG1haW5XbmQtJmd0O3dpbmRvdywgPGJyPiZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmYW1wO21zaywgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmYW1wO21haW5XbmQtJmd0O3N0 eWxlLSZndDtiZ1tHVEtfU1RBVEVfTk9STUFMXSwKPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmcXVv dDtmOi9TdW5zZXQuYm1wJnF1b3Q7KTsgLyogbm8gYWxwaGEgY2hhbm5lbCBiaXRtYXAqLzxicj4m bmJzcDsmbmJzcDsmbmJzcDsgc19iYXNlUGl4ID08YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGdka19w aXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19iYXNlUGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO3BpeE1hcCwgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7MCwgMCwgMCwgMCwgPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7U1REX1dJRFRILDxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO1NURF9IRUlHSFQp Ozxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19tYWluKCk7PGJyPjxicj4mbmJzcDsmbmJz cDsmbmJzcDsgcmV0dXJuIDA7PGJyPn08YnI+PGJyPjxkaXY+PHNwYW4gY2xhc3M9ImdtYWlsX3F1 b3RlIj4KMjAwNi82LzE5LCBEYXZpZCBOZehhcyAoWWV0aSkgJmx0OzxhIGhyZWY9Im1haWx0bzp5 ZXRpQHBoeXNpY3MubXVuaS5jeiI+eWV0aUBwaHlzaWNzLm11bmkuY3o8L2E+Jmd0Ozo8L3NwYW4+ PGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0iYm9yZGVyLWxlZnQ6IDFweCBz b2xpZCByZ2IoMjA0LCAyMDQsIDIwNCk7IG1hcmdpbjogMHB0IDBwdCAwcHQgMC44ZXg7IHBhZGRp bmctbGVmdDogMWV4OyI+Ck9uIE1vbiwgSnVuIDE5LCAyMDA2IGF0IDExOjM1OjA5QU0gKzAyMDAs IGhtIHdyb3RlOjxicj4mZ3Q7PGJyPiZndDsmbmJzcDsmbmJzcDsgSWB2ZSBnb3QgYSBwcm9ibGVt LiBJYHZlIGdvdCB0d28gc2VwYXJhdGUgaW1hZ2VzLiBPbmUgaXMgYmFja2dyb3VuZCBmb3ImbmJz cDsmbmJzcDt0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRyYW5zcGFyZW50 LiBUaGVyZSBpcyBhbHNvIHRhYmxlLiBRdWVzdGlvbiBpcyA6IGhvdyB0byBkcmF3IGluIG9uZSBv ZiB0aGUgdGFibGVgcyBjZWxscyB0aGUgYmFja2dyYW91bmQsIGFuZCBvbiB0aGlzIGJhY2tncm91 bmQgKCBhcyBhIHNlY29uZCBsYXllciApIHNlY29uZCBpbWFnZSAodHJhbnNwYXJlbnQpID8mbmJz cDsmbmJzcDtJIGtub3cgKCBvZiBjb3Vyc2UgKSBob3cgdG8gY3JlYXRlIGltYWdlcywgdGFibGVz Lgo8YnI+PGJyPkVpdGhlciB1c2UgZ2RrX2RyYXdfcGl4YnVmKCkgaWYgdGhlIGNvcnJlY3Qgb3Jk ZXIgKGZpcnN0PGJyPmJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudDxicj5oYW5kbGVyLCBvciB1c2UgZ2RrX3BpeGJ1Zl9jb21wb3NpdGUoKSBhbmQg ZHJhdyB0aGUgZmluYWw8YnI+aW1hZ2UuPGJyPjxicj5ZZXRpPGJyPjxicj48YnI+LS08YnI+CkFu b255bXMgZWF0IHRoZWlyIGJvb2dlcnMuPGJyPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fPGJyPmd0ay1saXN0IG1haWxpbmcgbGlzdDxicj48YSBocmVmPSJt YWlsdG86Z3RrLWxpc3RAZ25vbWUub3JnIj5ndGstbGlzdEBnbm9tZS5vcmc8L2E+PGJyPjxhIGhy ZWY9Imh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2d0ay1saXN0Ij4KaHR0 cDovL21haWwuZ25vbWUub3JnL21haWxtYW4vbGlzdGluZm8vZ3RrLWxpc3Q8L2E+PGJyPjwvYmxv Y2txdW90ZT48L2Rpdj48YnI+Cg== ------=_Part_47883_15491290.1151292211820-- From cgallucci@inwind.it Mon Jun 26 07:58:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EFE933B0280 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15191-10 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id CEFBB3B0199 for ; Mon, 26 Jun 2006 07:58:24 -0400 (EDT) Received: from localhost (172.16.1.206) by smtp6.libero.it (7.0.027-DD01) id 44992E6400679860 for gtk-list@gnome.org; Mon, 26 Jun 2006 13:58:23 +0200 Received: from smtp1.libero.it ([172.16.1.224]) by localhost (asav20.libero.it [193.70.193.7]) (amavisd-new, port 10024) with ESMTP id 21475-01 for ; Mon, 26 Jun 2006 13:58:23 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp1.libero.it (Postfix) with ESMTP id A5BADA8C53 for ; Mon, 26 Jun 2006 13:58:22 +0200 (MEST) From: "carmelo gallucci" To: Subject: CYGWIN and GTK Date: Mon, 26 Jun 2006 14:02:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.614 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -0.614 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 11:58:26 -0000 I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My application also use SDL and i want to enable SDL hacking to encapsulate it on a gtk window. My gtk application run pefectly. I can show widget and use it. My problem is that i cannot get this code to work (it work perfectly under linux): sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget ::gobj()->window)); I cannot get WINDOWID. When i use the macro GDK_WINDOW_XWINDOW i get the following error: (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): Gdk-WARNING **: /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk drawable-x11.c:971 drawable is not a pixmap or window What's the problem? Anyone know where the problem is? Thanks. Carmelo Gallucci From tml@iki.fi Mon Jun 26 10:19:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E8AB73B03F0 for ; Mon, 26 Jun 2006 10:19:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23891-06 for ; Mon, 26 Jun 2006 10:19:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 4B9203B0369 for ; Mon, 26 Jun 2006 10:19:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 411DF151341; Mon, 26 Jun 2006 17:19:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> Date: Mon, 26 Jun 2006 17:18:57 +0300 To: "carmelo gallucci" Subject: Re: CYGWIN and GTK In-Reply-To: References: X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.337 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.337 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:19:57 -0000 carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From marko.ivancic@ultra.si Mon Jun 26 10:48:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F1643B021C for ; Mon, 26 Jun 2006 10:47:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25463-10 for ; Mon, 26 Jun 2006 10:47:56 -0400 (EDT) Received: from deliver-2.mx.triera.net (deliver-2.mx.triera.net [213.161.0.32]) by menubar.gnome.org (Postfix) with ESMTP id D503D3B0185 for ; Mon, 26 Jun 2006 10:47:55 -0400 (EDT) Received: from localhost (in-3.mx.triera.net [213.161.0.27]) by deliver-2.mx.triera.net (Postfix) with ESMTP id 384F2A7 for ; Mon, 26 Jun 2006 16:47:46 +0200 (CEST) Received: from smtp.triera.net (smtp.triera.net [213.161.0.30]) by in-3.mx.triera.net (Postfix) with SMTP id 96AFF1BC02F for ; Mon, 26 Jun 2006 16:47:49 +0200 (CEST) Received: from [172.18.1.20] (unknown [213.161.20.162]) by smtp.triera.net (Postfix) with ESMTP id 439601A18AA for ; Mon, 26 Jun 2006 16:47:50 +0200 (CEST) Message-ID: <449FF39D.6080201@ultra.si> Date: Mon, 26 Jun 2006 16:47:57 +0200 From: Marko Ivancic User-Agent: Thunderbird 1.5.0.4 (X11/20060619) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: save copy of gtktextbuffer Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Triera AV Service X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.108 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, TW_GT=0.077] X-Spam-Score: -0.108 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:48:00 -0000 Hi. Is there any way to save a GtkTextBuffer (I mean the context of this buffer including pixbufs and other embedet widgets) into another GtkTextBuffer instance ?? Tnx, By Marko I. From linuxhippy@gmail.com Mon Jun 26 10:53:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 296143B0135 for ; Mon, 26 Jun 2006 10:53:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25937-02 for ; Mon, 26 Jun 2006 10:53:31 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id EC5DF3B0185 for ; Mon, 26 Jun 2006 10:53:30 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so731232hue for ; Mon, 26 Jun 2006 07:53:30 -0700 (PDT) Received: by 10.78.117.10 with SMTP id p10mr2151522huc; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Message-ID: <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> Date: Mon, 26 Jun 2006 16:53:29 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.151 tagged_above=-999 required=2 tests=[AWL=-0.386, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.151 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:53:32 -0000 I played a bit and found something which could be considered as "slow": Open the configuration dialog of gimp and move another window on top of it. This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you can still see a ~4mm repaint lag. I wonder wether this could also be caused because of inefficient double buffering ... time will show. lg Clemens 2006/6/23, Clemens Eisserer : > First of all thanks a lot for doing that much work porting GTK to windows. > I can't count how many apps I've used myself on windows-pcs which were > able to run because of your work. > > > If one would ask specific question like "I draw 100000 line segments > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > might get better help. > > I installed gimp on some win-xp computers in the company I work for > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > are very much the issues I have on linux but more "visible". Its the > UI, menus, window resizing, layout changes or repaint-events sent to > the window because its content was invalidated. > I can't say wether its really slow or just feels so, maybe the graphic > card driver had an influence (nvidia gf4 mx4000) or some other > circumstances were not optimal. > I simply never did care that much simply because I don't use/like this planform. > > Its just hard to know whats going wrong, especially if someone is no > gtk insider. > > lg Clemens > From torriem@chem.byu.edu Mon Jun 26 11:34:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 728723B03BC for ; Mon, 26 Jun 2006 11:34:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28776-08 for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 75B363B046C for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5QFYoKJ024264; Mon, 26 Jun 2006 09:34:50 -0600 Subject: Re: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D?= =?UTF-8?Q?=EF=BC=9A?= Re: Using GTK+ with C++ From: Michael L Torrie To: yeajchao In-Reply-To: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> References: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Content-Type: text/plain; charset=UTF-8 Date: Mon, 26 Jun 2006 09:34:49 -0600 Message-Id: <1151336089.25316.0.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Mon, 26 Jun 2006 09:34:50 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.615 tagged_above=-999 required=2 tests=[AWL=-0.893, BAYES_00=-2.599, SUBJECT_ENCODED_TWICE=1.723, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.615 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:34:52 -0000 On Mon, 2006-06-26 at 10:36 +0800, yeajchao wrote: > hello > when i using gtk+ with c++,how can i compile my application? The same way you do it with C, except you have to use g++ instead of gcc. But the command line arguments for doing the build and using pkg- config to get the cflags and ldflags is the same. Michael > > --- Chris Vine 鍐欓亾: > > > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > > Hi all, > > > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > > through C++? Is anyone doing this? Are there any 'tricks' I should > > > know about beyond having to extern "C" the includes of gtk header > > > files? > > > > They are already declared extern "C" if compiled for a C++ program. There is > > > > nothing you need to know - just use them. > > > > Chris > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > ___________________________________________________________ > 闆呰檸鍏嶈垂閭-3.5G瀹归噺锛20M闄勪欢 > http://cn.mail.yahoo.com/ > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Mon Jun 26 11:41:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDD083B017D for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29419-03 for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 7AD633B0387 for ; Mon, 26 Jun 2006 11:41:10 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so888205uge for ; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.165.16 with SMTP id n16mr2166312hue; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.124.2 with HTTP; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Message-ID: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> Date: Mon, 26 Jun 2006 16:41:09 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:41:12 -0000 On 6/25/06, Clemens Eisserer wrote: > When I maximize the window and resize the panes I get very slow > resizing, however when setting all involved widgets unbuffered > resizing is fast (but painting is done with artifacts). I think the artifacts are because, with double-buffering turned off, expose events do not get an automatic clear-to-background. There's a note about this in the entry for gtk_widget_set_double_buffered(): http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 I'm not a gtk-internals expert and I can't really see a good solution to this. The possibilities I can see are: 1) Provide an option to disable double buffering for all widgets You could hack into gdk_window_begin_paint_region() and add a new code path: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 something like if (global_no_double_buffer) clear expose area to background might be enough. Repainting would be fast but flickery and incredibly ugly. People with older machines and nvidia hardware acceleration would see an FPS improvement, but their eyes would be watering. 2) Use nvidia's pixmap placement hint I think this would require a new driver from nvidia and changes to the X server to make the option accessible. Not going to happen any time soon. 3) Persuade nvidia to change their pixmap caching policy It seems to me that their policy is broken. If an app creates a pixmap, you'd expect it to be used soon. Making new pixmaps default to slow memory is rather odd. But I guess they've done a lot of profiling (of non-GTK apps, heh) and like it the way it is. 4) Have a single expose pixmap You could allocate a single large expose pixmap (maybe as big as the enclosing window?) and reuse that, with clipping, rather than creating and destroying a new pixmap each time. gdk_window_begin_paint_region() actually maintains a stack of pending pixmaps, though I've no idea how often the stack feature is used. Perhaps you could get away with having a single permanent expose pixmap, and dynamically create and destroy sub-pixmaps if the stack starts working. If the stack is used infrequently maybe this would work OK. This would chew up graphics card memory :-( and main memory for software drivers :-( and small-footprint people would hate it. My machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if each screen is 50% covered in gtk2 apps, this change will make my X server need an extra 50MB of RAM. Ouch! Maybe there could be a timeout to free the backing pixmap if it's not used for a couple of seconds. John From linuxhippy@gmail.com Mon Jun 26 14:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 889943B02E1 for ; Mon, 26 Jun 2006 14:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06142-05 for ; Mon, 26 Jun 2006 14:14:16 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by menubar.gnome.org (Postfix) with ESMTP id 036D73B03CC for ; Mon, 26 Jun 2006 14:14:15 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so963030uge for ; Mon, 26 Jun 2006 11:14:15 -0700 (PDT) Received: by 10.78.140.17 with SMTP id n17mr2247538hud; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Message-ID: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Date: Mon, 26 Jun 2006 20:14:14 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.349 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.349 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 18:14:17 -0000 Hello John, Thanks a lot for beeing that patient and constructive, its really motivating! I know I am not the dream-guy to start working on this but hey what can GTK loose ;) > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a Yea I read the note yesterday which made it clear for me too. > 1.) Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. Yes I saw this large amount of flickering, I think this would be more or less a dirty hack when looking at the results. Its really ugly ;) I'll do some tests to see which influence composition managers have, they do their own sort of double buffering, maybe we could dave all these efforts under these circumstances at all? > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. All these concepts act on the assumption that what GTK currently does is more or less a good thing. However best-case for GTKs buffering scenario are onboard shared-mem cards, which do not require (much) bus-interactivity ... but even allocating several megs each repaint in system memory is expensive and more or less a do-not. What nvidia does is very common, on windows its defacto-standard. Also if they would change they semantics GTK would be hardware accalerated but a lot of time would be spent inside the GPU waiting for the requested piece of VRAM. > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. To be honest I like this approach most, especially because I've seen this technique in several other toolkits (Swing, LwVCL) working very well. Swing (a java toolkit) has even support for smaller backbuffers than the rendered area is, they simply repaint it as often to the backbuffer with different clipping/location till they've filled the whole screen. This could help making window resizing smooth (more painting should be in >90% be much faster than allocating a new pixmap each resize), after resizing a new buffer could be created with window size. Another advantage java can take from this design (starting with mustang) is that if the buffer is as large as the window, they actually just paint the pixmap if the window receives expose events. > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. Well but to run that many applications you also should have a descent powered system wheer grahic cards with 64+m are quite common ;) I too see a problem here, for java its maybe not that too dramatical, if the runtime itself is consuming 15mb another 5mb for the backbuffer don't hurt that much but for GTK and tons of long running apps realized with it the situation is a lot different. I am not enough of an expert to know a exact answer to this, I'll do some reseach at QT and other toolkits that provide double buffering how they deal with this issue. Maybe some kind of ergonomics could do the job, deciding when its worth to keep a buffer for how long and when to destroy it (would we need a timer thread for pixmap freeing *outch*?). As I said I simply don't know an answer maybe some experiments will show ... I've the whole summer for coding on this ^^ lg Clemens I browsed a bit through GTKs source code (only gtk, not gdk till now) and I've to admit that I never coded GTK apps before except some small examples and one java-gome application. As far as I understood from the gtk-tutorial there are some widgets which are windows themself ... which is a bit confusing for me. I tried to find the entrance point where X tells gtk windows to expose, does this happen once for the main "window" and gtk repaints the widgets in an hirarchial order or do the widgets which are windows themself get seperate expose events delivered? How (and where) does the buffering take place? How does GTK deal with widgets that don't want to be drawn doublebuffered? I know tons of awkward newbie quetsions, I guess just pointers to the source would be enough ;) From yeti@physics.muni.cz Mon Jun 26 15:10:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DD37E3B0167 for ; Mon, 26 Jun 2006 15:10:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08743-04 for ; Mon, 26 Jun 2006 15:09:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id E6C703B012B for ; Mon, 26 Jun 2006 15:09:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5QJ9sfx029554 for ; Mon, 26 Jun 2006 21:09:55 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1683523D16; Mon, 26 Jun 2006 21:09:54 +0200 (CEST) Date: Mon, 26 Jun 2006 21:09:57 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Scrolling performance Message-ID: <20060626190957.GR2296@potato.chello.upc.cz> References: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:10:03 -0000 On Mon, Jun 26, 2006 at 08:14:14PM +0200, Clemens Eisserer wrote: > As far as I understood from the gtk-tutorial there are some widgets > which are windows themself ... which is a bit confusing for me. > I tried to find the entrance point where X tells gtk windows to > expose, X tells Gtk+ nothing, Gtk+ is built on top of Gdk and Gdk receives the X events. Start with gdk_event_dispatch() in gdk/x11/gdkevents-x11.c. It is also instructive to compile Gtk+ with --enable-debug=yes and then do for instance GDK_DEBUG=events ./someprogram > does this happen once for the main "window" and gtk repaints > the widgets in an hirarchial order or do the widgets which are windows > themself get seperate expose events delivered? Widgets with their own windows receive their own expose events. Also have a look at http://primates.ximian.com/~federico/misc/gtk-drawing-model/ which explains the basic concepts. Yeti -- Anonyms eat their boogers. From cgallucci@inwind.it Mon Jun 26 15:56:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D635B3B0201 for ; Mon, 26 Jun 2006 15:56:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11469-07 for ; Mon, 26 Jun 2006 15:56:01 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id E0C5D3B007A for ; Mon, 26 Jun 2006 15:56:00 -0400 (EDT) Received: from localhost (172.16.1.83) by smtp6.libero.it (7.0.027-DD01) id 44992E640071E70D; Mon, 26 Jun 2006 21:55:55 +0200 Received: from smtp0.libero.it ([172.16.1.204]) by localhost (asav4.libero.it [193.70.192.153]) (amavisd-new, port 10024) with ESMTP id 20782-04-3; Mon, 26 Jun 2006 21:55:54 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp0.libero.it (Postfix) with ESMTP id 6BA223338A7; Mon, 26 Jun 2006 21:55:53 +0200 (MEST) From: "carmelo gallucci" To: "'Tor Lillqvist'" Subject: RE: CYGWIN and GTK Date: Mon, 26 Jun 2006 21:59:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <17567.60625.324000.832379@gargle.gargle.HOWL> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.397 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.397 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:56:07 -0000 Hi Tor. Maybe i'm not really shure .-). I'm trying to explain better. I have a complete application built on Linux fedora core (GTKmm, SDL, ffmpeg, etc,etc). I'm thinking the fasted way to have the same application running on a window OS is to build it using CYGwin(i'm really new of it). This only not to spend more time to develop new thing. I compile and run my app without any problem (i intend Gtk ffmpeg). When i try tu use SDL and particylary GDK(X11) function i have problem i wrote. I use SDL only to display YUV format on the video. What can i use instead of it? Thanks. Carmelo -----Original Message----- From: Tor Lillqvist [mailto:tml@iki.fi]=20 Sent: luned=EC 26 giugno 2006 16.19 To: carmelo gallucci Cc: gtk-list@gnome.org Subject: Re: CYGWIN and GTK carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From lalitk.pune@gmail.com Mon Jun 26 23:15:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6EF93B0171 for ; Mon, 26 Jun 2006 23:15:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32665-09 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 220273B00F2 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so2013774nzh for ; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.64.148.4 with SMTP id v4mr3198669qbd; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.65.23.15 with HTTP; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Message-ID: Date: Tue, 27 Jun 2006 08:45:55 +0530 From: "Lalit Kumar" To: gtk-list@gnome.org Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.162 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 03:15:58 -0000 Hi All, I am facing problem with gdk_font_load method in my application. It returns NULL. I am using gtk-2.0 on Redhat Enterprise WS 4. Can anybody help me to resolve this proble? Help says that gdk_font_load is depricated. What is the name of new equivalent method? Thanx in advance, -- Bye, Lalit Kumar Pune On 6/26/06, gtk-list-request@gnome.org wrote: > Send gtk-list mailing list submissions to > gtk-list@gnome.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.gnome.org/mailman/listinfo/gtk-list > or, via email, send a message with subject or body 'help' to > gtk-list-request@gnome.org > > You can reach the person managing the list at > gtk-list-owner@gnome.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gtk-list digest..." > > > Today's Topics: > > 1. Re: Drawing images ( with transparency ) one on another (lao wb) > 2. CYGWIN and GTK (carmelo gallucci) > 3. Re: CYGWIN and GTK (Tor Lillqvist) > 4. save copy of gtktextbuffer (Marko Ivancic) > 5. Re: GTK performance on Windows (Clemens Eisserer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Jun 2006 11:23:31 +0800 > From: "lao wb" > Subject: Re: Drawing images ( with transparency ) one on another > To: " David Ne?as (Yeti) " > Cc: gtk-list@gnome.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-2" > > Hi, > I need do this too but have not succeeded yet. I try to use > gdk_draw_pixbuf and gdk_pixbuf_composite in expose event handler, but it > still doesn't work. I really need help to make my test code work. > > Laowb > > #include > #define STD_WIDTH 680 > #define STD_HEIGHT 480 > > static GdkPixbuf * s_basePix; > static GdkPixbuf * s_homeMenuPix; > > gboolean on_expose(GtkWidget * widget, > GdkEventExpose * ps, > gpointer data) > { > gdk_pixbuf_composite(s_homeMenuPix, > s_basePix, 0, 0, STD_WIDTH, STD_HEIGHT, 0, 0, 0, 0, > GDK_INTERP_NEAREST, 0); > > gdk_draw_pixbuf(widget->window, widget->style->bg_gc[GTK_STATE_NORMAL], > s_homeMenuPix, 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT, > GDK_RGB_DITHER_NORMAL, > 0, 0); > return FALSE; > } > > > int main(int argc, char * argv[]) > { > GtkWidget * mainWnd = NULL; > GdkDrawable * pixMap = NULL; > GtkWidget * img = NULL; > GtkWidget * box = NULL; > GtkWidget * button = NULL; > GtkAdjustment * vadj = NULL; > GtkAdjustment * hadj = NULL; > GdkBitmap * msk = NULL; > GdkBitmap * homeMenu = NULL; > > gtk_init(&argc, &argv); > > mainWnd = gtk_window_new(GTK_WINDOW_TOPLEVEL); > > gtk_window_set_title(GTK_WINDOW(mainWnd), "test draw...\n"); > > gtk_signal_connect(GTK_OBJECT(mainWnd), "destroy", gtk_main_quit, NULL); > > img = gtk_image_new(); > gtk_container_add(GTK_CONTAINER(mainWnd), img); > gtk_signal_connect(GTK_OBJECT(img), > "expose-event", > GTK_SIGNAL_FUNC(on_expose), > NULL); > > gtk_container_set_border_width(GTK_CONTAINER(mainWnd), 5); > > gtk_widget_show_all(mainWnd); > > homeMenu = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/homemenu.bmp"); /* alpha > channel bitmap*/ > s_homeMenuPix = > gdk_pixbuf_get_from_drawable(s_homeMenuPix, > homeMenu, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > pixMap = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/Sunset.bmp"); /* no alpha > channel bitmap*/ > s_basePix = > gdk_pixbuf_get_from_drawable(s_basePix, > pixMap, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > gtk_main(); > > return 0; > } > > 2006/6/19, David Ne?as (Yeti) : > > > > On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > > > > > I`ve got a problem. I`ve got two separate images. One is background > > for the secondone. Secondone is partially transparent. There is also table. > > Question is : how to draw in one of the table`s cells the backgraound, and > > on this background ( as a second layer ) second image (transparent) ? I > > know ( of course ) how to create images, tables. > > > > Either use gdk_draw_pixbuf() if the correct order (first > > base, then the one with alpha channel) in expose event > > handler, or use gdk_pixbuf_composite() and draw the final > > image. > > > > Yeti > > > > > > -- > > Anonyms eat their boogers. > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: /archives/gtk-list/attachments/20060626/bc9fc384/attachment.htm > > ------------------------------ > > Message: 2 > Date: Mon, 26 Jun 2006 14:02:02 +0200 > From: "carmelo gallucci" > Subject: CYGWIN and GTK > To: > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My > application also use SDL and i want to enable SDL hacking to encapsulate > it on a gtk window. My gtk application run pefectly. I can show widget > and use it. My problem is that i cannot get this code to work (it work > perfectly under linux): > > sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget > ::gobj()->window)); > > I cannot get WINDOWID. > > When i use the macro GDK_WINDOW_XWINDOW i get the following error: > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): Gdk-WARNING **: > /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk > drawable-x11.c:971 drawable is not a pixmap or window > > What's the problem? Anyone know where the problem is? > > Thanks. > > Carmelo Gallucci > > > > ------------------------------ > > Message: 3 > Date: Mon, 26 Jun 2006 17:18:57 +0300 > From: Tor Lillqvist > Subject: Re: CYGWIN and GTK > To: "carmelo gallucci" > Cc: gtk-list@gnome.org > Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> > Content-Type: text/plain; charset=us-ascii > > carmelo gallucci writes: > > What's the problem? Anyone know where the problem is? > > Well, firstly you are using an unmaintained version of GTK+ (2.6.x). > > Secondly, are you sure what you are doing makes sense? You are using a > GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the > SDL you are using also for X11 on Cygwin? Or are you trying to use a > SDL that would use native Win32 (GDI) together with a GTK+ built for > X11? Surely that can't work. > > --tml > > > > ------------------------------ > > Message: 4 > Date: Mon, 26 Jun 2006 16:47:57 +0200 > From: Marko Ivancic > Subject: save copy of gtktextbuffer > To: gtk-list@gnome.org > Message-ID: <449FF39D.6080201@ultra.si> > Content-Type: text/plain; charset=ISO-8859-2; format=flowed > > Hi. > > Is there any way to save a GtkTextBuffer (I mean the context of this > buffer including pixbufs and other embedet widgets) into another > GtkTextBuffer instance ?? > > Tnx, > By > Marko I. > > > > ------------------------------ > > Message: 5 > Date: Mon, 26 Jun 2006 16:53:29 +0200 > From: "Clemens Eisserer" > Subject: Re: GTK performance on Windows > To: gtk-list@gnome.org > Message-ID: > <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I played a bit and found something which could be considered as "slow": > > Open the configuration dialog of gimp and move another window on top of it. > This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you > can still see a ~4mm repaint lag. > > I wonder wether this could also be caused because of inefficient > double buffering ... time will show. > > lg Clemens > > 2006/6/23, Clemens Eisserer : > > First of all thanks a lot for doing that much work porting GTK to windows. > > I can't count how many apps I've used myself on windows-pcs which were > > able to run because of your work. > > > > > If one would ask specific question like "I draw 100000 line segments > > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > > might get better help. > > > > I installed gimp on some win-xp computers in the company I work for > > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > > are very much the issues I have on linux but more "visible". Its the > > UI, menus, window resizing, layout changes or repaint-events sent to > > the window because its content was invalidated. > > I can't say wether its really slow or just feels so, maybe the graphic > > card driver had an influence (nvidia gf4 mx4000) or some other > > circumstances were not optimal. > > I simply never did care that much simply because I don't use/like this planform. > > > > Its just hard to know whats going wrong, especially if someone is no > > gtk insider. > > > > lg Clemens > > > > > ------------------------------ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > End of gtk-list Digest, Vol 26, Issue 37 > **************************************** > From paul@linuxaudiosystems.com Tue Jun 27 09:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 168BD3B00AD for ; Tue, 27 Jun 2006 09:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31194-03 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id 1FD8D3B0084 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1I00ERKTHNOOQ4@vms044.mailsrvcs.net> for gtk-list@gnome.org; Tue, 27 Jun 2006 08:29:48 -0500 (CDT) Date: Tue, 27 Jun 2006 09:30:19 -0400 From: Paul Davis Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-reply-to: To: Lalit Kumar Message-id: <1151415019.28727.41.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.476 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 13:30:21 -0000 On Tue, 2006-06-27 at 08:45 +0530, Lalit Kumar wrote: > Hi All, > > I am facing problem with gdk_font_load method in my application. It > returns NULL. > > I am using gtk-2.0 on Redhat Enterprise WS 4. > > Can anybody help me to resolve this proble? > Help says that gdk_font_load is depricated. What is the name of new > equivalent method? a) please do NOT quote an entire digest message just so you can ask a new question. b) please change the subject line when you ask a new question c) there really is no equivalent method. what are you trying to do? explicit font loading is rarely necessary now that GTK uses pango (and has done for at least 2 years. From linuxhippy@gmail.com Wed Jun 28 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 121493B037B for ; Wed, 28 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32231-05 for ; Wed, 28 Jun 2006 16:20:47 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id 52F463B0515 for ; Wed, 28 Jun 2006 16:19:03 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so1405343hue for ; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr717001hue; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Message-ID: <194f62550606281318k48b71f34kd98baccbcef314bb@mail.gmail.com> Date: Wed, 28 Jun 2006 22:18:54 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.111 tagged_above=-999 required=2 tests=[AWL=-0.346, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.111 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 20:21:19 -0000 Hi again, Thanks a lot for all the hints about gdk, I know found the source-parts which I looked for and thanks to the paper I even understand what they are doing :-) I thought about some techniques about implementing buffer release heuristics, however they destroy the benefit to smoe degree and have some overhead too. However I realized that the memory-consumption scenario is not _such_ a big problem. If you only hold the backbuffer only as long as the window is visible and release it the whole situation is much better because more than 2-3 open full-screen windows are unlikely and 16mb VRAM are ... well ... much more than default. I guess parsing an enviroment-variable or such to enable/disable the caching behaviour wouldn't be a bad idea? lg Clemens 2006/6/26, John Cupitt : > On 6/25/06, Clemens Eisserer wrote: > > When I maximize the window and resize the panes I get very slow > > resizing, however when setting all involved widgets unbuffered > > resizing is fast (but painting is done with artifacts). > > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a > note about this in the entry for gtk_widget_set_double_buffered(): > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > I'm not a gtk-internals expert and I can't really see a good solution > to this. The possibilities I can see are: > > 1) Provide an option to disable double buffering for all widgets > > You could hack into gdk_window_begin_paint_region() and add a new code path: > > http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 > > something like > > if (global_no_double_buffer) > clear expose area to background > > might be enough. > > Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. > > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. > > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. > > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. > > John > From felipe.weckx@gmail.com Wed Jun 28 18:40:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 747D83B00EC for ; Wed, 28 Jun 2006 18:40:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05443-08 for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 4090F3B007D for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id s15so144297wxc for ; Wed, 28 Jun 2006 15:40:06 -0700 (PDT) Received: by 10.70.92.2 with SMTP id p2mr2110412wxb; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Received: from c9007af8.virtua.com.br ( [201.52.122.248]) by mx.gmail.com with ESMTP id i17sm7634039wxd.2006.06.28.15.40.04; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Subject: Set pane position on application startup From: Felipe Weckx To: gtk-list@gnome.org Content-Type: text/plain Date: Wed, 28 Jun 2006 19:40:00 -0300 Message-Id: <1151534400.6517.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.4 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -2.4 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 22:40:29 -0000 Hi everyone, I've an application that saves the pane gutter position when it finishes, so when it is started it can set the position where it was previously. However, when I start the application the gutter doesn't go where I want to... but, if I call the procedure after the app is running, it goes to the right place, I've tried running this function through g_idle_add on the main program, but it doesn't work either... any ideas? -- []'s Felipe Weckx From nc-gaertnma@netcologne.de Wed Jun 28 19:31:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9E3D53B00F3 for ; Wed, 28 Jun 2006 19:31:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07544-07 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from smtp3.netcologne.de (smtp3.netcologne.de [194.8.194.66]) by menubar.gnome.org (Postfix) with ESMTP id 9E74B3B01D5 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from limapholos.matom.wg (xdsl-81-173-182-178.netcologne.de [81.173.182.178]) by smtp3.netcologne.de (Postfix) with ESMTP id D822567384 for ; Thu, 29 Jun 2006 01:31:03 +0200 (CEST) Date: Thu, 29 Jun 2006 01:31:03 +0200 From: Mattias Gaertner To: gtk-list@gnome.org Subject: iconify and iconify Message-ID: <20060629013103.74081832@limapholos.matom.wg> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.928 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_WEB=1.456, TW_GT=0.077] X-Spam-Score: 0.928 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 23:31:08 -0000 Hi all, When the user iconifies a window and/or when the user switches to another desktop, the gtk sends the 'window-state-event' signal with GDK_WINDOW_STATE_ICONIFIED. How can I find out, which one happened? Mattias From Yandong.Yao@Sun.COM Thu Jun 29 02:53:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 169923B0071 for ; Thu, 29 Jun 2006 02:53:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23618-05 for ; Thu, 29 Jun 2006 02:53:47 -0400 (EDT) Received: from sineb-mail-1.sun.com (sineb-mail-1.sun.com [192.18.19.6]) by menubar.gnome.org (Postfix) with ESMTP id 741C93B0206 for ; Thu, 29 Jun 2006 02:53:46 -0400 (EDT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k5T6rh8l019095 for ; Thu, 29 Jun 2006 14:53:44 +0800 (SGT) Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J1M00A010EONK00@mail-apac.sun.com> (original mail from Yandong.Yao@Sun.COM) for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Received: from [129.158.148.217] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J1M002H60HIM4OO@mail-apac.sun.com> for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Date: Thu, 29 Jun 2006 14:55:08 +0800 From: "yandong.yao" Subject: does g_utf8_collate() need check whether its parameter is utf8 or not? Sender: Yandong.Yao@Sun.COM To: gtk-list@gnome.org Message-id: <44A3794C.7070207@sun.com> Organization: SMI MIME-version: 1.0 Content-type: text/plain; charset=GB2312 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.4 (X11/20060613) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.549 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.549 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Yandong.Yao@Sun.COM List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:53:51 -0000 Hi guys, If i ask in wrong alias, please forgive me and forward to correct alias, thank you. The document of g_utf8_collate() require its parameters should be utf-8 encoded, but it did not check this in function body, so g_utf8_normalize() may return NULL for non-utf8 string, thus strcoll() will crash. I have met such problem for several time on opensolaris. So we need check at somewhere, 3 candidate: 1) check parameter in strcoll(): but because different c lib has diff implementation, so i guess it is not a good place to avoid this problem. 2) check parameter in g_utf8_* function: check parameter in this level will sensible, but it will result in a few check statement in g_utf8_* functions. 3) check in caller of g_utf8_*, this is ok also, but need every developer to do this. i prefer 2), cause it will reduce lots of developer's work, and the cost is little also. any comments or suggestions are welcome, thank you in advance. regards, yandong From linuxhippy@gmail.com Thu Jun 29 13:48:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1CC2F3B010F for ; Thu, 29 Jun 2006 13:48:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31768-05 for ; Thu, 29 Jun 2006 13:48:51 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.196]) by menubar.gnome.org (Postfix) with ESMTP id C6A213B00D4 for ; Thu, 29 Jun 2006 13:48:50 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so144861hue for ; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.164.13 with SMTP id m13mr1091961hue; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Message-ID: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Date: Thu, 29 Jun 2006 19:48:49 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Newbie question about GTKs object model... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.908 tagged_above=-999 required=2 tests=[AWL=0.492, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -1.908 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:48:52 -0000 Sorry for such a stupid question ... shame on myself for asking it :-/ I looked arround GdkWindow.h/c bit and actually did not find the definition of the type "GdkWindow", instead I only found the definition of _GdkWindowObject which looks quite like I imagine GdkWindow could look like. So where/how does a GdkWindowObject become to an GdkWindow or do I understand some things completly wrong? btw. yes I did read some docs about Glib's object model ;) Thank you in advance, lg Clemens From RMain@gmx.de Thu Jun 29 13:56:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7050A3B00AE for ; Thu, 29 Jun 2006 13:56:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32350-01 for ; Thu, 29 Jun 2006 13:56:12 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id B6A873B027E for ; Thu, 29 Jun 2006 13:56:11 -0400 (EDT) Received: (qmail 2526 invoked by uid 0); 29 Jun 2006 17:56:10 -0000 Received: from 89.57.94.28 by www018.gmx.net with HTTP; Thu, 29 Jun 2006 19:56:10 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Thu, 29 Jun 2006 19:56:10 +0200 From: "Robert Main" Message-ID: <20060629175610.156930@gmx.net> MIME-Version: 1.0 Subject: Problem with compiling To: gtk-list@gnome.org X-Authenticated: #31472207 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.465 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.465 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:56:14 -0000 Hi, need to compile GTK+ 1.2 to use it with MPlayer. The problem is: I'm on windows, I need a makefile, but how/where is one? There is makefile.am|in, but cant use that. I also cant run configure, windows and so... friend said i should download this library and that and all that and maybe it would work, but thats so much for just this purpose! ... is there a simple and easy way? I know there are binaries in the latest GTK+, but I dont know if i can use that... the same problem is with glib, also cant compile because i cant run configure hope you can help me :-) -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f黵 Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From yeti@physics.muni.cz Thu Jun 29 14:26:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC7EE3B016C for ; Thu, 29 Jun 2006 14:26:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01572-02 for ; Thu, 29 Jun 2006 14:26:40 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 4E5DC3B00AE for ; Thu, 29 Jun 2006 14:26:39 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5TIQb1N025861 for ; Thu, 29 Jun 2006 20:26:38 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 50CC323D59; Thu, 29 Jun 2006 20:26:37 +0200 (CEST) Date: Thu, 29 Jun 2006 20:26:41 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Newbie question about GTKs object model... Message-ID: <20060629182641.GA2296@potato.chello.upc.cz> References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 18:26:45 -0000 On Thu, Jun 29, 2006 at 07:48:49PM +0200, Clemens Eisserer wrote: > Sorry for such a stupid question ... shame on myself for asking it :-/ > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow" You could easily find it using ctags: Run `ctags *' in gdk/ and then press ^] when you have cursor on GdkWindow -- assuming you use vim. > instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? GdkWindow is defined in gdktypes.h: typedef struct _GdkDrawable GdkWindow; and GdkWindowObject has GdkDrawable as a *parent*. The net result is that GdkWindowObject is a GdkWindow which is the same as GdkDrawable. Yeti -- Anonyms eat their boogers. From christianseberino@yahoo.com Thu Jun 29 15:04:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5EC873B00AE for ; Thu, 29 Jun 2006 15:04:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03543-07 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: from web37611.mail.mud.yahoo.com (web37611.mail.mud.yahoo.com [209.191.87.94]) by menubar.gnome.org (Postfix) with SMTP id 446233B0120 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: (qmail 96171 invoked by uid 60001); 29 Jun 2006 19:03:59 -0000 Message-ID: <20060629190359.96169.qmail@web37611.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37611.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:03:59 PDT Date: Thu, 29 Jun 2006 12:03:59 -0700 (PDT) From: Christian Seberino Subject: What does *gnome integration" mean for a GTK app? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1939649571-1151607839=:91636" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.273 tagged_above=-999 required=2 tests=[AWL=-1.288, BAYES_50=0.001, BE_BOSS=1.539, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: 2.273 X-Spam-Level: ** X-Spam-Flag: YES X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:04:01 -0000 --0-1939649571-1151607839=:91636 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME? and... What does "GNOME integration" buy you? Please give examples? Is there some extra work one must do to get this "integration" in their GTK app? (I'm wondering if wxGTK apps will work with GNOME) Chris --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME?

and...

What does "GNOME integration" buy you?  Please give examples?


Is there some extra work one must do to get this "integration"
in their GTK app?

(I'm wondering if wxGTK apps will work with GNOME)

Chris


Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636-- From christianseberino@yahoo.com Thu Jun 29 15:05:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B45013B0003 for ; Thu, 29 Jun 2006 15:05:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03609-10 for ; Thu, 29 Jun 2006 15:05:54 -0400 (EDT) Received: from web37610.mail.mud.yahoo.com (web37610.mail.mud.yahoo.com [209.191.87.93]) by menubar.gnome.org (Postfix) with SMTP id CEAD03B00A4 for ; Thu, 29 Jun 2006 15:05:53 -0400 (EDT) Received: (qmail 42338 invoked by uid 60001); 29 Jun 2006 19:05:53 -0000 Message-ID: <20060629190553.42336.qmail@web37610.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37610.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:05:53 PDT Date: Thu, 29 Jun 2006 12:05:53 -0700 (PDT) From: Christian Seberino Subject: Do wx apps lose any (GNOME) integration abilitlies of "pure" GTK apps? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2050439885-1151607953=:41127" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.742 tagged_above=-999 required=2 tests=[AWL=-0.907, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_MESSAGE=0.001] X-Spam-Score: 0.742 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:05:55 -0000 --0-2050439885-1151607953=:41127 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps? e.g. with GNOME and with other GTK apps? (I sent another email about what benefits there are to integration as I'm not sure.) I don't know if there any bad things about using wx with GTK under the hood. Chris --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps?
e.g. with GNOME and with other GTK apps?

(I sent another email about what benefits there are to integration
as I'm not sure.)

I don't know if there any bad things about using wx with GTK under the
hood.

Chris


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127-- From christianseberino@yahoo.com Thu Jun 29 15:09:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 777823B00AE for ; Thu, 29 Jun 2006 15:09:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03693-08 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: from web37603.mail.mud.yahoo.com (web37603.mail.mud.yahoo.com [209.191.87.86]) by menubar.gnome.org (Postfix) with SMTP id 9717A3B00A4 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: (qmail 26717 invoked by uid 60001); 29 Jun 2006 19:08:59 -0000 Message-ID: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37603.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:08:59 PDT Date: Thu, 29 Jun 2006 12:08:59 -0700 (PDT) From: Christian Seberino Subject: Any reason to worry about using wx? (but it uses GTK!?! :) To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1343824353-1151608139=:24277" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.122 tagged_above=-999 required=2 tests=[AWL=-2.190, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514] X-Spam-Score: 1.122 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:09:01 -0000 --0-1343824353-1151608139=:24277 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux. Can anyone see any problems //down the road// with using wx as far as losing benefits a pure GTK app would have? Thanks Chris --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux.

Can anyone see any problems //down the road// with using wx as far
as losing benefits a pure GTK app would have?

Thanks

Chris


Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277-- From einKI.ml@gmx.net Thu Jun 29 17:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A16FC3B0285 for ; Thu, 29 Jun 2006 17:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09269-06 for ; Thu, 29 Jun 2006 17:14:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 7577E3B018F for ; Thu, 29 Jun 2006 17:14:15 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:14:14 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp019) with SMTP; 29 Jun 2006 23:14:14 +0200 X-Authenticated: #31874521 Subject: Draw directly to the screen From: "einKI.ml" To: gtk-list Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:14:12 +0200 Message-Id: <1151615652.5113.18.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.456 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.456 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:14:17 -0000 Hi My goal is to draw a line directly to the screen using gdk. "To the screen" means that it should be visible for the user over any other window. I thin i have to use the root window to accomplish this int main( int argc,char *argv[] ) { gtk_init (&argc, &argv); GdkWindow* rw = gdk_get_default_root_window(); GdkGC* gc = gdk_gc_new(rw); gdk_draw_line(rw,gc,10,10,500,500); gdk_flush(); gtk_main (); return 0; } However i dont see anything. I only can see the line if i shut down the x-server. So I believe i only draw to the background even behind nautilus. This seems logically but I cant find any other method to draw directly to the screen. If anyone has done this before or know how to do it I appreciate any help by einKI From paul@linuxaudiosystems.com Thu Jun 29 17:22:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EBB533B007B for ; Thu, 29 Jun 2006 17:22:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09674-01 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id C875B3B0198 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1N00CZL4PFXGPC@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 29 Jun 2006 16:22:28 -0500 (CDT) Date: Thu, 29 Jun 2006 17:22:58 -0400 From: Paul Davis Subject: Re: Draw directly to the screen In-reply-to: <1151615652.5113.18.camel@localhost> To: einKI.ml@gmx.net Message-id: <1151616178.28727.116.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1151615652.5113.18.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.55 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599] X-Spam-Score: -2.55 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:22:34 -0000 On Thu, 2006-06-29 at 23:14 +0200, einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. i suggest you look for the little app called "gromit" for ideas. From king@eiffel.com Thu Jun 29 17:26:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC5C53B0273 for ; Thu, 29 Jun 2006 17:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09893-02 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from smtp.eiffel.com (smtp.eiffel.com [65.170.180.5]) by menubar.gnome.org (Postfix) with ESMTP id A79583B0198 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from ise171.ise ([10.0.10.171]) by smtp.eiffel.com with esmtp (Exim 4.01) id 1Fw42B-0004qX-00; Thu, 29 Jun 2006 14:26:47 -0700 Message-ID: <44A44597.9030902@eiffel.com> Date: Thu, 29 Jun 2006 14:26:47 -0700 From: Ian King User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: einKI.ml@gmx.net Subject: Re: Draw directly to the screen References: <1151615652.5113.18.camel@localhost> In-Reply-To: <1151615652.5113.18.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[AWL=0.053, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.469 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:26:50 -0000 If you add the line gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); after you create the gc, then it should draw over all child windows. Regards, Ian King Eiffel Software einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. > > I thin i have to use the root window to accomplish this > > int main( int argc,char *argv[] ) > { > gtk_init (&argc, &argv); > > GdkWindow* rw = gdk_get_default_root_window(); > GdkGC* gc = gdk_gc_new(rw); > gdk_draw_line(rw,gc,10,10,500,500); > > gdk_flush(); > > gtk_main (); > return 0; > } > > However i dont see anything. I only can see the line if i shut down the > x-server. So I believe i only draw to the background even behind > nautilus. This seems logically but I cant find any other method to draw > directly to the screen. > > If anyone has done this before or know how to do it I appreciate any > help > by > einKI > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From einKI.ml@gmx.net Thu Jun 29 17:40:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C2FF3B013E for ; Thu, 29 Jun 2006 17:40:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10413-05 for ; Thu, 29 Jun 2006 17:40:31 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id BE9303B0120 for ; Thu, 29 Jun 2006 17:40:30 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:40:29 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp035) with SMTP; 29 Jun 2006 23:40:29 +0200 X-Authenticated: #31874521 Subject: Re: Re: Draw directly to the screen From: "einKI.ml" To: gtk-list In-Reply-To: <44A44597.9030902@eiffel.com> References: <1151615652.5113.18.camel@localhost> <44A44597.9030902@eiffel.com> Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:40:28 +0200 Message-Id: <1151617228.5113.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.5 tagged_above=-999 required=2 tests=[AWL=0.100, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.5 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:40:32 -0000 Hi > If you add the line > gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); > after you create the gc, then it should draw over all child windows. thx works perfect! I think i never figured this out alone from the reference but now its clear. > i suggest you look for the little app called "gromit" for ideas. seems a good starting point thy you too by From esodan@gmail.com Thu Jun 29 18:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 70A2A3B00AC for ; Thu, 29 Jun 2006 18:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13109-09 for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 2822F3B000D for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so628092uge for ; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.224.19 with SMTP id w19mr727175ugg; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.233.12 with HTTP; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Message-ID: <144160610606291553u37f4a830l7012f094d4db4cb3@mail.gmail.com> Date: Thu, 29 Jun 2006 17:53:31 -0500 From: "Daniel Espinosa" To: "Clemens Eisserer" Subject: Re: Newbie question about GTKs object model... In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9631_30011709.1151621611867" References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=-0.174, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.122 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 22:53:34 -0000 ------=_Part_9631_30011709.1151621611867 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2006/6/29, Clemens Eisserer : > > Sorry for such a stupid question ... shame on myself for asking it :-/ > > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow", instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? btw. yes I did read some docs > about Glib's object model ;) > > Thank you in advance, lg Clemens > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Why do you need GdkWindow? If you only need to create a window, don't worry about GdkWindow, is internaly managed by a GtkWindow object. --=20 Trabajar, la mejor arma para tu superaci=F3n "de grano en grano, se hace la arena" (R) (entr=E1mite, pero para los cuate= s: LIBRE) ------=_Part_9631_30011709.1151621611867 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

2006/6/29, Clemens Eisserer <linuxhippy@gmail.com>:<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Sorry for such a stupid question ... shame on myself for asking it :-/
<= br>I looked arround GdkWindow.h/c  bit and actually did not find = the
definition of the type "GdkWindow", instead I only found t= he
definition of _GdkWindowObject which looks quite like I imagine
GdkWindo= w could look like.
So where/how does a GdkWindowObject become to an GdkW= indow or do I
understand some things completly wrong? btw. yes I did rea= d some docs
about Glib's object model ;)

Thank you in advance, lg Clemens_______________________________________________
gtk-list mailing listgtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
<= br>Why do you need GdkWindow?

If you only need to create a window, d= on't worry about GdkWindow, is internaly managed by a GtkWindow object.

--
Trabajar, la mejor arma para tu superaci=F3n"de grano en grano, se hace la arena" (R) (entr=E1mite, pero pa= ra los cuates: LIBRE) ------=_Part_9631_30011709.1151621611867-- From suryakiran.gullapalli@gmail.com Thu Jun 1 00:10:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24B3A3B00BB for ; Thu, 1 Jun 2006 00:10:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04016-08 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by menubar.gnome.org (Postfix) with ESMTP id 9B3453B00B8 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so260553nzo for ; Wed, 31 May 2006 21:10:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=N+wbMTsUS0m6ybIQQ6WBzXon9fU/EEzIVq5El3whjJyUR4SAxxBUxIEOsBfVXkeL2YbImX2jAbHiSNiVELVdbozPa3i6O5WTSb6jawRIjg1MW1JZlhMea6gfJPV+YUdgdJ2gGLM2E/7KnKs55/7qEZslYRDyBuFifgtqtukaPXo= Received: by 10.36.160.15 with SMTP id i15mr231979nze; Wed, 31 May 2006 21:10:50 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Wed, 31 May 2006 21:10:50 -0700 (PDT) Message-ID: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Date: Thu, 1 Jun 2006 09:40:50 +0530 From: "Surya Kiran Gullapalli" To: "Tor Lillqvist" In-Reply-To: <17533.16487.144000.523256@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1980_31614517.1149135050887" References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.185, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.28 X-Spam-Level: Cc: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 04:10:54 -0000 ------=_Part_1980_31614517.1149135050887 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > > That's what supposed to happen when one uses the ms-windows theme. > I've got it. The stock icons are coming with other themes. Thanks, Surya ------=_Part_1980_31614517.1149135050887 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
That's what supposed to happen when one uses the ms-windows theme.

I've got it. The stock icons are coming with other themes.
Thanks,
Surya
------=_Part_1980_31614517.1149135050887-- From kaminaga@sm.sony.co.jp Thu Jun 1 02:40:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 71ACE3B00EB for ; Thu, 1 Jun 2006 02:40:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10435-03 for ; Thu, 1 Jun 2006 02:40:55 -0400 (EDT) Received: from ns4.sony.co.jp (NS4.Sony.CO.JP [137.153.0.44]) by menubar.gnome.org (Postfix) with ESMTP id 2A5ED3B00CB for ; Thu, 1 Jun 2006 02:40:54 -0400 (EDT) Received: from mail7.sony.co.jp ([43.0.1.209]) Received: from mail7.sony.co.jp (localhost [127.0.0.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516eqQM024123 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516epjT024108 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k516epY19677 for ; Thu, 1 Jun 2006 15:40:51 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k516fCXh017466 for ; Thu, 1 Jun 2006 15:41:12 +0900 (JST) Date: Thu, 01 Jun 2006 15:37:37 +0900 (JST) Message-Id: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> To: gtk-list@gnome.org From: Hiroki Kaminaga X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.184 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.184 X-Spam-Level: Subject: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 06:40:57 -0000 Hi, I'm trying to build GTK+ for ARM architecture, my target board is TI OMAP Starter Kit 5912 (OSK5912). >From the GTK+ FAQ, I built below package: pkg-config GNU make JPEG, PNG, TIFF libraries FreeType2 fontconfig (iconv was in glibc) gettext Glib Pango ATK and when I tryed to build GTK+, configure gave me below message: * * * checking for X... no configure: error: X development libraries not found * * * Is X required package? ARM has a limited resource, so if it is not necessary, I would like to avoid installing it. Thanks in Advance. (Hiroki Kaminaga) t -- From carlo-ag@libero.it Thu Jun 1 03:15:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CA9B63B0C35 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11982-05 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from relay-pt1.poste.it (relay-pt1.poste.it [62.241.4.164]) by menubar.gnome.org (Postfix) with ESMTP id C4C5A3B0109 for ; Thu, 1 Jun 2006 03:15:39 -0400 (EDT) Received: from [192.168.1.52] (151.37.218.171) by relay-pt1.poste.it (7.2.063) (authenticated as carlo.agrusti@poste.it) id 44119E620017FBFA for gtk-list@gnome.org; Thu, 1 Jun 2006 09:15:38 +0200 Message-ID: <447E9418.5010106@libero.it> Date: Thu, 01 Jun 2006 09:15:36 +0200 From: Carlo Agrusti User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> In-Reply-To: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> X-Enigmail-Version: 0.93.0.0 OpenPGP: id=9C055DBF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.476 tagged_above=-999 required=2 tests=[AWL=-0.785, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.476 X-Spam-Level: Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:15:41 -0000 Hiroki Kaminaga ha scritto lo scorso 01/06/2006 08:37: > Hi, > > I'm trying to build GTK+ for ARM architecture, my target board is > TI OMAP Starter Kit 5912 (OSK5912). > >>From the GTK+ FAQ, I built below package: > pkg-config > GNU make > JPEG, PNG, TIFF libraries > FreeType2 > fontconfig > (iconv was in glibc) > gettext > Glib > Pango > ATK > > and when I tryed to build GTK+, configure gave me below message: > * * * > checking for X... no > configure: error: X development libraries not found > * * * > > Is X required package? Yes, it is (unless you are using the old and unmaintained framebuffer back end). > ARM has a limited resource, so if it is not > necessary, I would like to avoid installing it. > Don't use full X server; if you enable KDrive, you will have a fully featured "tiny" X server for less than 1 MiB (compare it with a modern glibc environment and you will discover where your resources are used). From kaminaga@sm.sony.co.jp Thu Jun 1 03:46:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 793603B0C4E for ; Thu, 1 Jun 2006 03:46:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13720-10 for ; Thu, 1 Jun 2006 03:46:31 -0400 (EDT) Received: from ns6.sony.co.jp (NS6.Sony.CO.JP [137.153.0.32]) by menubar.gnome.org (Postfix) with ESMTP id 0334C3B0110 for ; Thu, 1 Jun 2006 03:46:29 -0400 (EDT) Received: from mail6.sony.co.jp ([43.0.1.208]) Received: from mail6.sony.co.jp (localhost [127.0.0.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRjJ023935; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRRt023922; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k517kQY24496; Thu, 1 Jun 2006 16:46:26 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k517kk68014618; Thu, 1 Jun 2006 16:46:47 +0900 (JST) Date: Thu, 01 Jun 2006 16:43:12 +0900 (JST) Message-Id: <20060601.164312.41633181.kaminaga@sm.sony.co.jp> To: carlo-ag@libero.it From: Hiroki Kaminaga In-Reply-To: <447E9418.5010106@libero.it> References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> <447E9418.5010106@libero.it> X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:46:32 -0000 From: Carlo Agrusti > Don't use full X server; if you enable KDrive, you will have a fully > featured "tiny" X server for less than 1 MiB (compare it with a modern > glibc environment and you will discover where your resources are used). Thank you! (Hiroki Kaminaga) t -- From kereoz@yahoo.fr Thu Jun 1 04:42:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F0E363B00DE for ; Thu, 1 Jun 2006 04:42:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17618-03 for ; Thu, 1 Jun 2006 04:42:36 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id C57323B00CD for ; Thu, 1 Jun 2006 04:42:35 -0400 (EDT) Received: (qmail 90880 invoked by uid 60001); 1 Jun 2006 08:42:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SOSnkJ16bagATwum4KefozXDgJ6fNTELp2hlhxrZ18sFApRnFZ2uY4nD+XvPhLcAJLolKMxgKsoCZk2C0xq2bxeC1M45xM6rsDN3nmiDPbam+/dTLt9nVK8hBL/wJXkIJI+1e1bGiFduHMquH1OHHZO/CZysGRmiQOduxm7a+bw= ; Message-ID: <20060601084234.90878.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 01 Jun 2006 10:42:34 CEST Date: Thu, 1 Jun 2006 10:42:34 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.36 tagged_above=-999 required=2 tests=[AWL=-0.319, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.36 X-Spam-Level: Subject: Re: Widgets overlap X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 08:42:39 -0000 Hi, First, thanks for your answers :) But I didn't ask the good question : in fact, I'd like to overlap a video output widget and a Mozilla gecko widget. I want to put the browser on top of the video output, so you can see the video through the brower. In a word, the browser should be transparent. I know this is possible to do such things when the video widget works with framebuffer. Some poeple did such things with DirectX already, and I'm looking for a way to do it with GTK. Christophe HAUSER http://kereoz.sup.fr ___________________________________________________________________________ Yahoo! Mail r閕nvente le mail ! D閏ouvrez le nouveau Yahoo! Mail et son interface r関olutionnaire. http://fr.mail.yahoo.com From katsuo_harada_evil_does@hotmail.com Thu Jun 1 11:17:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C53B13B0DB9 for ; Thu, 1 Jun 2006 11:17:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15140-10 for ; Thu, 1 Jun 2006 11:17:02 -0400 (EDT) Received: from hotmail.com (bay105-f37.bay105.hotmail.com [65.54.224.47]) by menubar.gnome.org (Postfix) with ESMTP id BC3F83B0DA9 for ; Thu, 1 Jun 2006 11:16:58 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Jun 2006 08:16:57 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 01 Jun 2006 15:16:55 GMT X-Originating-IP: [86.200.250.161] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Thu, 01 Jun 2006 17:16:55 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 01 Jun 2006 15:16:57.0804 (UTC) FILETIME=[6C7428C0:01C6858E] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.275 tagged_above=-999 required=2 tests=[AWL=0.891, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BG=0.077] X-Spam-Score: 0.275 X-Spam-Level: Subject: GLib 2.11.1 FreeBSD make fails X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 15:17:07 -0000 Hello, All! I've already posted a make issue here not so long time ago. Here we come again. For a history i'm building a desktop station based on FreeBSD 4.11-RELEASE (GENERIC) kernel. while building GLib-2.11.1 i've got the following errors : http://pages-perso.esil.univ-mrs.fr/~vdoljiko/pub/make.log +++++++ HERE COMES AN EXTRAIT ++++++++ [SNIP] Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r [COMMENT] Notice the presence of -lc_r option [/COMMENT] gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib [COMMENT] Notice the absence of the -lc_r option [/COMMENT] gcc: unrecognized option `-pthreads' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_signal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getspecific' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_exit' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_equal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setscope' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_broadcast' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_key_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setstacksize' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_unlock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_self' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_lock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_wait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_trylock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setdetachstate' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_join' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_timedwait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setspecific' *** Error code 1 Stop in /home/libs/glib-2.11.1/tests/refcount. *** Error code 1 Stop in /home/libs/glib-2.11.1/tests. *** Error code 1 Stop in /home/libs/glib-2.11.1. *** Error code 1 Stop in /home/libs/glib-2.11.1. ++++++++++++++ END +++++++++++++++++++++++++++ as you can see the problem comes IMHO from badly compiled libgthread because it was compiled without -lc_r option. libc_r.a is the implementation of threads on FreeBSD system. During configure of GLib-2.11.1 i've specified LIBS=-lc_r and even LDFLAGS=-lc_r (!!! :-) ) but libgthread IMHO wasn't properly compiled. It seems that libtool and compagny line invoked from Makefile preserves -lc_r option but the effective command doesn't include -lc_r option as you can see in the example above. BUT libgthread don't reference pthread functions as result we get the above errors. 2. as you can see the line Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r specifies -lc_r option BUT when executing the effective command this option is not present! WHY! i'm using GNU make latest specially build for freetype build. i've solved the problem by manually writing gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib -lc_r in Makefile in tests/refcount directory for each target (closures properties signals) and it worked, but i'm wondering if there won't be any problems on run-time ??? i should also say that the exactly the same problem occurs in test directory whiile compiling error-mutex-something.c what can you say about this ??? how should i proceed in order to build "proper" glib-2.11.1 ??? p.s while compiling pkg-config early i've got the same problems but in gthread subdirectory. was solved in the same manner by mannualy adding -lc_r option but not in make file but on the command line. as make checks for newer versions and dependencies it was sufficent. but in GLib-2.11.1 compiling mannually don't work because of rm -f before building each target. -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From dkasak@nusconsulting.com.au Thu Jun 1 22:11:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 095BB3B0196 for ; Thu, 1 Jun 2006 22:11:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23630-03 for ; Thu, 1 Jun 2006 22:11:15 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 9D4E63B010C for ; Thu, 1 Jun 2006 22:11:14 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k522CNvG022220; Fri, 2 Jun 2006 12:12:23 +1000 Message-ID: <447F9E48.6090304@nusconsulting.com.au> Date: Fri, 02 Jun 2006 12:11:20 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Surya Kiran Gullapalli , gtk-list@gnome.org References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> In-Reply-To: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 451465 - be5dc1df8278 X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=451465&m=be5dc1df8278 X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=451465&m=be5dc1df8278 X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=451465&m=be5dc1df8278 X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.428 tagged_above=-999 required=2 tests=[AWL=0.171, BAYES_00=-2.599] X-Spam-Score: -2.428 X-Spam-Level: Cc: Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 02:11:17 -0000 Surya Kiran Gullapalli wrote: > > That's what supposed to happen when one uses the ms-windows theme. > > > I've got it. The stock icons are coming with other themes. > Thanks, > Surya How are you installing / changing themes under Windows? I've been using a utility from http://members.lycos.co.uk/alexv6/ but if there are others, I'd like to know. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From lists@nabble.com Fri Jun 2 01:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A34C53B030A for ; Fri, 2 Jun 2006 01:41:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32639-07 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 15A363B0341 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm2Pf-0007IZ-7Z for gtk-list@gnome.org; Thu, 01 Jun 2006 22:41:35 -0700 Message-ID: <4674575.post@talk.nabble.com> Date: Thu, 1 Jun 2006 22:41:35 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <43ACACCA.70309@micahcarrick.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <43ACACCA.70309@micahcarrick.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 05:41:37 -0000 Maybe I am having the same question as you do. I am trying to display a 24bit image with size 2048X2048 pixels, and following is my code: //create a GdkPixbuf GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer GDK_COLORSPACE_RGB, //COLORSPACE FALSE, // has_alpha, 8, // int bits_per_sample, 2048, // int width, 2048, // int height, 2048*3, // sizeX*3; //int rowstride, NULL, //GdkPixbufDestroyNotify destroy_fn, NULL //gpointer destroy_fn_data); ); //display img GtkWidget* img = lookup_widget(MainWnd, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(img), //GtkImage *image, pb// GdkPixbuf *pixbuf ); the results i got is that: the image did appear, but the sizes are shrinked as 684 X 684 , and there are THREE same images tile in the viewport, the first and last ones are clipped. Can anyone tell me how to fix this? thanks!! -- View this message in context: http://www.nabble.com/Help-with-GdkPIxbuf-and-GtkImage...-t800118.html#a4674575 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Fri Jun 2 03:28:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 436273B08CC for ; Fri, 2 Jun 2006 03:28:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06135-06 for ; Fri, 2 Jun 2006 03:28:26 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1BD913B1044 for ; Fri, 2 Jun 2006 03:28:21 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm44x-0003Cd-RJ for gtk-list@gnome.org; Fri, 02 Jun 2006 00:28:19 -0700 Message-ID: <4675519.post@talk.nabble.com> Date: Fri, 2 Jun 2006 00:28:19 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <20060314073947.e7cba872.lists@elehack.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.527 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.527 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:28:29 -0000 Hi Michael, I am a beginner in Linux programming, and your suggestion works! But I am still having some problem that the CPU usage is always 100% after the program starts. Could you please look at my code below and give me some suggestion? Thanks a lot!!! Following is some of my code: // idle handler of the main loop gboolean OnIdle(int msgQid) { if(thread_signal) { RefreshImage(); } return TRUE; } int main (int argc, char *argv[]) { gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); //register an idle handler to update the image when the background thread emits a signal gdk_threads_enter(); g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a * PyGTK/GTKmm guy, so the C stuff * isn't my forte */ gdk_threads_leave(); MainWnd = create_MainWnd (); gtk_widget_show (MainWnd); gtk_main (); return 0; } -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Fri Jun 2 03:45:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F5423B1055 for ; Fri, 2 Jun 2006 03:45:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07057-07 for ; Fri, 2 Jun 2006 03:45:02 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id F1BFC3B104E for ; Fri, 2 Jun 2006 03:45:01 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp1-g19.free.fr (Postfix) with ESMTP id 9B0EE9A3E2; Fri, 2 Jun 2006 09:45:00 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4675519.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 09:47:58 +0200 Message-Id: <1149234479.10209.10.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.848 tagged_above=-999 required=2 tests=[AWL=-0.395, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.848 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:45:03 -0000 Le vendredi 02 juin 2006 00:28 -0700, heavenscape a 閏rit : > Hi Michael, > > I am a beginner in Linux programming, and your suggestion works! But I am > still having some problem that the CPU usage is always 100% after the > program starts. Could you please look at my code below and give me some > suggestion? > > Thanks a lot!!! > > Following is some of my code: > > // idle handler of the main loop > gboolean OnIdle(int msgQid) > { > if(thread_signal) > { > RefreshImage(); > } > return TRUE; > } Do you need to reexecute indefinitely this idle handler? If not use: return FALSE; > int main (int argc, char *argv[]) > { > gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, > argc, argv, > GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, > NULL); > > //register an idle handler to update the image when the background thread > emits a signal > gdk_threads_enter(); > g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a > * PyGTK/GTKmm guy, so the C stuff > * isn't my forte */ > gdk_threads_leave(); > > MainWnd = create_MainWnd (); > gtk_widget_show (MainWnd); > > gtk_main (); > return 0; > } > > -- > View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From lists@nabble.com Fri Jun 2 06:33:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D3563B03E4 for ; Fri, 2 Jun 2006 06:33:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18136-04 for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 6ACDD3B030A for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm6y0-0004Vq-NT for gtk-list@gnome.org; Fri, 02 Jun 2006 03:33:20 -0700 Message-ID: <4677462.post@talk.nabble.com> Date: Fri, 2 Jun 2006 03:33:20 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <1149234479.10209.10.camel@athlon.brefort.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 10:33:27 -0000 Yes! My background thread will send a message when it has finished something, so I do need the check the message status frequently. If my OnIdle function return false, it will never be called again, and therefore cannot monitor the message status any more. Is there any alternate solution? Thanks a lot!! -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4677462 Sent from the Gtk+ - General forum at Nabble.com. From george@clipper.ens.fr Fri Jun 2 09:36:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CE273B0401 for ; Fri, 2 Jun 2006 09:36:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29496-08 for ; Fri, 2 Jun 2006 09:36:35 -0400 (EDT) Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by menubar.gnome.org (Postfix) with ESMTP id 0462C3B03FE for ; Fri, 2 Jun 2006 09:36:34 -0400 (EDT) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id k52DaXPt088553 for ; Fri, 2 Jun 2006 15:36:33 +0200 (CEST) X-Envelope-To: Received: from (george@localhost) by clipper.ens.fr (8.13.1/jb-1.1) Date: Fri, 2 Jun 2006 15:36:33 +0200 From: Nicolas George To: gtk-list@gnome.org Message-ID: <20060602133633.GA9572@clipper.ens.fr> References: <1149104973.27709.4.camel@localhost.localdomain> <7bf6f2dc0606010816q15d512aejc30a6c93bc165e6@mail.gmail.com> <1149253312.4847.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <1149253312.4847.21.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.10 (nef2.ens.fr [129.199.96.32]); Fri, 02 Jun 2006 15:36:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[AWL=0.054, BAYES_00=-2.599] X-Spam-Score: -2.545 X-Spam-Level: Subject: Re: Color space transformations in GTK X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 13:36:38 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le quartidi 14 prairial, an CCXIV, Carlos Eduardo Rodrigues Diogenes a =E9c= rit=A0: > I think that it will help who want to play with colors in a quick way. I > don't find this in any other library, and I thinked that GTK+ could be a > good place for this, because it will become easiest to work with other > colors representations in GTK+ applications. Did you try lcms ? Despite being quite complete, it is also simple for simple tasks. --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (SunOS) iD8DBQFEgD7hsGPZlzblTJMRAh3AAJ4y7eJCapcSqGa0p/kKpw5km+O+2QCfR5Xv BafttugMjFnieL87fO646B4= =R3g0 -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From Valdis.Kletnieks@vt.edu Fri Jun 2 10:32:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B6FA03B0272 for ; Fri, 2 Jun 2006 10:32:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32747-03 for ; Fri, 2 Jun 2006 10:32:00 -0400 (EDT) Received: from turing-police.cc.vt.edu (pool-72-66-198-190.ronkva.east.verizon.net [72.66.198.190]) by menubar.gnome.org (Postfix) with ESMTP id B51C63B0238 for ; Fri, 2 Jun 2006 10:31:59 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k52EVr54003265; Fri, 2 Jun 2006 10:31:53 -0400 Message-Id: <200606021431.k52EVr54003265@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: heavenscape In-Reply-To: Your message of "Thu, 01 Jun 2006 22:41:35 PDT." <4674575.post@talk.nabble.com> From: Valdis.Kletnieks@vt.edu References: <43ACACCA.70309@micahcarrick.com> <4674575.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1149258713_2700P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 02 Jun 2006 10:31:53 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.827 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961, RCVD_IN_NJABL_DUL=1.946, SPF_SOFTFAIL=1.384] X-Spam-Score: 1.827 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:32:02 -0000 --==_Exmh_1149258713_2700P Content-Type: text/plain; charset=us-ascii On Thu, 01 Jun 2006 22:41:35 PDT, heavenscape said: > //create a GdkPixbuf > GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer > GDK_COLORSPACE_RGB, //COLORSPACE > FALSE, // has_alpha, > 8, // int bits_per_sample, > 2048, // int width, > 2048, // int height, > 2048*3, // sizeX*3; //int rowstride, > NULL, //GdkPixbufDestroyNotify destroy_fn, > NULL //gpointer destroy_fn_data); > ); > the results i got is that: the image did appear, but the sizes are shrinked > as 684 X 684 , and there are THREE same images tile in the viewport, the > first and last ones are clipped. 684 is 2048/3, plus rounding. Are you sure that when you *loaded* the image into your pDisplayBuf, you correctly calculated where the various bytes go? Assuming pixel values r, g, and b, storing them into your pDisplayBuf for a given x,y (0-based coordinates 0..2047) is like this: pDisplayBuf[x*3+y] = r; pDisplayBuf[x*3+y+1] = g; pDisplayBuf[x*3+y+2] = b; Hmm... using x+y instead of x*3+y will produce a 1/3 width image and 2/3 trash. Other possibility is you're using 3*y+x instead (confusion of x/y between your code and what Gdk expects). --==_Exmh_1149258713_2700P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEgEvZcC3lWbTT17ARAhTUAJ4zzY8i6PbLXYW709arggnJGSHTEgCg6YNz WALAkmi+KDAQus4gx/9nsnc= =/pC/ -----END PGP SIGNATURE----- --==_Exmh_1149258713_2700P-- From jean.brefort@normalesup.org Fri Jun 2 10:58:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 708E23B1174 for ; Fri, 2 Jun 2006 10:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01643-02 for ; Fri, 2 Jun 2006 10:58:23 -0400 (EDT) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id 73B6A3B1194 for ; Fri, 2 Jun 2006 10:58:18 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id CA2F254B3D; Fri, 2 Jun 2006 16:58:16 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 17:01:16 +0200 Message-Id: <1149260476.8914.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.89 tagged_above=-999 required=2 tests=[AWL=-0.360, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.89 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:58:41 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? You can use a timer, or display the message from your thread, or ... from the thread, you might use something as: gdk_threads_enter(); RefreshImage(); gdk_threads_leave(); From patrick.jacquotf@free.fr Fri Jun 2 14:47:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C93393B01E0 for ; Fri, 2 Jun 2006 14:47:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15276-10 for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 6763B3B01BA for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp6-g19.free.fr (Postfix) with ESMTP id 62746226CC; Fri, 2 Jun 2006 20:47:48 +0200 (CEST) From: Patrick Jacquot To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 20:47:40 +0200 Message-Id: <1149274060.8687.52.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 18:47:54 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? Usually, one establishes a callback function to to be called when a message is due to be serviced. I'm not fluent in GTK programming (nor in English), but all GUI systems work so. -- Patrick From gnome-gtk-list@m.gmane.org Sun Jun 4 19:35:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4EAE3B0429 for ; Sun, 4 Jun 2006 19:35:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18939-10 for ; Sun, 4 Jun 2006 19:35:11 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 0D3193B0409 for ; Sun, 4 Jun 2006 19:35:10 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fn27a-0002sx-IN for gtk-list@gnome.org; Mon, 05 Jun 2006 01:35:02 +0200 Received: from cpe-72-130-182-162.san.res.rr.com ([72.130.182.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 Received: from swbrown by cpe-72-130-182-162.san.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Steven Brown Date: Sun, 04 Jun 2006 16:27:05 -0700 Lines: 9 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe-72-130-182-162.san.res.rr.com User-Agent: Thunderbird 1.5.0.2 (X11/20060516) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.524 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.524 X-Spam-Level: Subject: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2006 23:35:12 -0000 I've been going through the glib docs trying to find a simple way to get my fd polled by glib's main loop and call me back, but I've not found anything near simple. Is there such a way? E.g., something like gdk_input_add (which says it's deprecated but doesn't say by what). I see that it could be implemented by a custom g_source_new and such, but doing so is a pretty huge amount of code for what should be a one-liner. I must be missing something obvious. From tristan.van.berkom@gmail.com Sun Jun 4 20:22:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7D323B0531 for ; Sun, 4 Jun 2006 20:22:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21420-01 for ; Sun, 4 Jun 2006 20:22:16 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id ABF0A3B05C2 for ; Sun, 4 Jun 2006 20:22:09 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i3so885889wra for ; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=rGr3/uC/YjBwRnO7oTslcMuIA9XLNEuzYxfx1mSmalOpfI5DfMvRkAHrJm5Uu4mO4fRWnEh4XiD/dS6k78RZC8DI+4xudasUUhtMNMAELaVGjCd2ZwBoZwXs7im6w9gxcnx+XmxCfeSUgDeWR1qP4mLIJ8IYyx0sU8kTo2Z5nKA= Received: by 10.54.111.13 with SMTP id j13mr4300960wrc; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) Received: from ?66.48.170.25? ( [66.48.170.25]) by mx.gmail.com with ESMTP id 33sm2256255wra.2006.06.04.17.22.06; Sun, 04 Jun 2006 17:22:08 -0700 (PDT) Message-ID: <44837CEA.9020604@gnome.org> Date: Sun, 04 Jun 2006 20:38:02 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Brown References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.196 tagged_above=-999 required=2 tests=[AWL=0.404, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.196 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 00:22:20 -0000 Steven Brown wrote: >I've been going through the glib docs trying to find a simple way to get >my fd polled by glib's main loop and call me back, but I've not found >anything near simple. Is there such a way? E.g., something like >gdk_input_add (which says it's deprecated but doesn't say by what). > >I see that it could be implemented by a custom g_source_new and such, >but doing so is a pretty huge amount of code for what should be a >one-liner. I must be missing something obvious. > > > Well its not a one-liner... but something close to a one-liner: ================================== GIOChannel *channel = g_io_channel_unix_new (fd_to_poll); guint source_id = g_io_add_watch (channel, /* args of add_watch... */); /* For convenience... pass ownership of the channel to the attached GIOWatchSource */ g_object_unref (channel); /* .... */ At this point your callback will be called under the conditions you specified... when you are finished with the polling... you should call g_source_remove(source_id); and this will get rid of the io channel object as well as your poll function. ================================== Cheers, -Tristan From mclasen@redhat.com Mon Jun 5 14:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 744343B09D3; Mon, 5 Jun 2006 14:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20278-06; Mon, 5 Jun 2006 14:15:01 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id D637E3B0988; Mon, 5 Jun 2006 14:15:00 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF08I024331; Mon, 5 Jun 2006 14:15:00 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF0I9021827; Mon, 5 Jun 2006 14:15:00 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55IExAV012588; Mon, 5 Jun 2006 14:14:59 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Mon, 05 Jun 2006 14:14:59 -0400 Message-Id: <1149531299.4071.35.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: Cc: Subject: GLib 2.11.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 18:15:03 -0000 GLib 2.11.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.2.tar.bz2 md5sum: 18464b85bfd589f83897623c637a1553 glib-2.11.2.tar.gz md5sum: f728cd295ac98d4b95d850fe91c05fd5 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.1 to GLib 2.11.2 =================================================== * Add g_ascii_stroll to parse signed 64bit integers * GMarkup: add a flag to treat CDATA as text * GHashTable: add functions to remove all entries * GMainLoop: add functions to find the currently running source, and determine if it is destroyed * Bug fixes: 342563 g_atomic_thread_init() needs to be called before other _g_*_thread_init() functions 343548 Potential use after free in callers of g_string_free() 168538 Wish: Clearing contents of GHashTables 321886 GTK+ cannot be reliably used in multi-threaded applications 341826 goption.c: 'strtoll' is C99's function 343899 g_ascii_formatd dosn't work as expected for all format strings 317793 Make GEnumValue strings const 337129 Compile warnings in G_IMPLEMENT_INTERFACE 303622 What is G_TYPE_CHAR? * Updated translations (bg,dz,eu,gl,ja,nl,th,vi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=341826,342563,343548,168538,168538,321886,343899,321886,317793,337129,303622 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Peter Kjellerstedt, Kazuki Iwamoto Leonard den Ottolander, Chris Wilson, Behdad Esfahbod, Matt Barnes, 貀stein Johansen, Tim Janik Morten Welinder Matthias Clasen June 5, 2006 From mclasen@redhat.com Mon Jun 5 16:21:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 09B113B0543; Mon, 5 Jun 2006 16:21:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28553-01; Mon, 5 Jun 2006 16:21:32 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 0F8903B0012; Mon, 5 Jun 2006 16:21:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLVn7006951; Mon, 5 Jun 2006 16:21:31 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLUBq020469; Mon, 5 Jun 2006 16:21:31 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55KLUAV025318; Mon, 5 Jun 2006 16:21:30 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 05 Jun 2006 16:21:30 -0400 Message-Id: <1149538890.4071.40.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_XI=0.077] X-Spam-Score: -2.429 X-Spam-Level: Cc: Subject: GTK+ 2.9.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 20:21:34 -0000 GTK+ 2.9.2 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.2.tar.gz md5sum: c63e7d0cf7c4e983206c3088a0fb8862 gtk+-2.9.2.tar.bz2 md5sum: 17629437af44fce03485101371c8f041 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.1 to 2.9.2 ============================================ * GtkPrintOperation - Support asynchronous pagination with the ::paginate signal - Add gtk_print_operation_cancel - Support application-specific widgets - Allow disabling features based on application capabilities - Optionally show progress - Change some function names in GtkPrintContext to be longer and better - Support preview, the default implementation spawns evince, but the api allows for an internal preview implementation * GtkCellView - Add a model property * GtkStatusIcon - Allow to obtain screen geometry * GtkTreeView - Many bug fixes, in particular for RTL handling - Separate sensitive and selectable properties of rows - Optionally allow rubberband selection * GtkButton - Add image-spacing style property - Add image-position property * GtkToolButton - Add icon-spacing style property * Make GTK+ work as an untrused X client * Bugs fixed: 343838 gtkprintoperationpreview.h guards 305530 Crashes while creating source code w/GtkFontSelection 341327 Memory corruption inside glib 341734 cursor blocked to dnd mode after using shift and dnd on a GtkCalendar 343453 G_DEFINE_TYPE messes up internal typenames of GdkWindow and GdkPixmap 136571 Problems running as untrusted client 168105 the right edge tab does not appear when switching tab 172535 Add support for UI builders in gtk+ 302556 GtkTreeView widget signals are badly documented 324480 Selecting first item with keyboard is difficult 340428 small cleanup 340444 don't run the custom page size dialogue 340839 Critical warnings in GtkTreeModelFilter 341898 gtk_tree_view_insert_column_with_attributes doesn't work with fixed_height_mode 342003 DnD: Conditional jump or move depends on uninitialised value 342072 Wrong drop location in GtkEntry 342096 GtkImage animation CRITICALS on switching themes 342513 widget class style property with type module 342529 gdk should set resolution on PangoCairoFontmap, not PangoCairoContext 342535 Add documentation for new GtkWidget style properties (including Since tags) 342543 can't compile gtk+ on opensolaris using sun cc 342569 Typo in decl of gdk_color_parse 342752 Need a way to specify custom tab label for custom page in Print dialog 342754 print-editor: font button dialog doesn't get focus if main window has a window group 342781 GtkPrintUnixDialog: Collate should be insensitive unless Copies is > 1 342783 GtkPrintUnixDialog: Range textinput area should be insensitive unless range radiobutton is selected 342894 Use after free inside gtk_text_view_set_buffer 342930 GtkButton should offer a way to position the image relative to the text 343088 Some typos in the PO file 343425 "grab-notify"-signal is not correctly propagated for internal children 343438 gtk_color_button_set_color() doesn't emit "color-set" signal 343475 page setup unix dialog confusion 343625 allow to get only some info from gtk_status_icon_get_geometry 343677 GtkWindow chains key-release to key-press 320431 Text too close when using East/West in a GtkToolButton 321523 GtkTreeView's test_expand_row signal emitting impractical on row expand all 342007 Warning in gtk_paned_compute_position 343233 gdk_rectangle_intersect doc 333284 expander animation not working in RTL mode 343444 change color of gtk-demo source-buffer comment color from red to DodgerBlue 343630 Small inconsistence in migration documentation 80127 Rubberbanding for GtkTreeView 341450 status icon + libnotify 341679 Allow absolute filenames in the options entries * Updated translations (bg,cy,de,el,es,et,eu,gl,gu,it,ja, nb,nl,pt_BR,th,vi) Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Alexander Larsson, Behdad Esfahbod, Benjamin Berg, Caolan McNamara, Carlos Garnacho Parro, Carol Spears, Christian Persch, Chris Wilson, Claudio Saavedra, Clytie Siddall, Damon Chaplin, Daniel Lindenaar, Dan Winship, Diana Fong, Ed Catmur, Emmanuele Bassi, Havoc Pennington, Henrique Romano, Hiroyuki Ikezoe, James Moger, Johan Dahlin, Kouhei Sutou, Kristian Rietveld, Markku Vire, Mart Raudsepp, Masatake Yamato, Michael Emmel, Michael Natterer, Murray Cumming, Olexiy Avramchenko, Paolo Borelli, Patrick Monnerat, Richard Hult, Sampo Savolainen, Sebastien Bacher, Srirama Sharma, Stefan Kost, Tim Janik, Tommi Komulainen, Tor Lillqvist, Yevgen Muntyan A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=342072,342096,342003,341734,305530,168105,342007,342529,342535,342543,342569,341679,342752,172535,342513,342781,342783,342754,136571,341450,333284,340428,340839,341898,321523,343088,343233,324480,342894,320431,342930,343453,343425,343438,343444,340444,343475,302556,343677,343625,80127,343838,341327,168105,343630 Matthias Clasen June 5, 2006 From katsuo_harada_evil_does@hotmail.com Mon Jun 5 17:23:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 859933B03A0 for ; Mon, 5 Jun 2006 17:23:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01136-07 for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from hotmail.com (bay105-f27.bay105.hotmail.com [65.54.224.37]) by menubar.gnome.org (Postfix) with ESMTP id 80FF43B086B for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 14:23:24 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 21:23:22 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Mon, 05 Jun 2006 23:23:22 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 21:23:24.0257 (UTC) FILETIME=[470DA510:01C688E6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.332 tagged_above=-999 required=2 tests=[AWL=-0.716, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.332 X-Spam-Level: Subject: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:23:28 -0000 Hello, i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 when running gtk-demo -> UI Manger demo i've got the following output http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log when trying File menu. is it a bug or not ??? -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Windows Live Messenger : venez tester la version b阾a ! http://www.ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73 From tomasek@ebed.etf.cuni.cz Mon Jun 5 17:57:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 048853B0963 for ; Mon, 5 Jun 2006 17:57:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03329-04 for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (ebed.etf.cuni.cz [195.113.5.3]) by menubar.gnome.org (Postfix) with ESMTP id 1BFA13B086C for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (localhost.localdomain [127.0.0.1]) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11) with ESMTP id k55LkIq0015361 for ; Mon, 5 Jun 2006 23:46:18 +0200 Received: (from tomasek@localhost) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11/Submit) id k55LkIAG015359 for gtk-list@gnome.org; Mon, 5 Jun 2006 23:46:18 +0200 Date: Mon, 5 Jun 2006 23:46:18 +0200 From: Petr Tomasek To: gtk-list@gnome.org Message-ID: <20060605214618.GA14951@ebed.etf.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Homepage: http://www.etf.cuni.cz/~tomasek/ X-Echelon: bomb Arafat Intifada bus kach drugs mafia boss heroin spy Semtex Saddam Al-Qaida Usama bin Ladin Bush Sharon X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.494 X-Spam-Level: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:57:53 -0000 On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > Hello, > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > when running gtk-demo -> UI Manger demo i've got the following output > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > when trying File menu. is it a bug or not ??? Did you also update the gtk2-engines? -- Petr Tomasek From katsuo_harada_evil_does@hotmail.com Mon Jun 5 18:13:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A06E33B08BD for ; Mon, 5 Jun 2006 18:13:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04035-10 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from hotmail.com (bay105-f10.bay105.hotmail.com [65.54.224.20]) by menubar.gnome.org (Postfix) with ESMTP id 1E6233B0929 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 15:13:06 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 22:13:05 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com In-Reply-To: <20060605214618.GA14951@ebed.etf.cuni.cz> From: "Vitaly D" To: tomasek@etf.cuni.cz, gtk-list@gnome.org Date: Tue, 06 Jun 2006 00:13:05 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 22:13:06.0099 (UTC) FILETIME=[385EA030:01C688ED] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.375 tagged_above=-999 required=2 tests=[AWL=-0.759, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.375 X-Spam-Level: Cc: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 22:13:11 -0000 >From: Petr Tomasek >To: gtk-list@gnome.org >Subject: Re: gtk+-2.9.2 bug or not ??? >Date: Mon, 5 Jun 2006 23:46:18 +0200 > >On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > > Hello, > > > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > > > when running gtk-demo -> UI Manger demo i've got the following output > > > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > > > when trying File menu. is it a bug or not ??? > >Did you also update the gtk2-engines? what is gtk2-engines ? i'm using FreeBSD 4.11 with XFree86 4.6.0 with latest pango (1.13.1) atk (1.10.3) cairo (1.1.6) freetype (2.2.1) if this helps. otherwise i don't know what is gtk2-engines Cheers _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From BillS@techsi.com Tue Jun 6 10:26:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 863103B0182 for ; Tue, 6 Jun 2006 10:26:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28454-01 for ; Tue, 6 Jun 2006 10:26:32 -0400 (EDT) Received: from mail.techsi.com (wsip-68-15-225-156.om.om.cox.net [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id B57E73B01B5 for ; Tue, 6 Jun 2006 10:26:31 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56EASAZ022954 for ; Tue, 6 Jun 2006 09:10:31 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 09:26:15 -0500 Message-ID: <00e901c68975$2e2455f0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EA_01C6894B.454E4DF0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.365 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.365 X-Spam-Level: Subject: Treeview - simulating / faking keyboard events to change selection / view X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 14:26:36 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I would like to simulate the functionality of the up and down, page up and down, and home and end keyboard keys to the treeview widget. So instead of writing all the scrolling functions myself, I would just like to use the existing ones within the treeview widget that are activated by keyboard events. So I would like to "trigger" the treeview widget into sensing that one of the keyboard buttons have been pressed that would scroll the treeview by line, page, or beginning or end of list. Thanks, Bill ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I would like to simulate the functionality of the up and down, page = up and down, and home and end keyboard keys to the treeview widget.  So = instead of writing all the scrolling functions myself, I would just like to use = the existing ones within the treeview widget that are activated by keyboard events.  So I would like to “trigger” the treeview = widget into sensing that one of the keyboard buttons have been pressed that would = scroll the treeview by line, page, or beginning or end of = list.

 

Thanks,

Bill

 

------=_NextPart_000_00EA_01C6894B.454E4DF0-- From johannes_vuori@web.de Mon Jun 5 12:46:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 916763B026A for ; Mon, 5 Jun 2006 12:46:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15064-06 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by menubar.gnome.org (Postfix) with ESMTP id 5D9E53B0429 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Reveived: from web.de by fmmailgate04.web.de (Postfix) with SMTP id 044A745BA for ; Mon, 5 Jun 2006 18:46:39 +0200 (CEST) Received: from [85.156.186.148] by freemailng1803.web.de with HTTP; Mon, 05 Jun 2006 18:46:38 +0200 Date: Mon, 05 Jun 2006 18:46:38 +0200 Message-Id: <814204608@web.de> MIME-Version: 1.0 From: johannes_vuori@web.de To: gtk-list@gnome.org Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.221 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, NO_REAL_NAME=0.961] X-Spam-Score: 0.221 X-Spam-Level: X-Mailman-Approved-At: Tue, 06 Jun 2006 11:17:41 -0400 Subject: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 16:46:51 -0000 Hi, I am developing a project with a friend. We are on the search for a good 2d graphics library, and I saw Your's. I would like to ask if the library for Windows and Linux use the same function names. So, if I would write this programm on a Linux system, would it be possible to simply install the Windows library on the Windows system, and without changing the names of the functions (of the library) in my programm, to compile it? Or are there slight/major changes we would have to do first? Is there also a c++ version for Windows? Yours sincerely, Johannes _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From tml@iki.fi Tue Jun 6 11:30:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7D50D3B0151 for ; Tue, 6 Jun 2006 11:30:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00836-04 for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 6E6E93B028A for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from pettson.tml.iki.fi (MMMDCCLXVIII.tun.saunalahti.fi [213.169.6.168]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 8AB222166B5; Tue, 6 Jun 2006 18:30:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17541.40860.218000.127270@gargle.gargle.HOWL> Date: Tue, 6 Jun 2006 18:30:36 +0300 To: johannes_vuori@web.de In-Reply-To: <814204608@web.de> References: <814204608@web.de> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.328 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.328 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 15:30:57 -0000 johannes_vuori@web.de writes: > I am developing a project with a friend. We are on the search for a > good 2d graphics library, Well, GTK+ isn't really a "2D graphics library". Maybe you are using the term loosely, or should you look on cairo instead? > I would like to ask if the library for Windows and Linux use the > same function names. Of course, it wouldn't make any sense otherwise, would it? (There are a few platform-specific functions that have x11 or win32 in their names, but they are very special-case.) > So, if I would write this programm on a Linux system, would it be > possible to simply install the Windows library on the Windows > system, and without changing the names of the functions (of the > library) in my programm, to compile it? If you program otherwise is portable, and if you take into consideration some relatively straightforward rules of thumb to follow, sure. (See http://www.iki.fi/tml/fosdem-2006.pdf ) It's best to build and test on both platforms continuously while developing the software, not just as a last-night effort, only to notice that you have made some fundamental nonportable design choice right at the start... > Is there also a c++ version for Windows? With C++ "version" I guess you mean gtkmm, which really isn't a "version", but a C++ binding on top of GTK+. Anyway, as far as I know, yes. Have never used it myself, though. --tml From BillS@techsi.com Tue Jun 6 18:09:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45303B02E8 for ; Tue, 6 Jun 2006 18:09:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25029-01 for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from mail.techsi.com (techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 7D7373B00BC for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56LrZAZ026420 for ; Tue, 6 Jun 2006 16:53:37 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 17:09:16 -0500 Message-ID: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01A0_01C6898B.F3EC31C0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.499 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.499 X-Spam-Level: Subject: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 22:09:28 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I need to indicate to the treeview widget how many rows to scroll up or down. Any suggestions on how to do this? I know I can position the cursor based on a path. However, that may be tricky in that the user may or may not have the sections within the tree expanded or not. Also, I would have to track how many rows are currently displayed within the current treeview. I other words, I need to emulate the user scrolling through the treeview by line, by page, or to the beginning or end. I think the begin or end would not be too bad. Thanks, Bill ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I need to indicate to the treeview widget how many rows to scroll = up or down.  Any suggestions on how to do this?  I know I can = position the cursor based on a path.  However, that may be tricky in that the = user may or may not have the sections within the tree expanded or not.  = Also, I would have to track how many rows are currently displayed within the = current treeview.

 

I other words, I need to = emulate the user scrolling through the treeview by line, by page, or to the = beginning or end.  I think the begin or end would not be too bad. =

 

Thanks,

Bill

 

------=_NextPart_000_01A0_01C6898B.F3EC31C0-- From tristan.van.berkom@gmail.com Tue Jun 6 22:03:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 713AF3B0B0A for ; Tue, 6 Jun 2006 22:03:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04432-05 for ; Tue, 6 Jun 2006 22:03:23 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by menubar.gnome.org (Postfix) with ESMTP id D29193B02D7 for ; Tue, 6 Jun 2006 22:03:22 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i12so280761wra for ; Tue, 06 Jun 2006 19:03:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MCzN6WRNDUHNO5h5KKbkczD+CTM0HLmY/6bgqc0T4C5mS7d+oONlRu0YSriqgEJ1voJGKRTu20Czmb2mSN30XDamoLYVDbg3g5mxYAC1GHnZo5g3K1n17wf+PRwcZ4om3AB//Xibs2oJvnB7udTlg8kvLvt40i+QFCqUYBhsAzA= Received: by 10.54.116.7 with SMTP id o7mr9068wrc; Tue, 06 Jun 2006 19:03:17 -0700 (PDT) Received: from ?66.48.170.73? ( [66.48.170.73]) by mx.gmail.com with ESMTP id g2sm1167040wra.2006.06.06.19.03.17; Tue, 06 Jun 2006 19:03:18 -0700 (PDT) Message-ID: <448637A8.7040007@gnome.org> Date: Tue, 06 Jun 2006 22:19:20 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Sousan References: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> In-Reply-To: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.222 tagged_above=-999 required=2 tests=[AWL=0.378, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.222 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 02:03:25 -0000 Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From kereoz@yahoo.fr Wed Jun 7 04:20:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C11D3B0343 for ; Wed, 7 Jun 2006 04:20:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26466-05 for ; Wed, 7 Jun 2006 04:20:04 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id 01BE63B0217 for ; Wed, 7 Jun 2006 04:20:03 -0400 (EDT) Received: (qmail 35942 invoked by uid 60001); 7 Jun 2006 08:19:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=niZGyLE9Dw8mE00kfBFaSxDwB15y4KEkapVjfVMgSDMdAH1E/ZhaTeKOFuupaoYqxWtRPTUPUlGIB6Pv5xb7h7lX7E/wWCvHddhgrZ0RjJuwK/ZA8ZfGsDS3z7jKxNXIw9umiOI3oZWHTQjPQ6Vs2r+d4icV0Uwk9rpN2O0dCHY= ; Message-ID: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 07 Jun 2006 10:19:59 CEST Date: Wed, 7 Jun 2006 10:19:59 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.011 tagged_above=-999 required=2 tests=[AWL=-0.425, BAYES_20=-0.74, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.011 X-Spam-Level: Subject: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 08:20:07 -0000 Hi, I've got questions about building the gtkmozembed widget. Do I need to build mozilla or firefox from sources ? Mozilla or firefox ? Is there a way t build only the widget ? I would like to compile a gtk app using gtkmozembed (gtk mozilla widget) for ARM, so I need to have light libs. Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tonikitoo@gmail.com Wed Jun 7 08:39:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BF753B0D02 for ; Wed, 7 Jun 2006 08:39:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12108-03 for ; Wed, 7 Jun 2006 08:39:22 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id A14753B0CE7 for ; Wed, 7 Jun 2006 08:39:21 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167152wri for ; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pmn1n8Xl2f8npFFsBp5bWT5cMk8+QQwzmdfNwjtEPx4SzHfhwJ2Vo3DTFuksX7t+yf65LUhdLJSQ+Z3yRqc+xL/yhH8A/VtCZ+LLevuZhjds3Id1CFNC0DntHXlO4aR7kNGKNFvCOi5kvYaGMNA2hgO3T68tEVs7PhWvlYsne48= Received: by 10.65.98.11 with SMTP id a11mr307127qbm; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:39:20 -0700 (PDT) Message-ID: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> Date: Wed, 7 Jun 2006 08:39:20 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.18 tagged_above=-999 required=2 tests=[AWL=0.189, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.18 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:39:23 -0000 you could try building xulrunner with the --with-gecko-profile=minimal set, from the branch MOZILLA_1_8_BRANCH [pulling] export MOZ_CO_TAG=MOZILLA_1_8_BRANCH cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk # type the password anonymous cd mozilla make -f client.mk checkout MOZ_CO_PROJECT=xulrunner [building] cd cp xulrunner/config/mozconfig . [add the following 4 line into your mozconfig] ac_add_options --prefix= ac_add_options --disable-javaxpcom ac_add_options --disable-js-static-build ac_add_options --with-embedding-profile=minimal make -f client.mk build_all make -s install this would provide you the minimal 'gecko' build for embedding purposes. Link against the .so libs created at yout/prefix/lib/mozilla/.so (according with the .pc files). regards On 6/7/06, Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? > Mozilla or firefox ? > Is there a way t build only the widget ? > > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. > -- --Antonio Gomes Nokia Technology Institute From tonikitoo@gmail.com Wed Jun 7 08:41:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96E843B0D2A for ; Wed, 7 Jun 2006 08:41:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12377-03 for ; Wed, 7 Jun 2006 08:41:35 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 83A903B0D01 for ; Wed, 7 Jun 2006 08:40:45 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167408wri for ; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SXNYjX2suiXxjuMwK8zSL9VKJKjxgoH1rxni5wMIOa8sVn7/yZ15daEQX7VbhIemOstEvrSzyN4C6DOFgZHTSAZzklftx7v19uSUOB9L5jCPvU/L+a6tLNymZj8HshTIVEJ4HGqu17GXcUUQ0zrzMdNEfFxbA3DceTBHSka6v48= Received: by 10.65.237.20 with SMTP id o20mr305181qbr; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:40:44 -0700 (PDT) Message-ID: <7eb9ad710606070540k31b59afci2e52d298787a6200@mail.gmail.com> Date: Wed, 7 Jun 2006 08:40:44 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.2 tagged_above=-999 required=2 tests=[AWL=0.169, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.2 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:41:51 -0000 you can follow their official website at http://developer.mozilla.org/en/docs/Configuring_Build_Options#Using_a_.mozconfig_Configuration_File On 6/7/06, Antonio Gomes wrote: > you could try building xulrunner with the --with-gecko-profile=minimal > set, from the branch MOZILLA_1_8_BRANCH > > [pulling] > export MOZ_CO_TAG=MOZILLA_1_8_BRANCH > > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk > # type the password anonymous > cd mozilla > make -f client.mk checkout MOZ_CO_PROJECT=xulrunner > > [building] > cd > cp xulrunner/config/mozconfig . > [add the following 4 line into your mozconfig] > ac_add_options --prefix= > ac_add_options --disable-javaxpcom > ac_add_options --disable-js-static-build > ac_add_options --with-embedding-profile=minimal > make -f client.mk build_all > make -s install > > this would provide you the minimal 'gecko' build for embedding > purposes. Link against the .so libs created at > yout/prefix/lib/mozilla/.so (according with the .pc files). > > regards > > On 6/7/06, Christophe HAUSER wrote: > > Hi, > > > > I've got questions about building the gtkmozembed > > widget. > > Do I need to build mozilla or firefox from sources ? > > Mozilla or firefox ? > > Is there a way t build only the widget ? > > > > I would like to compile a gtk app using gtkmozembed > > (gtk mozilla widget) for ARM, so I need to have light > > libs. > > > > -- > --Antonio Gomes > Nokia Technology Institute > -- --Antonio Gomes From tvb@gnome.org Wed Jun 7 09:07:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 69DD73B0CE0 for ; Wed, 7 Jun 2006 09:07:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14222-07 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id B8F923B0CB4 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id E61EA15A5E; Wed, 7 Jun 2006 09:07:23 -0400 (EDT) Message-ID: <4486D1CD.8070408@gnome.org> Date: Wed, 07 Jun 2006 09:17:01 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.48 tagged_above=-999 required=2 tests=[AWL=-0.034, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.48 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:07:28 -0000 Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? Heavens no ! the headers and gtkmozembed library is distributed with the system gecko, save yourself the trouble and use them. See the gnome 'devhelp' module's autofoo setup for an example of how to detect the correct gecko and get the right compile flags etc. Cheers, -Tristan From tvb@gnome.org Wed Jun 7 09:14:22 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0F433B0CDC for ; Wed, 7 Jun 2006 09:14:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14864-08 for ; Wed, 7 Jun 2006 09:14:20 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 258CD3B0D28 for ; Wed, 7 Jun 2006 09:14:18 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 34CE315A5E; Wed, 7 Jun 2006 09:14:14 -0400 (EDT) Message-ID: <4486D367.8070608@gnome.org> Date: Wed, 07 Jun 2006 09:23:51 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XF=0.077] X-Spam-Score: -2.441 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:14:22 -0000 Christophe HAUSER wrote: [...] > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. Sorry I missed this part... if you dont already have a gecko compiled and installed for your ARM machine... then you should look into compiling it, I havent heard of any "tiny gecko" in existence, although you can taylor your compile options I suppose and add stuff like --strip-all from your libs... If you do compile the gecko, follow the instructions at mozilla.org and find the right options to begin with: type "about:buildconfig" in the url window of any firefox to know the compile options, you want to use the compile options that suit your site (i.e. are you rendering fonts with xft ? are you using cairo backends ? what did the vendors compile with when compiling against a similar library suite to your ARM system). Cheers, -Tristan From bharat.gusain@st.com Wed Jun 7 06:05:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 56E0F3B0BCF for ; Wed, 7 Jun 2006 06:05:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01274-09 for ; Wed, 7 Jun 2006 06:05:22 -0400 (EDT) Received: from fra-del-03.spheriq.net (fra-del-03.spheriq.net [195.46.51.99]) by menubar.gnome.org (Postfix) with ESMTP id DE4263B0BA2 for ; Wed, 7 Jun 2006 06:05:21 -0400 (EDT) Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-03.spheriq.net with ESMTP id k57A5B4T000894 for ; Wed, 7 Jun 2006 10:05:11 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-02.spheriq.net with ESMTP id k57A575Q009985 for ; Wed, 7 Jun 2006 10:05:08 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id k57A567i024086 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 7 Jun 2006 10:05:07 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BFB19DA46 for ; Wed, 7 Jun 2006 10:05:05 +0000 (GMT) Received: from mail1.dlh.st.com (mail1.dlh.st.com [10.199.8.21]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 16D8C4741C for ; Wed, 7 Jun 2006 10:05:04 +0000 (GMT) Received: from dlhgn13dhcp15.dlh.st.com (dlhgn13dhcp15.dlh.st.com [10.199.13.15]) by mail1.dlh.st.com (MOS 3.5.8-GR) with ESMTP id CKW69700 (AUTH "bharat gusain"); Wed, 7 Jun 2006 15:35:02 +0530 (IST) From: Bharat Singh GUSAIN Organization: st To: gtk-list@gnome.org Date: Wed, 7 Jun 2006 15:32:26 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606071532.26772.bharat.gusain@st.com> X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.005 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DATE_IN_FUTURE_06_12=1.668, TW_GT=0.077] X-Spam-Score: 1.005 X-Spam-Level: * X-Mailman-Approved-At: Wed, 07 Jun 2006 09:14:49 -0400 Subject: YUV image display X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 10:05:23 -0000 hi all, i am new to GTK and is currently working on a webcam application developed in GTK for which i need some nice gui frontend and need to display the yuyv image formats also. but gtk only display images in rgb format. can anybody tell me that whether there is any calls in GTK which can display the yuv images. Thanx in advance Bharat From gnome-gtk-list@m.gmane.org Wed Jun 7 19:05:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CDEC93B04FF for ; Wed, 7 Jun 2006 19:05:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21300-02 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 83E5C3B0339 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fo75C-0003yi-Gn for gtk-list@gnome.org; Thu, 08 Jun 2006 01:05:04 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Wed, 7 Jun 2006 23:02:39 +0000 (UTC) Lines: 81 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_DP=0.077, TW_GT=0.077] X-Spam-Score: -1.998 X-Spam-Level: Subject: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:05:11 -0000 I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). After doing so, I get the following error messages when I run gtk applications: ~ [1] gedit gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control ~ [2] evince evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control I've done Web searches and I have tried a number of things, but none of them fix this problem. Is this the right list on which to ask this question? It seems Gtk related. Does anyone have a suggestion? I've attached some notes on some of the things that I have tried, just in case they offer a clue. Thanks for help. Dave Some additional notes follow: ========================================================= When running gtk applications, for example gedit, I get the following message:: gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control This means, apparently, that every gtk application on my system is broken. Examples: gedit, firefox, realplay, epiphany, evince, SciTE, This symbol seems to be defined in libgobject-2.0.a. I ran:: $ nm -A --defined-only lib* | grep g_object_compat_control | less and saw the following:: libgobject-2.0.a:gobject.o:000036fe T g_object_compat_control the "T" means "The symbol is in the text (code) section." Then, to find out what package libgobject-2.0.a is in, I did the following:: $ dpkg -S libgobject-2.0.a which displayed:: libglib2.0-dev: /usr/lib/libgobject-2.0.a So, I did:: $ sudo apt-get --reinstall install libglib2.0-dev But, for example, gedit still does not work. Next, I did the following: 1. Retrieved a new, fresh /etc/apt/sources.list from http://www.ubuntuforums.org/showpost.php?p=1090438 2. Did another update/upgrade:: $ sudo apt-get update $ sudo apt-get upgrade But, gedit, for example, still produces the same error message. From yeti@physics.muni.cz Wed Jun 7 19:24:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C49E93B036A for ; Wed, 7 Jun 2006 19:24:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22273-07 for ; Wed, 7 Jun 2006 19:24:27 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id F030C3B02BE for ; Wed, 7 Jun 2006 19:24:26 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k57NOOFK029666 for ; Thu, 8 Jun 2006 01:24:25 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 953C823D62; Thu, 8 Jun 2006 01:24:24 +0200 (CEST) Date: Thu, 8 Jun 2006 01:24:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060607232429.GD30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:24:28 -0000 On Wed, Jun 07, 2006 at 11:02:39PM +0000, Dave Kuhlman wrote: > I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. > I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). > After doing so, I get the following error messages when I run gtk applications: > > ~ [1] gedit > gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > ~ [2] evince > evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > > Does anyone have a suggestion? What ldd some-gtk-app prints? Namely the libgobject-2.0 is interesting. > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > $ nm -A --defined-only lib* | grep g_object_compat_control | less You cannot get symbols from shared libs with nm. Try something like eu-readelf --symbols libgobject-2.0.so.0.1000.3 instead to get symbol info from the dynamic lib. Static libs (.a) are not used for dynamic linking and thus irrelevant here. What libgobject-2.0* files you have there anyway? > ... > So, I did:: > > $ sudo apt-get --reinstall install libglib2.0-dev The NON-dev package is important for run-time, -dev is only important for compilation. So what libglib2.0 do you have installed? Is it at least 2.10.0? Yeti -- Anonyms eat their boogers. From gnome-gtk-list@m.gmane.org Wed Jun 7 20:08:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA87F3B04ED for ; Wed, 7 Jun 2006 20:08:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24955-07 for ; Wed, 7 Jun 2006 20:08:47 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id E38E63B0E52 for ; Wed, 7 Jun 2006 20:08:46 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fo84m-00068B-52 for gtk-list@gnome.org; Thu, 08 Jun 2006 02:08:40 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Thu, 8 Jun 2006 00:08:23 +0000 (UTC) Lines: 65 Message-ID: References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.242 tagged_above=-999 required=2 tests=[AWL=-0.167, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_GT=0.077] X-Spam-Score: -2.242 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 00:08:48 -0000 David Ne膷as (Yeti physics.muni.cz> writes: > > What > > ldd some-gtk-app > > prints? Namely the libgobject-2.0 is interesting. > David (Yeti) - Wow. I am really glad that I asked this question. Your reply was very educational. After posting my original message, I continued working on this problem. I remembered that, some time ago, I had compiled gtk+ on my machine. So I did $ make uninstall for each of pango, cairo, glib, and gtk+. Now, when I do (as you suggested): $ ldd gedit I do not see references to the libraries that I built in /usr/local/lib. I guess my problem was that these libraries were old and not up-to-date. > > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > > > $ nm -A --defined-only lib* | grep g_object_compat_control | less > > You cannot get symbols from shared libs with nm. Try > something like > > eu-readelf --symbols libgobject-2.0.so.0.1000.3 I do not have eu-readelf on my machine. I will have to go looking for it. > > instead to get symbol info from the dynamic lib. Static libs > (.a) are not used for dynamic linking and thus irrelevant > here. > > What libgobject-2.0* files you have there anyway? > I believe that the problem was that the version in /usr/local/lib was built from old source. When I removed it, my system started finding the more up-to- date version in /usr/lib. That fixed my problem. I do not need to build gtk+ from source right now, but will likely need to do so in the future. I will have to try to remember this problem, and the suggestions you (Yeti) gave me to track it down. I've saved your message where I will have it next time. Thanks again. Dave From yeti@physics.muni.cz Thu Jun 8 04:25:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF193B0DFE for ; Thu, 8 Jun 2006 04:25:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19030-01 for ; Thu, 8 Jun 2006 04:25:36 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 5B5A23B05CC for ; Thu, 8 Jun 2006 04:25:35 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k588PSGn010077 for ; Thu, 8 Jun 2006 10:25:29 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id BC2F123D63; Thu, 8 Jun 2006 10:25:28 +0200 (CEST) Date: Thu, 8 Jun 2006 10:25:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608082529.GH2166@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 08:25:37 -0000 On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > I do not have eu-readelf on my machine. I will have to go looking for it. It seems Debian does not contain elfutils. Granted, it used to have an idiosyncratic license, but now it is GNU GPL so hopefully it will get to Debian too. > I do not need to build gtk+ from source right now, but will likely need to do > so in the future. I will have to try to remember this problem I wrote this a hundered times but I will repeat it again and again... Do not install libraries to /usr/local while you have another version of the library installed by your distro, it is a reciepe for troubles. Use the packaging system. Take advantage of the packaging system. It is not so hard to build a package of a newer version if you have the source package of the current one. Also look at backports, the version you need can be already there. Yeti -- Anonyms eat their boogers. From kereoz@yahoo.fr Thu Jun 8 05:06:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E914A3B05CA for ; Thu, 8 Jun 2006 05:06:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21502-05 for ; Thu, 8 Jun 2006 05:06:33 -0400 (EDT) Received: from web25906.mail.ukl.yahoo.com (web25906.mail.ukl.yahoo.com [217.12.10.204]) by menubar.gnome.org (Postfix) with SMTP id C371F3B0427 for ; Thu, 8 Jun 2006 05:06:32 -0400 (EDT) Received: (qmail 11551 invoked by uid 60001); 8 Jun 2006 09:06:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yMPVnzoUVlcHS8vnCG1q+69Nrkmr9PvstPvpkyp4VhjDcDD/NUaosQ+ctN8+TRCwM3yVcymuVv2BKEkz+78Taqh16m4tmcP6P6EHx26vPh5se7LkU46jb+BLQFhgFwJllRnFnYQJWfWE0rfEI2wjtRHHGIy+synl5rqR7tQBaj8= ; Message-ID: <20060608090631.11549.qmail@web25906.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25906.mail.ukl.yahoo.com via HTTP; Thu, 08 Jun 2006 11:06:31 CEST Date: Thu, 8 Jun 2006 11:06:31 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org In-Reply-To: <4486D367.8070608@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.079 tagged_above=-999 required=2 tests=[AWL=0.443, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.079 X-Spam-Level: Subject: RE : Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 09:06:35 -0000 Thanks a lot :) Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From murrayc@murrayc.com Thu Jun 8 13:20:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C3163B07EB for ; Thu, 8 Jun 2006 13:20:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24076-02 for ; Thu, 8 Jun 2006 13:20:40 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (sd-green-bigip-98.dreamhost.com [208.97.132.98]) by menubar.gnome.org (Postfix) with ESMTP id 225883B0EFD for ; Thu, 8 Jun 2006 13:20:38 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id EE142129A8C for ; Thu, 8 Jun 2006 10:20:31 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-vTkKqJNWDGQR4LW1VhLx" Date: Thu, 08 Jun 2006 19:20:28 +0200 Message-Id: <1149787228.5749.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.444 tagged_above=-999 required=2 tests=[AWL=0.078, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.444 X-Spam-Level: Subject: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:20:44 -0000 --=-vTkKqJNWDGQR4LW1VhLx Content-Type: text/plain Content-Transfer-Encoding: 7bit Could someone point out what I'm doing wrong in the attached test case? It's meant to read a value from the rc file, to determine how a widget would be drawn, making the widget themed. I get this output: example button gtype name=ExampleButton example_button_class_init(): Registering example_thing style property. example_button_init(): example_thing from rc file=0 -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=custom_gtkrc Content-Type: text/plain; name=custom_gtkrc; charset=UTF-8 Content-Transfer-Encoding: 7bit style "example-style" { ExampleButton::example_thing = 10 } class "ExampleButton" style "example-style" --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=testrcfull.c Content-Type: text/x-csrc; name=testrcfull.c; charset=UTF-8 Content-Transfer-Encoding: 7bit #include typedef struct _ExampleButton ExampleButton; typedef struct _ExampleButtonClass ExampleButtonClass; struct _ExampleButton { GtkButton parent; /* private */ }; struct _ExampleButtonClass { GtkButtonClass parent_class; }; static void example_button_init (ExampleButton *object) { int example_thing = 0; gtk_widget_style_get(GTK_WIDGET(object), "example_thing", &example_thing, NULL); printf("example_button_init(): example_thing from rc file=%d\n", example_thing); } static void example_button_class_init (ExampleButtonClass *klass) { GtkWidgetClass *widget_klass = 0; widget_klass = GTK_WIDGET_CLASS (klass); printf("example_button_class_init(): Registering example_thing style property.\n"); gtk_widget_class_install_style_property(widget_klass, g_param_spec_int("example_thing", "Example Thing", "This is just a silly example.", G_MININT, G_MAXINT, 0, G_PARAM_READABLE) ); } G_DEFINE_TYPE (ExampleButton, example_button, GTK_TYPE_BUTTON); #define EXAMPLE_TYPE_BUTTON (example_button_get_type ()) #define EXAMPLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_TYPE_BUTTON, ExampleButton)) #define EXAMPLE_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EXAMPLE_BUTTON, ExampleButtonClass)) #define EXAMPLE_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_IS_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_BUTTON_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_BUTTON, ExampleButtonClass)) GtkWidget * example_button_new (void) { return g_object_new (EXAMPLE_TYPE_BUTTON, NULL); } int main( int argc, char *argv[] ) { GtkWidget *window = 0; GtkWidget *button = 0; gtk_init (&argc, &argv); GType gtype = example_button_get_type(); //Make sure that it is initialized. printf("example button gtype name=%s\n", g_type_name(gtype)); /* Without the gtk_window_new(), the RC file is never parsed. */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 200, 200); button = example_button_new(); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_rc_parse("custom_gtkrc"); gtk_main (); return 0; } --=-vTkKqJNWDGQR4LW1VhLx-- From tkomulai@gmail.com Thu Jun 8 13:55:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C39FF3B0670 for ; Thu, 8 Jun 2006 13:55:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26215-06 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by menubar.gnome.org (Postfix) with ESMTP id 1C0663B0718 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id m2so969661uge for ; Thu, 08 Jun 2006 10:55:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N/uF80Ph918v7qMbZwwC4m8meKdr58vk9243wbszTySV3jyA0b8R3dTqgp4Hn4dkDgd5RdsId8kyvevrz2CNZbJMYCVLeEEaV7C/KHshARrLSrba0urdFRwNtxLhTucxnKtW1uYecUM5neZXyU5rjMIqdi/rmdbnXiRSBseYAmY= Received: by 10.78.18.1 with SMTP id 1mr592938hur; Thu, 08 Jun 2006 10:55:38 -0700 (PDT) Received: by 10.78.41.17 with HTTP; Thu, 8 Jun 2006 10:55:38 -0700 (PDT) Message-ID: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> Date: Thu, 8 Jun 2006 20:55:38 +0300 From: "Tommi Komulainen" Sender: tkomulai@gmail.com To: gtk-list@gnome.org In-Reply-To: <1149787228.5749.5.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1149787228.5749.5.camel@localhost.localdomain> X-Google-Sender-Auth: 220f190103d8c34d X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=0.162, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.438 X-Spam-Level: Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:55:43 -0000 On 6/8/06, Murray Cumming wrote: > Could someone point out what I'm doing wrong in the attached test case? > It's meant to read a value from the rc file, to determine how a widget > would be drawn, making the widget themed. > > I get this output: > > example button gtype name=ExampleButton > example_button_class_init(): Registering example_thing style property. > example_button_init(): example_thing from rc file=0 Instance init is too early to get style properties (though I suppose you could call gtk_widget_ensure_style there), you need to wait until 'style-set' is called. You should implement the style-set default handler anyway to work with theme changes. Unless you change widget hierarchies based on the style property it should be enough to access the property in size-request, size-allocate and expose. -- Tommi Komulainen tommi.komulainen@iki.fi From paul@linuxaudiosystems.com Thu Jun 8 14:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28F3F3B0F8F for ; Thu, 8 Jun 2006 14:26:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27909-07 for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 5CC3C3B0F4E for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from dholak ([151.197.23.127]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0K00IO20K3LGR1@vms040.mailsrvcs.net> for gtk-list@gnome.org; Thu, 08 Jun 2006 13:26:28 -0500 (CDT) Date: Thu, 08 Jun 2006 14:26:45 -0400 From: Paul Davis In-reply-to: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> To: Tommi Komulainen Message-id: <1149791205.5323.0.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 18:26:35 -0000 On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > On 6/8/06, Murray Cumming wrote: > > Could someone point out what I'm doing wrong in the attached test case? > > It's meant to read a value from the rc file, to determine how a widget > > would be drawn, making the widget themed. > > > > I get this output: > > > > example button gtype name=ExampleButton > > example_button_class_init(): Registering example_thing style property. > > example_button_init(): example_thing from rc file=0 > > Instance init is too early to get style properties (though I suppose > you could call gtk_widget_ensure_style there), you need to wait until > 'style-set' is called. You should implement the style-set default > handler anyway to work with theme changes. > > Unless you change widget hierarchies based on the style property it > should be enough to access the property in size-request, size-allocate > and expose. or call widget::ensure_style() From adam@ajtee.plus.com Thu Jun 8 15:45:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0B4A3B0FBE for ; Thu, 8 Jun 2006 15:45:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00491-09 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by menubar.gnome.org (Postfix) with ESMTP id 69ECB3B0766 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from [212.159.108.21] (helo=[192.168.0.3]) by pih-relay04.plus.net with esmtp (Exim) id 1FoQRs-0000el-NZ for gtk-list@gnome.org; Thu, 08 Jun 2006 20:45:44 +0100 Message-ID: <44887E68.8030004@ajtee.plus.com> Date: Thu, 08 Jun 2006 20:45:44 +0100 From: Adam Tee User-Agent: Thunderbird 1.5.0.4 (X11/20060606) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.399 X-Spam-Level: Subject: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 19:45:48 -0000 Hi all, I have a couple of questions regarding keybindings in my application. Is there anyway of overriding a window managers keybindings in an application ? The second concerns menued items which have been configured using an array of GtkActionEntries. Can I changed the associated keybindings on the fly, i.e. after loading a keymap file ? The menus are defined in a xml file. Thanks Adam Maintainer GNU Denemo, a GTK+ Front-End to GNU Lilypond From murrayc@murrayc.com Thu Jun 8 16:07:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A46153B021A for ; Thu, 8 Jun 2006 16:07:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02092-04 for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by menubar.gnome.org (Postfix) with ESMTP id 529653B000E for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id 5B020129A8D; Thu, 8 Jun 2006 13:07:47 -0700 (PDT) From: Murray Cumming To: paul@linuxaudiosystems.com In-Reply-To: <1149791205.5323.0.camel@localhost.localdomain> References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> <1149791205.5323.0.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 08 Jun 2006 22:07:43 +0200 Message-Id: <1149797263.5749.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.482 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599] X-Spam-Score: -2.482 X-Spam-Level: Cc: Tommi Komulainen , gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:07:50 -0000 On Thu, 2006-06-08 at 14:26 -0400, Paul Davis wrote: > On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > > On 6/8/06, Murray Cumming wrote: > > > Could someone point out what I'm doing wrong in the attached test case? > > > It's meant to read a value from the rc file, to determine how a widget > > > would be drawn, making the widget themed. > > > > > > I get this output: > > > > > > example button gtype name=ExampleButton > > > example_button_class_init(): Registering example_thing style property. > > > example_button_init(): example_thing from rc file=0 > > > > Instance init is too early to get style properties (though I suppose > > you could call gtk_widget_ensure_style there), you need to wait until > > 'style-set' is called. You should implement the style-set default > > handler anyway to work with theme changes. > > > > Unless you change widget hierarchies based on the style property it > > should be enough to access the property in size-request, size-allocate > > and expose. > > or call widget::ensure_style() Thanks. gtk_widget_ensure_style() doesn't make any difference for me, but I can successfully read the value in the realize handler. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From ben@benjohnson.net Thu Jun 8 16:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C31863B1008 for ; Thu, 8 Jun 2006 16:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03294-10 for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: from server018.dfw.nationwide.net (unknown [206.123.129.81]) by menubar.gnome.org (Postfix) with SMTP id 7FA0B3B021A for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: (qmail 21060 invoked from network); 8 Jun 2006 20:30:05 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 08 Jun 2006 20:30:05 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id B3A5BE4067 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02308-05 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id 9152AE4068; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Date: Thu, 8 Jun 2006 13:30:04 -0700 From: Anna To: gtk-list@gnome.org Message-ID: <20060608203003.GG6681@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608082529.GH2166@potato.chello.upc.cz> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:30:22 -0000 On Thu, Jun 08, 2006 at 10:25:29AM +0200, David Ne?as (Yeti) wrote: > On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > > > I do not have eu-readelf on my machine. I will have to go looking for it. > > It seems Debian does not contain elfutils. Granted, it used > to have an idiosyncratic license, but now it is GNU GPL so > hopefully it will get to Debian too. darling:~# cat /etc/debian_version 3.1 darling:~# dpkg -S /usr/bin/readelf binutils: /usr/bin/readelf maybe 'readelf' on Debian the same as eu-readelf? - Anna From yeti@physics.muni.cz Thu Jun 8 16:38:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 160683B1008 for ; Thu, 8 Jun 2006 16:38:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03782-07 for ; Thu, 8 Jun 2006 16:38:03 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 852DA3B036E for ; Thu, 8 Jun 2006 16:38:01 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Kbt6q023889 for ; Thu, 8 Jun 2006 22:37:56 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 53BF923D9A; Thu, 8 Jun 2006 22:37:55 +0200 (CEST) Date: Thu, 8 Jun 2006 22:38:00 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608203800.GI30886@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> <20060608203003.GG6681@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608203003.GG6681@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:38:08 -0000 On Thu, Jun 08, 2006 at 01:30:04PM -0700, Anna wrote: > > darling:~# cat /etc/debian_version > 3.1 > darling:~# dpkg -S /usr/bin/readelf > binutils: /usr/bin/readelf > > maybe 'readelf' on Debian the same as eu-readelf? This is binutils' readelf. They are different but both should work for the discussed purpose. Yeti -- Anonyms eat their boogers. From BillS@techsi.com Thu Jun 8 17:36:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA1DA3B000E for ; Thu, 8 Jun 2006 17:36:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07163-08 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 38CAB3B0194 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k58LKsAZ017367; Thu, 8 Jun 2006 16:20:57 -0500 From: "Bill Sousan" To: "'Tristan Van Berkom'" Date: Thu, 8 Jun 2006 16:36:03 -0500 Message-ID: <003601c68b43$8dcba100$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJ1Fpwdt0TDWdPQL6ky+QryalI6ABbv/jQ In-Reply-To: <448637A8.7040007@gnome.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.109 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_05=-1.11, TW_GT=0.077] X-Spam-Score: -1.109 X-Spam-Level: Cc: gtk-list@gnome.org Subject: RE: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:36:14 -0000 Thanks! One question, however, how can you change the column header font? I was able to make the rows nice and fat. However, I can't figure out how to change the column title size (its font type). Thanks, Bill -----Original Message----- From: Tristan Van Berkom [mailto:tristan.van.berkom@gmail.com] Sent: Tuesday, June 06, 2006 9:19 PM To: Bill Sousan Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From yeti@physics.muni.cz Thu Jun 8 17:39:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 94A863B0408 for ; Thu, 8 Jun 2006 17:39:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07377-08 for ; Thu, 8 Jun 2006 17:39:10 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9387F3B0105 for ; Thu, 8 Jun 2006 17:39:09 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Ld71R001243 for ; Thu, 8 Jun 2006 23:39:08 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 8BFE723D9A; Thu, 8 Jun 2006 23:39:07 +0200 (CEST) Date: Thu, 8 Jun 2006 23:39:12 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608213912.GK30886@potato.chello.upc.cz> References: <448637A8.7040007@gnome.org> <003601c68b43$8dcba100$db00a8c0@techsi.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003601c68b43$8dcba100$db00a8c0@techsi.local> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:39:13 -0000 On Thu, Jun 08, 2006 at 04:36:03PM -0500, Bill Sousan wrote: > Thanks! One question, however, how can you change the column header font? > I was able to make the rows nice and fat. However, I can't figure out how > to change the column title size (its font type). The default column header widget is inaccessible, but gtk_tree_view_column_set_widget() can put any widget you wish there. Yeti -- Anonyms eat their boogers. From mekstran@scl.ameslab.gov Fri Jun 9 10:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CD183B1106 for ; Fri, 9 Jun 2006 10:26:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30922-04 for ; Fri, 9 Jun 2006 10:26:31 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id AE19D3B02F7 for ; Fri, 9 Jun 2006 10:26:23 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 09 Jun 2006 09:26:22 -0500 id 0005389C.4489850E.00007C9B In-Reply-To: <44887E68.8030004@ajtee.plus.com> References: <44887E68.8030004@ajtee.plus.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6ec3650a2d223d4ab126ac1b931be9f0@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Date: Fri, 9 Jun 2006 09:25:52 -0500 To: Adam Tee X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, TW_KB=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 14:26:35 -0000 On Jun 8, 2006, at 2:45 PM, Adam Tee wrote: > Is there anyway of overriding a window managers keybindings in an > application ? AFAIK, no. I could be wrong here, but I believe the window manager sees the keys before they ever get to the application, and eats them. Some window managers may potentially support a "pass-through" mode, but I don't know (I don't know that I've ever seen such a features, except I seem to remember one in an older version of wmii that was user-activated, not program-activated). Besides, overriding the WM's keybindings would be detrimental to users - they expect the WM keybindings to work the same in all applications. Especially those of us using highly kbd-driven WM's. > The second concerns menued items which have been configured using an > array of GtkActionEntries. Can I changed the associated keybindings on > the fly, i.e. after loading a keymap file ? The menus are defined in a > xml file. Can't help you there. I'm a bit fuzzy on the details of managing accellerator myself. - Michael From mattias.nissler@gmx.de Fri Jun 9 09:07:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA523B01CA for ; Fri, 9 Jun 2006 09:07:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25743-04 for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 5D6DE3B031E for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: (qmail invoked by alias); 09 Jun 2006 13:06:59 -0000 Received: from T56c9.t.pppool.de (EHLO [192.168.2.32]) [89.55.86.201] by mail.gmx.net (mp027) with SMTP; 09 Jun 2006 15:06:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Jun 2006 15:06:56 +0200 Message-Id: <1149858416.14903.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Jun 2006 11:58:55 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 13:07:02 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, I think its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From r.floret@laposte.net Sat Jun 10 12:21:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 807953B01CB for ; Sat, 10 Jun 2006 12:21:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14072-01 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from mx.laposte.net (mx.laposte.net [81.255.54.11]) by menubar.gnome.org (Postfix) with ESMTP id 67CF63B0158 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from [192.168.0.3] (81.248.212.147) by mx.laposte.net (7.2.060.1) (authenticated as r.floret) id 448702A20026ED87 for gtk-list@gnome.org; Sat, 10 Jun 2006 18:19:51 +0200 From: regis To: gtk-list@gnome.org In-Reply-To: <1149858416.14903.2.camel@localhost> References: <1149858416.14903.2.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Sat, 10 Jun 2006 20:19:40 +0400 Message-Id: <1149956380.11938.1.camel@Regis> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.264 tagged_above=-999 required=2 tests=[AWL=0.101, BAYES_00=-2.599, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: -0.264 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 16:21:03 -0000 Le vendredi 09 juin 2006 15:06 +0200, Mattias Nissler a 閏rit : > Hallo, > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > standard gtk+ file chooser dialog, I think its default size is really > too small. Is there some style option I can put into a rc file or some > other way to make the default size larger? Why don't you try gtk_widget_set_size_request(dialog,width,height) ? R間is From murrayc@murrayc.com Sat Jun 10 17:12:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E24673B0007 for ; Sat, 10 Jun 2006 17:12:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28035-01 for ; Sat, 10 Jun 2006 17:12:33 -0400 (EDT) Received: from swarthymail-a1.dreamhost.com (sd-green-bigip-176.dreamhost.com [208.97.132.176]) by menubar.gnome.org (Postfix) with ESMTP id F34183B0494 for ; Sat, 10 Jun 2006 17:12:31 -0400 (EDT) Received: from noname (p5497E4C3.dip.t-dialin.net [84.151.228.195]) by swarthymail-a1.dreamhost.com (Postfix) with ESMTP id 1835F90ED6 for ; Sat, 10 Jun 2006 14:12:29 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Jun 2006 23:12:24 +0200 Message-Id: <1149973944.5715.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599] X-Spam-Score: -2.481 X-Spam-Level: Subject: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 21:12:36 -0000 Is there any particular reason why GtkClipboardRichTextReceivedFunc provides the text as const guint8*: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc instead of the const gchar* that GtkClipboardTextReceivedFunc provides: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardTextReceivedFunc ? -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From mattias.nissler@gmx.de Sun Jun 11 07:03:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D1743B00F2 for ; Sun, 11 Jun 2006 07:03:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05206-10 for ; Sun, 11 Jun 2006 07:03:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 9BCA03B057C for ; Sun, 11 Jun 2006 07:03:15 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 11:02:40 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp039) with SMTP; 11 Jun 2006 13:02:40 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Sun, 11 Jun 2006 13:02:32 +0200 Message-Id: <1150023752.27952.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.492 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.492 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 11:03:17 -0000 > Le vendredi 09 juin 2006 锟5:06 +0200, Mattias Nissler a 锟絠t : > > Hallo, > > > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > > standard gtk+ file chooser dialog, I think its default size is really > > too small. Is there some style option I can put into a rc file or some > > other way to make the default size larger? > > Why don't you try gtk_widget_set_size_request(dialog,width,height) ? > Well, I am not writing a GTK program, but I'm using programs that (my guess) don't resize the file dialog boxes, so they stay at their default size. So I'd like to change the default size to something more usable. Mattias From chris@cvine.freeserve.co.uk Sun Jun 11 08:32:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C364D3B010F for ; Sun, 11 Jun 2006 08:32:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09209-04 for ; Sun, 11 Jun 2006 08:32:54 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id DACC13B0091 for ; Sun, 11 Jun 2006 08:32:53 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3107 [172.22.158.37]) by mwinf3110.me.freeserve.com (SMTP Server) with ESMTP id ED6444800A4E for ; Sun, 11 Jun 2006 14:31:29 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id DEB8D4800089; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) Received: from boulder.homenet (user-3382.l6.c5.dsl.pol.co.uk [84.65.109.54]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id ADB754800087; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) X-ME-UUID: 20060611123119711.ADB754800087@mwinf3107.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5BCVI7p002398; Sun, 11 Jun 2006 13:31:18 +0100 From: Chris Vine To: gtk-list@gnome.org Date: Sun, 11 Jun 2006 13:31:17 +0100 User-Agent: KMail/1.9.1 References: <1149973944.5715.10.camel@localhost.localdomain> In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606111331.18048.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.293 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.293 X-Spam-Level: Cc: Murray Cumming Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 12:32:55 -0000 On Saturday 10 June 2006 22:12, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >RichTextReceivedFunc > > instead of the const gchar* that GtkClipboardTextReceivedFunc provides: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >TextReceivedFunc ? Probably the use of guint8 has something to do with the rich text specification, although if so it would appear to be no more than a statement of intention as I did not think that glib supports anything but systems with 8-bit char types. At any rate there could only be a difference if the gchar (or guchar) type is formed other than by an octet. It seems inconceivable that modern systems would have char types smaller than an octet, but conceivable that they could be larger (sizeof(char), sizeof(wchar_t) and sizeof(long) can all be the same, for example). Chris From michael@zolnott.de Sun Jun 11 14:29:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D9A243B028A for ; Sun, 11 Jun 2006 14:29:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27506-08 for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 40D703B023D for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (mwinf3002 [172.22.159.24]) by mwinf3010.me.freeserve.com (SMTP Server) with ESMTP id A1EF85C0336E for ; Sun, 11 Jun 2006 20:28:38 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 951E11C00146 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 583001C00142 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) X-ME-UUID: 20060611182828361.583001C00142@mwinf3002.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id CC22B2355F; Fri, 9 Jun 2006 23:55:26 +0100 (BST) Date: Fri, 9 Jun 2006 23:55:26 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060609225524.GC726@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.16 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.507 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.507 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:29:14 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEifxcXDV4oK/n3xIRAjSiAJ4mNyWu+1/oCesRm39Hu+coAoTjgACg2iQW Ba0/mrxfPfoc07kenuGRSV4= =JYWo -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- From michael@zolnott.de Sun Jun 11 14:53:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36F563B02CD for ; Sun, 11 Jun 2006 14:53:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28561-02 for ; Sun, 11 Jun 2006 14:53:19 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id F36443B02A7 for ; Sun, 11 Jun 2006 14:53:17 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3113 [172.22.158.41]) by mwinf3105.me.freeserve.com (SMTP Server) with ESMTP id EDF821C01BEE for ; Sun, 11 Jun 2006 20:28:36 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id A35105C00087 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id 4868F5C00084 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) X-ME-UUID: 20060611182826296.4868F5C00084@mwinf3113.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 0EA072356B; Sat, 10 Jun 2006 23:59:06 +0100 (BST) Date: Sat, 10 Jun 2006 23:59:06 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060610225904.GA6852@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.324 tagged_above=-999 required=2 tests=[AWL=-0.183, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.324 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:53:23 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEi064XDV4oK/n3xIRAnh3AJ9IxGDAYCsDMbrCeB5MUQmb+k2jqACgz7qH 0flJ2aY7euqfiqe2jXibZRs= =ChBT -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- From yeti@physics.muni.cz Sun Jun 11 18:08:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 211243B0697 for ; Sun, 11 Jun 2006 18:08:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05325-01 for ; Sun, 11 Jun 2006 18:08:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9C4F63B0350 for ; Sun, 11 Jun 2006 18:08:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5BKghIY010616 for ; Sun, 11 Jun 2006 22:42:44 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0B40B23D59; Sun, 11 Jun 2006 22:42:43 +0200 (CEST) Date: Sun, 11 Jun 2006 22:42:47 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060611204247.GD30886@potato.chello.upc.cz> References: <20060609225524.GC726@zolnott06.zolnott> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060609225524.GC726@zolnott06.zolnott> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 22:08:21 -0000 On Fri, Jun 09, 2006 at 11:55:26PM +0100, Michael Ott wrote: > I try to compile an application under winxp. Under Linux i work with > some gnome lib (for printing) and this i cannot do under win32. > > But i got an error before: > I use only libglade-2.0 and gtk+-2.0 under win32. > > When i try to compile i get on the following line: > > sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); Do not use sprintf(), use g_snprintf() or g_strdup_printf() (and see below). > i got the following error: > > 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passing arg 2 of `sprintf' makes pointer from integer without a cast The error probably comes from implicitly declared _(). When a C function is not declared, the compiler invents an implicit declaration with int return value -- and you definitely want to tell it to make a lot noise instead, for gcc it's -Werror-implicit-function-declaration and for MSVC it's #pragma warning(error:4013) _() is a common convenience macro defined #define _(x) gettext(x) but it's up to you to define it. Why you mark "%02d.%02d.%d" as translatable anyway? Either the format is fixed and then it must not be translated, or you want it translatable for some reason, but then you never know how c_str needs to be long, so use g_strdup_printf(). Yeti -- Anonyms eat their boogers. From mclasen@redhat.com Mon Jun 12 12:04:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41C3B3B000C; Mon, 12 Jun 2006 12:04:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09149-04; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 7270D3B009D; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc9030255; Mon, 12 Jun 2006 12:03:37 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc3007778; Mon, 12 Jun 2006 12:03:37 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CG3blQ018463; Mon, 12 Jun 2006 12:03:37 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 12:03:36 -0400 Message-Id: <1150128216.15532.14.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_LQ=0.077, TW_RX=0.077, TW_TR=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GLib 2.11.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 16:04:32 -0000 GLib 2.11.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.3.tar.bz2 md5sum: 41931c4965f7e1848f81b800914905cd glib-2.11.3.tar.gz md5sum: cd78ebc535e29cdef0fed9487aa21dac This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.2 to GLib 2.11.3 =================================================== * GBookmarkFile: - g_bookmark_file_move_item: Return TRUE in case of an empty target * Bugs fixed: 343919 gunicollate.c: strxfrm bug on VC8 * Updated translations (fi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343919 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Kazuki Iwamoto, Tor Lillqvist Matthias Clasen June 12, 2006 From mitch@gimp.org Mon Jun 12 14:02:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888803B0461 for ; Mon, 12 Jun 2006 14:02:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21914-06 for ; Mon, 12 Jun 2006 14:02:17 -0400 (EDT) Received: from mitch.gimp.org (unknown [88.134.1.244]) by menubar.gnome.org (Postfix) with ESMTP id 0C81D3B0132 for ; Mon, 12 Jun 2006 12:07:15 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FpMpr-0003Vw-00; Sun, 11 Jun 2006 12:06:23 +0200 From: Michael Natterer To: Murray Cumming In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> References: <1149973944.5715.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 11 Jun 2006 12:06:16 +0200 Message-Id: <1150020377.3010.29.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.572 tagged_above=-999 required=2 tests=[AWL=-0.919, BAYES_00=-2.599, RCVD_IN_NJABL_DUL=1.946] X-Spam-Score: -1.572 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 18:02:20 -0000 On Sat, 2006-06-10 at 23:12 +0200, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc Because the format of the serialized rich text data is arbitrary. Basically it's a blob of binary data of size "length", and not text. ciao, --mitch From mclasen@redhat.com Mon Jun 12 15:43:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 851123B00E5; Mon, 12 Jun 2006 15:43:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-06; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 5B16F3B0010; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWav007572; Mon, 12 Jun 2006 15:35:32 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWUd001833; Mon, 12 Jun 2006 15:35:32 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CJZWlQ009694; Mon, 12 Jun 2006 15:35:32 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 15:35:31 -0400 Message-Id: <1150140931.15532.18.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.541 X-Spam-Level: Cc: Subject: GTK+ 2.8.19 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 19:43:04 -0000 GTK+ 2.8.19 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.19.tar.bz2 md5sum: 1a03dbed4b794194a610e9d7eb175b06 gtk+-2.8.19.tar.gz md5sum: 604d3263498994c58af378f0ec076e6f This is a bugfix release in the 2.8.x series. It fixes a rare memory corruption issue when using the deprecated GdkFont API. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.18 to GTK+ 2.8.19 =================================================== Bugs fixed: 341327 Memory corruption inside glib 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 343425 "grab-notify"-signal is not correctly propagated for internal children 344244 Window resizing not working when keeping the aspect fixed 344496 CRLF converting via Clipboard Updated translations (ne) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343425,341327,344244,337491,344496 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Markku Vire, Sampo Savolainen, Tim Janik, Tor Lillqvist, Chris Wilson June 12, 2006 Matthias Clasen From mclasen@redhat.com Tue Jun 13 02:09:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 72FE93B00AF; Tue, 13 Jun 2006 02:09:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12183-04; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id B2F773B000C; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D681s3022181; Tue, 13 Jun 2006 02:08:01 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D67uRP017686; Tue, 13 Jun 2006 02:07:56 -0400 Received: from [172.16.83.145] (vpn83-145.boston.redhat.com [172.16.83.145]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5D67tQC015619; Tue, 13 Jun 2006 02:07:56 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Organization: Red Hat Date: Tue, 13 Jun 2006 02:09:42 -0400 Message-Id: <1150178982.4081.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.2.1 (2.7.2.1-4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_KB=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GTK+ 2.9.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:09:16 -0000 GTK+ 2.9.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.3.tar.bz2 md5sum: d73039a3b5847c352f5740ac908be7d2 gtk+-2.9.3.tar.gz md5sum: 0156eef91d2bbb23f1b6ccb49335fae5 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.2 to 2.9.3 ============================================ * GtkPrintOperation: - Introduce an allow-async property - Introduce a GtkPrintOperationAction enumeration - Rename pdf_target to export_filename - Allow to hide "Print to PDF" in the low-level API * GtkNotebook: - Add a destroy notify to gtk_notebook_set_window_creation_hook. * GtkTreeView: - Support grid lines * GtkRange: - Add a number of new stle properties which allow more fexible stepper theming * Bugs fixed: 153212 Have the Paste kbd shortcut jump to the location in the buffer 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 339739 gtk/gtkprintoperation-win32.c: 3 compile error 342339 GtkRange::stepper-spacing style property not implemented correctly 343945 Buttons of a GtkAssistant are not accessible 344148 Wrong reqs for ATK 344209 gtk_notebook_set_window_creation_hook() has no destroy func. 344232 GtkEntry's "Delete" context menu item is sensitive on a non-editable GtkEntry 344244 Window resizing not working when keeping the aspect fixed 344288 gtk_print_operation_preview_is_selected must return a value 344386 gdk-2.0-uninstalled.pc.in and gdkconfig.h 344496 CRLF converting via Clipboard 344504 GtkPrintCapabilities not in gtktypebuiltins.h 344505 Wrong signal registration for create_custom_widget 344512 cvs build issue 344513 pdf print module's print_stream not calling destroy notify 344518 NULL unref in page setup dialogue 344543 gtk_progress_bar_pulse calls gtk_progress_bar_paint directly 344560 gtk_print_settings_[sg]et_scale shouldn't be in percent 344607 memory leaks in gtkrecentchooserdefault.c and gtkrecentchoosermenu.c 344624 Memory leak in gtk_tree_model_filter_finalize: User data not freed 337603 Possible off-by-one in gdk_pango_layout_line_get_clip_region 344239 Wrong filename for gtk-find stock item. 344528 comma at end of GtkPrintOperationAction enum causes mozilla compilation error 344290 horizontal-padding not take into account when placing submenus 344558 document print dialogue response codes 339592 Add print-to-postscript 342249 Allow to draw upper and lower sides of GtkRange's trough differently 344530 gtk_recent_chooser_widget_new_for_manager and gtk_recent_chooser_menu_new_for_manager should allow NULL manager arg * Updated translations (es,fi,gu,ko,th,wa) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=153212,337491,339739,342339,343945,344148,344209,344232,344244,344288,344386,344496,344504,344505,344512,344513,344518,344543,344560,344607,344624,337603,344239,344528,344290,344558,339592,342249,344530 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Behdad Esfahbod, Bastian Nocera, Alexander Larsson, J黵g Billeter, Murray Cumming, Milosz Derezynski, Tor Lillqvist, Kazuki Iwamoto, Chris Wilson, Michael Natterer, Benjamin Berg, Marko Anastasov, Christian Persch, Masatake Yamamoto, Elijah Newren, John Finlay, Emmanuele Bassi, David Malcolm, John Darrington, Christian Weiske, Yvgen Muntyan, Martyn Russell, Kristian Rietveld June 13, 2006 Matthias Clasen From suryakiran.gullapalli@gmail.com Tue Jun 13 02:17:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ECF3B015D for ; Tue, 13 Jun 2006 02:17:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12730-02 for ; Tue, 13 Jun 2006 02:17:09 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 1E5ED3B00AF for ; Tue, 13 Jun 2006 02:17:08 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2351869nzo for ; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AjdeG/my9aZKptVxVu2SIogubCWxKAr3HX1opiXSepv2WV/xdlS7lqfXrYoQlSpChmZcBUDN5LhZopltI7Ei+MXADb5GyUs2yol7NRqVgmzN3F04gW/KosoogyTrCbFXpCbVoZwCa32PIFzGvURU4zgEsm1eSsPmN/+VaRtR7AM= Received: by 10.36.56.4 with SMTP id e4mr5918423nza; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Message-ID: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> Date: Tue, 13 Jun 2006 11:46:23 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9016_20460533.1150179383165" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.859 tagged_above=-999 required=2 tests=[AWL=-0.132, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.859 X-Spam-Level: Subject: Font Path X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:17:15 -0000 ------=_Part_9016_20460533.1150179383165 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_9016_20460533.1150179383165 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_9016_20460533.1150179383165-- From suryakiran.gullapalli@gmail.com Tue Jun 13 06:52:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5924B3B000A for ; Tue, 13 Jun 2006 06:52:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20305-10 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 78A063B00C9 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2460005nzo for ; Tue, 13 Jun 2006 03:50:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UcWT8tNT7p4SbjxzYU7oPici9Ro4C0nxkQ0RGHY/Ox9lpXzzZIEYgNNa4PMdAJvSOypndwVY9RDFl5b+ipj4/a3Fo9hblR+xxl8x2fO7IQqHgwcFB5ScMUIHWv7eSQXZ4OML/pwhL6o75U8+bodUFhK/ChF1yUImiQujKV861Uc= Received: by 10.36.8.4 with SMTP id 4mr10540719nzh; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Message-ID: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> Date: Tue, 13 Jun 2006 16:20:52 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_559_15776072.1150195852962" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.114 tagged_above=-999 required=2 tests=[AWL=-0.876, BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.114 X-Spam-Level: Subject: Theme engine tutorial. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 10:52:23 -0000 ------=_Part_559_15776072.1150195852962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_559_15776072.1150195852962 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_559_15776072.1150195852962-- From andi_sz_2000@yahoo.com Mon Jun 12 11:51:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C6323B00D4 for ; Mon, 12 Jun 2006 11:51:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08963-02 for ; Mon, 12 Jun 2006 11:51:53 -0400 (EDT) Received: from web51612.mail.yahoo.com (web51612.mail.yahoo.com [68.142.224.85]) by menubar.gnome.org (Postfix) with SMTP id 8A69F3B00D8 for ; Mon, 12 Jun 2006 11:51:52 -0400 (EDT) Received: (qmail 98982 invoked by uid 60001); 12 Jun 2006 15:51:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=twFPqLknw7rC+J3lu/TUPVojwbQkB+djl+EvcOmiR4QyNT69l3nofSk9rPpvx7m2zLc/2k70C+kP5pQqlLOHFuJGzNgOWOW1XOfn0p/woPoIAGZx4v0s0di6G84r+aCvTf57YEqin+6hSK+/3QOTRp1Y6dxXdhIifQLJExfDXAA= ; Message-ID: <20060612155104.98980.qmail@web51612.mail.yahoo.com> Received: from [85.204.36.18] by web51612.mail.yahoo.com via HTTP; Mon, 12 Jun 2006 08:51:04 PDT Date: Mon, 12 Jun 2006 08:51:04 -0700 (PDT) From: Andrea Szenasi To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, FROM_HAS_ULINE_NUMS=0.291, HOT_NASTY=0.157] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:25 -0400 Subject: question: connecting to mysql X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrea Szenasi List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 15:51:57 -0000 Hi all, i am a beginner in GTK PHP and i have problem connecting to MySQL 5.0.18. I am using GTK-PHP2 with PHP5. I use @mysql_connect, so i cant see the error message. But if I use just mysql_connect, then i got the following error message: Fatal:error: Call to undefined function mysql_connect() in XXX on line XXX . With PHP5 (classic, no GTK), the connection is working, so I have no idea what's the problem. Thanks in advance, Andi From mattias.nissler@gmx.de Sun Jun 11 06:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1F53B0095 for ; Sun, 11 Jun 2006 06:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05002-04 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 4B79D3B00D3 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 10:13:59 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp020) with SMTP; 11 Jun 2006 12:13:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Jun 2006 12:13:52 +0200 Message-Id: <1150020832.27952.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.494 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 10:43:38 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From behdad.esfahbod@gmail.com Mon Jun 12 18:10:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C1AE3B00A5 for ; Mon, 12 Jun 2006 18:10:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00834-05 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 337843B00F5 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h26so959411wxd for ; Mon, 12 Jun 2006 15:09:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:sender; b=HkVpdki0/g3XkGcHUm613LiH99RNWp83QpOiB04twtI9/oyY5QJs7xgUW9ugXUYWTW0FQESua3SiFes9GpwcHFnulMB+jmu6Frg1gjSTz94Z0WNKazKYJCx/0yCrKVvi+sIhO9793kd+R7hBbKFWLBqlIyo5yetvED1gx6HIjnc= Received: by 10.70.36.1 with SMTP id j1mr6891335wxj; Mon, 12 Jun 2006 14:44:52 -0700 (PDT) Received: from to-dhcp26.toronto.redhat.com ( [63.250.163.171]) by mx.gmail.com with ESMTP id h18sm3879342wxd.2006.06.12.14.44.50; Mon, 12 Jun 2006 14:44:51 -0700 (PDT) From: Behdad Esfahbod To: Pango Release Lists , gtk-app-devel-list@gnome.org, gtk-devel-list@gnome.org, gtk-i18n-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HZBsNn3KdPR3jVVwB9gO" Date: Mon, 12 Jun 2006 17:44:37 -0400 Message-Id: <1150148678.10765.8.camel@home> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Sender: Behdad Esfahbod X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Cc: Subject: Pango-1.13.2 released [unstable] X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 22:10:14 -0000 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pango-1.13.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ or http://download.gnome.org/sources/pango/1.13/ 28a6ea9d43c4cd398e7352032f775401 pango-1.13.2.tar.bz2 17d78473c05fece044c6a3b44519b61f pango-1.13.2.tar.gz This is a development release leading up to Pango-1.14.0, which will be released just in time for GNOME-2.16. Notes: * This is unstable development release. While it has had fairly extensive testing, there are likely bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of Pango-1.12. If you have problems, you'll need to reinstall Pango-1.12.x * Bugs should be reported to http://bugzilla.gnome.org. About Pango =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x. Pango is designed to be modular; the core Pango layout engine can be used with different font backends. There are three basic backends, with multiple options for rendering with each. - Client side fonts using the FreeType and fontconfig libraries. Rendering can be with with Cairo or Xft libraries, or directly to an in-memory buffer with no additional libraries. - Native fonts on Microsoft Windows. (Optionally using Uniscribe for complex-text handling). Rendering can be done via Cairo or directly using the native Win32 API. - Native fonts on MacOS X, rendering via Cairo. The integration of Pango with Cairo (http://cairographics.org) provides a complete solution with high quality text handling and graphics rendering. Dynamically loaded modules then handle text layout for particular combinations of script and font backend. Pango ships with a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported. As well as the low level layout rendering routines, Pango includes PangoLayout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text. More information about Pango is available from http://www.pango.org/. Pango 1.13.2 depends on version 2.10.0 or newer of the GLib library and version 1.1.2 or newer of the cairo library (if the cairo backend is desired); more information about GLib and cairo can be found at http://www.gtk.org/ and http://cairographics.org/ respectively. Overview of changes between 1.13.1 and 1.13.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * Improved hexbox drawing, and font metrics calculations. * Synthesize italic variants on win32 [Hans Breuer] * New public API: - pango_cairo_show_error_underline - pango_cairo_error_underline_path - pango_font_describe_with_absolute_size * Misc fixes. * Bugs fixed in this release: Bug 326960 =E2=80=93 hex box drawing for win32 and atsui backends of cairo Bug 343717 =E2=80=93 License information in unclear. Bug 343355 =E2=80=93 Add pango_cairo_show_error_underline & pango_cairo_error_underline_path Bug 343966 =E2=80=93 pango Cygwin build fixes Patch from Cygwin Ports maintainer. Bug 343796 =E2=80=93 Italic Chinese character can't be show correctly in Win32. Bug 314114 =E2=80=93 max_x_advance not appropriate for approximate_(char|digit)_width Bug 341138 =E2=80=93 Using TTC font, Gtk2 programs begin to eating big mem= ory and have many cpu usage. Patch from Yong Li. Bug 336153 =E2=80=93 Mark to mark positioning (Lookup Type 6) isn't correc= t when using MarkAttchmentType Patch from Tin Myo Htet. Bug 333984 =E2=80=93 pango_language_from_string improvements Bug 125378 =E2=80=93 Better underline thickness handling Bug 339730 =E2=80=93 Pango needlessly falls back away from a Type 1 font i= nto a TTF font Bug 342562 =E2=80=93 Support absolute sizes in pango_font_description_to/from_string Bug 341922 =E2=80=93 pango should handle more characters as zero width Patch from Roozbeh Pournader Bug 342525 =E2=80=93 With PangoFc and PangoWin32, approximate digit width = is not what it says Bug 342079 =E2=80=93 pangoatsui-private.h missing from release Behdad Esfahbod 12 June 2006 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEjeBFn+4E5dNTERURApTwAJ9OvqbaG1xnQYzGPC9u0WPi30b6ggCfXNvZ oFfMwctzkAaKRETc/0aDRj0= =Wl7j -----END PGP SIGNATURE----- --=-HZBsNn3KdPR3jVVwB9gO-- From ibaldo@adinet.com.uy Tue Jun 13 14:57:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 16B3A3B03F2 for ; Tue, 13 Jun 2006 14:57:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02939-02 for ; Tue, 13 Jun 2006 14:57:02 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 2FFFE3B00C4 for ; Tue, 13 Jun 2006 14:57:01 -0400 (EDT) Received: from [201.217.132.210] (201.217.132.210) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009A5526 for gtk-list@gnome.org; Tue, 13 Jun 2006 15:56:17 -0300 Message-ID: <448F0A43.8030606@adinet.com.uy> Date: Tue, 13 Jun 2006 15:56:03 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.182 tagged_above=-999 required=2 tests=[AWL=-0.645, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.182 X-Spam-Level: Subject: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 18:57:07 -0000 Hello. I must be doing something wrong but I don't know what is it, I can't believe that it is a bug in libglade since it should hit a lot of applications and people and I am not very experienced with GTK2 (I used GTK1 some long time ago though). It seems that libglade is not connecting the realize event of the drawing area but I can't believe it. Can someone tell what I am doing wrong or what I am missing? I googled for this, read a lot of documentation, invested like 4 hours and still don't get it. I know I can do some workarounds to what I am trying to do, but I think that it is better to learn. Your toughts are very appreciated. Here is my testglade.c file: /* Compile with: gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags --libs) -export-dynamic */ #include #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GladeXML *gxml; gtk_init(&argc, &argv); gxml = glade_xml_new("test.glade", NULL, NULL); glade_xml_signal_autoconnect(gxml); gtk_main(); return 0; } Here is my test.glade file: True window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True I made a testgtk.c file too to see if I can get the realize event and this works (I used a notebook because thats what I am doing in my real application which uses libglade): /* Compile with: gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) */ #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GtkWidget *window, *nb, *lbl, *da; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); da = gtk_drawing_area_new (); gtk_widget_set_size_request (da, 100, 100); g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); lbl = gtk_label_new ("A notebook with a Drawing Area"); nb = gtk_notebook_new (); gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), GTK_WIDGET(lbl)); gtk_container_add (GTK_CONTAINER (window), nb); gtk_widget_show_all (window); gtk_main(); return 0; } Goodbye. P.s.: I posted this email to gtk-app-devel-list yesterday but it didn't show up... -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From ibaldo@adinet.com.uy Tue Jun 13 21:16:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EA96E3B00D4; Tue, 13 Jun 2006 21:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12110-07; Tue, 13 Jun 2006 21:16:26 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 6CF0B3B0147; Tue, 13 Jun 2006 21:16:25 -0400 (EDT) Received: from [201.217.133.125] (201.217.133.125) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009C939E; Tue, 13 Jun 2006 22:15:32 -0300 Message-ID: <448F404C.4020209@adinet.com.uy> Date: Tue, 13 Jun 2006 19:46:36 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org References: <448DEC68.9000706@adinet.com.uy> In-Reply-To: <448DEC68.9000706@adinet.com.uy> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.142 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.142 X-Spam-Level: Cc: Subject: Re: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 01:16:32 -0000 Hello. Sorry for the crosspost, I tought that gtk-app-devel-list wasn't working but what isn't working is my ISP, for some reason I don't receive the emails of this mailing lists so I have to watch the archives :-(, and since I sent this email to gtk-list too I think that it is apropiate to close this thread there as well since maybe someone answers it without knowing that I already discovered my problem. I will not disturb on gtk-list anymore. Well, now I get it! libglade first creates all widgets and *shows* them because that is what is told on the XML file, after that it autoconnects all the events, but it is already too late for the realize event since the widgets are already realized :-). Silly me... I couldn't figure it before. Solution: don't enable the visible attribute on widgets that you want to catch the realize event and show this widgets manually with your own code after all signals are autoconnected. Thank you and goodbye. P.s.: now I need to figure out why the unrealize signal isn't emitted, but maybe because I use gtk_main_quit instead of destroying the main window... El 12/06/06 19:36, Ivan Baldo escribi: > Hello. > I must be doing something wrong but I don't know what is it, I > can't believe that it is a bug in libglade since it should hit a lot > of applications and people and I am not very experienced with GTK2 (I > used GTK1 some long time ago though). > It seems that libglade is not connecting the realize event of the > drawing area but I can't believe it. > Can someone tell what I am doing wrong or what I am missing? I > googled for this, read a lot of documentation, invested like 4 hours > and still don't get it. I know I can do some workarounds to what I am > trying to do, but I think that it is better to learn. Your toughts are > very appreciated. > Here is my testglade.c file: > > /* > Compile with: > gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags > --libs) -export-dynamic > */ > > #include > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GladeXML *gxml; > gtk_init(&argc, &argv); > gxml = glade_xml_new("test.glade", NULL, NULL); > glade_xml_signal_autoconnect(gxml); > gtk_main(); > return 0; > } > > > Here is my test.glade file: > > > > > > > > True > window1 > GTK_WINDOW_TOPLEVEL > GTK_WIN_POS_NONE > False > True > False > True > False > False > GDK_WINDOW_TYPE_HINT_NORMAL > GDK_GRAVITY_NORTH_WEST > True > False > > > > True > last_modification_time="Mon, 12 Jun 2006 22:21:03 GMT"/> > > > > > > > > I made a testgtk.c file too to see if I can get the realize event > and this works (I used a notebook because thats what I am doing in my > real application which uses libglade): > /* > Compile with: > gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) > */ > > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GtkWidget *window, *nb, *lbl, *da; > gtk_init(&argc, &argv); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > da = gtk_drawing_area_new (); > gtk_widget_set_size_request (da, 100, 100); > g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); > lbl = gtk_label_new ("A notebook with a Drawing Area"); > nb = gtk_notebook_new (); > gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), > GTK_WIDGET(lbl)); > gtk_container_add (GTK_CONTAINER (window), nb); > gtk_widget_show_all (window); > gtk_main(); > return 0; > } > > Goodbye. > P.s.: I still don't know where to post this, I think the correct place > is here iin gtk-app-devel-list but maybe it should be gtk-list? > > -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From kereoz@yahoo.fr Wed Jun 14 11:41:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525F23B029F for ; Wed, 14 Jun 2006 11:41:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01059-03 for ; Wed, 14 Jun 2006 11:41:52 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id E2C1F3B01CF for ; Wed, 14 Jun 2006 11:41:51 -0400 (EDT) Received: (qmail 57560 invoked by uid 60001); 14 Jun 2006 15:41:09 -0000 Message-ID: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 14 Jun 2006 17:41:09 CEST Date: Wed, 14 Jun 2006 17:41:09 +0200 (CEST) From: Christophe HAUSER Subject: GtkFixed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.215 tagged_above=-999 required=2 tests=[AWL=0.384, BAYES_00=-2.599] X-Spam-Score: -2.215 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 15:41:54 -0000 Hello, I've got a problem using GtkFixed. Using the following code, the window is empty when I launch the app. fixed = gtk_fixed_new(); Moz = gtk_moz_embed_new(); gtk_container_add (GTK_CONTAINER (window), fixed); gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); gtk_widget_show_all(window); Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tvb@gnome.org Wed Jun 14 13:52:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36FAE3B0081 for ; Wed, 14 Jun 2006 13:52:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17448-10 for ; Wed, 14 Jun 2006 13:52:53 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id DB2C83B000E for ; Wed, 14 Jun 2006 13:52:52 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 4948015A7F; Wed, 14 Jun 2006 13:51:46 -0400 (EDT) Message-ID: <44904EFB.2060907@gnome.org> Date: Wed, 14 Jun 2006 14:01:31 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER Subject: Re: GtkFixed References: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_HELO_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 17:52:54 -0000 Christophe HAUSER wrote: > Hello, > > I've got a problem using GtkFixed. > Using the following code, the window is empty when I > launch the app. > > fixed = gtk_fixed_new(); > Moz = gtk_moz_embed_new(); > > gtk_container_add (GTK_CONTAINER (window), fixed); > gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); > > gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); > gtk_widget_show_all(window); Hmmm, looks like you have a fixed child with width/height = 0; try setting the size-request, since fixed doesnt allocate any size that you dont request. Cheers, -Tristan From M.Kahn@Astronautics.com Wed Jun 14 16:31:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03783B013D for ; Wed, 14 Jun 2006 16:31:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15984-10 for ; Wed, 14 Jun 2006 16:31:23 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 7DC8E3B0135 for ; Wed, 14 Jun 2006 16:31:22 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68FF1.5E830686" Subject: Button background colors Date: Wed, 14 Jun 2006 15:30:29 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaP8WA158meoUl2QFmwJ7Wu6VRUvQ== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.082 tagged_above=-999 required=2 tests=[AWL=0.439, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.082 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 20:31:25 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 =20 ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

 

------_=_NextPart_001_01C68FF1.5E830686-- From paul@linuxaudiosystems.com Wed Jun 14 17:26:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CF6E3B02DC for ; Wed, 14 Jun 2006 17:26:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23464-07 for ; Wed, 14 Jun 2006 17:26:36 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id AC98D3B0388 for ; Wed, 14 Jun 2006 17:26:35 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0V00LGSCVCHRK9@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Jun 2006 16:26:01 -0500 (CDT) Date: Wed, 14 Jun 2006 17:26:22 -0400 From: Paul Davis Subject: Re: Button background colors In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150320382.1765.96.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 21:26:42 -0000 On Wed, 2006-06-14 at 15:30 -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file > because I am programming to requirements that specify different > background colors for different buttons. gtk_widget_set_name (buttonwidget, "myNameForThisSpecialButton"); then use "myNameForThisSpecialButton" in an RC file. From ben@benjohnson.net Wed Jun 14 22:09:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B08C13B00F3 for ; Wed, 14 Jun 2006 22:09:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05224-06 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: from server019.dfw.nationwide.net (server019.dfw.nationwide.net [206.123.129.82]) by menubar.gnome.org (Postfix) with SMTP id 604B53B0018 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: (qmail 20394 invoked from network); 15 Jun 2006 02:08:31 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 15 Jun 2006 02:08:31 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 0AA77E4067 for ; Wed, 14 Jun 2006 19:08:32 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21661-10 for ; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id A3C6BE4071; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Date: Wed, 14 Jun 2006 19:08:31 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615020831.GP11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.551 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599] X-Spam-Score: -2.551 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 02:09:12 -0000 On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file because I am > programming to requirements that specify different background colors for > different buttons. > > I have tried using gtk_widget_modify_bg the button, using all combinations > of creating the button with and without a label. I use gtk_widget_modify_bg() without trouble. piece of a function: struct somethingorother pagestate_colors = { blah, blah, blah }; static void update_examples_from_state( GtkWidget * toggle ) { GdkColor color = pagestate_colors.scheme_bg_normal; gtk_widget_modify_bg( toggle, GTK_STATE_NORMAL, &color); gtk_widget_modify_bg( toggle, GTK_STATE_ACTIVE, &color); gtk_widget_modify_bg( toggle, GTK_STATE_PRELIGHT, &color); gtk_widget_modify_bg( toggle, GTK_STATE_SELECTED, &color); gtk_widget_modify_bg( toggle, GTK_STATE_INSENSITIVE, &color); } after running that you have to let the main event processing loop run a little to let your changes take effect. I am using using 2.6.8-1 but I can't imagine this functionality would have changed. - Anna From laowenbo@gmail.com Thu Jun 15 02:38:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EC5B3B02E7 for ; Thu, 15 Jun 2006 02:38:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17015-01 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id B09DC3B0118 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so183376pyd for ; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr2447571pyi; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.109.19 with HTTP; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 14:37:56 +0800 From: "lao wb" To: gtk-list@gnome.org Subject: Where to get more information about GDK MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1639_31450020.1150353476125" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -0.659 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 06:38:34 -0000 ------=_Part_1639_31450020.1150353476125 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, i am a newcomer The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk, but look like there is no www.gdk.org, another site i can find is developer.gnome.org, while lack of enough examples. I really need examples to know how to use the tricky gdk_XXX APIs. Thanks in advance! laowenbo ------=_Part_1639_31450020.1150353476125 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,
i am a newcomer
The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk,  but look like there is no www.gdk.org , another site i can find is developer.gnome.org, while lack of enough examples.  I  really  need examples  to  know how to use the tricky gdk_XXX APIs. Thanks  in advance!

laowenbo
------=_Part_1639_31450020.1150353476125-- From yeti@physics.muni.cz Thu Jun 15 04:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 407AC3B03BB for ; Thu, 15 Jun 2006 04:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23572-06 for ; Thu, 15 Jun 2006 04:48:08 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 74E203B00F7 for ; Thu, 15 Jun 2006 04:48:07 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5F8laRp032159 for ; Thu, 15 Jun 2006 10:47:37 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id DBA3623D5E; Thu, 15 Jun 2006 10:47:36 +0200 (CEST) Date: Thu, 15 Jun 2006 10:47:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615084737.GM2858@potato.chello.upc.cz> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 08:48:10 -0000 On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > I use gtk_widget_modify_bg() without trouble. piece of a function: It works for people who use a decent Gtk+ theme. But themes and theme engines can easily make similar things stop working. Try just style "default" { bg_pixmap[NORMAL] = "someimage" } widget_class "*" style "default" in your gtkrc. I am afraid the requirement of particular colors goes directly against themeability. One cannot have both. Yeti -- Anonyms eat their boogers. From rvaughan@gmail.com Thu Jun 15 08:11:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F45E3B03E8 for ; Thu, 15 Jun 2006 08:11:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05367-05 for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 422B93B03BB for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so845715uge for ; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr1254247ugm; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.97.17 with HTTP; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 13:11:47 +0100 From: "Richard Vaughan" To: gtk-list@gnome.org Subject: Layered Drawing Areas MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.026 tagged_above=-999 required=2 tests=[AWL=1.068, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: 0.026 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:11:53 -0000 Hi, Has anyone managed to get multiple drawing areas to layer transparently ontop of eachother? I am trying to create an app that looks like it will need 3 or four layers of information drawn ontop of each other - but I want to be able to work with the layers independantly, and I want to be able to see down to the bottom layer. Using a fixed container I can have the layers (at least it seems to do what I think I want), but when I draw in a layer it seems to blank out the 'destroyed' area. Is there a way of setting the transparency, or linking the background image for the layer above to the layer beneath it? If it changes anything I am using GPE on an Ipaq... Thanks, Richard From paul@linuxaudiosystems.com Thu Jun 15 08:56:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA8FA3B05A7 for ; Thu, 15 Jun 2006 08:56:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10559-01 for ; Thu, 15 Jun 2006 08:56:36 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B95773B04A2 for ; Thu, 15 Jun 2006 08:56:11 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W00MXXJXDED5C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 07:56:02 -0500 (CDT) Date: Thu, 15 Jun 2006 08:56:23 -0400 From: Paul Davis Subject: Re: Layered Drawing Areas In-reply-to: To: Richard Vaughan Message-id: <1150376183.1765.118.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:56:47 -0000 On Thu, 2006-06-15 at 13:11 +0100, Richard Vaughan wrote: > Hi, > > Has anyone managed to get multiple drawing areas to layer > transparently ontop of eachother? > > I am trying to create an app that looks like it will need 3 or four > layers of information drawn ontop of each other - but I want to be > able to work with the layers independantly, and I want to be able to > see down to the bottom layer. > > Using a fixed container I can have the layers (at least it seems to do > what I think I want), but when I draw in a layer it seems to blank out > the 'destroyed' area. Is there a way of setting the transparency, or > linking the background image for the layer above to the layer beneath > it? > > If it changes anything I am using GPE on an Ipaq... GnomeCanvas widget. GTK widgets do not (currently) support any notion of alpha transparency or z-order (stacking). The Canvas does. It has no relationships with Gnome other than those shared with GTK. GnomeCanvas is no longer "supported", but as yet its successor has not emerged and there are several contenders. --p From kereoz@yahoo.fr Thu Jun 15 10:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A85B3B05A7 for ; Thu, 15 Jun 2006 10:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16151-02 for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id 36F783B05BC for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: (qmail 4610 invoked by uid 60001); 15 Jun 2006 14:17:18 -0000 Message-ID: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 16:17:17 CEST Date: Thu, 15 Jun 2006 16:17:17 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <44904EFB.2060907@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.274 tagged_above=-999 required=2 tests=[AWL=0.325, BAYES_00=-2.599] X-Spam-Score: -2.274 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 14:17:33 -0000 I tried setting the size-request, but the widget is still not shown...and I've got no error while compiling... I can run the app without any error, but I only see the main window... > Hmmm, looks like you have a fixed child with > width/height = 0; > try setting the size-request, since fixed doesnt > allocate any size > that you dont request. > > Cheers, > -Tristan > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:11:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDA413B0427 for ; Thu, 15 Jun 2006 11:11:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18523-06 for ; Thu, 15 Jun 2006 11:11:29 -0400 (EDT) Received: from web25909.mail.ukl.yahoo.com (web25909.mail.ukl.yahoo.com [217.12.10.207]) by menubar.gnome.org (Postfix) with SMTP id C78DB3B0261 for ; Thu, 15 Jun 2006 11:11:28 -0400 (EDT) Received: (qmail 17522 invoked by uid 60001); 15 Jun 2006 15:11:03 -0000 Message-ID: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25909.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:11:02 CEST Date: Thu, 15 Jun 2006 17:11:02 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615145020.HUVX16286.aamtaout03-winn.ispmail.ntl.com@smtp.ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.242, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:11:31 -0000 I think it will help :) But about the size request, I wonder if my code is right : GtkRequisition *req ; req->height = 300; req->width = 400; gtk_widget_size_request(GTK_WIDGET(Moz), req); Maybe I forget something ? It doesn't work better with a button or any other widget, but when it is something else than a mozilla widget, I can see it very small :) It is not resized... > This may help or may not? > Sometimes I have found with GtkContainer derived > widgets the requested position/layout is overridden. > Do a search for _gtk_widget_get_aux_info in the gtk > code. > > Calls to gtk_widget_set_uposition and > gtk_widget_set_usize create a GtkWidgetAuxInfo > structure which holds the location and positional > information from the fore mentioned calls. Once > created these values are used as default in size > requests. > > Could the moz widget be using > gtk_widget_set_uposition or gtk_widget_set_usize > internally? > > Regards > > ----------------------------------------- > Email sent from www.ntlworld.com > Virus-checked using McAfee(R) Software > Visit www.ntlworld.com/security for more information > > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:27:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E921A3B05D7 for ; Thu, 15 Jun 2006 11:27:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19172-08 for ; Thu, 15 Jun 2006 11:27:23 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id D9EB83B05DE for ; Thu, 15 Jun 2006 11:27:22 -0400 (EDT) Received: (qmail 6262 invoked by uid 60001); 15 Jun 2006 15:26:43 -0000 Message-ID: <20060615152643.6260.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:26:43 CEST Date: Thu, 15 Jun 2006 17:26:43 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.311 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.311 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:27:26 -0000 Ok, I found the problem : I called the function gtk_widget_size_request instead of gtk_widget_set_size_request There is something strange : I didn't find gtk_widget_set_size_request in GTK documentation, but I found gtk_widget_size_request --- Christophe HAUSER a 閏rit : > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > > > > Christophe HAUSER > http://kereoz.sup.fr > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la > meilleure protection possible contre les messages > non sollicit閟 > http://mail.yahoo.fr Yahoo! Mail > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From paul@linuxaudiosystems.com Thu Jun 15 11:54:59 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8F83D3B0623 for ; Thu, 15 Jun 2006 11:54:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21029-03 for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 5B6DC3B063D for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W0030XS358E42@vms042.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 10:52:17 -0500 (CDT) Date: Thu, 15 Jun 2006 11:52:39 -0400 From: Paul Davis Subject: Re: RE : Re: RE : Re: GtkFixed In-reply-to: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> To: Christophe HAUSER Message-id: <1150386759.22276.5.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:54:59 -0000 On Thu, 2006-06-15 at 17:11 +0200, Christophe HAUSER wrote: > I think it will help :) > But about the size request, I wonder if my code is > right : > > GtkRequisition *req ; > req->height = 300; > req->width = 400; > > gtk_widget_size_request(GTK_WIDGET(Moz), req); gtk_widget_set_size_request() From cole-anstey@ntlworld.com Thu Jun 15 13:44:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A2983B0314 for ; Thu, 15 Jun 2006 13:44:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25557-02 for ; Thu, 15 Jun 2006 13:44:03 -0400 (EDT) Received: from queue01-winn.ispmail.ntl.com (queue01-winn.ispmail.ntl.com [81.103.221.55]) by menubar.gnome.org (Postfix) with ESMTP id 62F8D3B0126 for ; Thu, 15 Jun 2006 13:44:02 -0400 (EDT) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20060615145316.CKIP28076.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 Received: from smtp.ntlworld.com ([81.103.221.25]) by aamtaout04-winn.ispmail.ntl.com with SMTP id <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 X-Mailer: Openwave WebEngine, version 2.8.17 (webedge20-101-1107-20041027) X-Originating-IP: [146.82.1.162] From: To: Subject: Re: RE : Re: GtkFixed Date: Thu, 15 Jun 2006 14:53:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.572 tagged_above=-999 required=2 tests=[AWL=-0.718, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -0.572 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 17:44:04 -0000 > > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > This may help or may not? Sometimes I have found with GtkContainer derived widgets the requested position/layout is overridden. Do a search for _gtk_widget_get_aux_info in the gtk code. Calls to gtk_widget_set_uposition and gtk_widget_set_usize create a GtkWidgetAuxInfo structure which holds the location and positional information from the fore mentioned calls. Once created these values are used as default in size requests. Could the moz widget be using gtk_widget_set_uposition or gtk_widget_set_usize internally? Regards ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From adc4444@hotmail.com Thu Jun 15 14:07:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9713A3B0397 for ; Thu, 15 Jun 2006 14:07:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26238-06 for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 7FBC63B007F for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 Jun 2006 11:07:10 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Thu, 15 Jun 2006 18:07:09 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com From: "DC A" To: gtk-list@gnome.org Subject: Problem in updating progress bar Date: Thu, 15 Jun 2006 18:07:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Jun 2006 18:07:10.0440 (UTC) FILETIME=[85713E80:01C690A6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.162 tagged_above=-999 required=2 tests=[AWL=-2.069, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 18:07:45 -0000 What could be the reason for using gtk_events_pending() and gtk_main_iteration() in the following code snippet: for( gflt=0; gflt<=1; ){ gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); //update while (gtk_events_pending ()) gtk_main_iteration (); gflt += 0.1; sleep(1); if ( gflt > 1 ) break; } why the code cannot update the progressbar without these two functions? I saw the API but still it is not clear to me. Thanks. --AD _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From yeti@physics.muni.cz Thu Jun 15 16:27:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 733223B01A1 for ; Thu, 15 Jun 2006 16:27:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31273-10 for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 575F33B006C for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5FJHlVX028614 for ; Thu, 15 Jun 2006 21:17:48 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 2DC7C23D5E; Thu, 15 Jun 2006 21:17:47 +0200 (CEST) Date: Thu, 15 Jun 2006 21:17:50 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Problem in updating progress bar Message-ID: <20060615191750.GO30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:27:57 -0000 On Thu, Jun 15, 2006 at 06:07:09PM +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. Have yor read the FAQ too? http://www.gtk.org/faq/#AEN602 Also, are you aware gtk_progress_bar_update() is deprecated? gtk_progress_bar_set_fraction() -- which is the function to use -- only queues the drawing. The drawing then actually occurs in Gtk+ main loop, which does not have a chance to run without gtk_main_iteration(). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Thu Jun 15 16:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F7FB3B01A1 for ; Thu, 15 Jun 2006 16:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00430-05 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id BFC843B0237 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0X009IA2VD7944@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 14:45:14 -0500 (CDT) Date: Thu, 15 Jun 2006 15:45:35 -0400 From: Paul Davis Subject: Re: Problem in updating progress bar In-reply-to: To: DC A Message-id: <1150400735.22276.22.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:53:34 -0000 On Thu, 2006-06-15 at 18:07 +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. google for "event based programming main loop" programming GUIs is very different in its basic control flow model than writing simple non-user-driven procedural software. From M.Kahn@Astronautics.com Thu Jun 15 16:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 740B13B03D2 for ; Thu, 15 Jun 2006 16:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00479-06 for ; Thu, 15 Jun 2006 16:54:44 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 79F013B0311 for ; Thu, 15 Jun 2006 16:54:43 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C690BD.DA53493A" Subject: RE: Button background colors Date: Thu, 15 Jun 2006 15:54:10 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019481FF@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSABaKA0g From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:54:47 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A coworker came to my rescue on this one. I am a Linux developer and this application had to work under Windows. It turns out that if your Windows desktop theme is set to "Windows XP" then you cannot change the background color of your buttons. If you change your desktop theme to "Windows Classic" then the gtk_widget_modify_style approach works. The gtk_widget_set_style and other approaches may also work, but I haven't tested them. We have a short deadline on this app - I'll test it later. =20 Thanks to everyone who gave it a look. What a surprise it turned out to be a Windows problem, not a GTK problem. =20 Michael Kahn =20 ________________________________ From: Michael Kahn=20 Sent: Tuesday, June 13, 2006 8:49 PM To: 'gtk-list@gnome.org' Subject: Button background colors =20 I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A coworker came to my rescue on = this one.  I am a Linux developer and this application had to work under Windows.  It turns out that if your Windows desktop theme is set to = “Windows XP” then you cannot change the background color of your = buttons.  If you change your desktop theme to “Windows Classic” then the = gtk_widget_modify_style approach works.  The gtk_widget_set_style  and other = approaches may also work, but I haven’t tested them.  We have a short = deadline on this app – I’ll test it later.

 

Thanks to everyone who gave it a look.  What a surprise it turned out to be a Windows problem, not a = GTK problem.

 

  Michael = Kahn

 


From: = Michael Kahn
Sent: Tuesday, June 13, = 2006 8:49 PM
To: = 'gtk-list@gnome.org'
Subject: Button = background colors

 

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C690BD.DA53493A-- From BillS@techsi.com Thu Jun 15 18:05:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348F23B01FF for ; Thu, 15 Jun 2006 18:05:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02711-10 for ; Thu, 15 Jun 2006 18:05:22 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 09F4F3B018C for ; Thu, 15 Jun 2006 18:05:21 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k5FLp1AZ024125 for ; Thu, 15 Jun 2006 16:51:06 -0500 From: "Bill Sousan" To: Subject: use of gtk rc files slows down display Date: Thu, 15 Jun 2006 17:04:18 -0500 Message-ID: <000601c690c7$aa62c850$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C6909D.C18CC050" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.603 tagged_above=-999 required=2 tests=[AWL=-0.682, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.603 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 22:05:25 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using some existing rc files for my gtk application that I pulled off of the web and noticed a considerable slow down in the display versus when not using an rc file (the one passed to gtk_rc_parse() function). Are there considerations that I need to be aware of if I want to use to rc files to have a nice "skin" without the slowdown? Thanks, Bill ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using some existing rc files for my gtk = application that I pulled off of the web and noticed a considerable slow down in the = display versus when not using an rc file (the one passed to gtk_rc_parse() function).  Are there considerations that I need to be aware of if = I want to use to rc files to have a nice “skin” without the = slowdown?

 

Thanks,

Bill

 

 

------=_NextPart_000_0007_01C6909D.C18CC050-- From diego@otello.alma.unibo.it Fri Jun 16 01:40:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C38C23B006C for ; Fri, 16 Jun 2006 01:40:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18193-03 for ; Fri, 16 Jun 2006 01:40:09 -0400 (EDT) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 852AC3B0011 for ; Fri, 16 Jun 2006 01:39:59 -0400 (EDT) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 44DB0122256; Fri, 16 Jun 2006 03:38:40 -0400 (EDT) Message-ID: <449243F6.6010901@otello.alma.unibo.it> Date: Fri, 16 Jun 2006 07:39:02 +0200 From: Diego Zuccato User-Agent: Thunderbird 1.5.0.2 (X11/20060422) MIME-Version: 1.0 To: DC A Subject: Re: Problem in updating progress bar References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.558 tagged_above=-999 required=2 tests=[AWL=0.041, BAYES_00=-2.599] X-Spam-Score: -2.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 05:40:28 -0000 DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. 'Cause you're blocking the main loop (which handles all the updating). But that sleep(1) still blocks for a whole second any action: your GUI will act quite strangely! Could be really better to handle a timeout/idle callback. If all you have to do is some lengthy operation, you could use a thread that does it and updates a "percentage indicator" (a shared variable). In the main program (the GUI manager) you set up a timeout callback (the timeout is up to you: from .1 to tenths of seconds) that reads the shared variable and updates the progress bar. This way you won't have to bother about locks: just DON'T do anything GUI-related in the calc thread. BYtE, Diego. From lists@nabble.com Fri Jun 16 07:14:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12D983B0007 for ; Fri, 16 Jun 2006 07:14:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26539-04 for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id C61543B002C for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FrCGc-0008HH-NC for gtk-list@gnome.org; Fri, 16 Jun 2006 04:13:34 -0700 Message-ID: <4898493.post@talk.nabble.com> Date: Fri, 16 Jun 2006 03:58:40 -0700 (PDT) From: prashu To: gtk-list@gnome.org Subject: Regarding GTK player MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: prashan@sasken.com X-Nabble-From: prashu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.316 tagged_above=-999 required=2 tests=[AWL=2.285, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.316 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 11:14:35 -0000 hi all... i am designing user inerface to mobiles for mobiles. For UI i selected GTK as framework. I am writting in C langauge. What actually i need is one playlist window which contains audio files from particular directory. on selecting file from playlist another window should open. which contains play and pause buttons. If any one have code of this thing , please mail to my id, prashan@sasken.com. with regards, Prashanth KM -- View this message in context: http://www.nabble.com/Regarding-GTK-player-t1797584.html#a4898493 Sent from the Gtk+ - General forum at Nabble.com. From adc4444@hotmail.com Fri Jun 16 14:07:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C2A253B026A for ; Fri, 16 Jun 2006 14:07:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11049-01 for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 5D7A93B030D for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 16 Jun 2006 11:05:35 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Fri, 16 Jun 2006 18:05:30 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com In-Reply-To: <449243F6.6010901@otello.alma.unibo.it> From: "DC A" To: diego@otello.alma.unibo.it, gtk-list@gnome.org Subject: Re: Problem in updating progress bar Date: Fri, 16 Jun 2006 18:05:30 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 16 Jun 2006 18:05:35.0606 (UTC) FILETIME=[77547960:01C6916F] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.156 tagged_above=-999 required=2 tests=[AWL=-2.063, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.156 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 18:07:54 -0000 Thank you all for explaining this problem. --DC _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From papel@free.fr Wed Jun 14 07:03:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB43B01B1 for ; Wed, 14 Jun 2006 07:03:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16109-06 for ; Wed, 14 Jun 2006 07:03:40 -0400 (EDT) Received: from swip.net (mailfe04.tele2.fr [212.247.154.108]) by menubar.gnome.org (Postfix) with ESMTP id 9DBBD3B0093 for ; Wed, 14 Jun 2006 07:03:39 -0400 (EDT) X-T2-Posting-ID: 4qjjVdH8TQlq0xUsIYMW3y8I4nzdJt8e7HSuCLByD9Y= X-Cloudmark-Score: 0.000000 [] Received: from [80.170.52.241] (HELO localhost) by mailfe04.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 212846123 for gtk-list@gnome.org; Wed, 14 Jun 2006 13:03:02 +0200 Message-ID: <448FEC06.9090600@free.fr> Date: Wed, 14 Jun 2006 12:59:18 +0200 From: Papel User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.12) Gecko/20050920 X-Accept-Language: fr, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk events ??? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.898 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -0.898 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 11:03:42 -0000 Hello, From a few days ago, i have a lot of problems with gtk events (MainLoop). I have created a GTK frame into a main widget and a box into this frame. I have reparent this widget (window) to a XWindow. I would like to send events (XEvents) to this widget. How I can do to send this XEvents to GtkEvents to the widget ??? I have tried : gtk_widget_event / gtk_main_iteration_do / gtk_main_do_event / etc... Thank you in advance MCB From root@gateshead-online.co.uk Thu Jun 15 03:57:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B35803B0155 for ; Thu, 15 Jun 2006 03:57:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20648-07 for ; Thu, 15 Jun 2006 03:57:12 -0400 (EDT) Received: from gateshead-online.co.uk (p15122568.pureserver.info [217.160.177.192]) by menubar.gnome.org (Postfix) with ESMTP id 1EC033B02FA for ; Thu, 15 Jun 2006 03:57:09 -0400 (EDT) Received: from root by gateshead-online.co.uk with local (Exim 4.30) id 1Fqmic-0008Bj-Jf for gtk-list@gnome.org; Thu, 15 Jun 2006 08:56:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17553.4798.584679.71190@p15122568.pureserver.info> Date: Thu, 15 Jun 2006 08:56:46 +0100 To: gtk-list@gnome.org From: dale_mellor@users.sourceforge.net Subject: Re: Button background colors In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> X-Mailer: VM 7.18 under Emacs 21.4.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.503 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961] X-Spam-Score: -1.503 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 07:57:14 -0000 I too use gtk_widget_modify_bg without trouble on a GtkButton object, using GTK version 2.9.2. Anna writes: > On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > > I am using Gtk 2.8.18. > > > > I would like to know how to set the background color in a GtkButton. > > > > I cannot set the background in a style, theme, or resource file because I am > > programming to requirements that specify different background colors for > > different buttons. > > > > I have tried using gtk_widget_modify_bg the button, using all combinations > > of creating the button with and without a label. > > I use gtk_widget_modify_bg() without trouble. piece of a function: > From jose.francisco.hevia@gmail.com Thu Jun 15 05:27:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B20D43B0270 for ; Thu, 15 Jun 2006 05:27:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25836-07 for ; Thu, 15 Jun 2006 05:27:38 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8A7003B0353 for ; Thu, 15 Jun 2006 05:27:37 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so51745nfe for ; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.47.10 with SMTP id u10mr360304nfu; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 15 Jun 2006 02:27:35 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 11:27:35 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Button background colors In-Reply-To: <20060615084737.GM2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.104 tagged_above=-999 required=2 tests=[AWL=0.195, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.104 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 09:27:39 -0000 MjAwNi82LzE1LCBEYXZpZCBOZehhcyAoWWV0aSkgPHlldGlAcGh5c2ljcy5tdW5pLmN6PjoKPiBP biBXZWQsIEp1biAxNCwgMjAwNiBhdCAwNzowODozMVBNIC0wNzAwLCBBbm5hIHdyb3RlOgo+ID4K PiA+IEkgdXNlIGd0a193aWRnZXRfbW9kaWZ5X2JnKCkgd2l0aG91dCB0cm91YmxlLiAgcGllY2Ug b2YgYSBmdW5jdGlvbjoKPgo+IEl0IHdvcmtzIGZvciBwZW9wbGUgd2hvIHVzZSBhIGRlY2VudCBH dGsrIHRoZW1lLiAgQnV0IHRoZW1lcwo+IGFuZCB0aGVtZSBlbmdpbmVzIGNhbiBlYXNpbHkgbWFr ZSBzaW1pbGFyIHRoaW5ncyBzdG9wIHdvcmtpbmcuCj4gVHJ5IGp1c3QKPgo+IHN0eWxlICJkZWZh dWx0IiB7Cj4gICAgYmdfcGl4bWFwW05PUk1BTF0gPSAic29tZWltYWdlIgo+IH0KPiB3aWRnZXRf Y2xhc3MgIioiIHN0eWxlICJkZWZhdWx0Igo+Cj4gaW4geW91ciBndGtyYy4KPgo+IEkgYW0gYWZy YWlkIHRoZSByZXF1aXJlbWVudCBvZiBwYXJ0aWN1bGFyIGNvbG9ycyBnb2VzCj4gZGlyZWN0bHkg YWdhaW5zdCB0aGVtZWFiaWxpdHkuICBPbmUgY2Fubm90IGhhdmUgYm90aC4KPgo+IFlldGkKCkF0 IGZpcnN0LCBJIGFncmVlZCB3aXRoIHRoaXMuIE5vdyBJIGtub3cgdGhhdCBpdCdzIHBvc3NpYmxl IHRvIG1ha2UgYW4KaW50ZWxsaWdlbnQgcHJvZ3JhbSB0aGF0IGtub3dzIHdpdGNoIGNvbG9ycyBh cmUgeW91IHVzaW5nIGFuZCB0YWtlCmFjdGlvbiBmcm9tIGl0LgoKODAgcGVyIGNlbnQgb2YgdGhl bWVzIGFyZSBhbG1vc3Qgd2hpdGUgZm9yIGJ1dHRvbnMsIEkgbGlrZSBkYXJrIG9uZXMuClRoaXMg Y291bGQgYmUgZGV0ZWN0ZWQgYnkgdGhlIHByb2dyYW0gYW5kIGRlY2lkZToKSWYgeW91IGFyZSB1 c2luZyBicmlnaHQgdGhlbWVzIHtzZWxlY3QgdGhpcyBjb2xvcnMufQplbHNlIHtzZWxlY3QgdGhl IG90aGVyIG9uZXMufQpiYXNlZCBpbiBjb250cmFzdCBiZXR3ZWVuIHRoZW0KClRoZW1lYWJpbGl0 eSBpcyB2ZXJ5IGltcG9ydGFudCBmb3IgR3RrLCBidXQgdXNpbmcgY29sb3JzIGxpa2Ugc2NhbGFi bGUKaWNvbnMgKGxvb2sgYXQgdGhlc2UgZmlsbXMgd2l0aCB0aGUgInJlZCBidXR0b24iKSB3aXRo b3V0IGhhdmluZyB0bwpib3RoZXIgd2l0aCBjb21wbGV4aXR5IGdpdmVzIGd0ayBhIGxvdCBvZiBw b3dlciB0byBnaXZlIGl0IGF3YXkuCgogICAgICAgICAgICBKb3NlIEhldmlhCg== From kstachowski@o2.pl Thu Jun 15 19:00:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1AB673B00D0 for ; Thu, 15 Jun 2006 19:00:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04700-08 for ; Thu, 15 Jun 2006 19:00:27 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 03CFC3B0080 for ; Thu, 15 Jun 2006 19:00:26 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2035C58014 for ; Fri, 16 Jun 2006 00:59:51 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: drawing a generated bitmap Date: Thu, 15 Jun 2006 22:59:50 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606152259.50433.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.102 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: 1.102 X-Spam-Level: * X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 23:00:28 -0000 hello :) i understand this is a basic question and am sorry for my ignorance. i really haven't managed to find an answer though i've searched quite a time. i've actually got two problems (using nemerle (mono, i.e. gtk#)): 1. i'd like to generate a terrain heightmap and draw it onto a widget. should i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), try to convert it to an xpm (how?) or what other method would be most appropriate? (please, read the second question before answering this one) 2. i'd like to be able to fluently change the colours while the heightmap is already generated. in the old days (i haven't written much for quite a time) it was possible to just draw a bitmap onto the screen and keep redefining the colours, which was pretty fast and looked nice in its way. is it still doable? i'd need it for altering the water level on the map. any help would be appreciated :) From zhaolj@gmail.com Fri Jun 16 03:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46A9B3B000B for ; Fri, 16 Jun 2006 03:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20725-04 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 76F973B0007 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so510575pyd for ; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.15.11 with SMTP id s11mr424956pyi; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Message-ID: <9f5a93cb0606160026o65c6bc68gdd9b2a4ad88f4264@mail.gmail.com> Date: Fri, 16 Jun 2006 15:26:41 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.818 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.818 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 07:27:56 -0000 RGVhciBBbGwsCgpJIGhhdmUgYSBwcm9ibGVtIHdoZW4gSSBjcmVhdGUgYSBuZXcgR1NvdXJjZSBz dHJ1Y3R1cmUuCgpJbiBmYWN0LCBJIHdvdWxkIHNlbmQgc29tZSBldmVudHMgdG8gdGhlIG1haW4g bG9vcCBvZiBteSBhcHAgZnJvbQpvdGhlciB0aHJlYWRzIG9ubHkgd2l0aCB0aGUgZ2xpYiBBUElz LiBJIGNyZWF0ZSBteSBvd24gR1NvdXJjZQpzdHJ1Y3R1cmUgYW5kIGF0dGFjaCBpdCB3aXRoIHRo ZSBkZWZhdWx0IG1haW4gY29udGV4dC4gQnV0IEkgYWx3YXlzCmdldCBhIHNlZ21lbnQgZmF1bHQg d2hlbiB0aGUgb3RoZXIgdGhyZWFkIHNlbmQgc29tZSB0aGluZyB0byB0aGUgbWFpbgpsb29wLiBJ IGZpbmQgZXZlcnkgZmV3IGluZm9ybWF0aW9uIGFib3V0IHVzaW5nIEdTb3VyY2UuCgpXaGVyZSBj YW4gSSBmaW5kIGFuIGV4YW1wbGUgb2YgdXNpbmcgR1NvdXJjZSAobm90IHVzaW5nCmdfaWRsZV9z b3VyY2VfbmV3LCBub3IgZ190aW1lb3V0X3NvdXJjZV9uZXcpID8gb3IgQ2FuIHlvdSBndXlzIHN1 Z2dlc3QKbWUgYmV0dGVyIHNvbHV0aW9uIGFib3V0IHNlbmQgZXZlbnQgd2l0aCBteSBvd24gZGF0 YSB0byBtYWluIGxvb3AKKG1haW4gbG9vcCBjYW4gbm90IGJlIHN0b3BlZCBvciBibG9ja2VkKSBv bmx5IHVzaW5nIGdsaWIgQVBJcz8KClRoYW5rcyBpbiBhZHZhbmNlIQoKLS0gClJlZ2FyZHOjoQoK TGlhbmdqaW5nCg== From andyggill@gmail.com Fri Jun 16 09:51:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF0263B0011 for ; Fri, 16 Jun 2006 09:51:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30311-07 for ; Fri, 16 Jun 2006 09:51:39 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by menubar.gnome.org (Postfix) with ESMTP id BC4D33B0007 for ; Fri, 16 Jun 2006 09:51:38 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so487632nfe for ; Fri, 16 Jun 2006 06:50:41 -0700 (PDT) Received: by 10.48.43.7 with SMTP id q7mr1735277nfq; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Received: by 10.49.58.15 with HTTP; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Message-ID: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> Date: Fri, 16 Jun 2006 14:50:40 +0100 From: "andy gill" To: gtk-list@gnome.org Subject: opengl and gtk MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_113283_13878838.1150465840774" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.161 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -0.161 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 13:51:42 -0000 ------=_Part_113283_13878838.1150465840774 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree. what's the best (i.e. documented and supported) way of getting opengl and gtk to work together? cheers. ------=_Part_113283_13878838.1150465840774 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree.
what's the best (i.e. documented and supported) way of getting opengl and gtk to work together?

cheers.
------=_Part_113283_13878838.1150465840774-- From zhaolj@gmail.com Sat Jun 17 12:32:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 872CF3B0139 for ; Sat, 17 Jun 2006 12:32:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27157-09 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id 3DAF43B00E6 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so865244pyd for ; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr6012908pyi; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Message-ID: <9f5a93cb0606170932i455c53c0ved3aa0c501215662@mail.gmail.com> Date: Sun, 18 Jun 2006 00:32:02 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.597 tagged_above=-999 required=2 tests=[AWL=0.779, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -1.597 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 16:32:47 -0000 RGVhciBBbGwsCgpTb3JyeSwgSSBhbSBub3Qgc3VyZSBpZiBJIHBvc3QgdGhpcyBxdWVzdGlvbiB0 d2ljZSBpbiB0aGlzIGxpc3QuIEJ1dAppdCBzZWVtcyB0aGUgZmlyc3QgdGltZSB3YXMgZmFpbGVk LgoKSSBoYXZlIGEgcHJvYmxlbSB3aGVuIEkgY3JlYXRlIGEgbmV3IEdTb3VyY2Ugc3RydWN0dXJl LgoKSW4gZmFjdCwgSSB3b3VsZCBzZW5kIHNvbWUgZXZlbnRzIHRvIHRoZSBtYWluIGxvb3Agb2Yg bXkgYXBwIGZyb20Kb3RoZXIgdGhyZWFkcyBvbmx5IHdpdGggdGhlIGdsaWIgQVBJcy4gSSBjcmVh dGUgbXkgb3duIEdTb3VyY2UKc3RydWN0dXJlIGFuZCBhdHRhY2ggaXQgd2l0aCB0aGUgZGVmYXVs dCBtYWluIGNvbnRleHQuIEJ1dCBJIGFsd2F5cwpnZXQgYSBzZWdtZW50IGZhdWx0IHdoZW4gdGhl IG90aGVyIHRocmVhZCBzZW5kIHNvbWUgdGhpbmcgdG8gdGhlIG1haW4KbG9vcC4gSSBmaW5kIGV2 ZXJ5IGZldyBpbmZvcm1hdGlvbiBhYm91dCB1c2luZyBHU291cmNlLgoKV2hlcmUgY2FuIEkgZmlu ZCBhbiBleGFtcGxlIG9mIHVzaW5nIEdTb3VyY2UgKG5vdCB1c2luZwpnX2lkbGVfc291cmNlX25l dywgbm9yIGdfdGltZW91dF9zb3VyY2VfbmV3KSA/IG9yIENhbiB5b3UgZ3V5cyBzdWdnZXN0Cm1l IGJldHRlciBzb2x1dGlvbiBhYm91dCBzZW5kIGV2ZW50IHdpdGggbXkgb3duIGRhdGEgdG8gbWFp biBsb29wCihtYWluIGxvb3AgY2FuIG5vdCBiZSBzdG9wZWQgb3IgYmxvY2tlZCkgb25seSB1c2lu ZyBnbGliIEFQSXM/CgpUaGFua3MgaW4gYWR2YW5jZSEKCi0tIApSZWdhcmRzo6EKCkxpYW5namlu Zwo= From ben@benjohnson.net Sat Jun 17 16:19:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6D3B02A9 for ; Sat, 17 Jun 2006 16:19:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06354-09 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: from server016.dfw.nationwide.net (server016.dfw.nationwide.net [206.123.129.79]) by menubar.gnome.org (Postfix) with SMTP id C8CD93B00D2 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: (qmail 15137 invoked from network); 17 Jun 2006 20:17:13 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Sat, 17 Jun 2006 20:17:13 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 2E560E4067 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00589-06 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id E181DE4071; Sat, 17 Jun 2006 13:17:12 -0700 (PDT) Date: Sat, 17 Jun 2006 13:17:12 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617201712.GF11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.515 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.515 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:19:46 -0000 On Thu, Jun 15, 2006 at 11:27:35AM +0200, Jose Hevia wrote: > 2006/6/15, David Ne?as (Yeti) : > > On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > > > > > I use gtk_widget_modify_bg() without trouble. piece of a function: > > > > It works for people who use a decent Gtk+ theme. But themes > > and theme engines can easily make similar things stop working. > > Try just > > > > style "default" { > > bg_pixmap[NORMAL] = "someimage" > > } > > widget_class "*" style "default" > > > > in your gtkrc. > > > > I am afraid the requirement of particular colors goes > > directly against themeability. One cannot have both. > > > > Yeti > > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them > > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I have a "widget" (actually, a dialog with database interface) that allows users to create button background colors, and apply that "theme" to a "class" of buttons in the application. This was an important element to have in my app because the buttons, from the GTK+ point of view, are all more or less the same, and are created on-the-fly at the user's bequest. The user is allowed to group the buttons in any way they see fit. It works quite well with two great benefits: it gets around inflexabilities in themes and makes button color selection accessible to users who don't know how to use a text editor... much less use a syntax to create a complex theme. - Anna From yeti@physics.muni.cz Sat Jun 17 16:45:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F38AC3B07E3 for ; Sat, 17 Jun 2006 16:45:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09232-08 for ; Sat, 17 Jun 2006 16:45:26 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 7746F3B0805 for ; Sat, 17 Jun 2006 16:45:25 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HHKKwI018732 for ; Sat, 17 Jun 2006 19:20:21 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0804923CE9; Sat, 17 Jun 2006 19:20:20 +0200 (CEST) Date: Sat, 17 Jun 2006 19:20:23 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060617172023.GS30886@potato.chello.upc.cz> References: <200606152259.50433.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606152259.50433.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:45:29 -0000 On Thu, Jun 15, 2006 at 10:59:50PM +0000, kamil stachowski wrote: > i understand this is a basic question and am sorry for my ignorance. i really > haven't managed to find an answer though i've searched quite a time. > > i've actually got two problems (using nemerle (mono, i.e. gtk#)): > > 1. i'd like to generate a terrain heightmap and draw it onto a widget. should > i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), > try to convert it to an xpm (how?) or what other method would be most > appropriate? (please, read the second question before answering this one) Don't draw pixel by pixel, it would be awfully slow. Use GdkPixbufs and gdk_draw_pixbuf(). > 2. i'd like to be able to fluently change the colours while the heightmap is > already generated. in the old days (i haven't written much for quite a time) > it was possible to just draw a bitmap onto the screen and keep redefining the > colours, which was pretty fast and looked nice in its way. is it still > doable? Something along these lines should be doable *if* you can get a indexed color visual, which you cannot count on. So I would just redraw it (incidentally I develop a program which uses false-color maps a lot and redrawing works good enough). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Sat Jun 17 17:36:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2443E3B0139 for ; Sat, 17 Jun 2006 17:36:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11011-09 for ; Sat, 17 Jun 2006 17:36:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 0D2693B0104 for ; Sat, 17 Jun 2006 17:36:32 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1000D5OX9ZC3Q3@vms040.mailsrvcs.net> for gtk-list@gnome.org; Sat, 17 Jun 2006 16:34:48 -0500 (CDT) Date: Sat, 17 Jun 2006 17:35:12 -0400 From: Paul Davis Subject: Re: Gtk events ??? In-reply-to: <448FEC06.9090600@free.fr> To: Papel Message-id: <1150580112.8703.55.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <448FEC06.9090600@free.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 21:36:36 -0000 On Wed, 2006-06-14 at 12:59 +0200, Papel wrote: > Hello, > > From a few days ago, i have a lot of problems with gtk events (MainLoop). > I have created a GTK frame into a main widget and a box into this frame. > I have reparent this widget (window) to a XWindow. > I would like to send events (XEvents) to this widget. How I can do to > send this XEvents to GtkEvents to the widget ??? > > I have tried : gtk_widget_event / gtk_main_iteration_do / > gtk_main_do_event / etc... you're not thinking clearly. GTK is a multiplatform GUI toolkit. its backend is not just X Window, but includes the DirectFB (framebuffer) system on Linux, the GDI API (and others on win32) and recently Quartz/Aqua on OS X. sending GTK events doesn't mean sending events that are translated all the way down to the backend's notion of an "event". if you send a GTK "Button Press" event to a widget, GTK will do that entirely within its own event system, without any reference to the backend you are using. back to basics: why have you reparented the window inside a non-GTK XWindow? --p From yeti@trific.ath.cx Sat Jun 17 19:05:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F32E3B00DC for ; Sat, 17 Jun 2006 19:05:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13816-04 for ; Sat, 17 Jun 2006 19:05:33 -0400 (EDT) Received: from trific.ath.cx (rb5bf232.chello.upc.cz [89.176.185.232]) by menubar.gnome.org (Postfix) with ESMTP id 026623B00AA for ; Sat, 17 Jun 2006 19:05:32 -0400 (EDT) Received: by trific.ath.cx (Postfix, from userid 16809) id 34EC4156127; Sun, 18 Jun 2006 00:09:49 +0200 (CEST) Date: Sun, 18 Jun 2006 00:09:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617220938.GW30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 23:05:34 -0000 On Thu Jun 15 05:27:35 2006, Jose Hevia wrote: > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them How this makes the look consistent with Bumblebee [the theme]? Colors are not the only part of look and feel and they are the easiest part. When the theme uses pixmap backgrounds you should [in most cases] take the pixmap, give it a tint and use it instead of a solid color. Etc. Hackish theme engines like the qt one do not make it easier either. > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I agree with the importance, but I don't agree with the statement it is solved. The only real solution would be taking your app specific widgets into account in the theme itself and drawing themed icons for it if necessary. Not very realistic. Instead we are left with a bunch of heuristics, workarounds and hacks that do something not too awful in some common cases. Yeti -- Anonyms eat their boogers. From lists@nabble.com Sat Jun 17 22:11:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D2483B00EC for ; Sat, 17 Jun 2006 22:11:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20102-07 for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id AFE163B000B for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Frmk9-00052t-CL for gtk-list@gnome.org; Sat, 17 Jun 2006 19:10:29 -0700 Message-ID: <4920028.post@talk.nabble.com> Date: Sat, 17 Jun 2006 19:10:29 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to draw a rectangle on a GtkImage widget? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 02:11:42 -0000 Hi All, I am displaying an image in the main window with a thumbnail of the same image on one side. The thumbnail always shows the entire image while the main window shows just a part of the image because of zoom. Now I want to draw a rectange in the thumbnail to indicate which part of the image is currently displayed in the main window. How can I achieve this? Thanks!! -- View this message in context: http://www.nabble.com/How-to-draw-a-rectangle-on-a-GtkImage-widget--t1805314.html#a4920028 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Sun Jun 18 02:56:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6C5B3B008A for ; Sun, 18 Jun 2006 02:56:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28242-09 for ; Sun, 18 Jun 2006 02:55:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8DBF53B014D for ; Sun, 18 Jun 2006 02:55:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HMJ3jN031835 for ; Sun, 18 Jun 2006 00:19:04 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 19A4223D5D; Sun, 18 Jun 2006 00:19:03 +0200 (CEST) Date: Sun, 18 Jun 2006 00:19:08 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Mailing list problems? Message-ID: <20060617221907.GX30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 06:56:00 -0000 Hello, a couple of days ago my e-mails took almost a day to deliver (and it still takes a long time). But that was a small problem, now when I look at the archives, e.g. http://mail.gnome.org/archives/gtk-list/ I see only ========================================================================== The gtk-list Archives You can get more information about this list. Archive View by: Downloadable version June 2006: [ Thread ] [ Subject ] [ Author ] [ Date ] [ Gzip'd Text 7 KB ] ========================================================================== IOW there is only June 2006 -- and even that is incomplete. Other Gtk+ lists look similarly empty. Did something bad happen to them? Yeti -- Anonyms eat their boogers. From dov.grobgeld@gmail.com Sun Jun 18 04:10:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7A56F3B01BA for ; Sun, 18 Jun 2006 04:10:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31006-02 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 840143B01B4 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so1633845nzo for ; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.14.31 with SMTP id r31mr2636632nzi; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.21.57 with HTTP; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Message-ID: Date: Sun, 18 Jun 2006 11:08:28 +0300 From: "Dov Grobgeld" To: "andy gill" Subject: Re: opengl and gtk In-Reply-To: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 08:10:00 -0000 As far as I understand gtkglext is currently the prefered method of using GL within gtk. I have recently used it in a cross platform application that works fine both on Linux and on Win32. Regards, Dov On 6/16/06, andy gill wrote: > is there any officially supported way of integrating opengl into a > gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to > have varying levels of support for different platforms/language bindings, > and i don't quite understand why there isn't opengl support in the main > tree. > what's the best (i.e. documented and supported) way of getting opengl and > gtk to work together? > > cheers. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From kstachowski@o2.pl Sun Jun 18 07:29:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C2BB3B03F5 for ; Sun, 18 Jun 2006 07:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20622-07 for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 44C653B02EF for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2B8285807B for ; Sun, 18 Jun 2006 13:28:32 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 11:28:31 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200606181128.31582.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.444 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -1.444 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 11:29:39 -0000 thank you for the answer :) > Don't draw pixel by pixel, it would be awfully slow. > Use GdkPixbufs and gdk_draw_pixbuf(). you mean "don't draw pixel by pixel using drawpoint", is that it? > Something along these lines should be doable *if* you can > get a indexed color visual, which you cannot count on. So > I would just redraw it (incidentally I develop a program > which uses false-color maps a lot and redrawing works good > enough). that's a pity but i'll have to cope with that if there's no other way. however, i ran into a problem with colourmaps. i was using gdk.image (has the putpixel method which treats the colours in a more traditional way, and seems to be fast enough for my needs) but didn't manage to change the colours it uses. i keep getting a blue gradient which is not precisely what i want. here's the code: def img=Image(ImageType.Fastest,Visual.System,500,500); for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) img.PutPixel(x,y,(x+y):>UInt32); def gc=GC(args.Event.Window); mutable col=Color(0xff,0,0); gc.Colormap.AllocColor(ref col,true,true); img.Colormap=gc.Colormap; args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); i don't seem to be able to spot anything red in the result. could you please tell me what i am doing wrong? From yeti@physics.muni.cz Sun Jun 18 09:43:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8AFFD3B0BF1 for ; Sun, 18 Jun 2006 09:43:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28794-01 for ; Sun, 18 Jun 2006 09:43:29 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 128E23B0C68 for ; Sun, 18 Jun 2006 09:41:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5ICGX47030918 for ; Sun, 18 Jun 2006 14:16:34 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 5E0A123D5F; Sun, 18 Jun 2006 14:16:33 +0200 (CEST) Date: Sun, 18 Jun 2006 14:16:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060618121635.GZ30886@potato.chello.upc.cz> References: <200606181128.31582.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606181128.31582.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_XF=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 13:43:45 -0000 On Sun, Jun 18, 2006 at 11:28:31AM +0000, kamil stachowski wrote: > > Don't draw pixel by pixel, it would be awfully slow. > > Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? Yes, I do -- and I still mean it. > however, i ran into a problem with colourmaps. i was using gdk.image (has the > putpixel method which treats the colours in a more traditional way, and seems > to be fast enough for my needs) but didn't manage to change the colours it > uses. i keep getting a blue gradient which is not precisely what i want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could you please > tell me what i am doing wrong? Well, I can't speak Nemerle, but as far as I understand it, you first fill the image with arbitrary values no one knows which color they correspond to in the colormap, then allocate one very dark red color (full red is 0xffff in Gdk) but never use it -- the `pixel' field filled by AllocColor is the value to use with PutPixel -- and after all that you set the image's colormap. To draw you have to allocate the colors *first* -- and note if the display is not direct/true-color, it has a limited number of colors and you will not be able to allocate a new color for each unique (x+y):>UInt32 value. So, please save yourself all the hassle and just use GdkPixbuf. Yeti -- Anonyms eat their boogers. From riboaz@xs4all.nl Sun Jun 18 10:04:43 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBDDB3B0B99 for ; Sun, 18 Jun 2006 10:04:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29603-07 for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by menubar.gnome.org (Postfix) with ESMTP id 569E53B0BAA for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from [192.168.1.101] (dpc6744211093.direcpc.com [67.44.211.93]) by smtp-vbr7.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5IDtEGv072056 for ; Sun, 18 Jun 2006 15:55:17 +0200 (CEST) (envelope-from riboaz@xs4all.nl) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <200606181128.31582.kstachowski@o2.pl> References: <200606181128.31582.kstachowski@o2.pl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <14003C28-5DE0-4295-9EC8-E2D3D0A8F9A0@xs4all.nl> Content-Transfer-Encoding: 7bit From: Richard Boaz Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 17:55:07 +0200 To: gtk-list@gnome.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -2.445 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:04:44 -0000 hi, i do something like this in an application to draw probability density function plots. what i do is render the image to an internal RGB buffer, followed by gdk_draw_rgb_image() to render it to the internal pixmap (this pixmap subsequently rendered to the screen): width = DrawingArea->allocation.width; height = DrawingArea->allocation.height; rgbbuf = malloc(width * height * 3); memset(rgbbuf, 240, width * height * 3); // set the background to GREY=(240, 240, 240) DrawBufferImage(rgbbuf, width, height, data); gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); free(rgbbuf); inside the DrawBufferImage() routine, i examine the data, point by point, and assign each pixel to be the RGB combination corresponding to the colour defined/assigned for each data value. my input data also dictates an absolute starting size, so inside the DrawBufferImage() routine, i also magnify the image using a bi-cubic spline interpolation algorithm. the speed achieved in ultimately rendering the image is as fast as possible, and there is no real discernable delay between receiving the data to plot and rendering the image to the screen, i.e., it's instantaneous. plotting pixel by pixel (and magnifying to boot) can result in a quickly drawn image (depending on the number of data points, of course), if gone about in the right manner. cheers, richard On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > thank you for the answer :) > >> Don't draw pixel by pixel, it would be awfully slow. >> Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? > >> Something along these lines should be doable *if* you can >> get a indexed color visual, which you cannot count on. So >> I would just redraw it (incidentally I develop a program >> which uses false-color maps a lot and redrawing works good >> enough). > > that's a pity but i'll have to cope with that if there's no other way. > > however, i ran into a problem with colourmaps. i was using > gdk.image (has the > putpixel method which treats the colours in a more traditional way, > and seems > to be fast enough for my needs) but didn't manage to change the > colours it > uses. i keep getting a blue gradient which is not precisely what i > want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could > you please > tell me what i am doing wrong? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From gaal@forum2.org Sun Jun 18 10:06:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 435323B0BB8 for ; Sun, 18 Jun 2006 10:06:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29678-04 for ; Sun, 18 Jun 2006 10:06:01 -0400 (EDT) Received: from smtp2.actcom.co.il (smtp2.actcom.co.il [192.114.47.35]) by menubar.gnome.org (Postfix) with ESMTP id 650563B0BCC for ; Sun, 18 Jun 2006 10:06:00 -0400 (EDT) Received: from sike (line25-249.adsl.actcom.co.il [192.115.25.249]) by smtp2.actcom.co.il (8.13.3/8.13.3) with ESMTP id k5IDMLPC010326 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jun 2006 16:22:28 +0300 Received: from roo by sike with local (Exim 4.62) (envelope-from ) id 1FrxCy-0004RL-3X for gtk-list@gnome.org; Sun, 18 Jun 2006 16:22:14 +0300 Received: by sike (hashcash-sendmail, from uid 1000); Sun, 18 Jun 2006 16:20:55 +0300 Date: Sun, 18 Jun 2006 16:20:54 +0300 From: Gaal Yahas To: gtk-list@gnome.org Subject: Interrupt signal, GLib, threads Message-ID: <20060618132054.GL9396@sike.forum2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 X-Hashcash: 1:26:060618:gtk-list@gnome.org::gDKzIiB7k7Eeir0+:0000000000000000000 000000000000000000000007LSqZ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.509 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599] X-Spam-Score: -2.509 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:06:04 -0000 I have a GLib/GThread console application that runs fine on Linux and Solaris. But ever since I added threading, when the user hits ^C in the shell the signal is ignored. Does using GThread automatically mask signals? What do I do to get them back? When running my app under gdb, incidentally, ^C works as expected (that is, it drops me in a gdb prompt wherever I was). -- Gaal Yahas http://gaal.livejournal.com/ From kstachowski@o2.pl Sun Jun 18 10:36:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C9DB3B0BEE for ; Sun, 18 Jun 2006 10:36:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30842-02 for ; Sun, 18 Jun 2006 10:36:26 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id B38393B0B9E for ; Sun, 18 Jun 2006 10:36:25 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id AF99258082 for ; Sun, 18 Jun 2006 16:35:40 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:35:39 +0000 User-Agent: KMail/1.9.1 References: <200606181128.31582.kstachowski@o2.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200606181435.39660.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.392 tagged_above=-999 required=2 tests=[AWL=-0.789, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -1.392 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:36:28 -0000 hello :) thank you very much for your answer :) but i'm afraid i won't be able to use it. the access to the rgb class seems= to=20 be either very much limited in gtk sharp (mono) compared to the original an= d=20 other bindings, or at least quite a way beyond my programming skills. i think i'm supposed to be using a gdk.pixbuf instead but than again i can'= t=20 or don't know how to access the memory directly. anyways, in the meantime i've received another answer which made me finally= =20 grab the concept behind colour allocation and colour.pixel value. it seems= =20 that i eventually got an idea of what i'm actually writing :) still, thanks a lot for the answer once again:) Dnia niedziela, 18 czerwca 2006 15:27, napisa=B3e=B6: > hi, > > i do something like this in an application used to draw probability > density function plots. what i do is render the image to an internal > RGB buffer followed by gdk_draw_rgb_image() to render it to the > internal pixmap (this pixmap subsequently rendered to the screen): > > width =3D DrawingArea->allocation.width; > height =3D DrawingArea->allocation.height; > rgbbuf =3D malloc(width * height * 3); > memset(rgbbuf, 240, width * height * 3); // set the background to > GREY=3D(240, 240, 240) > DrawBufferImage(rgbbuf, width, height, data); > gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], > 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); > free(rgbbuf); > > my input data dictates an absolute starting size, so inside my > DrawBufferImage() routine, i also magnify the image using a bi-cubic > spline interpolation algorithm. the speed achieved in ultimately > rendering the image is as fast as possible, and there is no real > discernable delay between receiving the data to plot and rendering > the image to the screen, i.e., it's instantaneous. > > plotting pixel by pixel (and magnifying to boot) can result in a > quickly drawn image (depending on the number of data points, of > course), if gone about in the right manner. > > cheers, > > richard > > On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > > thank you for the answer :) > > > >> Don't draw pixel by pixel, it would be awfully slow. > >> Use GdkPixbufs and gdk_draw_pixbuf(). > > > > you mean "don't draw pixel by pixel using drawpoint", is that it? > > > >> Something along these lines should be doable *if* you can > >> get a indexed color visual, which you cannot count on. So > >> I would just redraw it (incidentally I develop a program > >> which uses false-color maps a lot and redrawing works good > >> enough). > > > > that's a pity but i'll have to cope with that if there's no other way. > > > > however, i ran into a problem with colourmaps. i was using > > gdk.image (has the > > putpixel method which treats the colours in a more traditional way, > > and seems > > to be fast enough for my needs) but didn't manage to change the > > colours it > > uses. i keep getting a blue gradient which is not precisely what i > > want. > > here's the code: > > > > def img=3DImage(ImageType.Fastest,Visual.System,500,500); > > for (mutable x=3D0, x<500; x++) for (mutable y=3D0; y<500; y++) > > img.PutPixel(x,y,(x+y):>UInt32); > > > > def gc=3DGC(args.Event.Window); > > mutable col=3DColor(0xff,0,0); > > gc.Colormap.AllocColor(ref col,true,true); > > img.Colormap=3Dgc.Colormap; > > > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > > > i don't seem to be able to spot anything red in the result. could > > you please > > tell me what i am doing wrong? > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list From tomee@kadu.net Sun Jun 18 10:55:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C71413B0100 for ; Sun, 18 Jun 2006 10:55:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31378-02 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from mail.chilan.com (mail.chilan.com [82.160.212.9]) by menubar.gnome.org (Postfix) with ESMTP id 3229A3B0077 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from aereo (aaso91.neoplus.adsl.tpnet.pl [83.5.226.91]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by mail.chilan.com (Postfix) with ESMTP id 4713723F60 for ; Sun, 18 Jun 2006 16:54:00 +0200 (CEST) From: Tomek Jarzynka To: gtk-list@gnome.org Subject: No icons in Open File dialog Date: Sun, 18 Jun 2006 16:53:58 +0200 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181653.59412.tomee@kadu.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:55:15 -0000 Hello, after playing around with unstable packages I messed up GTK - i.e. it doesn't display folder and file icons in the Open File dialog, only text. I've downgraded to the latest stable versions available for Mandriva 2006 (2.8.3) but still no icons appear. I can change the theme with gtk-chtheme (I am using KDE), but still there are no icons. I get no errors in the console. How do I fix that? Where to look for the icon configuration files that may be missing or corrupted? -- tomasz k. jarzynka / 601 706 601 / tomee(a-t)kadu(d-o-t)net "You laugh because I'm different. I laugh beacuse you're all the same." From nf2@scheinwelt.at Sun Jun 18 18:55:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 462013B00AF; Sun, 18 Jun 2006 18:55:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12908-03; Sun, 18 Jun 2006 18:55:31 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 208EC3B00B2; Sun, 18 Jun 2006 18:55:30 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1Fs69X-0004Oc-Kv; Mon, 19 Jun 2006 00:54:01 +0200 Message-ID: <4495D984.5090705@scheinwelt.at> Date: Mon, 19 Jun 2006 00:53:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gtk-list@gnome.org, gnome vfs list Subject: libxdg-vfs and Gtk-Filechooser Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 9d02a3267670e8bb77f537b38fda5a39 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.012, BAYES_00=-2.599, TW_XD=0.077] X-Spam-Score: -2.51 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 22:55:34 -0000 Hi, The experimental "libxdg-vfs" provides a generic interface to VFS libraries. It tries to autodetect the current desktop and then connects to Gnome-VFS or KIO by launching the backend executables xdg_vfs_gnome or xdg_vfs_kde. http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html The target of "libxdg-vfs" would be giving applications access to ftp/smb shares etc... Of course this also involves bringing VFS access to filechoosers. AFAIK Gtk-Filechooser has pluggable backends (GtkFilesystem). It would be interesting if it could also run on top of "libxdg-vfs". The problem is, that i couldn't find any documentation how to implement a GtkFilesystem module. Could you please give me an introduction and maybe tell me about the specific requirements for a GtkFilesystem? Perhaps i need to provide more functions through "libxdg-vfs": listing and mounting Volumes, obtaining icon-paths,... Regards, Norbert From kstachowski@o2.pl Mon Jun 19 01:31:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03CC3B02D0 for ; Mon, 19 Jun 2006 01:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26079-03 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 501B13B0CE7 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 541273A0414 for ; Mon, 19 Jun 2006 00:05:44 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 88F8C58010 for ; Mon, 19 Jun 2006 00:05:13 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Date: Sun, 18 Jun 2006 22:05:08 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200606182205.09332.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.108, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 05:31:54 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm very sorry about the mess with my posts... this is the first time i'm using a mailing list... From kstachowski@o2.pl Mon Jun 19 02:29:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3900E3B0D4C for ; Mon, 19 Jun 2006 02:29:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28331-03 for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 6FC8A3B0D5D for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 0FEDB2A42D9 for ; Sun, 18 Jun 2006 16:16:06 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id B93C9748099 for ; Sun, 18 Jun 2006 16:15:35 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:15:34 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181415.34985.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.446 tagged_above=-999 required=2 tests=[AWL=-0.766, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -1.446 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 06:29:17 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm sorry if this post appears as a new thread. it's my first time using a mailing list... From kstachowski@o2.pl Mon Jun 19 03:12:18 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 049243B0469 for ; Mon, 19 Jun 2006 03:12:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29499-07 for ; Mon, 19 Jun 2006 03:12:17 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 344293B0198 for ; Mon, 19 Jun 2006 03:12:02 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id A33D22A7E30 for ; Mon, 19 Jun 2006 02:07:22 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 829CB748066 for ; Mon, 19 Jun 2006 02:06:52 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: re: drawing a generated bitmap Date: Mon, 19 Jun 2006 00:06:51 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606190006.52079.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.402 tagged_above=-999 required=2 tests=[AWL=-0.799, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077, TW_XF=0.077] X-Spam-Score: -1.402 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 07:12:18 -0000 hello :) sorry for writing to you at your private address instead of the gtk list but it seems that using a mailing list exceeds my computer skills :/ anyway, i'd like to thank you very much for your answer. it made me finally understand how stuff works. here's the answer i think i failed to post on the list: >> Well, I can't speak Nemerle, but as far as I understand it, >> you first fill the image with arbitrary values no one knows >> which color they correspond to in the colormap, then >> allocate one very dark red color (full red is 0xffff in >> Gdk) but never use it -- the `pixel' field filled by >> AllocColor is the value to use with PutPixel -- and after >> all that you set the image's colormap. >> To draw you have to allocate the colors *first* -- and note >> if the display is not direct/true-color, it has a limited >> number of colors and you will not be able to allocate a new >> color for each unique (x+y):>UInt32 value. > so that's the way it works! oh dear, thank you very much! you've saved me > headache for at least a week :) > the thing is that i got completely lost about the concept of colour > allocation and colour.pixel value. i've utterly failed to understand the > meaning of "hardware pixel" as it is put in the docs. > actually, this also why i sticked to image instead of pixbuf - i thought > image.putpixel's colour parameter was the traditional way, and was afraid to > use pixbuf.drawpoint's gc.foreground because i couldn't understand it. > but now the penny dropped, thank you a great lot :) i definitely owe you a > beer or two in case we ever met :) thanks again, kamil stachowski From lists@nabble.com Mon Jun 19 05:10:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5E0723B008F for ; Mon, 19 Jun 2006 05:10:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-05 for ; Mon, 19 Jun 2006 05:10:31 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E4EB73B0014 for ; Mon, 19 Jun 2006 05:10:30 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFlX-0004aX-HJ for gtk-list@gnome.org; Mon, 19 Jun 2006 02:09:51 -0700 Message-ID: <4932993.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:09:51 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Is there any widget on which I can plot my own primitives? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:10:32 -0000 I have explored some widgets such as GtkImage and GnomeCanvas, but none of them provide the functions I need. Does anyone got any idea? Thanks! -- View this message in context: http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Mon Jun 19 05:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3EC43B0004 for ; Mon, 19 Jun 2006 05:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01908-01 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 72F253B00A4 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFsB-0004kJ-Do for gtk-list@gnome.org; Mon, 19 Jun 2006 02:16:43 -0700 Message-ID: <4933077.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:16:43 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the mouse move and double click event? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:17:33 -0000 I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, I need to capture the coordination of the cursor. In VC++, this can be easily achieved by using the OnMouseMove() function. But in Gtk, I cannot find any similar signal to map. Does anyone got any idea? Thanks!! -- View this message in context: http://www.nabble.com/How-to-capture-the-mouse-move-and-double-click-event--t1810142.html#a4933077 Sent from the Gtk+ - General forum at Nabble.com. From z_b_r@poczta.fm Mon Jun 19 05:36:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 633A53B00A4 for ; Mon, 19 Jun 2006 05:36:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01950-04 for ; Mon, 19 Jun 2006 05:36:03 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id C12ED3B0004 for ; Mon, 19 Jun 2006 05:36:02 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id 66C9F373E63; Mon, 19 Jun 2006 11:35:15 +0200 (CEST) Received: from poczta.interia.pl (f27.poczta.interia.pl [10.217.2.27]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 09FB9373E29 for ; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 0B5532E5C9D; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id DC2132E5C98 for ; Mon, 19 Jun 2006 11:35:09 +0200 (CEST) Date: 19 Jun 2006 11:35:09 +0200 From: hm Subject: Drawing images ( with transparency ) one on another To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060619093509.DC2132E5C98@poczta.interia.pl> X-EMID: 1aa40acc X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.455 tagged_above=-999 required=2 tests=[AWL=-0.971, BAYES_40=-0.185, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:36:05 -0000 =0AHi, =0A=0A I`ve got a problem. I`ve got two separate images. One is bac= kground for the secondone. Secondone is partially transparent. There is al= so table. Question is : how to draw in one of the table`s cells the backgra= ound, and on this background ( as a second layer ) second image (transparen= t) ? I know ( of course ) how to create images, tables.=0A=0Athanks ---------------------------------------------------------------------- Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 From jean.brefort@normalesup.org Mon Jun 19 06:43:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A42C3B00C8 for ; Mon, 19 Jun 2006 06:43:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05026-01 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 7BF243B0091 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5E409225FA; Mon, 19 Jun 2006 12:43:01 +0200 (CEST) Subject: Re: Is there any widget on which I can plot my own primitives? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:46:15 +0200 Message-Id: <1150713975.8915.1.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.892 tagged_above=-999 required=2 tests=[AWL=-0.362, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.892 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:43:49 -0000 Le lundi 19 juin 2006 02:09 -0700, heavenscape a 閏rit : > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. Which functions do you need? > Does anyone got any idea? Thanks! May be GtkDrawingArea? Regards, Jean From jean.brefort@normalesup.org Mon Jun 19 06:47:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A8DF3B015D for ; Mon, 19 Jun 2006 06:47:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05099-08 for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by menubar.gnome.org (Postfix) with ESMTP id 5B4743B008F for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp3-g19.free.fr (Postfix) with ESMTP id 4AF08444E6; Mon, 19 Jun 2006 12:46:28 +0200 (CEST) Subject: Re: How to capture the mouse move and double click event? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4933077.post@talk.nabble.com> References: <4933077.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:49:42 +0200 Message-Id: <1150714182.8915.6.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.891 tagged_above=-999 required=2 tests=[AWL=-0.361, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.891 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:47:09 -0000 Le lundi 19 juin 2006 02:16 -0700, heavenscape a 閏rit : > I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, > I need to capture the coordination of the cursor. In VC++, this can be > easily achieved by using the OnMouseMove() function. But in Gtk, I cannot > find any similar signal to map. > > Does anyone got any idea? Thanks!! The "motion-notify-event" signal is most probably what you need. Regards, Jean From lieven@quasar3d.nl Mon Jun 19 07:28:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A099F3B00A5 for ; Mon, 19 Jun 2006 07:28:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06013-07 for ; Mon, 19 Jun 2006 07:28:08 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 0257C3B000F for ; Mon, 19 Jun 2006 07:28:07 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JBQgWa009810 for ; Mon, 19 Jun 2006 13:26:45 +0200 To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? References: <4932993.post@talk.nabble.com> Message-ID: From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 19 Jun 2006 13:26:42 +0200 In-Reply-To: <4932993.post@talk.nabble.com> User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 11:28:11 -0000 Hi, Use the GtkDrawingArea. You can draw to it using Gdk or maybe Cairo (not sure if that's already in the stable version). Google gave me this tutorial: http:// www.gtk.org/tutorial/x2491.html Greets, Lieven van der Heide. On Mon, 19 Jun 2006 11:09:51 +0200, heavenscape wrote: > > I have explored some widgets such as GtkImage and GnomeCanvas, but none > of > them provide the functions I need. > > Does anyone got any idea? Thanks! > -- > View this message in context: > http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lieven@quasar3d.nl Mon Jun 19 08:15:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 540D53B0AAF for ; Mon, 19 Jun 2006 08:15:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09991-10 for ; Mon, 19 Jun 2006 08:15:06 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 75A0A3B0444 for ; Mon, 19 Jun 2006 08:15:05 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JCDXWa008938 for ; Mon, 19 Jun 2006 14:13:33 +0200 Date: Mon, 19 Jun 2006 14:13:33 +0200 To: gtk-list@gnome.org Subject: Different thickness depending on widget properties. From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=0.109, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.356 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:15:08 -0000 Hi, I am currently working on the wimp theme engine, and I would like to have different thickness property values depending on whether the edge type is etched, or sunken. What would be the best approach on doing so? Also, I'm wondering why the GtkFrame is used for both visually grouping widgets together (like the windows groupbox), aswell as adding edges to widgets (like the drop down list in the combobox seems to be doing). They may have the same functionality (which is none, afaik ;)), and in the default theme they may look the same, but imho there really is a difference between a grouping frame and an edge, and when you're theming, it may be very likely that you want to theme them differently. So I think it would be easier if it were different widgets. Greets, Lieven van der Heide. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From yeti@physics.muni.cz Mon Jun 19 09:03:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B68713B0387 for ; Mon, 19 Jun 2006 09:03:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12359-02 for ; Mon, 19 Jun 2006 09:03:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id CE0ED3B0246 for ; Mon, 19 Jun 2006 09:03:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JAfVKW028290 for ; Mon, 19 Jun 2006 12:41:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4E12123CE6; Mon, 19 Jun 2006 12:41:31 +0200 (CEST) Date: Mon, 19 Jun 2006 12:41:32 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Drawing images ( with transparency ) one on another Message-ID: <20060619104132.GW2858@potato.chello.upc.cz> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:03:16 -0000 On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. Either use gdk_draw_pixbuf() if the correct order (first base, then the one with alpha channel) in expose event handler, or use gdk_pixbuf_composite() and draw the final image. Yeti -- Anonyms eat their boogers. From jmad@maerskdata.dk Mon Jun 19 09:04:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DAE2B3B0312 for ; Mon, 19 Jun 2006 09:04:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12532-05 for ; Mon, 19 Jun 2006 09:04:52 -0400 (EDT) Received: from smddisadksgd001.mdd.local (mail.maerskdata.dk [85.89.224.39]) by menubar.gnome.org (Postfix) with ESMTP id 810BC3B006A for ; Mon, 19 Jun 2006 09:04:51 -0400 (EDT) Received: from smdgldodksgd005.mdd.local ([172.29.201.20]) by smddisadksgd001.mdd.local with InterScan VirusWall; Mon, 19 Jun 2006 14:33:26 +0200 Subject: xevent ? To: gtk-list@gnome.org Cc: X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 From: Jens Madsen Date: 19-Jun-2006 14:33:25 CEDT Message-ID: X-MIMETrack: Serialize by Router on SDRMAIL01/MDG(Release 6.5.3|September 14, 2004) at 19-06-2006 14:33:27 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.519 tagged_above=-999 required=2 tests=[AWL=-0.699, BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, INVALID_DATE=2.193] X-Spam-Score: 0.519 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:04:55 -0000 Hi, I am converting some old x-windows software to GTK. It contains a handler for receiving xevents from other applications. What sort of GTK api should I use for receiving/sending the x-events ? Best regards Jens Madsen From simon@thegestalt.org Mon Jun 19 10:43:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CFD73B0123 for ; Mon, 19 Jun 2006 10:43:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15901-01 for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from mail.thegestalt.org (kanga.astray.com [195.82.114.48]) by menubar.gnome.org (Postfix) with ESMTP id 6C54F3B017E for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from simon by mail.thegestalt.org with local (Exim 4.12) id 1FsKwK-00071M-00 for gtk-list@gnome.org; Mon, 19 Jun 2006 15:41:20 +0100 Date: Mon, 19 Jun 2006 15:41:20 +0100 From: Simon Wistow To: gtk-list@gnome.org Subject: Problems using GTK in Maya Message-ID: <20060619144120.GJ7044@thegestalt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.455 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_RG=0.077] X-Spam-Score: -2.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 14:43:40 -0000 I've attempted to write a dialog for Maya using GTK but it consistently causes segfaults. The dialog will launch and return successfully but the next button I press will causes a Maya crash with the message The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 62194 error_code 8 request_code 42 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) And so far I've been unable to geta back trace out of GDB or Totalview. I've narrowed it down to a test case string create_dialog { int argc = 0; char** argv = 0; // Initialize the widget set if (!gtk_init_check (&argc, &argv)) { return ""; } // drain the event loop while (gtk_events_pending ()) { gtk_main_iteration (); } return ""; } either with or without the event loop draining. Am I doing something fundamentally wrong? Do I need to do somethign with XEmbed? Is GTK just not suited to this? Do I need to sacrifice a different breed of chicken? I'm using GTK 2.69 for what it's worth. Simon -- X-Gleitschirmfliegen: macht Spaaaasss! From paul@linuxaudiosystems.com Mon Jun 19 12:36:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E4033B03A5 for ; Mon, 19 Jun 2006 12:36:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20590-07 for ; Mon, 19 Jun 2006 12:36:08 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 14F6B3B01C6 for ; Mon, 19 Jun 2006 12:36:07 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1400EA98NCJ2C6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Mon, 19 Jun 2006 11:33:12 -0500 (CDT) Date: Mon, 19 Jun 2006 12:33:38 -0400 From: Paul Davis Subject: Re: xevent ? In-reply-to: <1150734280.8703.98.camel@localhost.localdomain> To: Jens Madsen Message-id: <1150734818.8703.101.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1150734280.8703.98.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GD=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 16:36:11 -0000 On Mon, 2006-06-19 at 14:33 +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? basically, you can't. GTK is a cross platform toolkit, so it doesn't have an API that exposes backend details like XEvent. if you root around in the sources of gdk, especially the gdk-x11 directory, you will find some stuff that could be useful. but its not GTK and not even really GDK, since these APIs are designed to work on a variety of backends, including several that are not X Window related. --p From jose.francisco.hevia@gmail.com Mon Jun 19 06:50:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B57E3B007B for ; Mon, 19 Jun 2006 06:50:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05221-03 for ; Mon, 19 Jun 2006 06:50:53 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id DDACA3B013E for ; Mon, 19 Jun 2006 06:50:52 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so538227hue for ; Mon, 19 Jun 2006 03:49:46 -0700 (PDT) Received: by 10.49.72.7 with SMTP id z7mr4462656nfk; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2006 12:49:45 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4932993.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Mon, 19 Jun 2006 14:33:36 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:50:56 -0000 2006/6/19, heavenscape : > > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. > Does anyone got any idea? Thanks! Oh, yes, I'm looking my crystal ball, but I can't manage to get to know what kind of functions you need :-) But I'm sure you know, so please, give more info. Jose Hevia From lists@nabble.com Mon Jun 19 21:48:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9193B09BA for ; Mon, 19 Jun 2006 21:48:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15436-06 for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 142DA3B059B for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsVLU-0004uW-Mp for gtk-list@gnome.org; Mon, 19 Jun 2006 18:48:00 -0700 Message-ID: <4947880.post@talk.nabble.com> Date: Mon, 19 Jun 2006 18:48:00 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Trouble with GtkImage on button press event! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 01:48:41 -0000 I need to capture the button press event on a GtkImage widget, and I use the following code: w = lookup_widget(MainWnd,"image1"); gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); and I mapped the "Button press event" using glade, but it never worked. Anyone knows why? -- View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Mon Jun 19 23:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DA3403B022F for ; Mon, 19 Jun 2006 23:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19691-10 for ; Mon, 19 Jun 2006 23:15:01 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9BAA53B036C for ; Mon, 19 Jun 2006 23:15:00 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JI2VFE002259 for ; Mon, 19 Jun 2006 20:02:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4559923D5E; Mon, 19 Jun 2006 20:02:31 +0200 (CEST) Date: Mon, 19 Jun 2006 20:02:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: xevent ? Message-ID: <20060619180234.GF30886@potato.chello.upc.cz> References: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:15:04 -0000 On Mon, Jun 19, 2006 at 04:22:25PM +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? See gdk_add_client_message_filter() and related funcs. At least I think they are intended for this situation, fortunately I have never needed them. Yeti -- Anonyms eat their boogers. From lists@nabble.com Mon Jun 19 23:37:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 155253B032C for ; Mon, 19 Jun 2006 23:37:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20664-03 for ; Mon, 19 Jun 2006 23:37:49 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 0B8933B03A6 for ; Mon, 19 Jun 2006 23:37:48 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsX2j-0006su-9z for gtk-list@gnome.org; Mon, 19 Jun 2006 20:36:45 -0700 Message-ID: <4948583.post@talk.nabble.com> Date: Mon, 19 Jun 2006 20:36:45 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: trouble getting the current size of GtkViewport MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:37:52 -0000 I am displaying an image inside a GtkViewport (which is in a scrolled window), my main window resizes frequently (and so the viewport), and i want the image to rescale to fit the current size of the viewport. Anybody has any idea how to get the current size of the viewport? Thanks a lot!!!! -- View this message in context: http://www.nabble.com/trouble-getting-the-current-size-of-GtkViewport-t1815369.html#a4948583 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Tue Jun 20 01:47:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC0303B05AF for ; Tue, 20 Jun 2006 01:47:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26815-06 for ; Tue, 20 Jun 2006 01:47:47 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 08FEA3B031E for ; Tue, 20 Jun 2006 01:47:41 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id C710471130; Tue, 20 Jun 2006 07:46:38 +0200 (CEST) Subject: Re: Trouble with GtkImage on button press event! From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 07:49:52 +0200 Message-Id: <1150782592.14978.0.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.853 tagged_above=-999 required=2 tests=[AWL=-0.400, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.853 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 05:47:48 -0000 Le lundi 19 juin 2006 18:48 -0700, heavenscape a 閏rit : > I need to capture the button press event on a GtkImage widget, and I use the > following code: > > w = lookup_widget(MainWnd,"image1"); > gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); > > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? do you call glade_xml_signal_autoconnect in your code? > View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From andrew@operationaldynamics.com Tue Jun 20 02:16:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC8873B0F1C for ; Tue, 20 Jun 2006 02:16:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28283-07 for ; Tue, 20 Jun 2006 02:16:40 -0400 (EDT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by menubar.gnome.org (Postfix) with SMTP id 8BF9B3B0EBA for ; Tue, 20 Jun 2006 02:16:39 -0400 (EDT) Received: (qmail 57818 invoked by uid 0); 20 Jun 2006 05:49:08 -0000 Received: from unknown (HELO procyon) (unknown) by unknown with SMTP; 20 Jun 2006 05:49:08 -0000 X-pair-Authenticated: 150.101.122.233 Subject: Re: Trouble with GtkImage on button press event! From: Andrew Cowie To: gtk-list@gnome.org In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain Organization: Operational Dynamics Date: Tue, 20 Jun 2006 15:48:53 +1000 Message-Id: <1150782533.17295.4.camel@procyon.operationaldynamics.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.384 tagged_above=-999 required=2 tests=[AWL=0.215, BAYES_00=-2.599] X-Spam-Score: -2.384 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:16:42 -0000 On Mon, 2006-06-19 at 18:48 -0700, heavenscape wrote: > I need to capture the button press event on a GtkImage widget... > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? [gtk] Images themselves don't have [gdk] Windows underneath them, and only such Windows receive events. There is thus a "helper" class called GtkEventBox. You have to nest the Image inside an EventBox to which you can then hook up mouse button press events. http://developer.gnome.org/doc/API/2.0/gtk/GtkEventBox.html or http://java-gnome.sourceforge.net/docs/javadoc/org/gnu/gtk/EventBox.html AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Website: http://www.operationaldynamics.com/ Blog: http://research.operationaldynamics.com/blogs/andrew/ GPG key: 0945 9282 449C 0058 1FF5 2852 2D51 130C 57F6 E7BD From lists@nabble.com Tue Jun 20 02:46:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA183B038D for ; Tue, 20 Jun 2006 02:46:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30258-08 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 873AB3B0085 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsZzm-00022R-Mg for gtk-list@gnome.org; Mon, 19 Jun 2006 23:45:54 -0700 Message-ID: <4950061.post@talk.nabble.com> Date: Mon, 19 Jun 2006 23:45:54 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the scroll event of the scrolled window? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:46:56 -0000 I need to track the scroll events of the GtkScrolledWindow, and i use following code: GtkWidget* w = lookup_widget(MainWnd,"scrolledwindow1"); gtk_widget_add_events (w, GDK_SCROLL_MASK); and I mapped the scroll child event with glade, but it does not work. Anyone knows why? -- View this message in context: http://www.nabble.com/How-to-capture-the-scroll-event-of-the-scrolled-window--t1815899.html#a4950061 Sent from the Gtk+ - General forum at Nabble.com. From prashan@sasken.com Tue Jun 20 04:48:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC4BB3B0E25 for ; Tue, 20 Jun 2006 04:48:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03632-08 for ; Tue, 20 Jun 2006 04:47:55 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id 1A6C73B0F64 for ; Tue, 20 Jun 2006 04:47:53 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8jlRJ007178 for ; Tue, 20 Jun 2006 14:15:47 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8ji59007156for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5K8jiKm016268for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Message-ID: <4497B5B8.1080000@sasken.com> Date: Tue, 20 Jun 2006 14:15:44 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: proggressbar.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:75.63018 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.072 tagged_above=-999 required=2 tests=[AWL=-0.074, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.072 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 08:48:03 -0000 how to design a progressbar, and add to my application window? with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From prashan@sasken.com Tue Jun 20 07:07:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D06E33B032F for ; Tue, 20 Jun 2006 07:07:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10540-04 for ; Tue, 20 Jun 2006 07:07:04 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id B9BA63B03AD for ; Tue, 20 Jun 2006 07:07:03 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6ERJ012845 for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6E59012842for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5KB6EKm016317for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Message-ID: <4497D6A6.20505@sasken.com> Date: Tue, 20 Jun 2006 16:36:14 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Please help me.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:25.28121 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.3 tagged_above=-999 required=2 tests=[AWL=0.298, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:07:06 -0000 hi all... I am doing GUI for audio players using *GTK* as framework. i have to design a *playlist* which contains files from one* directory*, on selecting file from playlist another window should open,which contains play,* pause and stop buttons and one progress bar*. i have to write *events* for those play & all buttons. if anybody have idea of this please help me. or tell me where i get source code of this. with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From paul@linuxaudiosystems.com Tue Jun 20 07:52:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 318133B044D for ; Tue, 20 Jun 2006 07:52:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-01 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B16773B03B8 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J15007F0Q8GB21C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Tue, 20 Jun 2006 06:50:40 -0500 (CDT) Date: Tue, 20 Jun 2006 07:51:07 -0400 From: Paul Davis Subject: Re: proggressbar.. In-reply-to: <4497B5B8.1080000@sasken.com> To: Kalli Math Message-id: <1150804267.8703.134.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <4497B5B8.1080000@sasken.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.547 tagged_above=-999 required=2 tests=[AWL=0.052, BAYES_00=-2.599] X-Spam-Score: -2.547 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:52:07 -0000 On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? it is customary to show some indication that you've attempted to find an answer to such simple, basic questions before asking a mailing list. www.gtk.org has lots of documentation on the GTK API, and links to lots of example source code which you are expected to make use of to find useful, real world, working examples. if you don't understand even the basic idea behind using GTK (or any GUI toolkit), mailing lists are not the right place to begin. From linuxhippy@gmail.com Tue Jun 20 09:27:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 520BE3B02A4 for ; Tue, 20 Jun 2006 09:27:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17603-06 for ; Tue, 20 Jun 2006 09:27:34 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 14A793B01A8 for ; Tue, 20 Jun 2006 09:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so742257hue for ; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.40.10 with SMTP id n10mr2592344hun; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Message-ID: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Date: Tue, 20 Jun 2006 15:26:51 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Scrolling performance MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 13:27:36 -0000 Hi there, I recently updated to OpenSuSE 10.1 since some people suggested that Eclipse/GTK's performance is better with gtk 2.8. My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with latest NVidia binary drivers, renderaccel enabled. GTK applications tend to be very unresponsive compared to other toolkits: - Slow expose reaction. If I move a window above e.g. gtk-demo I see a repaint-lag of about 2-3cm. - Slow scrolling. Even fast scrolling inside of the filechooser is not smooth. I can see scrolling srtifacts which look like caused by asynchronous repainting of the scrolled area. - Slow layouting, especially for Text composnents: Moving e.g. the vertical splitters of gftp (one pane a table as content, other table is empty) is done with about 5fps. Even my old P233 with Windows2000 can do compareable GUI operations without any problems. Also reslayouting/repainting windows after window-size change is slow. - Sluggish Menu-behaviour. In gftp I can feel a ~400ms lag, therefor it takes about 400ms for the menu to catch up to my mouse-pointer if I move with about 500pixel/s. - Eclipse in general is just _very_ slow at all. If large popup menus go away you see the background about 300-500ms repainting itself. Netbeans (Swing based) is way faster, only after start its slow (till the java JIT compiled the hot spots). I know this is an opensource project, I know if something bothers me I can grab the code and enhance it or dontate some money to make someone else fix my problems. However I still go to school and currently have to do my diploma -> no money, no time. I know its unpolite to post such problems to the list, but bad performance has been discussed since ... I guess the 2.0 release. I still remember many projects refusing to upgarde with tables of micro-benchmarks. Till a long time improvements are promiesed, fast paths in pango, enhanced speed of cairo, better repaint handling and whatsoever. If I start a application which links against GTK-2.8 _feels_ exactly as good damn slow as GTK-2.0. The I start a GTK-1.2 based problem and can't trust my eyes ... what happend to GTK. At times of GTK-1.2 I preffered GTK since it felt a bit faster than QT-2.x but now QT is lightening fast compared to GTK-2.x not talking about high-performance libraries like FOX or FLTK. I used Mozilla/GTK1.2 builds as long as they were available, since even mozilla slowed down by only using GDK(2). I just don't get it why I need a 3ghz PC to not see repaint lags or 5fps layout updates. These things worked years ago ten times better than now (and no, this are not themes. GTK-1/QT-2 were themed too with tons of pixmaps). What has happend? I guess performance regression testing is something never here has heard of :-/ And where to start getting my hands on? I just can't work with this crap anymore, but since GTK is on the way to be used as the default toolkit ... it seems there's no way arround it. Which profiling tools do you recommend? Do you think using the intel compiler is worth a try? Where does all the time go to? I've done some sysprof-profiling and its shows than pango is not the evil. Are maybe the repaint algorythmns not optimal, repainting too often too large areas/hidden components? Sorry for wasting your time and your energy, a frustrated Clemens From mclasen@redhat.com Tue Jun 20 11:22:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B32C3B043F; Tue, 20 Jun 2006 11:22:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-09; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 71CF13B00E7; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLnL004523; Tue, 20 Jun 2006 11:21:21 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLNA016479; Tue, 20 Jun 2006 11:21:21 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5KFLKdH032719; Tue, 20 Jun 2006 11:21:20 -0400 Subject: GLib 2.11.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Date: Tue, 20 Jun 2006 11:21:20 -0400 Message-Id: <1150816880.15532.58.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 15:22:11 -0000 GLib 2.11.4 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.4.tar.bz2 md5sum: 9d3a94baa4bfcd9a579b45eea6de3a8c glib-2.11.4.tar.gz md5sum: f7768bc7ed524c6b40cb87daccb6c2b2 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.3 to GLib 2.11.4 =================================================== * GBookmarkFile: - g_bookmark_file_remove_item returns a boolean * g_mkstemp accepts the XXXXXX in the middle of the template * Bugs fixed: 344868 g_key_file_to_data should separate groups * Updated translations (de,es,fr,gu,hi,ko,th) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=344868 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Christian Persch, Federico Mena Quintero Matthias Clasen June 20, 2006 From torriem@chem.byu.edu Tue Jun 20 14:00:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AAD953B04F0 for ; Tue, 20 Jun 2006 14:00:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02250-08 for ; Tue, 20 Jun 2006 14:00:13 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 8D0CF3B0302 for ; Tue, 20 Jun 2006 14:00:02 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5KFR9lG010025 for ; Tue, 20 Jun 2006 09:27:10 -0600 Subject: Re: Please help me.. From: Michael L Torrie To: gtk-list@gnome.org In-Reply-To: <4497D6A6.20505@sasken.com> References: <4497D6A6.20505@sasken.com> Content-Type: text/plain Date: Tue, 20 Jun 2006 09:27:09 -0600 Message-Id: <1150817229.26278.4.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Tue, 20 Jun 2006 09:27:10 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.514 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.514 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:00:23 -0000 On Tue, 2006-06-20 at 16:36 +0530, Kalli Math wrote: > hi all... > > I am doing GUI for audio players using *GTK* as framework. i have to > design a *playlist* which contains files from one* directory*, on > selecting file from playlist another window should open,which contains > play,* pause and stop buttons and one progress bar*. i have to write > *events* for those play & all buttons. if anybody have idea of this > please help me. or tell me where i get source code of this. Do you have a specific question? I doubt anyone here will write your program for you. > > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mitch@gimp.org Tue Jun 20 14:16:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C5693B03C5 for ; Tue, 20 Jun 2006 14:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03488-03 for ; Tue, 20 Jun 2006 14:16:26 -0400 (EDT) Received: from mitch.gimp.org (fuckup.club.berlin.ccc.de [195.160.172.2]) by menubar.gnome.org (Postfix) with ESMTP id 86EB33B0341 for ; Tue, 20 Jun 2006 14:16:25 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FsknV-0007g7-00; Tue, 20 Jun 2006 20:17:58 +0200 Subject: Re: proggressbar.. From: Michael Natterer To: Kalli Math In-Reply-To: <4497B5B8.1080000@sasken.com> References: <4497B5B8.1080000@sasken.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 20:17:57 +0200 Message-Id: <1150827477.31698.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:16:27 -0000 I think it would help a bit if you a) asked specific questions b) didn't have 3 times as much advertizing as content in your mail c) didn't have this idiotic disclaimer On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Tue Jun 20 14:20:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D25DE3B03E3 for ; Tue, 20 Jun 2006 14:20:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03798-03 for ; Tue, 20 Jun 2006 14:20:52 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 120A73B0401 for ; Tue, 20 Jun 2006 14:20:51 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id i30so402545wxd for ; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.19.6 with SMTP id 6mr10823687wxs; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Message-ID: <522c6460606201120g780d763dvf18c90f7fb461681@mail.gmail.com> Date: Tue, 20 Jun 2006 19:20:51 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:20:54 -0000 On 6/20/06, Clemens Eisserer wrote: > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Hi Clemens, I've not tried suse 10.1, but older suses used to install a theme engine for gtk which tried to copy the current KDE theme. It always caused me problems: it was slow, very ugly, and had repaint errors. Maybe it's better than it used to be, but if you have not disabled it, I think it's worth trying without. I forget what the package you have to remove is called, maybe try something like rpm -q a | grep -i gtk | grep -i engine (untested) and see if it lists any theme engines. GTK on the default theme should be fast. John From patrick.jacquotf@free.fr Tue Jun 20 15:18:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A6EB3B046A for ; Tue, 20 Jun 2006 15:18:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07752-07 for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 9EC583B047F for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp2-g19.free.fr (Postfix) with ESMTP id C6C8F73297; Tue, 20 Jun 2006 21:18:10 +0200 (CEST) Subject: Re: Drawing images ( with transparency ) one on another From: Patrick Jacquot To: hm In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 21:17:43 +0200 Message-Id: <1150831063.12639.2.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.582 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599] X-Spam-Score: -2.582 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:18:15 -0000 Le lundi 19 juin 2006 11:35 +0200, hm a 閏rit : > Hi, > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. > > thanks > > ---------------------------------------------------------------------- > Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 > One solution could be to prepare the composite image with the imagemagick library, then to display that composite image HTH -- Patrick From Valdis.Kletnieks@vt.edu Tue Jun 20 15:31:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 908813B04C0 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08815-08 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 9C8D13B04A5 for ; Tue, 20 Jun 2006 15:31:30 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KJVPU2012082; Tue, 20 Jun 2006 15:31:25 -0400 Message-Id: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 15:26:51 +0200." <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150831885_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 15:31:25 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.596 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.596 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:31:31 -0000 --==_Exmh_1150831885_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 15:26:51 +0200, Clemens Eisserer said: > Where does all the time go to? I've done some sysprof-profiling and > its shows than pango is not the evil. Are maybe the repaint > algorythmns not optimal, repainting too often too large areas/hidden > components? So where *does* the time go to, if not pango? The more detail you can provide, the easier it is to track down. For what it's worth, I'm using an older Dell C840 laptop (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer, and it's able to keep up just fine. (Although I admit that if I grab one 700x1000 window and start using the mouse to move it back and forth as fast as I can move the mouse, in front of 2 other 700x1000 windows, and the window manager is doing the moving window in translucent mode as well, that *will* spike the processor up to about 100% and only 8 or 10 redraws per second. I'm not saying it's *not* an issue for you, but simply pointing out that not everybody is seeing the problem - on my machine, GTK2 *is* a bit heavier than GTK1, but not to the point where it's a major issue. And in general, it's really hard to chase down performance regressions in an open-source project without somebody actually seeing the problem and willing to work in some detail to chase it down (been there myself - there's been more than a few times when I've been literally the only person who was both seeing a given bug in the Linux kernel and in a position to help debug it...) --==_Exmh_1150831885_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmE0NcC3lWbTT17ARAu6DAKCFrdWzrt6jGOyh69x5OyWXCTOWfQCfdYba DBRnnX3k5h5Y8BId+X2kJlo= =y5ZG -----END PGP SIGNATURE----- --==_Exmh_1150831885_3210P-- From linuxhippy@gmail.com Tue Jun 20 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A25C13B037B for ; Tue, 20 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11895-05 for ; Tue, 20 Jun 2006 16:21:18 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id C470F3B0270 for ; Tue, 20 Jun 2006 16:21:17 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so710136hud for ; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.69.7 with SMTP id r7mr2961683hua; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Message-ID: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Date: Tue, 20 Jun 2006 22:21:16 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.561 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 20:21:19 -0000 Hi again, Maybe GTK is using X in a way it does not like? > of 2 other 700x1000 windows, and the window manager is doing the moving window > in translucent mode as well, that *will* spike the processor up to about 100% > and only 8 or 10 redraws per second. Well but then a composition manager is installed (as far as I know this is needed for transculesent windows), the window-content is cached in a pixmap and just this pixmap is drawn overe and over and the application does not receive a single expose event by X - So it has in fact nothing to do with GTK. Thanks for the tip with the theme, the only theme I've installed is called "Raleigh". > (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer Well but it should be enough to handle these simple tasks very fast. If QT can do it fast, GTK should be able too. I just wonder why QT performs that well (and many other toolkits I've used too like FOX or FLTK) but everytime it comes down to bad performance of GTK the following things happen: 1.) Not even one comment from a developer. Maybe there are not enough, maybe nobody cares, ore maybe they can't cope with critic? I don't know. 2.) Some fans respond that on their machines its working fast enough. Fighting against that one that brought up the topic to show him that their favourite Gui toolkit is not as weak as it looks. 3.) The discussion dies with or without a flame. -> no result, nothing changes. I see/saw quite frequently complaints about GTK's performance, I saw tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away from GTK-2 because they were concerned loosing users when switching to this toolkit. > So where *does* the time go to, if not pango? The more detail you can > provide, the easier it is to track down. I did some sysprof testing back when I tried to analyze why the Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default theme). It was almost a flat profile, but X spiked quite a lot. Doing the same test (invalidating eclispe's main window) shows about half (!!!) of the time is spent in X. The test with gftp (moving splitters) shows X using 67.1% of CPU whereas gftp itself only consumes 31%. I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). lg Clemens From myeates@jpl.nasa.gov Tue Jun 20 17:24:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B67933B090F for ; Tue, 20 Jun 2006 17:24:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14950-08 for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from nmta3.jpl.nasa.gov (nmta.jpl.nasa.gov [137.78.160.108]) by menubar.gnome.org (Postfix) with ESMTP id 9336B3B082C for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from xmta3.jpl.nasa.gov (xmta3.jpl.nasa.gov [137.78.160.111]) by nmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlIa004610 for ; Tue, 20 Jun 2006 14:24:47 -0700 Received: from [137.78.28.25] (matslab.jpl.nasa.gov [137.78.28.25]) by xmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlK8000301 for ; Tue, 20 Jun 2006 14:24:47 -0700 Message-ID: <4498679B.7000508@jpl.nasa.gov> Date: Tue, 20 Jun 2006 14:24:43 -0700 From: Mathew Yeates User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: matslab.jpl.nasa.gov [137.78.28.25] X-Source-Sender: myeates@jpl.nasa.gov X-AUTH: Internal IP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.568 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599] X-Spam-Score: -2.568 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:24:49 -0000 Hi When I try and compile I get the error in my subject line. This is with a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Mathew From Valdis.Kletnieks@vt.edu Tue Jun 20 17:30:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4628D3B082C for ; Tue, 20 Jun 2006 17:30:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15364-10 for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 4B7023B05CA for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KLUJKk016876; Tue, 20 Jun 2006 17:30:19 -0400 Message-Id: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 22:21:16 +0200." <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150839019_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 17:30:19 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.558 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:23 -0000 --==_Exmh_1150839019_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 22:21:16 +0200, Clemens Eisserer said: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. Maybe none of the developers are seeing your issue, and none of the usual bleeding-edge testers see it either. This makes it hard for them to fix it. > 2.) Some fans respond that on their machines its working fast enough. I'm suspecting you're addressing me with that comment. ;) My point was that it *isn't* the case where every single GTK2 system is seeing horrid performance, and that it always sucks in every case. You seem to be encountering an issue that is *not* present on every system. (On the other hand, if computers and users didn't keep finding new ways to trip over obscure corner cases, I'd be unemployed, so I'm not complaining ;) > I see/saw quite frequently complaints about GTK's performance, I saw > tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away > from GTK-2 because they were concerned loosing users when switching to > this toolkit. Because usually the person complaining disappears before providing useful info like this: > > So where *does* the time go to, if not pango? The more detail you can > > provide, the easier it is to track down. > I did some sysprof testing back when I tried to analyze why the > Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default > theme). It was almost a flat profile, but X spiked quite a lot. Doing > the same test (invalidating eclispe's main window) shows about half > (!!!) of the time is spent in X. The test with gftp (moving splitters) > shows X using 67.1% of CPU whereas gftp itself only consumes 31%. > I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). OK, *now* we have something that we can start looking into - we now know that at least part of the problem is that gftp is generating some very sub-optimal X requests. And we have a test case that reproduces easily (although on my box moving the main horizontal splitter in the gftp gui up and down result in about 70% gftp-gtk and 25% in the X server). I'll take a closer look at this later tonight - the kernel I have booted at the moment doesn't have oprofile support. (And no, I don't pretend to know the GTK innards well enough to fix this, but I've been doing systems debugging and tuning for enough decades that I certainly should be able to get a clear and coherent bugzilla out of it so that somebody else can run with it from there...) --==_Exmh_1150839019_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmGjrcC3lWbTT17ARAipXAJ0VwdLBfSxH0117D7jSuyfn23bE9gCgudlr 1k0WTieYG9P86q3XX2RzYns= =rDWz -----END PGP SIGNATURE----- --==_Exmh_1150839019_3210P-- From mleisher@crl.nmsu.edu Tue Jun 20 17:30:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC5483B0ACC for ; Tue, 20 Jun 2006 17:30:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-02 for ; Tue, 20 Jun 2006 17:30:38 -0400 (EDT) Received: from crl.nmsu.edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id A09343B0BBE for ; Tue, 20 Jun 2006 17:30:36 -0400 (EDT) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.nmsu.edu (8.13.6/8.13.6) with ESMTP id k5KLUYPh018088; Tue, 20 Jun 2006 15:30:34 -0600 Message-ID: <44986900.7080407@crl.nmsu.edu> Date: Tue, 20 Jun 2006 15:30:40 -0600 From: Mark Leisher User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Clemens Eisserer Subject: Re: Scrolling performance References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.2/1551/Tue Jun 20 07:37:21 2006 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.494 tagged_above=-999 required=2 tests=[AWL=-0.840, BAYES_00=-2.599, DNS_FROM_RFC_BOGUSMX=1.945] X-Spam-Score: -1.494 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:44 -0000 Clemens Eisserer wrote: > >> (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer > Well but it should be enough to handle these simple tasks very fast. > If QT can do it fast, GTK should be able too. > > I just wonder why QT performs that well (and many other toolkits I've > used too like FOX or FLTK) but everytime it comes down to bad > performance of GTK the following things happen: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. > 2.) Some fans respond that on their machines its working fast enough. > Fighting against that one that brought up the topic to show him that > their favourite Gui toolkit is not as weak as it looks. > 3.) The discussion dies with or without a flame. > -> no result, nothing changes. I run GTK+ 2.8 on a 400MHz Pentium II box (512MB, Slackware 9) every day without any noticeable performance problems. At one time or another I have used pretty much all versions of GTK+ on this machine without any performance problems. In fact I just installed all the latest libraries last night and didn't experience any performance problems with any programs I linked to the new libraries. Your performance problem is most likely configuration or distribution-specific. Thus the lack of response from the developers. The discussion founders because nothing needs changing except perhaps your system, which your fellow travelers can only help with up to a point because most of us don't have your specific setup. I will say that it not a good sign that problems like yours can't be diagnosed easily. The accretion of mass and complexity in the OS and GUI is making it increasingly difficult to determine where to start troubleshooting. -- ------------------------------------------------------------------------ Mark Leisher Computing Research Lab They never open their mouths New Mexico State University without subtracting from the Box 30001, MSC 3CRL sum of human knowledge. Las Cruces, NM 88003 -- Thomas Bracket Reed (1839-1902) From tml@iki.fi Tue Jun 20 17:49:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33B5C3B0954 for ; Tue, 20 Jun 2006 17:49:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16362-09 for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 3898C3B028D for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 349E1151226; Wed, 21 Jun 2006 00:49:32 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17560.28006.652000.134571@gargle.gargle.HOWL> Date: Wed, 21 Jun 2006 00:49:26 +0300 To: Mathew Yeates Subject: Re: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix In-Reply-To: <4498679B.7000508@jpl.nasa.gov> References: <4498679B.7000508@jpl.nasa.gov> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.329 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.329 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:49:40 -0000 Mathew Yeates writes: > When I try and compile I get the error in my subject line. This is with > a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Presumably you get the error when running your code, not compiling? Anyway, you probably have an older version of the GNU iconv Dll, iconv.dll, in your Windows System32 folder. (Or something totally unrelated that just happens to also be called iconv.dll.) Hide that other iconv.dll. If you later then notice that some 3rd-party app that has installed it in the system32 folder starts complaining about it missing, copy it to that app's executable's folder, where it should have been in the first place. --tml From jcupitt@gmail.com Tue Jun 20 17:57:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D481A3B026F for ; Tue, 20 Jun 2006 17:57:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17120-07 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.203]) by menubar.gnome.org (Postfix) with ESMTP id 9A3F33B0244 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h30so11009wxd for ; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.92.17 with SMTP id p17mr11155104wxb; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Message-ID: <522c6460606201457k7a194a19n956616ccdaeb85da@mail.gmail.com> Date: Tue, 20 Jun 2006 22:57:34 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:57:43 -0000 On 6/20/06, Clemens Eisserer wrote: > Thanks for the tip with the theme, the only theme I've installed is > called "Raleigh". I found the package: http://www.novell.com/products/linuxpackages/suselinux/gtk-qt-engine.html it is installed by default, so unless you've removed it, you are probably using it. Worth checking anyway. I used to use gtk2.4 apps under suse on a very old 450MHz PII machine and performance was not obviously worse than Qt (for me). John From linuxhippy@gmail.com Tue Jun 20 18:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4FC13B0170 for ; Tue, 20 Jun 2006 18:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20290-07 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 2388D3B08F1 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so720860hud for ; Tue, 20 Jun 2006 15:41:32 -0700 (PDT) Received: by 10.78.17.4 with SMTP id 4mr3049235huq; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Message-ID: <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Date: Wed, 21 Jun 2006 00:41:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.37 tagged_above=-999 required=2 tests=[AWL=-0.155, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -2.37 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 22:41:37 -0000 Hi again, > I'm suspecting you're addressing me with that comment. ;) Well, maybe ;) When I wrote the original post I was quite frustrated since I was unhappy about GTKs performance since a long time (I used FC3 (2.4) and FC4(2.6) and now OpenSuSE 10.1 (2.8), my laptop died (2.6ghz) and now I've to work on an Athlon-1000 where all gtk programs are the same oder of magnitude slower than on my laptop, I just can feel it much more because of the slowness of the machine itself. > Because usually the person complaining disappears before providing useful > info like this: Well I understand that this leads to frustration over the time. I am too one of those guys crying very loud, however I am a java-programmer working with Eclipse since about 2 years. I can choose between a slow GTK2 interface or an unuseable but fast Motif based, and that for the tool I work most of the time with :-/ So ... yes I am interested in investing time to at least help abit with informations ;) For now my timeframe is *very* limmited (my current project has its deadline about 2-3 weeks), but I am of course I am willed to help. I would also be willed to get my hands on code ... if someone would be patient enough to help me at the beginning ;) I did some oprofiling, however I don't have a vmlinz-file handy so its quite a bit useless: 5558 39.2930 no-vmlinux 2116 14.9593 libfb.so 1319 9.3248 nvidia_drv.so 1031 7.2888 Xorg 603 4.2630 libqt-mt.so.3.3.5 550 3.8883 libc-2.4.so 470 3.3227 libgobject-2.0.so.0.800.5 416 2.9410 libcairo.so.2.2.3 337 2.3825 libglib-2.0.so.0.800.5 304 2.1492 libgdk-x11-2.0.so.0.800.10 272 1.9229 libpango-1.0.so.0.1001.1 201 1.4210 libX11.so.6.2 177 1.2513 libpthread-2.4.so 155 1.0958 libgtk-x11-2.0.so.0.800.10 > I'll take a closer look at this later tonight - the kernel I have booted at the > moment doesn't have oprofile support. Thanks for looking into this. lg Clemens From Valdis.Kletnieks@vt.edu Tue Jun 20 19:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1109D3B0357 for ; Tue, 20 Jun 2006 19:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24750-03 for ; Tue, 20 Jun 2006 19:43:33 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id C354B3B02B8 for ; Tue, 20 Jun 2006 19:43:32 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KNhQN3004405; Tue, 20 Jun 2006 19:43:26 -0400 Message-Id: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Wed, 21 Jun 2006 00:41:31 +0200." <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150847006_3852P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 19:43:26 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.404 tagged_above=-999 required=2 tests=[AWL=-0.150, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_IB=0.077] X-Spam-Score: -1.404 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 23:43:38 -0000 --==_Exmh_1150847006_3852P Content-Type: text/plain; charset=us-ascii On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > I did some oprofiling, however I don't have a vmlinz-file handy so its > quite a bit useless: > 5558 39.2930 no-vmlinux Bummer. With a system time *that* high, I'm wondering if there's something odd going on here... a vmlinux to help split that out would certainly help a lot in debugging here.. > 2116 14.9593 libfb.so > 1319 9.3248 nvidia_drv.so > 1031 7.2888 Xorg > 603 4.2630 libqt-mt.so.3.3.5 > 550 3.8883 libc-2.4.so > 470 3.3227 libgobject-2.0.so.0.800.5 Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a generic GTK issue, not gftp, unless the 3 other apps I tested did the same wrong thing with it.. ;) samples % image name app name symbol name 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process 5232 6.7536 libfb.so libfb.so (no symbols) 4834 6.2398 Xorg Xorg (no symbols) 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy 2172 2.8037 vmlinux vmlinux get_page_from_freelist 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock 1359 1.7542 nvidia nvidia (no symbols) 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup (or, done by shared library: 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 10538 13.6027 vmlinux 5594 7.2209 libc-2.4.90.so 5377 6.9408 libgobject-2.0.so.0.1102.1 5232 6.7536 libfb.so 4953 6.3934 Xorg 4784 6.1753 nvidia_drv.so 3933 5.0768 libpthread-2.4.90.so At least in my case, the top hog appears to be too much work done scaling theme pixmaps over and over, when they're likely to be invalidated by another resize before the scaling is completed.... You probably mentioned it before, but what GTK2 theme are you using? --==_Exmh_1150847006_3852P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmIgecC3lWbTT17ARAvXtAKDYfozX87Bk7LwUKWF75kNiCuBY2gCgp136 iJcjpeJlIWrhq/fYvfTtwEc= =x8rS -----END PGP SIGNATURE----- --==_Exmh_1150847006_3852P-- From nick.soffe@bioch.ox.ac.uk Wed Jun 21 04:41:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 68FAD3B0A36 for ; Wed, 21 Jun 2006 04:41:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-02 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from relay0.mail.ox.ac.uk (relay0.mail.ox.ac.uk [129.67.1.161]) by menubar.gnome.org (Postfix) with ESMTP id 910DE3B07B7 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from smtp1.herald.ox.ac.uk ([163.1.0.247]) by relay0.mail.ox.ac.uk with esmtp (Exim 4.62) (envelope-from ) id 1FsyHA-0005TT-2r for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Received: from nmrpc.bioch.ox.ac.uk ([129.67.77.14]) by smtp1.herald.ox.ac.uk with esmtp (Exim 3.36 #1) id 1FsyHA-0000gW-01 for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Date: Wed, 21 Jun 2006 09:39:16 +0100 (GMT Daylight Time) From: Nick Soffe To: Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Message-ID: X-X-Sender: bioc0391@imap228.herald.ox.ac.uk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 08:41:32 -0000 On Tue, 20 Jun 2006, Clemens Eisserer wrote: > Hi there, > > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Clemens, I don't know if this has any relevance now, but I experienced similar poor performance a while ago with a machine who's configuration was very similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the Nvidia binary driver current at the time (a couple of years ago). The driver worked well for 3d applications (glxgears gave much higher fps) but seemed to devastate the 2d performance particularly with GTK2 applications. Changing back to the open source 'nv' driver seemed to work much better. I never knew whether the problem was hardware or software related and eventually swapped the graphics card for an inexpensive radeon using the OS 'radeon' driver. This combination worked much better for me so I never investigated further. Nick From linuxhippy@gmail.com Wed Jun 21 07:44:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 173903B0F80 for ; Wed, 21 Jun 2006 07:44:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01010-04 for ; Wed, 21 Jun 2006 07:44:13 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id AFCBC3B0EEF for ; Wed, 21 Jun 2006 07:44:12 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so800375hud for ; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.51.9 with SMTP id y9mr3301492huy; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Message-ID: <194f62550606210444r79f41268xebc6eb2a75e46f20@mail.gmail.com> Date: Wed, 21 Jun 2006 13:44:10 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.735 tagged_above=-999 required=2 tests=[AWL=-0.693, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.735 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 11:44:14 -0000 Hello Nick, > I don't know if this has any relevance now, but I experienced similar poor > performance a while ago with a machine who's configuration was very > similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the > Nvidia binary driver current at the time (a couple of years ago). Definitivly could be ... all my systems are equiped with NVidia cards (GF488Go, FX5200, GF6600) and I am using the nvidia binary driver on all of my systems. However throwing their closed-source beast away is not an option for me, from time to time I play 3d games or enjoy opengl/shader development for fun. Many others also use the nvidia driver, maybe theres a way it could be solved? It really could be this combination, maybe it could be worked arround (if easy) or someone could file a bugreport at nvidia, however I guess they would like to see specific claims. Does anybody know a better way for profiling X/X requests than oprofile? Thanks a lot for reading, lg Clemens From linuxhippy@gmail.com Wed Jun 21 08:04:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D3E753B090F for ; Wed, 21 Jun 2006 08:04:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02496-05 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id 28A553B0992 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so855999hue for ; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.26.9 with SMTP id 9mr3210819huz; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Message-ID: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> Date: Wed, 21 Jun 2006 14:04:21 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.395 tagged_above=-999 required=2 tests=[AWL=-0.661, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_BF=0.077, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -1.395 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 12:04:27 -0000 Hello Valdis, Thanks again for taking all the time :-) You were right, novell installed by default a gtk-qt-engine package, that was also the reason why I was not able to get rid of "this one and only theme". Now I am using the default theme and its _way_ better, I see about twice as much refreshed when moving gftp's vertical splitter, the horizontal are still very slow. gtk-demo still shows a much higher expose-lag than even konqueror which its much more complex (and skinned) default interface. > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. Great, SuSe (unlike fedora) stores an compressed vmlinux directly in /boot. 4676 19.7391 libfb.so (no symbols) 3647 15.3953 vmlinux-copy default_idle 2445 10.3212 nvidia_drv.so _nv000805X 2031 8.5736 vmlinux-copy get_page_from_freelist 1817 7.6702 Xorg (no symbols) 1130 4.7701 libcairo.so.2.2.3 (no symbols) 888 3.7486 libgobject-2.0.so.0.800.5 (no symbols) 699 2.9507 libpango-1.0.so.0.1001.1 (no symbols) 659 2.7819 libgdk-x11-2.0.so.0.800.10 (no symbols) 638 2.6932 libglib-2.0.so.0.800.5 (no symbols) 482 2.0347 nvidia_drv.so _nv000194X 331 1.3973 libgtk-x11-2.0.so.0.800.10 (no symbols) 315 1.3297 libc-2.4.so _int_malloc 309 1.3044 nvidia (no symbols) This profile looks _very_ strange for me. For what is libfb good ... I am quite sure I am using the binary nvidia driver. A lot if time is "wasted" allocating memory and a lot of time goes to the nvidia drivers doing something. Is there a way to get something like call-graphs out of oprofile, maybe this would illustrate which functions call into _nv000805X or libfb. When moving gftps splitters I still see X (with the default theme) eating cpu-time at about 65% and gftp at about 33%. > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... Just because of interrest couldn't cairo be used for scaling with a fast path through XRender? Does XRender supports scaling of images? Thanks again, lg Clemens From jcupitt@gmail.com Wed Jun 21 09:07:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DF073B0F19 for ; Wed, 21 Jun 2006 09:07:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07105-09 for ; Wed, 21 Jun 2006 09:07:36 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id CE1593B0FD4 for ; Wed, 21 Jun 2006 09:07:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so128046wxc for ; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.78.5 with SMTP id a5mr1084728wxb; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Message-ID: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> Date: Wed, 21 Jun 2006 14:07:35 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.441 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:07:39 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From jcupitt@gmail.com Wed Jun 21 09:22:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941143B0FAC for ; Wed, 21 Jun 2006 09:22:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08193-05 for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 7AF683B0FCF for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so130171wxc for ; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.18.10 with SMTP id 10mr1106184wxr; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Message-ID: <522c6460606210621u56e6c915u4db618c4c3de2cc0@mail.gmail.com> Date: Wed, 21 Jun 2006 14:21:54 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.437 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.437 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:22:00 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From paul@linuxaudiosystems.com Wed Jun 21 09:30:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 524143B0FAC for ; Wed, 21 Jun 2006 09:30:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08899-09 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 6ED913B0FE0 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J17000M8PHWT1L4@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 08:29:57 -0500 (CDT) Date: Tue, 20 Jun 2006 21:00:15 -0400 From: Paul Davis Subject: Re: Scrolling performance In-reply-to: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> To: Valdis.Kletnieks@vt.edu Message-id: <1150851615.8703.171.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.931 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247] X-Spam-Score: -1.931 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:30:03 -0000 On Tue, 2006-06-20 at 19:43 -0400, Valdis.Kletnieks@vt.edu wrote: > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) i talked for a little while with tim janik at LAC2006 this year about this very issue. GTK1's pane widget used the standard draw-with-XOR to indicate the new position of the divider, and the resize didn't occur till mouse release. GTK2, for some unknown reason, abandoned that approach and instead keeps issuing resize events as the mouse moves. its completely and totally braindead as the default behaviour, although i would concede that there are situations where it would be nice to have this available. in ardour, dragging panes around like this causes a more or less complete redraw of our monster canvas widget, which causes absurdly slow and ugly visuals while doing it. i've looked at rewriting GtkPaned to use the old behaviour by default, but it was just too much work for me to get into at the time i was looking into it. --p From linuxhippy@gmail.com Wed Jun 21 10:12:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E2C53B0F79 for ; Wed, 21 Jun 2006 10:12:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11455-01 for ; Wed, 21 Jun 2006 10:12:43 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 024343B0954 for ; Wed, 21 Jun 2006 10:12:42 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so3546903uge for ; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.17.1 with SMTP id 1mr3355654huq; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Message-ID: <194f62550606210712n52adc4fbu66cc223ceec68c87@mail.gmail.com> Date: Wed, 21 Jun 2006 16:12:41 +0200 From: "Clemens Eisserer" To: paul@linuxaudiosystems.com, gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <1150851615.8703.171.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <1150851615.8703.171.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:12:47 -0000 Hello Paul, > GTK2, for some unknown reason, abandoned that > approach and instead keeps issuing resize events as the mouse moves. its > completely and totally braindead as the default behaviour, although i > would concede that there are situations where it would be nice to have > this available. Yes I know, older toolkits used to solve it this way. However most modern toolkits resize the content as soon as the slider is moved and are able to cope with it better than GTK (at least on my machine), e.g. moving the panes of k3b (a KDE based cdrecord frontend, qt: skinned, gtk: default theme) is smooth whereas gftp's panes always give an impression of beeing behind the cursor and showing visual ugliness. However this could also be caused by the nvidia driver, I don't know :-/ Maybe I can create a small video of both programs and upload it somewhere.... lg Clemens From M.Kahn@Astronautics.com Wed Jun 21 10:21:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EA683B106A for ; Wed, 21 Jun 2006 10:21:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11945-10 for ; Wed, 21 Jun 2006 10:21:48 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id D14463B1034 for ; Wed, 21 Jun 2006 10:21:47 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6953D.FE391C43" Subject: GTK Performance on Athlon Date: Wed, 21 Jun 2006 09:21:31 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: GTK Performance on Athlon Thread-Index: AcaVPf3m6pVD3d/ISkecaOL4KsmRdA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.3 tagged_above=-999 required=2 tests=[AWL=-1.116, BAYES_40=-0.185, HTML_MESSAGE=0.001] X-Spam-Score: -1.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:21:51 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. The system clock took off at warp speed (about three times normal speed). When I emailed SuSE, they told me that the BIOS does not provide a solid real-time clock interrupt. (One side-effect of the warp speed system clock was I could not "double click" on anything.) They felt that they may have a fix for this problem in SUSE 10.0. It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance. I really hope this isn't your problem. =20 BTW - I have since returned to using my old 1.7 GHz PC (assembled myself) to run Linux. I won't be taking any chances on the Athlon in the future; that's just too much money to spend on a machine that doesn't play nicely with my preferred flavor of Linux. =20 Michael Kahn =20 ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A few months ago, I bought an HP Athlon PC and = installed SuSE 9.2.  The system clock took off at warp speed (about three = times normal speed).  When I emailed SuSE, they told me that the BIOS = does not provide a solid real-time clock interrupt.  (One side-effect of the = warp speed system clock was I could not “double click” on = anything.)  They felt that they may have a fix for this problem in SUSE 10.0.  = It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance.  I really hope this isn’t your = problem.

 

BTW – I have since returned to using my old 1.7 = GHz PC (assembled myself) to run Linux.  I won’t be taking any = chances on the Athlon in the future; that’s just too much money to spend on a machine that doesn’t play nicely with my preferred flavor of = Linux.

 

  Michael Kahn

 

------_=_NextPart_001_01C6953D.FE391C43-- From paul@linuxaudiosystems.com Wed Jun 21 10:46:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4A2C3B1091 for ; Wed, 21 Jun 2006 10:46:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13938-01 for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 328253B105D for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1700ETJSZ4L7UG@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 09:45:05 -0500 (CDT) Date: Wed, 21 Jun 2006 10:45:33 -0400 From: Paul Davis Subject: Re: GTK Performance on Athlon In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150901133.10221.2.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:46:47 -0000 On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > The system clock took off at warp speed (about three times normal > speed). When I emailed SuSE, they told me that the BIOS does not > provide a solid real-time clock interrupt. (One side-effect of the > warp speed system clock was I could not 鈥渄ouble click鈥 on anything.) > They felt that they may have a fix for this problem in SUSE 10.0. It > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > your GTK performance. I really hope this isn鈥檛 your problem. it sounds quite likely that you have been the victim of some slightly uninformed customer support. was this a dual core Athlon? From Valdis.Kletnieks@vt.edu Wed Jun 21 11:42:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D6F313B0F95 for ; Wed, 21 Jun 2006 11:42:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17781-01 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 381A23B1012 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5LFgNYf004294; Wed, 21 Jun 2006 11:42:24 -0400 Message-Id: <200606211542.k5LFgNYf004294@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: paul@linuxaudiosystems.com Subject: Re: GTK Performance on Athlon In-Reply-To: Your message of "Wed, 21 Jun 2006 10:45:33 EDT." <1150901133.10221.2.camel@localhost.localdomain> From: Valdis.Kletnieks@vt.edu References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> <1150901133.10221.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150904543_3088P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 21 Jun 2006 11:42:23 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.583 tagged_above=-999 required=2 tests=[AWL=0.056, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.583 X-Spam-Level: Cc: gtk-list@gnome.org, Michael Kahn X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 15:42:31 -0000 --==_Exmh_1150904543_3088P Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 21 Jun 2006 10:45:33 EDT, Paul Davis said: > On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > > The system clock took off at warp speed (about three times normal > > speed). When I emailed SuSE, they told me that the BIOS does not > > provide a solid real-time clock interrupt. (One side-effect of the > > warp speed system clock was I could not =E2=80=9Cdouble click=E2=80= =9D on anything.) > > They felt that they may have a fix for this problem in SUSE 10.0. It= > > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > > your GTK performance. I really hope this isn=E2=80=99t your problem.= >=20 > it sounds quite likely that you have been the victim of some slightly > uninformed customer support. was this a dual core Athlon? No, the =22turbo clock ticks=22 problem is a very real issue on certain A= thlon motherboards. There's been several long threads about it on the linux-ke= rnel mailing list, and I believe it's fixed in 2.6.16 or 2.6.17 or so (althoug= h I'd have to go back and check, I wasn't paying much attention because I d= on't have an Athlon). SUSE may well have backported the fix into whatever ker= nel they're shipping with 10.0. And a screaming clock *can* bork double-clicks - imagine where you need t= o get in 2 clicks in under 250 milliseconds, but the system ticks off what it t= hinks is 250ms in only 75ms. And your mouse won't double-click faster than 80m= s. ;) --==_Exmh_1150904543_3088P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmWjfcC3lWbTT17ARAl0OAKCdWN5CkoY/7CUNUYAB9THaAsKlFgCbBk+e PUDaJiUXtpFfp14/cFuJQes= =hmFE -----END PGP SIGNATURE----- --==_Exmh_1150904543_3088P-- From chris@cvine.freeserve.co.uk Wed Jun 21 19:26:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525373B00CF for ; Wed, 21 Jun 2006 19:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12592-06 for ; Wed, 21 Jun 2006 19:26:48 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 2D0E93B009B for ; Wed, 21 Jun 2006 19:26:47 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id 004B21C00083; Thu, 22 Jun 2006 01:26:46 +0200 (CEST) Received: from boulder.homenet (user-2086.l1.c4.dsl.pol.co.uk [81.79.136.38]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id C5F531C00082; Thu, 22 Jun 2006 01:26:45 +0200 (CEST) X-ME-UUID: 20060621232645810.C5F531C00082@mwinf3106.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5LNRE68002592; Thu, 22 Jun 2006 00:27:14 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: proggressbar.. Date: Thu, 22 Jun 2006 00:27:13 +0100 User-Agent: KMail/1.9.1 References: <4497B5B8.1080000@sasken.com> In-Reply-To: <4497B5B8.1080000@sasken.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.989 tagged_above=-999 required=2 tests=[AWL=-1.325, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -0.989 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 23:26:49 -0000 On Tuesday 20 June 2006 09:45, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged > information. In case you are not the original intended Recipient of the > message, you must not, directly or indirectly, use, Disclose, distribute, > print, or copy any part of this message and you are requested to delete it > and inform the sender. Any views expressed in this message are those of the > individual sender unless otherwise stated. Nothing contained in this > message shall be construed as an offer or acceptance of any offer by Sasken > Communication Technologies Limited ("Sasken") unless sent with that express > intent and with due authority of Sasken. Sasken has taken enough > precautions to prevent the spread of viruses. However the company accepts > no liability for any damage caused by any virus transmitted by this email It is reasonably straightforward, but I think your disclaimer prevents me from answering your question. Chris From mclasen@redhat.com Wed Jun 21 23:10:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA4213B0172; Wed, 21 Jun 2006 23:10:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23030-07; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 63BA23B0008; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AclX021506; Wed, 21 Jun 2006 23:10:38 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AcnM019751; Wed, 21 Jun 2006 23:10:38 -0400 Received: from [172.16.83.158] (vpn83-158.boston.redhat.com [172.16.83.158]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5M3AciB004961; Wed, 21 Jun 2006 23:10:38 -0400 Subject: GTK+ 2.9.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Organization: Red Hat Date: Wed, 21 Jun 2006 23:12:41 -0400 Message-Id: <1150945961.4457.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.3 (2.7.3-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:10:42 -0000 GTK+ 2.9.4 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.4.tar.bz2 md5sum: c06cf2cfa66485600d90789c9e58f27c gtk+-2.9.4.tar.gz md5sum: e3fefedc7f1a89b66c71c9967168a857 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are finalized by now. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.3 to 2.9.4 ============================================ * GtkPrintOperation: - UI improvements in the print dialog - Make printing work without a display connection - Replace "Print to PDF" by "Print to file" that can generate PDF or PostScript - Add a function to the low-level API to enumerate all printers * GtkNotebook tab DND has been improved * GtkProgressbar supports text in activity mode * GtkLabel allows to set the wrap mode * GtkStatusIcon supports transparency * Bugs fixed: 344850 Dragging a GtkTreeViewColumn segfaults when using certain GtkTreeViewColumnDropFunc 342458 Stock menu items without icons are broken in recent GTK+ releases. 335873 notebook DND + popup windows 337882 gtk_progress_bar_set_text() does nothing in activity mode 339456 unix print dialogue help button bug 339702 Make sure printing works without a display 341571 tabs too easily reordered 344074 New Feature: get printer list, and get default print 344743 gtk_targets_include_text() should initialize atoms 344838 Allow func to be NULL in gtk_tree_view_set_search_position_func 344891 GtkPrintOperationPreview signal defs correction 345008 Need updated cairo req 345093 print preview temp file issues 345107 Memory leak in gtk_entry_completion_finalize: User data not freed 345194 gdk_window_set_functions() docs need to be updated 345456 grid-lines property is wrongly registered and get/set. 314278 strings in gtk-update-icon-cache are not marked for translation 344707 size group with widgets in hidden container 344897 Entry completion model NULL handling should be documented 345038 gtk_print_job_set_status' status 345106 dialog button box spacings 345176 GtkIconView doc about drag and drop 345275 doc imporovements for gtk_window_move 345320 Two very similiar strings should be made equal 345321 Add meaning of "shortcut" as translator comment 320034 transparency gtkstatusicon 339592 Add print-to-postscript 344867 custom paper file could use keyfile * Updated translations (cs,de,es,fr,gl,gu,hi,ko,ta,th) A list of all bugs fixed in this release can be found at http://bugzilla.gnome.org/buglist.cgi?bug_id=344838,344743,344867,344891,345008,341571,345038,337882,345093,344707,339456,345107,345275,339702,344074,345320,345321,344897,314278,320034,344850,345194,345176,345106,335873,342458,339592,345456 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Christian Persch, John Finlay, Federico Mena Quintero, Michael Emmel, Marko Anastasov, Bastien Nocera, Carlos Garnacho, Yevgen Muntyan, Tommi Komulainen, Tim Janik, Christian Weiske, Behdad Esfahbod, Alexander Larsson, Felipe Heidrich, Hendrik Richter, Claudio Saavedra, Dan Winship, Callum McKenzie, John Palmieri, Murray Cumming, Kristian Rietveld June 21, 2006 Matthias Clasen From lists@nabble.com Wed Jun 21 23:29:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CB3B03DC for ; Wed, 21 Jun 2006 23:29:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24140-01 for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1411D3B026B for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FtFsh-0000bD-BH for gtk-list@gnome.org; Wed, 21 Jun 2006 20:29:23 -0700 Message-ID: <4986548.post@talk.nabble.com> Date: Wed, 21 Jun 2006 20:29:23 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: cannot draw lines in a GtkDrawingArea widget MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.82 tagged_above=-999 required=2 tests=[AWL=-0.708, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.82 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:29:25 -0000 Hi all, I need to draw some lines in a GtkDrawingArea widget, and I use the following code: GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. 10,//the x coordinate of the start point 30,//the y coordinate of the start point 580,//the x coordinate of the end point 30 //the y coordinate of the start point ); it does not work! Anybody knows why? Thanks!! -- View this message in context: http://www.nabble.com/cannot-draw-lines-in-a-GtkDrawingArea-widget-t1827981.html#a4986548 Sent from the Gtk+ - General forum at Nabble.com. From yogesh.ar@gmail.com Thu Jun 22 01:09:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0E443B03C9 for ; Thu, 22 Jun 2006 01:09:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29017-09 for ; Thu, 22 Jun 2006 01:09:41 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id C40353B0098 for ; Thu, 22 Jun 2006 01:09:40 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so202391pyf for ; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.34.18 with SMTP id m18mr649285pyj; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:09:39 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 10:39:39 +0530 From: "Yogesh Arora" To: gtk-list@gnome.org Subject: auromatic scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.382 tagged_above=-999 required=2 tests=[AWL=0.218, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.382 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:09:48 -0000 I have a TextView inside a scroll window. I want to create an animation effect in which TextView scrolls automatically I know there is set_value function in Range class. But for calling that function i will always have to calculate the value. There should be some funtion such as step_increment page_increment can called for step or page_increment From yogesh.ar@gmail.com Thu Jun 22 01:38:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59EBA3B035E for ; Thu, 22 Jun 2006 01:38:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30733-08 for ; Thu, 22 Jun 2006 01:38:31 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id BFA423B0008 for ; Thu, 22 Jun 2006 01:38:30 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id t32so201085pyc for ; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.91.15 with SMTP id t15mr679056pyl; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:38:29 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 11:08:29 +0530 From: "Yogesh Arora" To: "Chris Vine" Subject: Re: proggressbar.. In-Reply-To: <200606220027.13878.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.391 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.391 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:38:32 -0000 is that just due to tall claims he is making...or has it got something to do with india On 6/22/06, Chris Vine wrote: > On Tuesday 20 June 2006 09:45, Kalli Math wrote: > > how to design a progressbar, and add to my application window? > > > > with regards, > > Prashanth km > > > > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > > > SASKEN BUSINESS DISCLAIMER > > This message may contain confidential, proprietary or legally Privileged > > information. In case you are not the original intended Recipient of the > > message, you must not, directly or indirectly, use, Disclose, distribute, > > print, or copy any part of this message and you are requested to delete it > > and inform the sender. Any views expressed in this message are those of the > > individual sender unless otherwise stated. Nothing contained in this > > message shall be construed as an offer or acceptance of any offer by Sasken > > Communication Technologies Limited ("Sasken") unless sent with that express > > intent and with due authority of Sasken. Sasken has taken enough > > precautions to prevent the spread of viruses. However the company accepts > > no liability for any damage caused by any virus transmitted by this email > > It is reasonably straightforward, but I think your disclaimer prevents me from > answering your question. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Thanks Yogesh Dont be intimidated by impossibillity.... be motivated by possibillity! From yeti@physics.muni.cz Thu Jun 22 02:37:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 938243B021B for ; Thu, 22 Jun 2006 02:37:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01472-04 for ; Thu, 22 Jun 2006 02:37:42 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 81A8C3B0234 for ; Thu, 22 Jun 2006 02:37:41 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5M6bdQI030282 for ; Thu, 22 Jun 2006 08:37:40 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 6499123CE9; Thu, 22 Jun 2006 08:37:39 +0200 (CEST) Date: Thu, 22 Jun 2006 08:37:39 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: cannot draw lines in a GtkDrawingArea widget Message-ID: <20060622063739.GM30886@potato.chello.upc.cz> References: <4986548.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4986548.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 06:37:44 -0000 On Wed, Jun 21, 2006 at 08:29:23PM -0700, heavenscape wrote: > > I need to draw some lines in a GtkDrawingArea widget, and I use the > following code: > > GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); > gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow > w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. > 10,//the x coordinate of the start point > 30,//the y coordinate of the start point > 580,//the x coordinate of the end point > 30 //the y coordinate of the start point > ); > > it does not work! Anybody knows why? .From the use of lookup_widget() I assume you don't draw in expose event handler (where you get the widget as function argument and do not have to look it up). Draw in the expose handler -- can you see the lines now? Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Thu Jun 22 07:55:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EB213B0086 for ; Thu, 22 Jun 2006 07:55:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21594-10 for ; Thu, 22 Jun 2006 07:55:40 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id 10CEC3B042E for ; Thu, 22 Jun 2006 07:55:39 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id EB5F427105B; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from poczta.interia.pl (f34.poczta.interia.pl [10.217.2.34]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 8C873271069 for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 8D01125049D; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 3F0DE25049A for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Date: 22 Jun 2006 13:55:30 +0200 From: hm Subject: Two buttons, two images and switching between them To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060622115530.3F0DE25049A@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.765 tagged_above=-999 required=2 tests=[AWL=0.223, BAYES_00=-2.599, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: -0.765 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 11:55:41 -0000 =0AHi !=0A=0A I`ve got a problem : I have window, with two buttons inside= . I`ve got two GtkImage`s, and on a beginning of the program, i`m ( setting= gtk_button_set_image () ) these images to be button`s "icons". =0AI want t= o make a signal function, that handles clicking on both of these buttons. O= n click it should switch images between the buttons. For example i`ve got i= con1, icon2, button1 and button2. =0Abutton1 -> icon1=0Abutton2 -> icon2 ( = icon2 is set to be an icon for button2 )=0A=0Anow.. i`ve got a signal, that= button1 is pressed. So i want now, to have situation :=0A=0Abutton1 -> ico= n2=0Abutton2 -> icon1=0A=0A When I try again to do gtk_button_set_image ( b= utton1, icon2 ) and gtk_button_set_image ( button2, icon1 ) it doesn`t work= propertly ( button1 has icon2 , but button2 has no icon ). I suppose it is= so because of button1 is now "parrent" ( or owner ) of both icons ???? I= `m not quiet sure. I would be appreciate for any clue how to do this. Maybe= there is any method to release icon from being button`s child ? Uhh.. it i= s little twisted :) From betsy.vyce@ctg.com Wed Jun 21 12:39:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 10E193B108D for ; Wed, 21 Jun 2006 12:39:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21747-06 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from smtp.ctg.com (smtp-out.ctg.com [206.201.124.158]) by menubar.gnome.org (Postfix) with ESMTP id 6BC553B1035 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from netmail.ctg.com (netmail.ctg.com [205.142.112.242]) by smtp.ctg.com (Symantec Mail Security) with ESMTP id 4762810CF for ; Wed, 21 Jun 2006 12:39:30 -0400 (EDT) Received: from BUF-EXC1.ctg.com ([205.142.112.13]) by netmail.ctg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 12:39:29 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C69551.44546463"; type="multipart/alternative" Subject: Linux Accessibility Project Date: Wed, 21 Jun 2006 12:39:28 -0400 Message-ID: <46A68DDC98C6464DBB54D968081874CF021EAFD2@BUF-EXC1.ctg.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: Linux Accessibility Project Thread-Index: AcaVUUPWid50p5tHQK+nedj3OL/r1A== From: "Betsy Vyce" To: X-OriginalArrivalTime: 21 Jun 2006 16:39:29.0956 (UTC) FILETIME=[446D9640:01C69551] X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.093 tagged_above=-999 required=2 tests=[BAYES_50=0.001, EXTRA_MPART_TYPE=1.091, HTML_MESSAGE=0.001] X-Spam-Score: 1.093 X-Spam-Level: * X-Mailman-Approved-At: Thu, 22 Jun 2006 11:45:55 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 16:39:38 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C69551.44546463 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C69551.44546463" ------_=_NextPart_002_01C69551.44546463 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Our client, IBM, currently has an immediate opening for candidates with=0D= =0A Internals knowledge of GTK and "GTK custom widget", "Bonobo", AT-SPI",=0D= =0A "ATK", and/or "Accessibility" skills. In general, we are seeking=0D=0A someone with deeper GTK knowledge. The project involves working on=0D=0A solving a set of bugs in the Gnome desktop which can be viewed at the=0D=0A following link:=0D=0A =0D=0A =0D=0A =0D=0A http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.html=0D=0A =0D=0A =0D=0A =0D=0A Candidates MUST have Linux experience. We are looking for someone who=0D= =0A can add new functionality after debugging an issue rather than just a=0D=0A debugger, so we need someone with significant development and/or design=0D= =0A skills.=0D=0A =0D=0A =0D=0A =0D=0A Candidates can work from any location in the U.S. as long as they can=0D=0A work at an IBM facility. If they can be in Austin, TX, then all the=0D=0A better.=0D=0A =0D=0A =0D=0A =0D=0A If anyone is interested in being considered for this opportunity, please=0D= =0A reply to this email with a copy of your resume at your earliest=0D=0A convenience.=0D=0A =0D=0A =0D=0A =0D=0A Regards,=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Betsy Vyce=0D=0A Senior Recruiter, Austin Team=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Tel: 877-222-0688 (Toll Free)=0D=0A =0D=0A Home Office: 303-339-0928=0D=0A =0D=0A Fax: 303-814-1735=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A ------_=_NextPart_002_01C69551.44546463 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0D=0A =0D=0A =0D=0A =0D=0A =0D= =0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A
=0D=0A =0D=0A

Our client, IBM, currently has an immediate opening fo= r=0D=0A candidates with Internals knowledge of GTK and “GTK custom widget&#= 8221;,=0D=0A “Bonobo”, AT-SPI”, “ATK”, and/or “Acc= essibility”=0D=0A skills.  In general, we are seeking someone with deeper GTK knowledg= e.  The=0D=0A project involves working on solving a set of bugs in the Gnome desktop wh= ich=0D=0A can be viewed at the following link:

=0D=0A =0D=0A

 

=0D=0A =0D=0A

http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.ht= ml

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates MUST have Linux experience.  We are lo= oking for=0D=0A someone who can add new functionality after debugging an issue rather tha= n just=0D=0A a debugger, so we need someone with significant development and/or design= =0D=0A skills.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates can work from any location in the U.S. = as long as=0D=0A they can work at an IBM facility.  If they can be in Austin, TX,=0D=0A then all the better.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

If anyone is interested in being considered for this=0D= =0A opportunity, please reply to this email with a copy of your resume at you= r=0D=0A earliest convenience.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Regards,

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A

Betsy Vyce
=0D=0A Senior Re= cruiter,=0D=0A Austin Team

=0D= =0A =0D=0A

=

=0D=0A =0D=0A

 = =

=0D=0A =0D=0A

= Tel: =0D=0A 877-222-0688 (Toll Free)

=0D=0A =0D=0A

= Home=0D=0A Office:  303-339-0928

=0D=0A =0D=0A

= Fax: =0D=0A 303-814-1735

=0D=0A =0D=0A
=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A =0D=0A =0D=0A ------_=_NextPart_002_01C69551.44546463-- ------_=_NextPart_001_01C69551.44546463 Content-Type: image/gif; name="image001.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Description: image001.gif Content-Location: image001.gif R0lGODlhvQBrAPcAAFqmjVmqk7XYzjqSdsHe1ZPFtdyhJMrc05TIukqegp/EtJW+rXG2o47Gtvbo yc3k3dXo4mOkja3VyUyji6TQxODu6un08cni2j2cgezLh9Ho4eCrPEKWem61obzVyuvHffv05C+P cOLw7DKWeua6X/nv2t7u6r3d1EZKizKRcsbi2rja0X29q6DOwVapkYfBse/TmHa5pmCtl3q7qUGe g4G/rd3t6WWwm7rc0mmznjU5gZ7NwJzMvlGmjpnLvEWghvj8+6vUyYnDsuS2VcTh2fT6+DaYfMPg 2Dqaf7LYzajTxpHHt4PArrba0C6Ud+OzTv///4C7p+z18qrRxT6XerLVylGih8Xg13i3otnq5fj7 +p/LvYvBr/v9/FWkiuTx7e/39PP597raz9zs5zuVeDeTdZfHt2WslVKcg5DDsoS9qsjJ3Gmul67U x9Dm36PNv1adhZrJutXj3Ie/rdfX5kKafUabf+jy73CynVldmHS0n12oj6bPwmxvpO3t9PT0+HSt mE6ghXmvm4Gyn/v8/LLOwr3c0mVon8/Q4eLi7Z+hwyyOb+729Hy4pfD39fT39bK0z11hmn+Br3t9 rObm797e6unp8aqsyu/39cLYzujw672/1lZalpGTuvv7/UtPj4W1ovDw9qbIufj4+66wzcTG2qvK vMDC2GGqkm2wmoaIs/L49u3z7+z187W30d3o46Olxvb6+czN3+3285G7qrm71PD08dvb6PT5+IqM tnCqlWFknU5SkZWXvVJWk+Tt6NPU4/H49tjr5UBEiNns5s/n4I2PuGhroXR2qHBypm2plJiav3yw nMLg1/z9/Xi6p/3+/vr8/NDn4f3682inkKPGttnm4EqYf/3+/aepyC+UeMnj3Oby7v79+3d5qpye wY24p6rTyIm3pYKEsbbRxeDq5cba0Pj6+fz471SnkOjz8K/Nv5vMvvf7+uXy7vDXot+pNt3u6eKw Rs/g2Mrk3Ds/hPTfteGuQvrx36/Wy4zEtEehiNjr5uKxSiuNbf///yH5BAEAAP8ALAAAAAC9AGsA AAj/AP8JHEiwoMGDCBMqXMiwocOHECNKnEjR4JSLGDNq3Mixo8cpWiqKHEmypMl//lKqXMmypcuX MP1JOUmzpk2aMXPq3Dnzps+fQBfuHEp0Zc+gSJP6LMqUp9KnUEs2nQrzaNSrWBtS3crSatavYAdy HSszrNmwZLl6PctWadqta9vK/fmWaty5eHHWbXo3r9+Re/n+HXwyMNO+hBM7NFwUseLHCRkTdQy5 MkHJQylbtozZaUMVOBIyenGDARGGAdIVRMJis9S0CzgIZtjBiROELGzrdoJLYRAnEwba3pbVGdi0 aP6hma1w90EETnqs+ucsnO2FLZx0+IfBCfGB0Xbb/25xsEEPhLV3BzG4aoTuGSGvpvWgnPlBEbZx TLht8DrBJE40sdAMuklQkCO2pZPOBPs0Y1AXtglzkG0TTNCDbRUUZIQTCFCw4WnyjQWKQMsdltAK tn3BHX8EIUheQU7kgJoTLxiEoBBhYJJQeiwS5N8/GjihAoxOCEDAF7FkldMi1AwiCijKLMKSOAOV 2BhC+tgWjyOz2GZBQcE4wUN/Mi4EgRPRsLcbAweFx8CZEhIpnnEEqSCeNFjBFIICtvzziByv/GML IP7AMY8mBL0iBy0phUCLHIRYI8eklBYyQFkTiqdbMUQW9FtoC9mp44FOsOCOCPEVRKBuI/TnBDs7 2P9WBEKxMFLMj1C9hEag/ywQQkoRPPIPICMe9Is/A8jxDyFwpJRJQbpgahAE9BxBwLW2NQNEQT44 gQEjAmXXY0Ki2ujEEl0AsQoj2w4EjW03yLAfpz7yh4sTLhgUAAvQ/APhuG61NAArAnnAkin/vBIC IOsQtMAgzdL3zwEqDTIQOeD8qtmKCDGhKTYNEeEEGGqKhwFBDDjRr0C4/vNjt/QOhIR4J+TZUiED KcCSIP8Y7A/PVaY0wECFqBTBQKCotHEFDyTkiA/PvICnQ10MeRARTQigtQBxCiQMMQS1ckRBxIA9 EAFfFmQBD88sMWqIKw1ASM4sLQLIpT8TVGJyAhX/DexApijt2uAHtXQ03TABTaLQRKtEzUALCE74 5AK1pPg/Oieut0rP/mNOxQI9IltKG1P+V0uAEJT5S5dbyUGgj+D9LCsRGAURLo5JkaqNJFMUSysI tRIMQowMf1AspS/FEhyqx8TM5inBkYktmtgihybW0IK35P3lQxABu2Fg/ECtbKhbzQRlqRsD7Tr0 m25LEJTDbkoQ9MxuDRB0wm40qKNkS79oHEzIAT00nKN2QqsKQs41kAfYpgEUuIFtbDCQL9hGCDgQ V4YE4gLgSCAJMnBCAB7SrXNRgAZOABWFKFDCGAjEPTTYgQ+0IUKBUGA8K6hBy57iEmUMRBNScoku /wpSomo8AhBwSKIS4fAr200IAcLpERh+ZBsIBIEBL1DB1P6xvwZogAkxSIIGZvEQdXhPIK1wgguz 5KCBpEwKEnBC/Qaiw6ZN0Acd8IEGTPC/ltBiINVoCQdEQYjOCYQZyCJYQjIxOmnBCIosG5cON6gp 28Sng5oSQEEqYIJOmsAGayFCd5ygox2Wyj39CcCtNMUmm/UQUf+Yx8MUUIgA/kIXiyjHQB4hClbM TSG2wNtdODQQHORHGPmYmXf+EQvb7GAgAnDCDwTyg+hQ8B9dcsJ0BMINTcmAIErQTY1Yto/+XMgI /fmBMZ2Avn9IMByudIndTCEHYf1DDqZQhkpS0P9LgWgCFIdTSOQc6SNICmQblSSjy8Y1M4HkBmQD aSYBHBJNJJgtigXBhBNakI5xAUGNjHACBWA0TbiRpYn++KNCfDZMg/6jAyrABbiCxKIsuRCN/tGC bUQwEAlywyE7/EcznHCDgdzrNvyQ5kD+BS7brGAgcdRHPN8iCEKI4iUW89sw4yeQfznBfE4IA0FC KJ5r/uNMtqGhdh5SyRkIRIdOUKsTNCCQEu5Gk8ysJESjEphrEIIQKYCJNQZ6FwRscCBB6M4InmkQ DXTUCQx420AaQEMatLMhOIgBAzbLgBxMVCAVCIBtntEOgoiArB1QKFRH6VK+7iV15YDJIljRLIL/ mo4ze7nGsho5pUxw77abMUzD5rG9Ri3gANtLHnDlYphFLOAcjygEOHQxiGpoQhQhQAMoBDEA5S6X LZIZwCBMYY4DmAIUeKMuNQDh3e+apTO6AgQzrtFe94IlCvjNr373y9/++ve/URCrfQdM4AIb+MAI TrCCF8zgBjv4wRCOsIQnTOGsgOADHyhBhSuCDhKQAASP6cYGMgCDDYB4wwaxRz9gkJB3GMAAG3iC jGdM4xrb+MY4zrGObyyPIQjkAzHesZCHTOQiG/nINn6xAdCBkBLAwwAOeMw0NuAAfNxDwyguyAcM QAKFdGMalXEACYZgjywfBMxmTrOa18zmNrv5/81wjrOc50xnrPihzre9xSfwDBVFUOIfpaDDP+iA iF7c+RSV+Acw6GCMUfyjFon4hywSPZBSqGIZf1DEJ0jxBz90QhWwWAalBeIKVSjC0bVQxSUEIotT wKIToSBFJyLNZ4RMAhL/QAEy/nHrY9RiFMNQxT+SsYlIyMIP9ejEPyKBiIEAgxdrUIQnNuELQR8i F2v4xCX+MJBNcGINsPjHJfpAh0nk4h+kQEEvJoECRahiHLVGCCTGQQdv+OIfn7CEIoyxBkn4whPD +EMvFOEKSURiFCjwxEAmsYyB3CIPAkGBLP6RB1wP5BirFsguTjHoYfyj4IDuwz/WAPF4G8QSnP9Q xCWQUQpODDoSndjELkpxCEknQxJr4MQmvEGQPmTD4SXfRB4OsQtuDyQPtRgItP/hBx38AeRrEDnJ TX4QThwiEeNWNr4PEYpl9OEb//DEJw6ei2OQ4h+UaHYujAF0gWTjGEb/RyUEjYxwC6QPZ0cECj4u iZFLveRUJ4gxePGPROhgDQKZRCT+gQgdAEMgyUjGP06hgz/n4t6V+EQnrm6JemTjD6c4RB6GkXRk 1FzvvTiEHxDBi0tEAtdQ/3vgCxIKWtNB4Uz/syduLxBLWOIfo7iFQELxe6aXwvabCIXI/wGJXTD9 zv+wxCn+jHZIUDoUf/5DpP8w6tkjhROTgAX/J8DufcUAgxTNLr/618/+9rv//fCPv/znT//62//+ +B+MBS7wgDtkpRkFAAENgQsQcAUVsDsMEQZm0AhqcAHt8AYMKAAFMAYkIQUPcAF3sFcUAQRvEAe9 4xPcoAdlkBIpcAZtADKr4AZ04hBScAHt4xB3kAKL4AUriBAXkABSEgKBUAAzAQ1f0DQJsQUq0QiN oBIjiAUiIQVRQAYkuAdT0AUVMQUpYQY/EQZeQIIj6A920A6MkACBsDINsQVl8IURcQcjuAc1aBAi QAUpkYX+4Ab/gAUpoAcKsQf+EAdicAFHaAhi4A+NUBFagAqNkoV14AgVUQUpsQU/0QYpgQd3/7AK hhAFFwANfegFX6AO0KAFzsAIWTAdUlA2aeMIeOAPCVABPaEOY2CIEWUDYyAFQCAFbgANhoAFVvMP 6qABXsEFi2AHblAEGsAFb2CLduAPehASzsANWUAMvSMFCeAPDxAGFyAlb7AKsYAF9PAPWiACReAM FWADpSUQ2CACWVABuAAEY7BBGpASbPAFq0AAavBZ/wAGWZCKAhELIgANjEAM3FABaYKN3MCOcRAF PQENFZAF3/gPnFgBYPgPX+AGGvAFaWgQaZASeuA/A5EFQeQPeMAIVoAFdRACb1AATLgIZaCIRagS UfAPXDCCdoBXYtCM/jCGTMgHqVAHcyAQYv8Yk1VAEKlAihCwkGegEl9QBQDwKyFABU91kimRkf6w BXVQAP+ACimQCgCwCClgBTylBWfwK4tQB4HgD3UgEFeQEqlgkQSRBcOohTuZAHNIBSSZAmIgEGmQ AnZQBXZABVfwD9yACr8SCDz1Bmy4CHtAgUUgh0v5hwphCEZ4BnGgIlLABmDZCBeADXXgDyHgBQLg D4sAAEyYAhYgAM1YBtbIBylhhylQASIQWGcAmVqoBm5gBX74D1LAhACQAtc4EHGwlFbQgDg5ggkQ C6EJACwZDVXAhqkwB40gJXugBhXgD1zwDwCgEmx4h/9gBv5ABY2QlqhAhf9gA0FUBtvJU7L/2Yx4 YIchMAZMaJmBcIVIGA3NiAUXkBJ5KYghUAdeAIlkOYx78A9C6A+oEAV2gIQK4QxYwBJUUDPxyQYC AQRW4AUVUFpxIICZuQhgEwX+YAUCUZl48A/D+AaZ6Zn/YIf7+Q9f+YekGQjRkAUFAQZXqBKLkAYC AZspSQBm0BsF4A8pIFZBmSEV8Cs7iQ3O+Q+QyYtSwIZUeIUT5Qa/wgfuYqErQQWa9AYaKRDDWACw 6aDtwAXXGQ1ukBIE0KXO+AApwQV34H+C6AX/MJb+QAwWGgJw+A+quBAC4JHSiQvxeQYLupsDoQV8 EAWQeZ7/UIQYqg6BtQcFwIaNgIghAAEc/3mh0OAMMhqH/qAGCMENahAIKGUI/wCbiOkGBRAFdlgG vRGUFDgGv9IG/wAEQQqZCrqp/kCFdvgGWrACUhIHBSEGdJoSZCAFauAPhnqoGhmp/6ACKfEAQlgH QKCmGiCl/vBZuMCECfCpKbEC1nmdWNAG2zSAxZkSzSCmeJqqVoCYXwCb+0SBgvoPqckSbGABXrAI VJCFwcig/pCSQcmdCAEEEGCHk+qqf6gGTCmq/xCUYEMMp5qqq+oPeNoFsAmV+SCDaWkHKmIQsSAG lekPYjAHLcEGnCoQ0fCVUSCIlKqs/ZmX/7AKbqgSVXAHLUqWEXGShtCl38qgiDmRXkAPuf8ZAhR0 roTqD1hwBVdwAQLYBilQBnvQCJ8lrympB0G6EASQEn8ooxCgjhqAsWUwKwL7DwTrD6iqqs8ZlAm7 sP+AC7BpB2yQBhGLEL3qD1WgpfDps/QgDBsrENZJBSGwCBcgVCmhASMrELjAhqigAj+LgQJBAHEQ nWXAtGogDFoABDbQjIsgAvE5ojIrEAVKhYqasxcqEM34rXD4BYHFBlMgANckr3+YmwAgVNn6D22w BbEQDcHgpMFYon2ottUZkyFxtVm7tQf7tf4AlUKYAgUwBVeQujbABRCwuCLQojaAiN/6D00Tt/9g qilhBVDYDMWqpmbgCHkJmQkgEI5AgRD/AIQiEAIpsBBXuAgJYAVZSKljYJlz0AZAEAiIqaV2YAZf 6Q8waqEpMAcnwKxzEJ0CsApp2ShRgA1dUKLo+rn7KhCMMIJ1YAUVGwjgcoV10LQXWgCVuQhTEJX+ oKIY6Q8bzLUBi7D+8pVQOQVMSQWaKhCkib7q67T/EAbNiAr/q7YIPBCC2LuDK59a8JU66A8XQKz+ wAZR8K4iYIeoUABDuhBpMMD+QAZpsC1dUKD+EAi44AUp+Q8VcL9XGZtukJap8A8FkIUA8ABgIAYF sAUFkMMT5QUhkMVp8CtUwKQCYQFFvE94IJ5VMIIQkLbXCZu2ygYpUKplkAJbGwIwmgohjqCgXeDG tjoGcRCSXACt8XEBgZCRUNwuaKkSAOAGbpzFAiG0ZaCiaZoCKZCXxNCiVgCHU1CxKRAFIqAG6fnE G8wQ4TiOvfETvboIZvAG0QnEEHHL5KgUUhBYjTAFaTCCVtCP4CiOw0wQwpzLDmYCeGAHdVsGXqCI iVEFVrAIdVsHbACEcxbNkEHO+cdnAQEAOw== ------_=_NextPart_001_01C69551.44546463-- From linuxhippy@gmail.com Thu Jun 22 13:08:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CBBF3B03E5 for ; Thu, 22 Jun 2006 13:08:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11990-05 for ; Thu, 22 Jun 2006 13:08:30 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id D7CA73B0603 for ; Thu, 22 Jun 2006 13:08:29 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so579907uge for ; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr612924hue; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Message-ID: <194f62550606221008p61ceb686s5402452b96c8c6bb@mail.gmail.com> Date: Thu, 22 Jun 2006 19:08:29 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=-0.080, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 17:08:33 -0000 Hello again, Thanks a lot for sending your results of the 6200. It seems that (on my system) 35% of total cpu time are spent in software rendering related stuff (I guess _nv000805X is some kind of vram readback or upload function). When running gftp with the open-source "nv" driver performance feels way better (but not as ligthening fast as qt) as log as not-AA'ed fonts are used. So by identifying these problematic areas someone could send nvidia an bug-report for the missing XRender hookups/implementations. But I don't have any clue howto identify these :-/ Does anybody know a good technique/tools for finding out which calls to X are slow? Does running gftp in sync mode with some x protocoll analyzer make sence? Thank you in advance, lg Clemens 2006/6/21, John Cupitt : > > Good, glad that helped. There are fast and attractive gtk2 themes as > well: I use clearlooks myself. > > For what it's worth, if I maximise gftp and wiggle the vertical > splitter I see rather similar numbers to you. I have an nvidia 6200 > with driver 1.0-8762 and gtk2.8.18. > > 379387 69.5894 Xorg > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 143932 37.9380 libfb.so > 101881 26.8541 no-vmlinux > 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) > 26745 7.0495 Xorg > 6181 1.6292 libc-2.3.6.so > 1685 0.4441 libextmod.so > 116 0.0306 mouse_drv.so > 42 0.0111 libramdac.so > 1 2.6e-04 libm-2.3.6.so > 125293 22.9820 gftp-gtk > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 20136 16.0711 libpangoft2-1.0.so.0.1201.2 > 16493 13.1635 libcairo.so.2.2.4 > 15452 12.3327 libgobject-2.0.so.0.1000.3 > 13860 11.0621 libpango-1.0.so.0.1201.2 > 12485 9.9646 libc-2.3.6.so > 12299 9.8162 libgdk-x11-2.0.so.0.800.18 > 11823 9.4363 libglib-2.0.so.0.1000.3 > 4191 3.3450 libgtk-x11-2.0.so.0.800.18 > 4190 3.3442 libX11.so.6.2.0 > 2946 2.3513 libpthread-2.3.6.so > 2517 2.0089 no-vmlinux > 2171 1.7327 libpangocairo-1.0.so.0.1201.2 > 2087 1.6657 libXrender.so.1.3.0 > 1887 1.5061 libm-2.3.6.so > 1084 0.8652 libfreetype.so.6.3.8 > 956 0.7630 libclearlooks.so > 352 0.2809 pango-basic-fc.so > 323 0.2578 libgthread-2.0.so.0.1000.3 > 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 > 8 0.0064 ld-2.3.6.so > 3 0.0024 gftp-gtk > > John > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From oystein@gnubg.org Thu Jun 22 15:00:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 66FFE3B006D for ; Thu, 22 Jun 2006 15:00:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19184-03 for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 6F8D03B00BC for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J19009W9ZGSS260@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1900LMZZGRKNH7@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Date: Thu, 22 Jun 2006 21:00:24 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Main Loop, IO Channels and my CLI To: gtk-list@gnome.org Message-id: <449AE8C8.9030709@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig4D0040E48100B18213443258 X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:00:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D0040E48100B18213443258 Content-Type: multipart/mixed; boundary="------------030705090007050505050704" This is a multi-part message in MIME format. --------------030705090007050505050704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I've just made a small glib code that read commands from from a command line interface prompt. It uses g_main_loop and a g_io_channel. I've attached the code. First: It nearly works as expected. The callback is called each time I enter a command, and it's parsed to the command handler. However, I want to expand this to system to use automatic string completion, (the system provided in glib), for all available commands. Now it only handles command as I press enter. I guess I need a extra callback for each keypress. This callback can check if I press and then call g_completion_complete(), but how do I attach such a signal to the main lo= op? Then: Can this be a bug? It work fine unless I use a special scandinavian letter in my commands. Do I have to convert my string at any time? How? (I'm using win32 command prompt window) Example: myprompt> hello You typed: hello myprompt> =C6sop ** (gnubg.exe:3128): WARNING **: Something went wrong Invalid byte sequence in conversion input -=D8ystein --------------030705090007050505050704 Content-Type: text/plain; name="commandsystem.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="commandsystem.c" #include #include static void prompt(){ g_printf("myprompt> "); } static void handlecommand( gchar *sz ){ g_printf( "You typed: %s", sz ); prompt(); } static gboolean mycallback( GIOChannel *channel, GIOCondition cond, gpointer data) { gchar *str_return; gsize length, terminator_pos; GError *error = NULL; if( g_io_channel_read_line( channel, &str_return, &length, &terminator_pos, &error) == G_IO_STATUS_ERROR ) g_warning("Something went wrong"); if ( error != NULL ) { g_printf(error->message); exit(1); } handlecommand( str_return ); g_free( str_return ); return TRUE; } int main(int argc, char* argv[]) { GMainLoop *mainloop = g_main_loop_new( NULL, FALSE); #ifdef G_OS_WIN32 GIOChannel *channel = g_io_channel_win32_new_fd( STDIN_FILENO ); #else GIOChannel *channel = g_io_channel_unix_new( STDIN_FILENO ); #endif prompt(); g_io_add_watch( channel, G_IO_IN, mycallback, NULL ); g_main_loop_run(mainloop); return 0; } --------------030705090007050505050704-- --------------enig4D0040E48100B18213443258 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmujL6kDTFPhwyqYRAmO8AJ90ccVLei/Y2LKl4OmNPvFmCxc48QCbBpkZ DBHxKFHZ30sS+FdQ1vWycnk= =B070 -----END PGP SIGNATURE----- --------------enig4D0040E48100B18213443258-- From tristan.van.berkom@gmail.com Thu Jun 22 15:25:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87E353B0137 for ; Thu, 22 Jun 2006 15:25:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20656-05 for ; Thu, 22 Jun 2006 15:25:06 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id 0E8183B04F4 for ; Thu, 22 Jun 2006 15:25:05 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so586701nzh for ; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: by 10.65.182.16 with SMTP id j16mr3112039qbp; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: from ?66.48.170.242? ( [66.48.170.242]) by mx.gmail.com with ESMTP id q18sm1306507qbq.2006.06.22.12.25.03; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Message-ID: <449AF297.6070003@gnome.org> Date: Thu, 22 Jun 2006 15:42:15 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI References: <449AE8C8.9030709@gnubg.org> In-Reply-To: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.229 tagged_above=-999 required=2 tests=[AWL=0.371, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.229 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:25:07 -0000 貀stein Johansen wrote: >Hi, > >I've just made a small glib code that read commands from from a command >line interface prompt. It uses g_main_loop and a g_io_channel. I've >attached the code. > >First: >It nearly works as expected. The callback is called each time I enter a >command, and it's parsed to the command handler. However, I want to >expand this to system to use automatic string completion, (the system >provided in glib), for all available commands. Now it only handles >command as I press enter. I guess I need a extra callback for each >keypress. This callback can check if I press and then call >g_completion_complete(), but how do I attach such a signal to the main loop? > > > You need to get raw keyboard input from your terminal, in unix you can use tcsetattr(). >Then: >Can this be a bug? It work fine unless I use a special scandinavian >letter in my commands. Do I have to convert my string at any time? How? >(I'm using win32 command prompt window) > >Example: >myprompt> hello >You typed: hello >myprompt> 苨op > >** (gnubg.exe:3128): WARNING **: Something went wrong >Invalid byte sequence in conversion input > > > You might want to change the encoding on the io channel.. if you set it to NULL then it should work. Cheers, -Tristan From tml@iki.fi Thu Jun 22 15:29:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34F8A3B05BF for ; Thu, 22 Jun 2006 15:29:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21008-07 for ; Thu, 22 Jun 2006 15:29:06 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id F38B13B04A4 for ; Thu, 22 Jun 2006 15:29:05 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 636F315138F; Thu, 22 Jun 2006 22:29:02 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.61302.590000.98041@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:28:54 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.33 tagged_above=-999 required=2 tests=[AWL=0.134, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.33 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:29:09 -0000 =D8ystein Johansen writes: > (I'm using win32 command prompt window) And GIOChannel watches work? Wow, I'm amazed. Or actually, in the case of watches for GIOChannels associated with C file descriptors on Win32, GLib uses a separate thread that sits most of the time blocked waiting to read() from the file descriptor, so I guess indeed there is no reason why it wouldn't work for terminal input. > Invalid byte sequence in conversion input > Can this be a bug? It work fine unless I use a special scandinavian > letter in my commands. Do I have to convert my string at any time? > How? I think the input you get from a console window is typically in the so-called OEM code page of your Windows installation. You need to call the GetConsoleCP() function to find out the codepage of the console, and then form the encoding name as a string like "CP437", and tell the GIOChannel to use that encoding. Something like: char codepage[10]; ... sprintf (codepage, "CP%d", GetConsoleCP ()); ... g_io_channel_set_encoding (channel, codepage, &error); (Totally untested, tell us if it works ;) Otherwise GLib assumes the data is in UTF-8, and reading *lines* from a GIOChannel indeed requires it to know the actual encoding of the data, so it will complain when the data isn't proper UTF-8. --tml From tml@iki.fi Thu Jun 22 15:41:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46DF13B022E for ; Thu, 22 Jun 2006 15:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21958-02 for ; Thu, 22 Jun 2006 15:41:35 -0400 (EDT) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 07D893B06CE for ; Thu, 22 Jun 2006 15:41:34 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 9443B1394B7; Thu, 22 Jun 2006 22:41:31 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.62051.621000.757828@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:41:23 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.331 tagged_above=-999 required=2 tests=[AWL=0.133, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.331 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:41:36 -0000 =D8ystein Johansen writes: > However, I want to expand this to system to use automatic string > completion, (the system provided in glib), for all available > commands. Now it only handles command as I press enter. I guess I > need a extra callback for each keypress. This callback can check if > I press and then call g_completion_complete(), but how do I > attach such a signal to the main loop? Ah, I forgot to answer this part. I am afraid you might run into difficulty in doing this on Win32. Or maybe it isn't that hard? There is an API SetConsoleMode(), and mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe it's actually quite similar to Unix, and you can do character-at-a-time input, and your own echo processing. Maybe all you need to do is something like GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); and it will Just Work?=20 --tml From bonefry@gmail.com Thu Jun 22 17:13:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 416803B0601 for ; Thu, 22 Jun 2006 17:13:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26826-10 for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 572B63B061C for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so606362nzh for ; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: by 10.65.95.12 with SMTP id x12mr3218683qbl; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: from ?86.34.237.177? ( [86.34.237.177]) by mx.gmail.com with ESMTP id a5sm1382428qbd.2006.06.22.14.13.35; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Message-ID: <449B07F9.9030500@gmail.com> Date: Fri, 23 Jun 2006 00:13:29 +0300 From: Alex Nedelcu User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: GTK performance on Windows Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.158 tagged_above=-999 required=2 tests=[AWL=0.442, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.158 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:39 -0000 Why is GTK's performance so bad on Windows ? Of all the gui tookits I use, it has the worse performance. I am interested in GTK on Windows because I want to make cross-platform applications. Isn't there a new version on the horizon that will fix this ? Or what can be done to tune the performance of GTK interfaces ? I am using GTK+ version 2.8, and Windows XP. The platform I use is Mono with the GTK# bindings, but I also made tests in Python with the PyGTK.bindings, and I've got the same results. Thank you, From chris@cvine.freeserve.co.uk Thu Jun 22 17:13:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96F463B02CA for ; Thu, 22 Jun 2006 17:13:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27147-02 for ; Thu, 22 Jun 2006 17:13:50 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 774DB3B0769 for ; Thu, 22 Jun 2006 17:13:44 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id A0287580008E; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) Received: from boulder.homenet (user-2802.lns6-c11.dsl.pol.co.uk [84.69.106.242]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id 5BE1E58001A9; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) X-ME-UUID: 20060622211342377.5BE1E58001A9@mwinf3114.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5MLDBgq004659; Thu, 22 Jun 2006 22:13:11 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Two buttons, two images and switching between them Date: Thu, 22 Jun 2006 22:13:11 +0100 User-Agent: KMail/1.9.1 References: <20060622115530.3F0DE25049A@poczta.interia.pl> In-Reply-To: <20060622115530.3F0DE25049A@poczta.interia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606222213.11197.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.306 tagged_above=-999 required=2 tests=[AWL=-0.042, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.306 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:53 -0000 On Thursday 22 June 2006 12:55, hm wrote: > Hi ! > > I`ve got a problem : I have window, with two buttons inside. I`ve got > two GtkImage`s, and on a beginning of the program, i`m ( setting > gtk_button_set_image () ) these images to be button`s "icons". I want to > make a signal function, that handles clicking on both of these buttons. On > click it should switch images between the buttons. For example i`ve got > icon1, icon2, button1 and button2. button1 -> icon1 > button2 -> icon2 ( icon2 is set to be an icon for button2 ) > > now.. i`ve got a signal, that button1 is pressed. So i want now, to have > situation : > > button1 -> icon2 > button2 -> icon1 > > When I try again to do gtk_button_set_image ( button1, icon2 ) and > gtk_button_set_image ( button2, icon1 ) it doesn`t work propertly ( button1 > has icon2 , but button2 has no icon ). I suppose it is so because of > button1 is now "parrent" ( or owner ) of both icons ???? I`m not quiet > sure. I would be appreciate for any clue how to do this. Maybe there is any > method to release icon from being button`s child ? Uhh.. it is little > twisted :) When you substitute an image in button1 the reference count to icon1 would have been decremented, and if you have not taken steps to stop button1 taking ownership of it it will have been destroyed. That may be your problem (although in that case it is surprising that it worked the first time). Chris From oystein@gnubg.org Thu Jun 22 17:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AC523B0242 for ; Thu, 22 Jun 2006 17:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28976-07 for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 18D9A3B022C for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A009X17J7S2C0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A00FW87J6QD35@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Date: Thu, 22 Jun 2006 23:54:39 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <449AF297.6070003@gnome.org> To: Tristan Van Berkom Message-id: <449B119F.1000203@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enigF4FE71D812066FD76946249B X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.563 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599] X-Spam-Score: -2.563 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:54:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF4FE71D812066FD76946249B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tristan Van Berkom wrote: > =D8ystein Johansen wrote: >=20 >> Hi, >> >> I've just made a small glib code that read commands from from a comman= d >> line interface prompt. It uses g_main_loop and a g_io_channel. I've >> attached the code. >> >> First: >> It nearly works as expected. The callback is called each time I enter = a >> command, and it's parsed to the command handler. However, I want to >> expand this to system to use automatic string completion, (the system >> provided in glib), for all available commands. Now it only handles >> command as I press enter. I guess I need a extra callback for each >> keypress. This callback can check if I press and then call >> g_completion_complete(), but how do I attach such a signal to the main= >> loop? >> >> =20 >> > You need to get raw keyboard input from your terminal, in unix > you can use tcsetattr(). >=20 >> Example: >> myprompt> hello >> You typed: hello >> myprompt> =C6sop >> >> ** (gnubg.exe:3128): WARNING **: Something went wrong >> Invalid byte sequence in conversion input > You might want to change the encoding on the io > channel.. if you set it to NULL then it should work. Thank you! Adding this line: g_io_channel_set_encoding (channel, NULL, &error); makes it work. Thank you! Now let me try finding the right codepage as Tor suggests. Hmmm.... gcc -o mycli commandsystem.o -LC:/GTK/lib -lglib-2.0 -lintl -liconv -lkernel32 commandsystem.o(.text+0x3f):commandsystem.c: undefined reference to `GetConsoleCP' It doesn't link? (Yes, I do add -lkernel32) -=D8ystein --------------enigF4FE71D812066FD76946249B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmxGi6kDTFPhwyqYRAm34AJsEdcDQXNEIGbhSJrl8V1Y0BqA7qgCfXAcm 5Ita9vLa8F8qptA4rEeUAHw= =nwVe -----END PGP SIGNATURE----- --------------enigF4FE71D812066FD76946249B-- From itsme_515@hotmail.com Thu Jun 22 18:00:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6F863B06F4 for ; Thu, 22 Jun 2006 18:00:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29478-01 for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from hotmail.com (bay109-f14.bay109.hotmail.com [64.4.19.24]) by menubar.gnome.org (Postfix) with ESMTP id 9A4DC3B067C for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 15:00:53 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Thu, 22 Jun 2006 22:00:50 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com From: "Aar Em" To: gtk-list@gnome.org Subject: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 17:00:50 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 22 Jun 2006 22:00:53.0042 (UTC) FILETIME=[5474C120:01C69647] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.907 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: 1.907 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 22:00:55 -0000 Dear peers, After struggling with this for over a day, I wanted to ask you for your help regarding usage for g_list_insert_sorted. Can someone please help. Here are the operative parts of my program: I have the following struct: typedef struct _message_info { char *from; char *subject; char *face; long *ctime; } MESSAGE_INFO; I have the following comparison function: static gint compare_ctime (gconstpointer a, gconstpointer b) { const MESSAGE_INFO *p1=a,*p2=b; return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); } and the following calling part: Glist *headers; ..... MESSAGE_INFO *m; m = g_new(MESSAGE_INFO,1); m->from = safe_strdup (from); m->subject = safe_strdup (subject); m->face = safe_strdup (xface); m->ctime = ctime; headers = g_list_insert_sorted (headers, m,compare_ctime); .... I get segmentation fault with this, and was wondering how I could fix it. I guess my question is how to use g_list_insert_sorted. I have Googled quite a bit on this, but have not been able to devise the fix. Any help would be very appreciated. Any suggestions? Many thanks and best wishes, Aarem _________________________________________________________________ Don抰 just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ibr@radix50.net Thu Jun 22 19:51:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 934D53B0320 for ; Thu, 22 Jun 2006 19:51:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01890-02 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 340233B0288 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-11-z2.arcor-so.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 12CA117689F for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-11-z2.arcor-so.net (Postfix) with ESMTP id 025AB1C71CE for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id BD69FEAE5C for ; Fri, 23 Jun 2006 01:51:07 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNongI020870 for ; Fri, 23 Jun 2006 01:50:49 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNon3l020869 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:50:49 +0200 Date: Fri, 23 Jun 2006 01:50:49 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622235049.GC30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:51:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From itsme_515@hotmail.com Thu Jun 22 20:01:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 764923B0295 for ; Thu, 22 Jun 2006 20:01:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02104-10 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from hotmail.com (bay109-f40.bay109.hotmail.com [64.4.19.50]) by menubar.gnome.org (Postfix) with ESMTP id 30A843B0176 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 17:01:08 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Fri, 23 Jun 2006 00:01:07 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <20060622235049.GC30610@radix50.net> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 19:01:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 23 Jun 2006 00:01:08.0504 (UTC) FILETIME=[2134E180:01C69658] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.407 tagged_above=-999 required=2 tests=[AWL=-0.714, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.407 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 00:01:10 -0000 Hi, Many thanks! I think I should let you know that g_list_append works fine, except that it does not give me a sorted list by ctime (creation time). org. The debugger crashes just after entering the function at the point of the "return statement". Program received signal SIGSEGV, Segmentation fault. 0x0804db2b in compare_ctime (a=0x8ef5ae0, b=0x0) at count.c:19 /usr/local/aarem/Desktop/gbuffy-0.2.6/count.c:19:339:beg:0x804db2b Btw, I am sorting by the ctime, the creation time of the messages in the mh folder. Many thanks, aarem > >Hello Aarem, > >On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > > Glist *headers; > > ..... > > headers = g_list_insert_sorted (headers, m,compare_ctime); > >Do you initialize headers with NULL? If not, this could be the reason. >Otherwise, use gdb to see where it crashes. > > > > typedef struct _message_info > > { > > char *from; > > char *subject; > > char *face; > > long *ctime; > > } MESSAGE_INFO; >... > > static gint compare_ctime (gconstpointer a, gconstpointer b) > > { > > const MESSAGE_INFO *p1=a,*p2=b; > > > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : >-1); > > } > >I don't know what long *ctime is, but sorting by pointer value looks >suspicious. This shouldn't segfault, but I'm not sure it does what you >want. > > >With kind regards, >Baurzhan. >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dkasak@nusconsulting.com.au Thu Jun 22 22:27:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1AA23B050E for ; Thu, 22 Jun 2006 22:27:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08034-02 for ; Thu, 22 Jun 2006 22:27:05 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 8B07A3B0139 for ; Thu, 22 Jun 2006 22:27:04 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k5N2SbNx017452; Fri, 23 Jun 2006 12:28:38 +1000 Message-ID: <449B5170.6050609@nusconsulting.com.au> Date: Fri, 23 Jun 2006 12:26:56 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Alex Nedelcu , gtk-list@gnome.org Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> In-Reply-To: <449B07F9.9030500@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 462445 - f5bdb0dffa1b X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=462445&m=f5bdb0dffa1b X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.124, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.398 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 02:27:07 -0000 Alex Nedelcu wrote: > Why is GTK's performance so bad on Windows ? > Of all the gui tookits I use, it has the worse performance. > > I am interested in GTK on Windows because I want to make cross-platform > applications. > > Isn't there a new version on the horizon that will fix this ? > Or what can be done to tune the performance of GTK interfaces ? > > I am using GTK+ version 2.8, and Windows XP. > The platform I use is Mono with the GTK# bindings, > but I also made tests in Python with the PyGTK.bindings, and I've got > the same results. > I don't think it's so bad. I'm developing gtk2-perl applications and deploying on a mix of Linux and Windows ( 2000 ) clients, and the performance is actually quite impressive. It even runs inside vmware on my Linux desktop quite well, though obviously not at full speed. As per previous posts re: performance problems, have you tried changing themes? Also, what exactly is slow? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From tml@iki.fi Fri Jun 23 02:23:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C97C3B0567 for ; Fri, 23 Jun 2006 02:23:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18933-03 for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 542053B00ED for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CFBA5151223; Fri, 23 Jun 2006 09:23:38 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17563.35042.590000.373902@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:23:30 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449B119F.1000203@gnubg.org> References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> <449B119F.1000203@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.332 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.332 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:23:44 -0000 =D8ystein Johansen writes: > It doesn't link? (Yes, I do add -lkernel32) Did you #include ?=20 --tml From tml@iki.fi Fri Jun 23 02:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A0813B04C0 for ; Fri, 23 Jun 2006 02:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18926-08 for ; Fri, 23 Jun 2006 02:27:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 0A0133B041F for ; Fri, 23 Jun 2006 02:27:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CEEBD1511A1; Fri, 23 Jun 2006 09:27:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.35295.574000.601419@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:27:43 +0300 To: Alex Nedelcu Subject: Re: GTK performance on Windows In-Reply-To: <449B07F9.9030500@gmail.com> References: <449B07F9.9030500@gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.333 tagged_above=-999 required=2 tests=[AWL=0.131, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.333 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:27:56 -0000 Alex Nedelcu writes: > Why is GTK's performance so bad on Windows ? Because you haven't profiled it and contributed performance improvements? > Of all the gui tookits I use, it has the worse performance. Well, d'oh, you should ask for your money back then! --tml From hdnews@gawab.com Fri Jun 23 02:52:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 596D63B0218 for ; Fri, 23 Jun 2006 02:52:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20492-03 for ; Fri, 23 Jun 2006 02:52:31 -0400 (EDT) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by menubar.gnome.org (Postfix) with ESMTP id D54F03B00ED for ; Fri, 23 Jun 2006 02:52:30 -0400 (EDT) Received: from pegasus.strader.xs4all.nl (strader.xs4all.nl [80.127.15.33]) by smtp-vbr4.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5N6qT2W054997; Fri, 23 Jun 2006 08:52:29 +0200 (CEST) (envelope-from hdnews@gawab.com) Received: from [10.8.0.2] (vpnclient [10.8.0.2] (may be forged)) (authenticated bits=0) by pegasus.strader.xs4all.nl (8.12.10/8.12.10) with ESMTP id k5N6qMbh029399; Fri, 23 Jun 2006 08:52:29 +0200 Message-ID: <449B8FA2.3050501@gawab.com> Date: Fri, 23 Jun 2006 08:52:18 +0200 From: Hans Oesterholt-Dijkema User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tor Lillqvist Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.656 tagged_above=-999 required=2 tests=[AWL=-1.303, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, SPF_SOFTFAIL=1.384, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -0.656 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:52:32 -0000 He must have been adding sleeps in his code. Tor Lillqvist schreef: > Alex Nedelcu writes: > > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! > > --tml > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From nf2@scheinwelt.at Fri Jun 23 04:25:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28DDE3B078E for ; Fri, 23 Jun 2006 04:25:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27712-01 for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 689883B011E for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1FtgyI-0008KO-1Y; Fri, 23 Jun 2006 10:25:02 +0200 Message-ID: <449BA558.7040303@scheinwelt.at> Date: Fri, 23 Jun 2006 10:24:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Sean Middleditch , gtk-list@gnome.org Subject: Re: libxdg-vfs and Gtk-Filechooser References: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> In-Reply-To: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 3eb4023d85beba22221bf02b5aa627a5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, TW_BX=0.077, TW_IB=0.077, TW_XD=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:25:04 -0000 Hi, Sean Middleditch wrote: > Making the GTK file chooser use libxdg is pretty shady. Letting an > application select a file on an FTP share is pointless if the application > itself cannot actually access the file returned by the file chooser. At > best you'd have to have the chooser download/copy the file locally and > return a temporary file path to the app. But then changes to the file > would be lost. Saving the file would be difficult since when saving, the > chooser just returns the URI to the app, which again has no way to write > to any file that isn't local. > http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html libxdg-vfs supports get/put functions for reading and writing files - the application just has to link libxdg-vfs. The libxdg-vfs backend for GTKFileChooser wouldn't be the default, but just for applications which use libxdg-vfs . > The xdg-vfs stuff is interesting, but until there is a complete library > that can be easily integrated into applications, there's little point in > having the file chooser support the xdg stuff. And if you have GTK apps > willing to use a VFS library, you might as well get them to go straight to > the GObject-based gnome-vfs rather than xdg-vfs. > AFAIK gnome-vfs doesn't use GObject in the API. The advantage of libxdg-vfs is, that it uses the VFS system (password storage, protocol handlers, network shares) of the current desktop (KIO *or* Gnome-VFS). Therefore your GTK application will integrate nicely into KDE without directly linking to KIO (or the other way round - a Qt application on Gnome using Gnome-VFS). Also - you don't have a whole desktop-system in the dependencies of your application - Just a little library. (If you want to use Gnome-VFS directly, you also have to link to libGnomeUI - same problem for KIO and the KDE desktop libraries). cheers, Norbert From sven@gimp.org Fri Jun 23 04:54:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1DCD3B038E for ; Fri, 23 Jun 2006 04:54:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29667-05 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from buzzloop.caiaq.de (buzzloop.caiaq.de [212.112.241.133]) by menubar.gnome.org (Postfix) with ESMTP id 667C63B0231 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 9A4CF7F4028; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23383-03; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from [192.168.1.124] (i577B660E.versanet.de [87.123.102.14]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTP id 251EB7F4022; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Subject: Re: Main Loop, IO Channels and my CLI From: Sven Neumann To: =?ISO-8859-1?Q?=D8ystein?= Johansen In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=utf-8 Date: Fri, 23 Jun 2006 10:54:01 +0200 Message-Id: <1151052841.13729.8.camel@bender> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[AWL=0.853, BAYES_00=-2.599] X-Spam-Score: -1.746 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:54:24 -0000 Hi, On Thu, 2006-06-22 at 21:00 +0200, 貀stein Johansen wrote: > I've just made a small glib code that read commands from from a command > line interface prompt. It uses g_main_loop and a g_io_channel. I've > attached the code. > > First: > It nearly works as expected. The callback is called each time I enter a > command, and it's parsed to the command handler. However, I want to > expand this to system to use automatic string completion, (the system > provided in glib), for all available commands. That sounds like fun. When you have something ready and are willing to put it under the GPL, I think it would be interesting to add this code for the GIMP Script-Fu text console mode. The current code needs an overhaul anyway and it would be sweet to have command completion. Sven From linuxhippy@gmail.com Fri Jun 23 06:06:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FFCC3B0231 for ; Fri, 23 Jun 2006 06:06:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01577-01 for ; Fri, 23 Jun 2006 06:06:08 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.202]) by menubar.gnome.org (Postfix) with ESMTP id DB91E3B01D8 for ; Fri, 23 Jun 2006 06:06:07 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so316956hue for ; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.138.14 with SMTP id l14mr1205881hud; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Message-ID: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> Date: Fri, 23 Jun 2006 12:06:06 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.423 tagged_above=-999 required=2 tests=[AWL=-0.381, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.423 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:06:10 -0000 1.) Is this really nescessary? This guy has performance problems on windows asking for help (well, maybe a bit indirect) ... and this is what he gets. Go to QT's bugzilla and search for performance bugs .... 2.) How could he profile it. I asked two times for ways to find out which operations are done in software fallbacks (on X) on this list, no reply. For a non-profgessional profiling GTK and all the stuff it is surrounded by is not trivial and well without no help ... It seems there is not even interrest in speeding up GTK2. lg > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! From tml@iki.fi Fri Jun 23 06:22:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F0CC3B012A for ; Fri, 23 Jun 2006 06:22:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02739-05 for ; Fri, 23 Jun 2006 06:22:24 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 288523B045A for ; Fri, 23 Jun 2006 06:22:23 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id B4B61216477; Fri, 23 Jun 2006 13:22:19 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.49363.293000.582022@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 13:22:11 +0300 To: "Clemens Eisserer" Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.335 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.335 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:22:25 -0000 Clemens Eisserer writes: > 1.) Is this really nescessary? > This guy has performance problems on windows asking for help (well, > maybe a bit indirect) ... and this is what he gets. I am sorry for being a but rude, but I found his mail more of an accusation than a question. > Go to QT's bugzilla and search for performance bugs .... Why? Are the underlying assumptions and historical background of GTK+ and QT at all comparable? > For a non-profgessional profiling GTK and all the stuff it is > surrounded by is not trivial and well without no help ... If one would ask specific question like "I draw 100000 line segments with separate gdk_draw_line() calls, and it's too slow on Win32" one might get better help. --tml From linuxhippy@gmail.com Fri Jun 23 07:33:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 003FB3B03A7 for ; Fri, 23 Jun 2006 07:33:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06705-03 for ; Fri, 23 Jun 2006 07:33:14 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id C32AC3B0061 for ; Fri, 23 Jun 2006 07:33:13 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so327531hue for ; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.157.15 with SMTP id f15mr1224696hue; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Message-ID: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> Date: Fri, 23 Jun 2006 13:33:12 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.49363.293000.582022@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.313 tagged_above=-999 required=2 tests=[AWL=-0.348, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.313 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 11:33:15 -0000 First of all thanks a lot for doing that much work porting GTK to windows. I can't count how many apps I've used myself on windows-pcs which were able to run because of your work. > If one would ask specific question like "I draw 100000 line segments > with separate gdk_draw_line() calls, and it's too slow on Win32" one > might get better help. I installed gimp on some win-xp computers in the company I work for (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These are very much the issues I have on linux but more "visible". Its the UI, menus, window resizing, layout changes or repaint-events sent to the window because its content was invalidated. I can't say wether its really slow or just feels so, maybe the graphic card driver had an influence (nvidia gf4 mx4000) or some other circumstances were not optimal. I simply never did care that much simply because I don't use/like this planform. Its just hard to know whats going wrong, especially if someone is no gtk insider. lg Clemens From linuxhippy@gmail.com Sat Jun 24 06:27:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 803AF3B00EA for ; Sat, 24 Jun 2006 06:27:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06912-07 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 173283B0132 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so449148hue for ; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1550801hue; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Message-ID: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> Date: Sat, 24 Jun 2006 12:27:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.745 tagged_above=-999 required=2 tests=[AWL=0.193, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -1.745 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 10:27:37 -0000 Hello again, I did some further testing and found that even the gtk-demo part "paned widgets" show such low performance if the panes are as large as the whole screen. I further talked to an nvidia driver developer which also analysed the situation and got a profile very similar to mine. This is what he replied: [quote]So I guess I didn't reproduce your problem. In my case, the reason so much time is spent in software solid fills and copies is that GTK seems to create and destroy pixmaps at a fantastic rate. In fact, it creates and destroys a pixmap every time it blinks the cursor. Pixmaps start out in system memory and are only migrated to video memory after they've been used for a while. This means that creating pixmaps, doing two or three rendering operations, and then destroying them is a sure-fire way to make your rendering fall back to software. Future drivers will have an InitialPixmapPlacement nvidia-settings attribute so people can try tweaking this behavior. If I use that to force pixmaps to start in video RAM, then profiling shows that most of the time is spent waiting for the GPU.[/quote] Does even the default theme uses pixmaps for all and everything? Any ideas where to look into this? Thank you in advance, lg Clemens 2006/6/21, Valdis.Kletnieks@vt.edu : > On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > > > I did some oprofiling, however I don't have a vmlinz-file handy so its > > quite a bit useless: > > 5558 39.2930 no-vmlinux > > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. > > > 2116 14.9593 libfb.so > > 1319 9.3248 nvidia_drv.so > > 1031 7.2888 Xorg > > 603 4.2630 libqt-mt.so.3.3.5 > > 550 3.8883 libc-2.4.so > > 470 3.3227 libgobject-2.0.so.0.800.5 > > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) > > samples % image name app name symbol name > 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line > 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process > 5232 6.7536 libfb.so libfb.so (no symbols) > 4834 6.2398 Xorg Xorg (no symbols) > 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop > 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X > 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy > 2172 2.8037 vmlinux vmlinux get_page_from_freelist > 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock > 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock > 1359 1.7542 nvidia nvidia (no symbols) > 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel > 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup > > (or, done by shared library: > > 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 > 10538 13.6027 vmlinux > 5594 7.2209 libc-2.4.90.so > 5377 6.9408 libgobject-2.0.so.0.1102.1 > 5232 6.7536 libfb.so > 4953 6.3934 Xorg > 4784 6.1753 nvidia_drv.so > 3933 5.0768 libpthread-2.4.90.so > > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... > > You probably mentioned it before, but what GTK2 theme are you using? > > > From itsme_515@hotmail.com Sat Jun 24 22:59:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D2E4A3B0165 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14000-06 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from hotmail.com (bay109-f20.bay109.hotmail.com [64.4.19.30]) by menubar.gnome.org (Postfix) with ESMTP id DDB273B00C4 for ; Sat, 24 Jun 2006 22:59:13 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 24 Jun 2006 19:57:12 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Sun, 25 Jun 2006 02:57:07 GMT X-Originating-IP: [63.175.166.181] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <449B14BA.4030509@gnubg.org> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Sat, 24 Jun 2006 21:57:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Jun 2006 02:57:12.0485 (UTC) FILETIME=[0EA7F550:01C69803] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.178 tagged_above=-999 required=2 tests=[AWL=-2.085, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.178 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 02:59:15 -0000 Folks, so I figured it out: turns out that there is what I believe a bug (or a feature) in g_list_insert_sorted -- if the list is null, even then it goes off to sort. This should not happen. If the list is NULL, it should just add to the list. Many thanks and best wishes, Aarem _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From torriem@chem.byu.edu Sun Jun 25 01:12:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 757323B0079 for ; Sun, 25 Jun 2006 01:12:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17632-03 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by menubar.gnome.org (Postfix) with ESMTP id 5E5773B00A6 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (sccrmhc13) with ESMTP id <2006062505113001300mgu3se>; Sun, 25 Jun 2006 05:11:31 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5P5BTrC002542 for ; Sat, 24 Jun 2006 23:11:30 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5P5BOTq002537 for gtk-list@gnome.org; Sat, 24 Jun 2006 23:11:24 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: proggressbar.. From: Michael Torrie To: gtk-list@gnome.org In-Reply-To: References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 24 Jun 2006 23:11:24 -0600 Message-Id: <1151212284.32440.16.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.416 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.416 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 05:12:17 -0000 On Thu, 2006-06-22 at 11:08 +0530, Yogesh Arora wrote: > is that just due to tall claims he is making...or has it got something > to do with india I doubt it has to do with India. I have recently noticed a number of posts from people for whom English is not their native language to this list, posts containing questions that are extremely unclear. It could very well be the language barrier, but several of these posts appear to be asking us to do the work for someone, rather than wanting to read the docs, tutorials, and example code. It is those posts that appear to be demanding that we do their work for them that draw reactions such as this one. Michael > > From yeti@physics.muni.cz Sun Jun 25 03:23:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628F93B0374 for ; Sun, 25 Jun 2006 03:23:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21579-03 for ; Sun, 25 Jun 2006 03:23:22 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8AEA53B030F for ; Sun, 25 Jun 2006 03:23:21 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P7MWuA020910 for ; Sun, 25 Jun 2006 09:22:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id A7E5223D5E; Sun, 25 Jun 2006 09:22:32 +0200 (CEST) Date: Sun, 25 Jun 2006 09:22:33 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060625072233.GK2296@potato.chello.upc.cz> References: <449B14BA.4030509@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 07:23:23 -0000 On Sat, Jun 24, 2006 at 09:57:07PM -0500, Aar Em wrote: > Folks, so I figured it out: turns out that there is what I believe a bug (or > a feature) in g_list_insert_sorted -- if the list is null, even then it goes > off to sort. It does no such thing and never did: http://cvs.gnome.org/viewcvs/glib/glib/glist.c?rev=1.35&view=log > If the list is NULL, it should just add > to the list. And that's exactly what it does since ever. Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Sun Jun 25 05:16:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32E853B01D0 for ; Sun, 25 Jun 2006 05:16:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07093-07 for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: from smtp.poczta.interia.pl (unknown [80.48.65.7]) by menubar.gnome.org (Postfix) with ESMTP id A627E3B013D for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id CEE8237485A; Sun, 25 Jun 2006 11:15:17 +0200 (CEST) Received: from poczta.interia.pl (f30.poczta.interia.pl [10.217.2.30]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 544FC3747D7 for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 4773210C018; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 2006310C00F for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Date: 25 Jun 2006 11:15:12 +0200 From: hm Subject: GtkImage simple question, please help To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060625091512.2006310C00F@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.137 tagged_above=-999 required=2 tests=[AWL=-0.734, BAYES_20=-0.74, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.137 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 09:16:14 -0000 =0AHi !=0A=0A I`ve got a question. Let`s have this piece of code :=0A=0A= =0A...=0A=0A GtkWidget * image1;=0A GtkWidget * button;=0A ...=0A butto= n =3D gtk_button_new ();=0A image =3D gtk_image_new_from_file ( PATH );=0A= gtk_button_set_image ( GTK_BUTTON ( button), image1 );=0A =0Aquestions a= re :=0A=0A* if i`ll call gtk_image_clear (image) .. will it dispose memory = reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap= ? =0A=0A* if answer for previous question is no, it will not dispose the m= emory, then how it is possible to change image inside button ? From yeti@physics.muni.cz Sun Jun 25 06:03:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 047A73B00C9 for ; Sun, 25 Jun 2006 06:03:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08827-02 for ; Sun, 25 Jun 2006 06:03:06 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D10853B008F for ; Sun, 25 Jun 2006 06:03:05 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P9kCR0012281 for ; Sun, 25 Jun 2006 11:46:13 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 840F923D5E; Sun, 25 Jun 2006 11:46:12 +0200 (CEST) Date: Sun, 25 Jun 2006 11:46:14 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: GtkImage simple question, please help Message-ID: <20060625094614.GN2296@potato.chello.upc.cz> References: <20060625091512.2006310C00F@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060625091512.2006310C00F@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 10:03:08 -0000 On Sun, Jun 25, 2006 at 11:15:12AM +0200, hm wrote: > > * if i`ll call gtk_image_clear (image) .. will it dispose memory reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap ? gtk_image_clear() clears the image, therefore the image releases the reference the image holds to the displayed pixbuf (or other objects). But the image will still *exist*, it will be just empty. > * if answer for previous question is no, it will not dispose the memory, then how it is possible to change image inside button ? By setting another image. The button then releases the reference it holds to the old image -- and in the described scenario nothing else holds a reference to it, therefore it will be finalized. Please read the refcounting parts in GObject API docs and GObject tutorial -- and of GtkObject too as although the methods are superseded by GObject methods the intro is more comprehensible (IMO). Yeti -- Anonyms eat their boogers. From suryakiran.gullapalli@gmail.com Sun Jun 25 11:51:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E43F33B008C for ; Sun, 25 Jun 2006 11:51:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19785-07 for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 389173B008F for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id m22so1138082nzf for ; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.36.252.42 with SMTP id z42mr6653491nzh; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Message-ID: <3462bcdb0606250851v35bce67mf725816429f52603@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:09 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Theme engine tutorial. In-Reply-To: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4916_21889957.1151250669841" References: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.729, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:51:36 -0000 ------=_Part_4916_21889957.1151250669841 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_4916_21889957.1151250669841 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_4916_21889957.1151250669841-- From suryakiran.gullapalli@gmail.com Sun Jun 25 11:52:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24C333B008C for ; Sun, 25 Jun 2006 11:52:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20036-02 for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id AB5653B008F for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 40so1027430nzk for ; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.2.65 with SMTP id e65mr6484642nzi; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Message-ID: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:49 +0530 From: "Surya Kiran Gullapalli" To: gtkmm-list@gnome.org, gtk-list@gnome.org Subject: Font Path In-Reply-To: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4920_12764368.1151250709216" References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.439 tagged_above=-999 required=2 tests=[AWL=-0.468, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.439 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:52:27 -0000 ------=_Part_4920_12764368.1151250709216 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_4920_12764368.1151250709216 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_4920_12764368.1151250709216-- From pocmatos@gmail.com Sun Jun 25 12:17:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D32D3B00BB for ; Sun, 25 Jun 2006 12:17:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20843-01 for ; Sun, 25 Jun 2006 12:17:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 04EF43B008C for ; Sun, 25 Jun 2006 12:17:50 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so1536173nzh for ; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.224.8 with SMTP id w8mr1383704nzg; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.66.9 with HTTP; Sun, 25 Jun 2006 09:17:35 -0700 (PDT) Message-ID: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> Date: Sun, 25 Jun 2006 17:17:35 +0100 From: "Paulo J. Matos" To: gtk-list@gnome.org Subject: Using GTK+ with C++ MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.404 tagged_above=-999 required=2 tests=[AWL=-0.158, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.404 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: pocm@sat.inesc-id.pt List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 16:17:53 -0000 Hi all, I know about gtkmm but if I wish to use GTK+ directly, can I do it through C++? Is anyone doing this? Are there any 'tricks' I should know about beyond having to extern "C" the includes of gtk header files? Cheers, -- Paulo Jorge Matos - pocm at sat inesc-id pt Web: http://sat.inesc-id.pt/~pocm Computer and Software Engineering INESC-ID - SAT Group From jcupitt@gmail.com Sun Jun 25 14:02:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A39383B0018 for ; Sun, 25 Jun 2006 14:02:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24527-04 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id 632163B0079 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so538377uge for ; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1804088hue; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.129.2 with HTTP; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Message-ID: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> Date: Sun, 25 Jun 2006 19:02:21 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 18:02:23 -0000 On 6/24/06, Clemens Eisserer wrote: > [quote]So I guess I didn't reproduce your problem. In my case, the > reason so much time is spent in software solid fills and copies is > that GTK seems to create and destroy pixmaps at a fantastic rate. In > fact, it creates and destroys a pixmap every time it blinks the > cursor. Pixmaps start out in system memory and are only migrated to > video memory after they've been used for a while. This means that > creating pixmaps, doing two or three rendering operations, and then > destroying them is a sure-fire way to make your rendering fall back to > software. Future drivers will have an InitialPixmapPlacement > nvidia-settings attribute so people can try tweaking this behavior. If > I use that to force pixmaps to start in video RAM, then profiling > shows that most of the time is spent waiting for the GPU.[/quote] > > Does even the default theme uses pixmaps for all and everything? That's interesting. gtk2 uses pixmaps for double buffering ... for each expose rectangle, it will create an off-screen pixmap, ask all relevant widgets to paint to that, then at the end of expose, paint the off-screen pixmap on the display. I think it can potentially create and destroy quite a lot of pixmaps in a single expose operation. You could try making a test program and turning off double buffering for some widgets: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 John From oystein@gnubg.org Sun Jun 25 16:42:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33D083B0119 for ; Sun, 25 Jun 2006 16:42:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00506-08 for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id A0BBC3B000C for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00KQ1O5QACC0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00I0YO5PEJ33@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Date: Sun, 25 Jun 2006 22:41:43 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <17562.62051.621000.757828@gargle.gargle.HOWL> To: Tor Lillqvist Message-id: <449EF507.2010707@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig87FEA3859F86E18D841D879D X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, TW_LQ=0.077] X-Spam-Score: -2.525 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:42:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig87FEA3859F86E18D841D879D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tor Lillqvist wrote: > =D8ystein Johansen writes: > > However, I want to expand this to system to use automatic string > > completion, (the system provided in glib), for all available > > commands. Now it only handles command as I press enter. I guess I > > need a extra callback for each keypress. This callback can check if > > I press and then call g_completion_complete(), but how do I > > attach such a signal to the main loop? >=20 > Ah, I forgot to answer this part. I am afraid you might run into > difficulty in doing this on Win32. >=20 > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > it's actually quite similar to Unix, and you can do > character-at-a-time input, and your own echo processing. Maybe all you > need to do is something like >=20 > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); >=20 > and it will Just Work?=20 Wow! I just tried this, and it does indeed Just Work! Thanks. I must handle all the characters like backspace and return and so on, but it works... But, it doesn't work on linux.... How can I get character-at-a-time input from a linux console? -=D8ystein --------------enig87FEA3859F86E18D841D879D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEnvUK6kDTFPhwyqYRAtpuAJsEnbvESOizT1xs0ast/iphrHPtpgCdEMi2 fxlkPGgv32vw8JOoa44jBiE= =Hnzr -----END PGP SIGNATURE----- --------------enig87FEA3859F86E18D841D879D-- From linuxhippy@gmail.com Sun Jun 25 16:54:58 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A65A53B00E7 for ; Sun, 25 Jun 2006 16:54:58 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01177-05 for ; Sun, 25 Jun 2006 16:54:56 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 718C23B0079 for ; Sun, 25 Jun 2006 16:54:55 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so595935hue for ; Sun, 25 Jun 2006 13:54:38 -0700 (PDT) Received: by 10.78.167.12 with SMTP id p12mr1824154hue; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Message-ID: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> Date: Sun, 25 Jun 2006 22:54:37 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.427, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:54:58 -0000 Hello John, Thanks a lot for answering. I created a sample program which contains two buttons in a (horizontally) paned window. When I maximize the window and resize the panes I get very slow resizing, however when setting all involved widgets unbuffered resizing is fast (but painting is done with artifacts). Also the profile looks very different: With doublebuffering enabled: 3298 36.0398 libfb.so (no symbols) 1710 18.6865 nvidia_drv.so _nv000805X Widthout doublebuffering: 1974 19.1632 libcairo.so.2.2.3 (no symbols) 1535 14.9015 Xorg (no symbols) 1083 10.5135 libfb.so (no symbols) So there's still some software rendering involved but its _way_ better. I am currently hitting a deadline in a java project, so I'll busy the next 1-2 weeks, however I would really like to get my hands on the buffer manager, do you think theres a chance to get it in (if its well written and stylish correct). I like tuning code, although I've to admit my C/Unix knowledge is rusty, however then its a good training. lg Clemens > That's interesting. gtk2 uses pixmaps for double buffering ... for > each expose rectangle, it will create an off-screen pixmap, ask all > relevant widgets to paint to that, then at the end of expose, paint > the off-screen pixmap on the display. I think it can potentially > create and destroy quite a lot of pixmaps in a single expose > operation. > > You could try making a test program and turning off double buffering > for some widgets: > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > John > From yeti@physics.muni.cz Sun Jun 25 17:09:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2201E3B00C7 for ; Sun, 25 Jun 2006 17:09:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01871-06 for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 3E1553B000C for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5PL9Wtb021542 for ; Sun, 25 Jun 2006 23:09:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1AF7F23D5E; Sun, 25 Jun 2006 23:09:32 +0200 (CEST) Date: Sun, 25 Jun 2006 23:09:36 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Message-ID: <20060625210936.GP2296@potato.chello.upc.cz> References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <449EF507.2010707@gnubg.org> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:09:40 -0000 On Sun, Jun 25, 2006 at 10:41:43PM +0200, ?ystein Johansen wrote: > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? Wouldn't it be better to use GNU readline, at least on Linux? It would give users all the editing operations they are used to and honour their settings. I admit the integration of readline to GLib main loop can be tricky (I think about a second thread which whould just feed complete lines to a pipe managed with GIOChannel on the receiving end), but it can be still more elegant than reimplementation of line editting from scratch. Yeti -- Anonyms eat their boogers. From chris@cvine.freeserve.co.uk Sun Jun 25 17:43:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E5443B0104 for ; Sun, 25 Jun 2006 17:43:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03755-03 for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 843BA3B000C for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 92D711C00089; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 6AFFA1C00088; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) X-ME-UUID: 20060625214312438.6AFFA1C00088@mwinf3012.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PLhBtx004287; Sun, 25 Jun 2006 22:43:11 +0100 From: Chris Vine To: gtk-list@gnome.org, pocm@sat.inesc-id.pt Subject: Re: Using GTK+ with C++ Date: Sun, 25 Jun 2006 22:43:10 +0100 User-Agent: KMail/1.9.1 References: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> In-Reply-To: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606252243.10889.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.323 tagged_above=-999 required=2 tests=[AWL=-1.072, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.323 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:43:15 -0000 On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > Hi all, > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > through C++? Is anyone doing this? Are there any 'tricks' I should > know about beyond having to extern "C" the includes of gtk header > files? They are already declared extern "C" if compiled for a C++ program. There is nothing you need to know - just use them. Chris From chris@cvine.freeserve.co.uk Sun Jun 25 18:28:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D960A3B0122 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05775-02 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id EB0203B013D for ; Sun, 25 Jun 2006 18:28:45 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 9E2E71C00083; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 711621C00082; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) X-ME-UUID: 20060625222840463.711621C00082@mwinf3011.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PMSdtx004517; Sun, 25 Jun 2006 23:28:39 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Date: Sun, 25 Jun 2006 23:28:39 +0100 User-Agent: KMail/1.9.1 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> In-Reply-To: <449EF507.2010707@gnubg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200606252328.39192.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.232 tagged_above=-999 required=2 tests=[AWL=-0.045, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_LQ=0.077] X-Spam-Score: -2.232 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 22:28:47 -0000 On Sunday 25 June 2006 21:41, 貀stein Johansen wrote: > Tor Lillqvist wrote: [snip] > > Ah, I forgot to answer this part. I am afraid you might run into > > difficulty in doing this on Win32. > > > > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > > it's actually quite similar to Unix, and you can do > > character-at-a-time input, and your own echo processing. Maybe all you > > need to do is something like > > > > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > > mode &= ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); > > > > and it will Just Work? > > Wow! I just tried this, and it does indeed Just Work! Thanks. I must > handle all the characters like backspace and return and so on, but it > works... > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? If you are not using an event based toolkit such as GDK/GTK+ for handling the keyboard, then you will have to code on a platform specific basis. If you want to code for a Linux/Unix console and you are using the glib main loop then the easiest thing is to use curses with non-blocking input (see the cbreak() and nodelay() calls) and poll it in a timer event you have set up with g_timeout_add(). If you are feeling adventurous you can dispense with curses and use the termios/tcgetattr()/tcsetattr() interface directly and set up the console that way. If you have no other reason to use the glib main loop (and there are plenty of reasons why you might want to use it), you can make your own program loop with select() and an appropriate timeout which polls the keyboard; or if all you are interested in is keyboard events, you can put curses in single extraction (cbreak) mode but with blocking input (or the equivalent with termios) and use that as your event loop. Chris From torriem@chem.byu.edu Sun Jun 25 20:45:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F2DA53B016F for ; Sun, 25 Jun 2006 20:45:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12049-09 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [216.148.227.153]) by menubar.gnome.org (Postfix) with ESMTP id 957B23B0199 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (rwcrmhc13) with ESMTP id <20060626003351m1300g4ie2e>; Mon, 26 Jun 2006 00:33:51 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5Q0XjV3017707; Sun, 25 Jun 2006 18:33:45 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5Q0XiQj017703; Sun, 25 Jun 2006 18:33:44 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: Font Path From: Michael Torrie To: Surya Kiran Gullapalli In-Reply-To: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 25 Jun 2006 18:33:44 -0600 Message-Id: <1151282024.32440.29.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.377 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.377 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 00:45:16 -0000 On Sun, 2006-06-25 at 21:21 +0530, Surya Kiran Gullapalli wrote: > Hi, > I'm trying to understand the gtk code. I've a question regarding font > path. > What is the font path, gtk application is looking into when one open a > font selection dialog. > > This question arose, due to the fact that garnome ships with bitstream > vera fonts, and when you install it, it goes into the installation > directory ($PREFIX/share... etc) > But when opened a font selection dialog, it shows all the available > fonts on the machine. > > Also if i'm shipping a new application with a new font, and say, i've > to ship this font also. where should i put that font. Also please let > me know if i need to set any environment variables. Fonts are not GTK specific. On Unix (X11) fonts should be installed to $HOME/.fonts If you install fonts to another place on the system, you need to modify the config file in /etc/fonts/fonts.conf and set up the path. For more information, see the specifications at freedesktop.org (fontconfig). Michael > > > Surya > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yeajchao@yahoo.com.cn Sun Jun 25 22:36:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79C833B00D9 for ; Sun, 25 Jun 2006 22:36:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16386-06 for ; Sun, 25 Jun 2006 22:36:52 -0400 (EDT) Received: from web15101.mail.cnb.yahoo.com (web15101.mail.cnb.yahoo.com [202.165.103.70]) by menubar.gnome.org (Postfix) with SMTP id 5BEF03B00A9 for ; Sun, 25 Jun 2006 22:36:50 -0400 (EDT) Received: (qmail 93283 invoked by uid 60001); 26 Jun 2006 02:36:39 -0000 Message-ID: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Received: from [221.8.12.141] by web15101.mail.cnb.yahoo.com via HTTP; Mon, 26 Jun 2006 10:36:39 CST Date: Mon, 26 Jun 2006 10:36:39 +0800 (CST) From: yeajchao Subject: =?gb2312?q?=BB=D8=B8=B4=A3=BA=20Re:=20Using=20GTK+=20with=20C++?= To: gtk-list@gnome.org In-Reply-To: <200606252243.10889.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.53 tagged_above=-999 required=2 tests=[AWL=-1.533, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: 0.53 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 02:36:53 -0000 hello when i using gtk+ with c++,how can i compile my application? --- Chris Vine 写道: > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > Hi all, > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > through C++? Is anyone doing this? Are there any 'tricks' I should > > know about beyond having to extern "C" the includes of gtk header > > files? > > They are already declared extern "C" if compiled for a C++ program. There is > > nothing you need to know - just use them. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ___________________________________________________________ 雅虎免费邮箱-3.5G容量,20M附件 http://cn.mail.yahoo.com/ From laowenbo@gmail.com Sun Jun 25 23:23:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBB8B3B0185 for ; Sun, 25 Jun 2006 23:23:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18438-05 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id 898803B0199 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so1299223pyf for ; Sun, 25 Jun 2006 20:23:32 -0700 (PDT) Received: by 10.35.129.19 with SMTP id g19mr5477137pyn; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Received: by 10.35.103.18 with HTTP; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2006 11:23:31 +0800 From: "lao wb" To: "=?ISO-8859-2?Q?David_Ne=E8as_(Yeti)?=" Subject: Re: Drawing images ( with transparency ) one on another In-Reply-To: <20060619104132.GW2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_47883_15491290.1151292211820" References: <20060619093509.DC2132E5C98@poczta.interia.pl> <20060619104132.GW2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.025 tagged_above=-999 required=2 tests=[AWL=0.073, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.025 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 03:23:34 -0000 ------=_Part_47883_15491290.1151292211820 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline SGksCiAgICBJIG5lZWQgZG8gdGhpcyB0b28gYnV0IGhhdmUgbm90IHN1Y2NlZWRlZCB5ZXQuIEkg dHJ5IHRvIHVzZQpnZGtfZHJhd19waXhidWYgYW5kIGdka19waXhidWZfY29tcG9zaXRlIGluIGV4 cG9zZSBldmVudCBoYW5kbGVyLCBidXQgaXQKc3RpbGwgZG9lc24ndCB3b3JrLiBJIHJlYWxseSBu ZWVkIGhlbHAgdG8gbWFrZSBteSB0ZXN0IGNvZGUgd29yay4KCkxhb3diCgojaW5jbHVkZSA8Z3Rr L2d0ay5oPgojZGVmaW5lIFNURF9XSURUSCAgICA2ODAKI2RlZmluZSBTVERfSEVJR0hUICA0ODAK CnN0YXRpYyBHZGtQaXhidWYgKiBzX2Jhc2VQaXg7CnN0YXRpYyBHZGtQaXhidWYgKiBzX2hvbWVN ZW51UGl4OwoKZ2Jvb2xlYW4gb25fZXhwb3NlKEd0a1dpZGdldCAqIHdpZGdldCwKICAgICAgICAg ICAgICAgICAgIEdka0V2ZW50RXhwb3NlICogcHMsCiAgICAgICAgICAgICAgICAgICBncG9pbnRl ciBkYXRhKQp7CiAgICBnZGtfcGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LAogICAgICAg ICAgICAgICAgICAgICAgICAgc19iYXNlUGl4LCAwLCAwLCBTVERfV0lEVEgsIFNURF9IRUlHSFQs IDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICBHREtfSU5URVJQX05FQVJFU1Qs IDApOwoKICAgIGdka19kcmF3X3BpeGJ1Zih3aWRnZXQtPndpbmRvdywgd2lkZ2V0LT5zdHlsZS0+ YmdfZ2NbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgc19ob21lTWVudVBp eCwgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAgICBTVERfV0lEVEgsCiAgICAgICAgICAg ICAgICAgICAgU1REX0hFSUdIVCwKICAgICAgICAgICAgICAgICAgICBHREtfUkdCX0RJVEhFUl9O T1JNQUwsCiAgICAgICAgICAgICAgICAgICAgMCwgMCk7CiAgICByZXR1cm4gRkFMU0U7Cn0KCgpp bnQgbWFpbihpbnQgYXJnYywgY2hhciAqIGFyZ3ZbXSkKewogICAgR3RrV2lkZ2V0ICogbWFpbldu ZCAgICAgICAgPSBOVUxMOwogICAgR2RrRHJhd2FibGUgKiAgICBwaXhNYXAgICAgPSBOVUxMOwog ICAgR3RrV2lkZ2V0ICogaW1nICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYm94 ICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYnV0dG9uICAgICAgICA9IE5VTEw7 CiAgICBHdGtBZGp1c3RtZW50ICogdmFkaiAgICA9IE5VTEw7CiAgICBHdGtBZGp1c3RtZW50ICog aGFkaiAgICA9IE5VTEw7CiAgICBHZGtCaXRtYXAgICAgICAqIG1zayAgICAgICAgPSBOVUxMOwog ICAgR2RrQml0bWFwICogaG9tZU1lbnUgICAgPSBOVUxMOwoKICAgIGd0a19pbml0KCZhcmdjLCAm YXJndik7CgogICAgbWFpblduZCA9IGd0a193aW5kb3dfbmV3KEdUS19XSU5ET1dfVE9QTEVWRUwp OwoKICAgIGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19XSU5ET1cobWFpblduZCksICJ0ZXN0IGRy YXcuLi5cbiIpOwoKICAgIGd0a19zaWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAi ZGVzdHJveSIsIGd0a19tYWluX3F1aXQsIE5VTEwpOwoKICAgIGltZyA9IGd0a19pbWFnZV9uZXco KTsKICAgIGd0a19jb250YWluZXJfYWRkKEdUS19DT05UQUlORVIobWFpblduZCksIGltZyk7CiAg ICBndGtfc2lnbmFsX2Nvbm5lY3QoR1RLX09CSkVDVChpbWcpLAogICAgICAgICAgICAgICAgICAg ICAgICJleHBvc2UtZXZlbnQiLAogICAgICAgICAgICAgICAgICAgICAgIEdUS19TSUdOQUxfRlVO Qyhvbl9leHBvc2UpLAogICAgICAgICAgICAgICAgICAgICAgIE5VTEwpOwoKICAgIGd0a19jb250 YWluZXJfc2V0X2JvcmRlcl93aWR0aChHVEtfQ09OVEFJTkVSKG1haW5XbmQpLCA1KTsKCiAgICBn dGtfd2lkZ2V0X3Nob3dfYWxsKG1haW5XbmQpOwoKICAgIGhvbWVNZW51ID0gZ2RrX3BpeG1hcF9j cmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93LAogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAmbXNrLAoKJm1haW5XbmQtPnN0eWxlLT5iZ1tHVEtfU1RBVEVfTk9S TUFMXSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImY6L2hvbWVt ZW51LmJtcCIpOyAvKiBhbHBoYQpjaGFubmVsIGJpdG1hcCovCiAgICBzX2hvbWVNZW51UGl4ID0K ICAgIGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgaG9tZU1lbnUsCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGdka19jb2xvcm1hcF9nZXRfc3lzdGVtKCksCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IFNURF9XSURUSCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU1REX0hFSUdIVCk7 CgogICAgcGl4TWFwID0gZ2RrX3BpeG1hcF9jcmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93 LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJm1zaywKCiZtYWluV25k LT5zdHlsZS0+YmdbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAiZjovU3Vuc2V0LmJtcCIpOyAvKiBubyBhbHBoYQpjaGFubmVsIGJpdG1h cCovCiAgICBzX2Jhc2VQaXggPQogICAgZ2RrX3BpeGJ1Zl9nZXRfZnJvbV9kcmF3YWJsZShzX2Jh c2VQaXgsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpeE1hcCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgZ2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgU1REX1dJRFRILAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBTVERfSEVJR0hUKTsKCiAgICBndGtfbWFpbigpOwoKICAgIHJldHVybiAwOwp9CgoyMDA2LzYv MTksIERhdmlkIE5l6GFzIChZZXRpKSA8eWV0aUBwaHlzaWNzLm11bmkuY3o+Ogo+Cj4gT24gTW9u LCBKdW4gMTksIDIwMDYgYXQgMTE6MzU6MDlBTSArMDIwMCwgaG0gd3JvdGU6Cj4gPgo+ID4gICBJ YHZlIGdvdCBhIHByb2JsZW0uIElgdmUgZ290IHR3byBzZXBhcmF0ZSBpbWFnZXMuIE9uZSBpcyBi YWNrZ3JvdW5kCj4gZm9yICB0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRy YW5zcGFyZW50LiBUaGVyZSBpcyBhbHNvIHRhYmxlLgo+IFF1ZXN0aW9uIGlzIDogaG93IHRvIGRy YXcgaW4gb25lIG9mIHRoZSB0YWJsZWBzIGNlbGxzIHRoZSBiYWNrZ3Jhb3VuZCwgYW5kCj4gb24g dGhpcyBiYWNrZ3JvdW5kICggYXMgYSBzZWNvbmQgbGF5ZXIgKSBzZWNvbmQgaW1hZ2UgKHRyYW5z cGFyZW50KSA/ICBJCj4ga25vdyAoIG9mIGNvdXJzZSApIGhvdyB0byBjcmVhdGUgaW1hZ2VzLCB0 YWJsZXMuCj4KPiBFaXRoZXIgdXNlIGdka19kcmF3X3BpeGJ1ZigpIGlmIHRoZSBjb3JyZWN0IG9y ZGVyIChmaXJzdAo+IGJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudAo+IGhhbmRsZXIsIG9yIHVzZSBnZGtfcGl4YnVmX2NvbXBvc2l0ZSgpIGFuZCBk cmF3IHRoZSBmaW5hbAo+IGltYWdlLgo+Cj4gWWV0aQo+Cj4KPiAtLQo+IEFub255bXMgZWF0IHRo ZWlyIGJvb2dlcnMuCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18KPiBndGstbGlzdCBtYWlsaW5nIGxpc3QKPiBndGstbGlzdEBnbm9tZS5vcmcKPiBodHRw Oi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdAo+Cg== ------=_Part_47883_15491290.1151292211820 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: base64 Content-Disposition: inline SGksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgSSBuZWVkIGRvIHRoaXMgdG9vIGJ1dCBoYXZlIG5v dCBzdWNjZWVkZWQgeWV0LiBJIHRyeSB0byB1c2UgZ2RrX2RyYXdfcGl4YnVmIGFuZCBnZGtfcGl4 YnVmX2NvbXBvc2l0ZSBpbiBleHBvc2UgZXZlbnQgaGFuZGxlciwgYnV0IGl0IHN0aWxsIGRvZXNu J3Qgd29yay4gSSByZWFsbHkgbmVlZCBoZWxwIHRvIG1ha2UgbXkgdGVzdCBjb2RlIHdvcmsuPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Ckxhb3diPGJyPjxicj4jaW5jbHVkZSAmbHQ7Z3RrL2d0 ay5oJmd0Ozxicj4jZGVmaW5lIFNURF9XSURUSCZuYnNwOyZuYnNwOyZuYnNwOyA2ODA8YnI+I2Rl ZmluZSBTVERfSEVJR0hUJm5ic3A7IDQ4MDxicj48YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfYmFz ZVBpeDs8YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfaG9tZU1lbnVQaXg7PGJyPjxicj5nYm9vbGVh biBvbl9leHBvc2UoR3RrV2lkZ2V0ICogd2lkZ2V0LCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBHZGtFdmVudEV4cG9zZSAqIHBzLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBncG9pbnRlciBkYXRhKTxicj57PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBnZGtf cGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtzX2Jhc2VQaXgsIDAsIDAs IFNURF9XSURUSCwgU1REX0hFSUdIVCwgMCwgMCwgMCwgMCw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7R0RLX0lOVEVSUF9O RUFSRVNULCAwKTs8YnI+Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ2RrX2RyYXdfcGl4YnVmKHdp ZGdldC0mZ3Q7d2luZG93LCB3aWRnZXQtJmd0O3N0eWxlLSZndDtiZ19nY1tHVEtfU1RBVEVfTk9S TUFMXSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyBzX2hvbWVNZW51 UGl4LCAwLCAwLCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyBTVERfV0lEVEgsIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7IFNU RF9IRUlHSFQsPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgR0RLX1JH Ql9ESVRIRVJfTk9STUFMLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAwLCAwKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJldHVybiBGQUxTRTs8YnI+fTxicj48YnI+ PGJyPmludCBtYWluKGludCBhcmdjLCBjaGFyICogYXJndltdKTxicj57PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyBHdGtXaWRnZXQgKiBtYWluV25kJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtEcmF3YWJsZSAqJm5ic3A7 Jm5ic3A7Jm5ic3A7IHBpeE1hcCZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZu YnNwOyZuYnNwOyBHdGtXaWRnZXQgKiBpbWcmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7 Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsg R3RrV2lkZ2V0ICogYm94Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgPSBOVUxMOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgR3RrV2lkZ2V0ICog YnV0dG9uJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZu YnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogdmFkaiZuYnNwOyZuYnNwOyZuYnNwOyA9 IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogaGFkaiZuYnNwOyZu YnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7ICogbXNrJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAgKiBob21lTWVudSZu YnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19p bml0KCZhbXA7YXJnYywgJmFtcDthcmd2KTs8YnI+PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBtYWlu V25kID0gZ3RrX3dpbmRvd19uZXcoR1RLX1dJTkRPV19UT1BMRVZFTCk7PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19X SU5ET1cobWFpblduZCksICZxdW90O3Rlc3QgZHJhdy4uLlxuJnF1b3Q7KTsmbmJzcDsmbmJzcDsm bmJzcDsgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19z aWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAmcXVvdDtkZXN0cm95JnF1b3Q7LCBn dGtfbWFpbl9xdWl0LCBOVUxMKTsKPGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgaW1nID0gZ3Rr X2ltYWdlX25ldygpOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2NvbnRhaW5lcl9hZGQoR1RL X0NPTlRBSU5FUihtYWluV25kKSwgaW1nKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19zaWdu YWxfY29ubmVjdChHVEtfT0JKRUNUKGltZyksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyAmcXVvdDtleHBvc2UtZXZlbnQmcXVvdDssPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7IEdUS19TSUdO QUxfRlVOQyhvbl9leHBvc2UpLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsgTlVMTCk7PGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2Nv bnRhaW5lcl9zZXRfYm9yZGVyX3dpZHRoKEdUS19DT05UQUlORVIobWFpblduZCksIDUpOzxicj48 YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aWRnZXRfc2hvd19hbGwobWFpblduZCk7PGJyPjxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgaG9tZU1lbnUgPSBnZGtfcGl4bWFwX2NyZWF0ZV9mcm9tX3hw bShtYWluV25kLSZndDt3aW5kb3csPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsgJmFtcDtt c2ssCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZhbXA7bWFpblduZC0mZ3Q7c3R5bGUt Jmd0O2JnW0dUS19TVEFURV9OT1JNQUxdLDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZx dW90O2Y6L2hvbWVtZW51LmJtcCZxdW90Oyk7IC8qIGFscGhhIGNoYW5uZWwgYml0bWFwKi88YnI+ Jm5ic3A7Jm5ic3A7Jm5ic3A7IHNfaG9tZU1lbnVQaXggPTxicj4KJm5ic3A7Jm5ic3A7Jm5ic3A7 IGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCw8YnI+Jm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtob21lTWVudSwgPGJyPiZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0 ZW0oKSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDswLCAw LCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtT VERfV0lEVEgsCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw O1NURF9IRUlHSFQpOzxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHBpeE1hcCA9IGdka19waXht YXBfY3JlYXRlX2Zyb21feHBtKG1haW5XbmQtJmd0O3dpbmRvdywgPGJyPiZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmYW1wO21zaywgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmYW1wO21haW5XbmQtJmd0O3N0 eWxlLSZndDtiZ1tHVEtfU1RBVEVfTk9STUFMXSwKPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmcXVv dDtmOi9TdW5zZXQuYm1wJnF1b3Q7KTsgLyogbm8gYWxwaGEgY2hhbm5lbCBiaXRtYXAqLzxicj4m bmJzcDsmbmJzcDsmbmJzcDsgc19iYXNlUGl4ID08YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGdka19w aXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19iYXNlUGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO3BpeE1hcCwgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7MCwgMCwgMCwgMCwgPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7U1REX1dJRFRILDxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO1NURF9IRUlHSFQp Ozxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19tYWluKCk7PGJyPjxicj4mbmJzcDsmbmJz cDsmbmJzcDsgcmV0dXJuIDA7PGJyPn08YnI+PGJyPjxkaXY+PHNwYW4gY2xhc3M9ImdtYWlsX3F1 b3RlIj4KMjAwNi82LzE5LCBEYXZpZCBOZehhcyAoWWV0aSkgJmx0OzxhIGhyZWY9Im1haWx0bzp5 ZXRpQHBoeXNpY3MubXVuaS5jeiI+eWV0aUBwaHlzaWNzLm11bmkuY3o8L2E+Jmd0Ozo8L3NwYW4+ PGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0iYm9yZGVyLWxlZnQ6IDFweCBz b2xpZCByZ2IoMjA0LCAyMDQsIDIwNCk7IG1hcmdpbjogMHB0IDBwdCAwcHQgMC44ZXg7IHBhZGRp bmctbGVmdDogMWV4OyI+Ck9uIE1vbiwgSnVuIDE5LCAyMDA2IGF0IDExOjM1OjA5QU0gKzAyMDAs IGhtIHdyb3RlOjxicj4mZ3Q7PGJyPiZndDsmbmJzcDsmbmJzcDsgSWB2ZSBnb3QgYSBwcm9ibGVt LiBJYHZlIGdvdCB0d28gc2VwYXJhdGUgaW1hZ2VzLiBPbmUgaXMgYmFja2dyb3VuZCBmb3ImbmJz cDsmbmJzcDt0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRyYW5zcGFyZW50 LiBUaGVyZSBpcyBhbHNvIHRhYmxlLiBRdWVzdGlvbiBpcyA6IGhvdyB0byBkcmF3IGluIG9uZSBv ZiB0aGUgdGFibGVgcyBjZWxscyB0aGUgYmFja2dyYW91bmQsIGFuZCBvbiB0aGlzIGJhY2tncm91 bmQgKCBhcyBhIHNlY29uZCBsYXllciApIHNlY29uZCBpbWFnZSAodHJhbnNwYXJlbnQpID8mbmJz cDsmbmJzcDtJIGtub3cgKCBvZiBjb3Vyc2UgKSBob3cgdG8gY3JlYXRlIGltYWdlcywgdGFibGVz Lgo8YnI+PGJyPkVpdGhlciB1c2UgZ2RrX2RyYXdfcGl4YnVmKCkgaWYgdGhlIGNvcnJlY3Qgb3Jk ZXIgKGZpcnN0PGJyPmJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudDxicj5oYW5kbGVyLCBvciB1c2UgZ2RrX3BpeGJ1Zl9jb21wb3NpdGUoKSBhbmQg ZHJhdyB0aGUgZmluYWw8YnI+aW1hZ2UuPGJyPjxicj5ZZXRpPGJyPjxicj48YnI+LS08YnI+CkFu b255bXMgZWF0IHRoZWlyIGJvb2dlcnMuPGJyPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fPGJyPmd0ay1saXN0IG1haWxpbmcgbGlzdDxicj48YSBocmVmPSJt YWlsdG86Z3RrLWxpc3RAZ25vbWUub3JnIj5ndGstbGlzdEBnbm9tZS5vcmc8L2E+PGJyPjxhIGhy ZWY9Imh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2d0ay1saXN0Ij4KaHR0 cDovL21haWwuZ25vbWUub3JnL21haWxtYW4vbGlzdGluZm8vZ3RrLWxpc3Q8L2E+PGJyPjwvYmxv Y2txdW90ZT48L2Rpdj48YnI+Cg== ------=_Part_47883_15491290.1151292211820-- From cgallucci@inwind.it Mon Jun 26 07:58:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EFE933B0280 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15191-10 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id CEFBB3B0199 for ; Mon, 26 Jun 2006 07:58:24 -0400 (EDT) Received: from localhost (172.16.1.206) by smtp6.libero.it (7.0.027-DD01) id 44992E6400679860 for gtk-list@gnome.org; Mon, 26 Jun 2006 13:58:23 +0200 Received: from smtp1.libero.it ([172.16.1.224]) by localhost (asav20.libero.it [193.70.193.7]) (amavisd-new, port 10024) with ESMTP id 21475-01 for ; Mon, 26 Jun 2006 13:58:23 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp1.libero.it (Postfix) with ESMTP id A5BADA8C53 for ; Mon, 26 Jun 2006 13:58:22 +0200 (MEST) From: "carmelo gallucci" To: Subject: CYGWIN and GTK Date: Mon, 26 Jun 2006 14:02:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.614 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -0.614 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 11:58:26 -0000 I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My application also use SDL and i want to enable SDL hacking to encapsulate it on a gtk window. My gtk application run pefectly. I can show widget and use it. My problem is that i cannot get this code to work (it work perfectly under linux): sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget ::gobj()->window)); I cannot get WINDOWID. When i use the macro GDK_WINDOW_XWINDOW i get the following error: (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): Gdk-WARNING **: /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk drawable-x11.c:971 drawable is not a pixmap or window What's the problem? Anyone know where the problem is? Thanks. Carmelo Gallucci From tml@iki.fi Mon Jun 26 10:19:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E8AB73B03F0 for ; Mon, 26 Jun 2006 10:19:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23891-06 for ; Mon, 26 Jun 2006 10:19:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 4B9203B0369 for ; Mon, 26 Jun 2006 10:19:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 411DF151341; Mon, 26 Jun 2006 17:19:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> Date: Mon, 26 Jun 2006 17:18:57 +0300 To: "carmelo gallucci" Subject: Re: CYGWIN and GTK In-Reply-To: References: X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.337 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.337 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:19:57 -0000 carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From marko.ivancic@ultra.si Mon Jun 26 10:48:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F1643B021C for ; Mon, 26 Jun 2006 10:47:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25463-10 for ; Mon, 26 Jun 2006 10:47:56 -0400 (EDT) Received: from deliver-2.mx.triera.net (deliver-2.mx.triera.net [213.161.0.32]) by menubar.gnome.org (Postfix) with ESMTP id D503D3B0185 for ; Mon, 26 Jun 2006 10:47:55 -0400 (EDT) Received: from localhost (in-3.mx.triera.net [213.161.0.27]) by deliver-2.mx.triera.net (Postfix) with ESMTP id 384F2A7 for ; Mon, 26 Jun 2006 16:47:46 +0200 (CEST) Received: from smtp.triera.net (smtp.triera.net [213.161.0.30]) by in-3.mx.triera.net (Postfix) with SMTP id 96AFF1BC02F for ; Mon, 26 Jun 2006 16:47:49 +0200 (CEST) Received: from [172.18.1.20] (unknown [213.161.20.162]) by smtp.triera.net (Postfix) with ESMTP id 439601A18AA for ; Mon, 26 Jun 2006 16:47:50 +0200 (CEST) Message-ID: <449FF39D.6080201@ultra.si> Date: Mon, 26 Jun 2006 16:47:57 +0200 From: Marko Ivancic User-Agent: Thunderbird 1.5.0.4 (X11/20060619) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: save copy of gtktextbuffer Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Triera AV Service X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.108 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, TW_GT=0.077] X-Spam-Score: -0.108 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:48:00 -0000 Hi. Is there any way to save a GtkTextBuffer (I mean the context of this buffer including pixbufs and other embedet widgets) into another GtkTextBuffer instance ?? Tnx, By Marko I. From linuxhippy@gmail.com Mon Jun 26 10:53:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 296143B0135 for ; Mon, 26 Jun 2006 10:53:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25937-02 for ; Mon, 26 Jun 2006 10:53:31 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id EC5DF3B0185 for ; Mon, 26 Jun 2006 10:53:30 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so731232hue for ; Mon, 26 Jun 2006 07:53:30 -0700 (PDT) Received: by 10.78.117.10 with SMTP id p10mr2151522huc; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Message-ID: <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> Date: Mon, 26 Jun 2006 16:53:29 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.151 tagged_above=-999 required=2 tests=[AWL=-0.386, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.151 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:53:32 -0000 I played a bit and found something which could be considered as "slow": Open the configuration dialog of gimp and move another window on top of it. This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you can still see a ~4mm repaint lag. I wonder wether this could also be caused because of inefficient double buffering ... time will show. lg Clemens 2006/6/23, Clemens Eisserer : > First of all thanks a lot for doing that much work porting GTK to windows. > I can't count how many apps I've used myself on windows-pcs which were > able to run because of your work. > > > If one would ask specific question like "I draw 100000 line segments > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > might get better help. > > I installed gimp on some win-xp computers in the company I work for > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > are very much the issues I have on linux but more "visible". Its the > UI, menus, window resizing, layout changes or repaint-events sent to > the window because its content was invalidated. > I can't say wether its really slow or just feels so, maybe the graphic > card driver had an influence (nvidia gf4 mx4000) or some other > circumstances were not optimal. > I simply never did care that much simply because I don't use/like this planform. > > Its just hard to know whats going wrong, especially if someone is no > gtk insider. > > lg Clemens > From torriem@chem.byu.edu Mon Jun 26 11:34:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 728723B03BC for ; Mon, 26 Jun 2006 11:34:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28776-08 for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 75B363B046C for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5QFYoKJ024264; Mon, 26 Jun 2006 09:34:50 -0600 Subject: Re: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D?= =?UTF-8?Q?=EF=BC=9A?= Re: Using GTK+ with C++ From: Michael L Torrie To: yeajchao In-Reply-To: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> References: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Content-Type: text/plain; charset=UTF-8 Date: Mon, 26 Jun 2006 09:34:49 -0600 Message-Id: <1151336089.25316.0.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Mon, 26 Jun 2006 09:34:50 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.615 tagged_above=-999 required=2 tests=[AWL=-0.893, BAYES_00=-2.599, SUBJECT_ENCODED_TWICE=1.723, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.615 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:34:52 -0000 On Mon, 2006-06-26 at 10:36 +0800, yeajchao wrote: > hello > when i using gtk+ with c++,how can i compile my application? The same way you do it with C, except you have to use g++ instead of gcc. But the command line arguments for doing the build and using pkg- config to get the cflags and ldflags is the same. Michael > > --- Chris Vine 鍐欓亾: > > > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > > Hi all, > > > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > > through C++? Is anyone doing this? Are there any 'tricks' I should > > > know about beyond having to extern "C" the includes of gtk header > > > files? > > > > They are already declared extern "C" if compiled for a C++ program. There is > > > > nothing you need to know - just use them. > > > > Chris > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > ___________________________________________________________ > 闆呰檸鍏嶈垂閭-3.5G瀹归噺锛20M闄勪欢 > http://cn.mail.yahoo.com/ > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Mon Jun 26 11:41:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDD083B017D for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29419-03 for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 7AD633B0387 for ; Mon, 26 Jun 2006 11:41:10 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so888205uge for ; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.165.16 with SMTP id n16mr2166312hue; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.124.2 with HTTP; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Message-ID: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> Date: Mon, 26 Jun 2006 16:41:09 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:41:12 -0000 On 6/25/06, Clemens Eisserer wrote: > When I maximize the window and resize the panes I get very slow > resizing, however when setting all involved widgets unbuffered > resizing is fast (but painting is done with artifacts). I think the artifacts are because, with double-buffering turned off, expose events do not get an automatic clear-to-background. There's a note about this in the entry for gtk_widget_set_double_buffered(): http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 I'm not a gtk-internals expert and I can't really see a good solution to this. The possibilities I can see are: 1) Provide an option to disable double buffering for all widgets You could hack into gdk_window_begin_paint_region() and add a new code path: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 something like if (global_no_double_buffer) clear expose area to background might be enough. Repainting would be fast but flickery and incredibly ugly. People with older machines and nvidia hardware acceleration would see an FPS improvement, but their eyes would be watering. 2) Use nvidia's pixmap placement hint I think this would require a new driver from nvidia and changes to the X server to make the option accessible. Not going to happen any time soon. 3) Persuade nvidia to change their pixmap caching policy It seems to me that their policy is broken. If an app creates a pixmap, you'd expect it to be used soon. Making new pixmaps default to slow memory is rather odd. But I guess they've done a lot of profiling (of non-GTK apps, heh) and like it the way it is. 4) Have a single expose pixmap You could allocate a single large expose pixmap (maybe as big as the enclosing window?) and reuse that, with clipping, rather than creating and destroying a new pixmap each time. gdk_window_begin_paint_region() actually maintains a stack of pending pixmaps, though I've no idea how often the stack feature is used. Perhaps you could get away with having a single permanent expose pixmap, and dynamically create and destroy sub-pixmaps if the stack starts working. If the stack is used infrequently maybe this would work OK. This would chew up graphics card memory :-( and main memory for software drivers :-( and small-footprint people would hate it. My machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if each screen is 50% covered in gtk2 apps, this change will make my X server need an extra 50MB of RAM. Ouch! Maybe there could be a timeout to free the backing pixmap if it's not used for a couple of seconds. John From linuxhippy@gmail.com Mon Jun 26 14:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 889943B02E1 for ; Mon, 26 Jun 2006 14:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06142-05 for ; Mon, 26 Jun 2006 14:14:16 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by menubar.gnome.org (Postfix) with ESMTP id 036D73B03CC for ; Mon, 26 Jun 2006 14:14:15 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so963030uge for ; Mon, 26 Jun 2006 11:14:15 -0700 (PDT) Received: by 10.78.140.17 with SMTP id n17mr2247538hud; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Message-ID: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Date: Mon, 26 Jun 2006 20:14:14 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.349 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.349 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 18:14:17 -0000 Hello John, Thanks a lot for beeing that patient and constructive, its really motivating! I know I am not the dream-guy to start working on this but hey what can GTK loose ;) > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a Yea I read the note yesterday which made it clear for me too. > 1.) Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. Yes I saw this large amount of flickering, I think this would be more or less a dirty hack when looking at the results. Its really ugly ;) I'll do some tests to see which influence composition managers have, they do their own sort of double buffering, maybe we could dave all these efforts under these circumstances at all? > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. All these concepts act on the assumption that what GTK currently does is more or less a good thing. However best-case for GTKs buffering scenario are onboard shared-mem cards, which do not require (much) bus-interactivity ... but even allocating several megs each repaint in system memory is expensive and more or less a do-not. What nvidia does is very common, on windows its defacto-standard. Also if they would change they semantics GTK would be hardware accalerated but a lot of time would be spent inside the GPU waiting for the requested piece of VRAM. > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. To be honest I like this approach most, especially because I've seen this technique in several other toolkits (Swing, LwVCL) working very well. Swing (a java toolkit) has even support for smaller backbuffers than the rendered area is, they simply repaint it as often to the backbuffer with different clipping/location till they've filled the whole screen. This could help making window resizing smooth (more painting should be in >90% be much faster than allocating a new pixmap each resize), after resizing a new buffer could be created with window size. Another advantage java can take from this design (starting with mustang) is that if the buffer is as large as the window, they actually just paint the pixmap if the window receives expose events. > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. Well but to run that many applications you also should have a descent powered system wheer grahic cards with 64+m are quite common ;) I too see a problem here, for java its maybe not that too dramatical, if the runtime itself is consuming 15mb another 5mb for the backbuffer don't hurt that much but for GTK and tons of long running apps realized with it the situation is a lot different. I am not enough of an expert to know a exact answer to this, I'll do some reseach at QT and other toolkits that provide double buffering how they deal with this issue. Maybe some kind of ergonomics could do the job, deciding when its worth to keep a buffer for how long and when to destroy it (would we need a timer thread for pixmap freeing *outch*?). As I said I simply don't know an answer maybe some experiments will show ... I've the whole summer for coding on this ^^ lg Clemens I browsed a bit through GTKs source code (only gtk, not gdk till now) and I've to admit that I never coded GTK apps before except some small examples and one java-gome application. As far as I understood from the gtk-tutorial there are some widgets which are windows themself ... which is a bit confusing for me. I tried to find the entrance point where X tells gtk windows to expose, does this happen once for the main "window" and gtk repaints the widgets in an hirarchial order or do the widgets which are windows themself get seperate expose events delivered? How (and where) does the buffering take place? How does GTK deal with widgets that don't want to be drawn doublebuffered? I know tons of awkward newbie quetsions, I guess just pointers to the source would be enough ;) From yeti@physics.muni.cz Mon Jun 26 15:10:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DD37E3B0167 for ; Mon, 26 Jun 2006 15:10:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08743-04 for ; Mon, 26 Jun 2006 15:09:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id E6C703B012B for ; Mon, 26 Jun 2006 15:09:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5QJ9sfx029554 for ; Mon, 26 Jun 2006 21:09:55 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1683523D16; Mon, 26 Jun 2006 21:09:54 +0200 (CEST) Date: Mon, 26 Jun 2006 21:09:57 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Scrolling performance Message-ID: <20060626190957.GR2296@potato.chello.upc.cz> References: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:10:03 -0000 On Mon, Jun 26, 2006 at 08:14:14PM +0200, Clemens Eisserer wrote: > As far as I understood from the gtk-tutorial there are some widgets > which are windows themself ... which is a bit confusing for me. > I tried to find the entrance point where X tells gtk windows to > expose, X tells Gtk+ nothing, Gtk+ is built on top of Gdk and Gdk receives the X events. Start with gdk_event_dispatch() in gdk/x11/gdkevents-x11.c. It is also instructive to compile Gtk+ with --enable-debug=yes and then do for instance GDK_DEBUG=events ./someprogram > does this happen once for the main "window" and gtk repaints > the widgets in an hirarchial order or do the widgets which are windows > themself get seperate expose events delivered? Widgets with their own windows receive their own expose events. Also have a look at http://primates.ximian.com/~federico/misc/gtk-drawing-model/ which explains the basic concepts. Yeti -- Anonyms eat their boogers. From cgallucci@inwind.it Mon Jun 26 15:56:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D635B3B0201 for ; Mon, 26 Jun 2006 15:56:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11469-07 for ; Mon, 26 Jun 2006 15:56:01 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id E0C5D3B007A for ; Mon, 26 Jun 2006 15:56:00 -0400 (EDT) Received: from localhost (172.16.1.83) by smtp6.libero.it (7.0.027-DD01) id 44992E640071E70D; Mon, 26 Jun 2006 21:55:55 +0200 Received: from smtp0.libero.it ([172.16.1.204]) by localhost (asav4.libero.it [193.70.192.153]) (amavisd-new, port 10024) with ESMTP id 20782-04-3; Mon, 26 Jun 2006 21:55:54 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp0.libero.it (Postfix) with ESMTP id 6BA223338A7; Mon, 26 Jun 2006 21:55:53 +0200 (MEST) From: "carmelo gallucci" To: "'Tor Lillqvist'" Subject: RE: CYGWIN and GTK Date: Mon, 26 Jun 2006 21:59:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <17567.60625.324000.832379@gargle.gargle.HOWL> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.397 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.397 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:56:07 -0000 Hi Tor. Maybe i'm not really shure .-). I'm trying to explain better. I have a complete application built on Linux fedora core (GTKmm, SDL, ffmpeg, etc,etc). I'm thinking the fasted way to have the same application running on a window OS is to build it using CYGwin(i'm really new of it). This only not to spend more time to develop new thing. I compile and run my app without any problem (i intend Gtk ffmpeg). When i try tu use SDL and particylary GDK(X11) function i have problem i wrote. I use SDL only to display YUV format on the video. What can i use instead of it? Thanks. Carmelo -----Original Message----- From: Tor Lillqvist [mailto:tml@iki.fi]=20 Sent: luned=EC 26 giugno 2006 16.19 To: carmelo gallucci Cc: gtk-list@gnome.org Subject: Re: CYGWIN and GTK carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From lalitk.pune@gmail.com Mon Jun 26 23:15:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6EF93B0171 for ; Mon, 26 Jun 2006 23:15:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32665-09 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 220273B00F2 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so2013774nzh for ; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.64.148.4 with SMTP id v4mr3198669qbd; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.65.23.15 with HTTP; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Message-ID: Date: Tue, 27 Jun 2006 08:45:55 +0530 From: "Lalit Kumar" To: gtk-list@gnome.org Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.162 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 03:15:58 -0000 Hi All, I am facing problem with gdk_font_load method in my application. It returns NULL. I am using gtk-2.0 on Redhat Enterprise WS 4. Can anybody help me to resolve this proble? Help says that gdk_font_load is depricated. What is the name of new equivalent method? Thanx in advance, -- Bye, Lalit Kumar Pune On 6/26/06, gtk-list-request@gnome.org wrote: > Send gtk-list mailing list submissions to > gtk-list@gnome.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.gnome.org/mailman/listinfo/gtk-list > or, via email, send a message with subject or body 'help' to > gtk-list-request@gnome.org > > You can reach the person managing the list at > gtk-list-owner@gnome.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gtk-list digest..." > > > Today's Topics: > > 1. Re: Drawing images ( with transparency ) one on another (lao wb) > 2. CYGWIN and GTK (carmelo gallucci) > 3. Re: CYGWIN and GTK (Tor Lillqvist) > 4. save copy of gtktextbuffer (Marko Ivancic) > 5. Re: GTK performance on Windows (Clemens Eisserer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Jun 2006 11:23:31 +0800 > From: "lao wb" > Subject: Re: Drawing images ( with transparency ) one on another > To: " David Ne?as (Yeti) " > Cc: gtk-list@gnome.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-2" > > Hi, > I need do this too but have not succeeded yet. I try to use > gdk_draw_pixbuf and gdk_pixbuf_composite in expose event handler, but it > still doesn't work. I really need help to make my test code work. > > Laowb > > #include > #define STD_WIDTH 680 > #define STD_HEIGHT 480 > > static GdkPixbuf * s_basePix; > static GdkPixbuf * s_homeMenuPix; > > gboolean on_expose(GtkWidget * widget, > GdkEventExpose * ps, > gpointer data) > { > gdk_pixbuf_composite(s_homeMenuPix, > s_basePix, 0, 0, STD_WIDTH, STD_HEIGHT, 0, 0, 0, 0, > GDK_INTERP_NEAREST, 0); > > gdk_draw_pixbuf(widget->window, widget->style->bg_gc[GTK_STATE_NORMAL], > s_homeMenuPix, 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT, > GDK_RGB_DITHER_NORMAL, > 0, 0); > return FALSE; > } > > > int main(int argc, char * argv[]) > { > GtkWidget * mainWnd = NULL; > GdkDrawable * pixMap = NULL; > GtkWidget * img = NULL; > GtkWidget * box = NULL; > GtkWidget * button = NULL; > GtkAdjustment * vadj = NULL; > GtkAdjustment * hadj = NULL; > GdkBitmap * msk = NULL; > GdkBitmap * homeMenu = NULL; > > gtk_init(&argc, &argv); > > mainWnd = gtk_window_new(GTK_WINDOW_TOPLEVEL); > > gtk_window_set_title(GTK_WINDOW(mainWnd), "test draw...\n"); > > gtk_signal_connect(GTK_OBJECT(mainWnd), "destroy", gtk_main_quit, NULL); > > img = gtk_image_new(); > gtk_container_add(GTK_CONTAINER(mainWnd), img); > gtk_signal_connect(GTK_OBJECT(img), > "expose-event", > GTK_SIGNAL_FUNC(on_expose), > NULL); > > gtk_container_set_border_width(GTK_CONTAINER(mainWnd), 5); > > gtk_widget_show_all(mainWnd); > > homeMenu = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/homemenu.bmp"); /* alpha > channel bitmap*/ > s_homeMenuPix = > gdk_pixbuf_get_from_drawable(s_homeMenuPix, > homeMenu, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > pixMap = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/Sunset.bmp"); /* no alpha > channel bitmap*/ > s_basePix = > gdk_pixbuf_get_from_drawable(s_basePix, > pixMap, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > gtk_main(); > > return 0; > } > > 2006/6/19, David Ne?as (Yeti) : > > > > On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > > > > > I`ve got a problem. I`ve got two separate images. One is background > > for the secondone. Secondone is partially transparent. There is also table. > > Question is : how to draw in one of the table`s cells the backgraound, and > > on this background ( as a second layer ) second image (transparent) ? I > > know ( of course ) how to create images, tables. > > > > Either use gdk_draw_pixbuf() if the correct order (first > > base, then the one with alpha channel) in expose event > > handler, or use gdk_pixbuf_composite() and draw the final > > image. > > > > Yeti > > > > > > -- > > Anonyms eat their boogers. > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: /archives/gtk-list/attachments/20060626/bc9fc384/attachment.htm > > ------------------------------ > > Message: 2 > Date: Mon, 26 Jun 2006 14:02:02 +0200 > From: "carmelo gallucci" > Subject: CYGWIN and GTK > To: > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My > application also use SDL and i want to enable SDL hacking to encapsulate > it on a gtk window. My gtk application run pefectly. I can show widget > and use it. My problem is that i cannot get this code to work (it work > perfectly under linux): > > sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget > ::gobj()->window)); > > I cannot get WINDOWID. > > When i use the macro GDK_WINDOW_XWINDOW i get the following error: > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): Gdk-WARNING **: > /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk > drawable-x11.c:971 drawable is not a pixmap or window > > What's the problem? Anyone know where the problem is? > > Thanks. > > Carmelo Gallucci > > > > ------------------------------ > > Message: 3 > Date: Mon, 26 Jun 2006 17:18:57 +0300 > From: Tor Lillqvist > Subject: Re: CYGWIN and GTK > To: "carmelo gallucci" > Cc: gtk-list@gnome.org > Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> > Content-Type: text/plain; charset=us-ascii > > carmelo gallucci writes: > > What's the problem? Anyone know where the problem is? > > Well, firstly you are using an unmaintained version of GTK+ (2.6.x). > > Secondly, are you sure what you are doing makes sense? You are using a > GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the > SDL you are using also for X11 on Cygwin? Or are you trying to use a > SDL that would use native Win32 (GDI) together with a GTK+ built for > X11? Surely that can't work. > > --tml > > > > ------------------------------ > > Message: 4 > Date: Mon, 26 Jun 2006 16:47:57 +0200 > From: Marko Ivancic > Subject: save copy of gtktextbuffer > To: gtk-list@gnome.org > Message-ID: <449FF39D.6080201@ultra.si> > Content-Type: text/plain; charset=ISO-8859-2; format=flowed > > Hi. > > Is there any way to save a GtkTextBuffer (I mean the context of this > buffer including pixbufs and other embedet widgets) into another > GtkTextBuffer instance ?? > > Tnx, > By > Marko I. > > > > ------------------------------ > > Message: 5 > Date: Mon, 26 Jun 2006 16:53:29 +0200 > From: "Clemens Eisserer" > Subject: Re: GTK performance on Windows > To: gtk-list@gnome.org > Message-ID: > <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I played a bit and found something which could be considered as "slow": > > Open the configuration dialog of gimp and move another window on top of it. > This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you > can still see a ~4mm repaint lag. > > I wonder wether this could also be caused because of inefficient > double buffering ... time will show. > > lg Clemens > > 2006/6/23, Clemens Eisserer : > > First of all thanks a lot for doing that much work porting GTK to windows. > > I can't count how many apps I've used myself on windows-pcs which were > > able to run because of your work. > > > > > If one would ask specific question like "I draw 100000 line segments > > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > > might get better help. > > > > I installed gimp on some win-xp computers in the company I work for > > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > > are very much the issues I have on linux but more "visible". Its the > > UI, menus, window resizing, layout changes or repaint-events sent to > > the window because its content was invalidated. > > I can't say wether its really slow or just feels so, maybe the graphic > > card driver had an influence (nvidia gf4 mx4000) or some other > > circumstances were not optimal. > > I simply never did care that much simply because I don't use/like this planform. > > > > Its just hard to know whats going wrong, especially if someone is no > > gtk insider. > > > > lg Clemens > > > > > ------------------------------ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > End of gtk-list Digest, Vol 26, Issue 37 > **************************************** > From paul@linuxaudiosystems.com Tue Jun 27 09:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 168BD3B00AD for ; Tue, 27 Jun 2006 09:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31194-03 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id 1FD8D3B0084 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1I00ERKTHNOOQ4@vms044.mailsrvcs.net> for gtk-list@gnome.org; Tue, 27 Jun 2006 08:29:48 -0500 (CDT) Date: Tue, 27 Jun 2006 09:30:19 -0400 From: Paul Davis Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-reply-to: To: Lalit Kumar Message-id: <1151415019.28727.41.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.476 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 13:30:21 -0000 On Tue, 2006-06-27 at 08:45 +0530, Lalit Kumar wrote: > Hi All, > > I am facing problem with gdk_font_load method in my application. It > returns NULL. > > I am using gtk-2.0 on Redhat Enterprise WS 4. > > Can anybody help me to resolve this proble? > Help says that gdk_font_load is depricated. What is the name of new > equivalent method? a) please do NOT quote an entire digest message just so you can ask a new question. b) please change the subject line when you ask a new question c) there really is no equivalent method. what are you trying to do? explicit font loading is rarely necessary now that GTK uses pango (and has done for at least 2 years. From linuxhippy@gmail.com Wed Jun 28 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 121493B037B for ; Wed, 28 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32231-05 for ; Wed, 28 Jun 2006 16:20:47 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id 52F463B0515 for ; Wed, 28 Jun 2006 16:19:03 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so1405343hue for ; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr717001hue; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Message-ID: <194f62550606281318k48b71f34kd98baccbcef314bb@mail.gmail.com> Date: Wed, 28 Jun 2006 22:18:54 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.111 tagged_above=-999 required=2 tests=[AWL=-0.346, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.111 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 20:21:19 -0000 Hi again, Thanks a lot for all the hints about gdk, I know found the source-parts which I looked for and thanks to the paper I even understand what they are doing :-) I thought about some techniques about implementing buffer release heuristics, however they destroy the benefit to smoe degree and have some overhead too. However I realized that the memory-consumption scenario is not _such_ a big problem. If you only hold the backbuffer only as long as the window is visible and release it the whole situation is much better because more than 2-3 open full-screen windows are unlikely and 16mb VRAM are ... well ... much more than default. I guess parsing an enviroment-variable or such to enable/disable the caching behaviour wouldn't be a bad idea? lg Clemens 2006/6/26, John Cupitt : > On 6/25/06, Clemens Eisserer wrote: > > When I maximize the window and resize the panes I get very slow > > resizing, however when setting all involved widgets unbuffered > > resizing is fast (but painting is done with artifacts). > > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a > note about this in the entry for gtk_widget_set_double_buffered(): > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > I'm not a gtk-internals expert and I can't really see a good solution > to this. The possibilities I can see are: > > 1) Provide an option to disable double buffering for all widgets > > You could hack into gdk_window_begin_paint_region() and add a new code path: > > http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 > > something like > > if (global_no_double_buffer) > clear expose area to background > > might be enough. > > Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. > > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. > > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. > > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. > > John > From felipe.weckx@gmail.com Wed Jun 28 18:40:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 747D83B00EC for ; Wed, 28 Jun 2006 18:40:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05443-08 for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 4090F3B007D for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id s15so144297wxc for ; Wed, 28 Jun 2006 15:40:06 -0700 (PDT) Received: by 10.70.92.2 with SMTP id p2mr2110412wxb; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Received: from c9007af8.virtua.com.br ( [201.52.122.248]) by mx.gmail.com with ESMTP id i17sm7634039wxd.2006.06.28.15.40.04; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Subject: Set pane position on application startup From: Felipe Weckx To: gtk-list@gnome.org Content-Type: text/plain Date: Wed, 28 Jun 2006 19:40:00 -0300 Message-Id: <1151534400.6517.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.4 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -2.4 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 22:40:29 -0000 Hi everyone, I've an application that saves the pane gutter position when it finishes, so when it is started it can set the position where it was previously. However, when I start the application the gutter doesn't go where I want to... but, if I call the procedure after the app is running, it goes to the right place, I've tried running this function through g_idle_add on the main program, but it doesn't work either... any ideas? -- []'s Felipe Weckx From nc-gaertnma@netcologne.de Wed Jun 28 19:31:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9E3D53B00F3 for ; Wed, 28 Jun 2006 19:31:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07544-07 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from smtp3.netcologne.de (smtp3.netcologne.de [194.8.194.66]) by menubar.gnome.org (Postfix) with ESMTP id 9E74B3B01D5 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from limapholos.matom.wg (xdsl-81-173-182-178.netcologne.de [81.173.182.178]) by smtp3.netcologne.de (Postfix) with ESMTP id D822567384 for ; Thu, 29 Jun 2006 01:31:03 +0200 (CEST) Date: Thu, 29 Jun 2006 01:31:03 +0200 From: Mattias Gaertner To: gtk-list@gnome.org Subject: iconify and iconify Message-ID: <20060629013103.74081832@limapholos.matom.wg> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.928 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_WEB=1.456, TW_GT=0.077] X-Spam-Score: 0.928 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 23:31:08 -0000 Hi all, When the user iconifies a window and/or when the user switches to another desktop, the gtk sends the 'window-state-event' signal with GDK_WINDOW_STATE_ICONIFIED. How can I find out, which one happened? Mattias From Yandong.Yao@Sun.COM Thu Jun 29 02:53:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 169923B0071 for ; Thu, 29 Jun 2006 02:53:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23618-05 for ; Thu, 29 Jun 2006 02:53:47 -0400 (EDT) Received: from sineb-mail-1.sun.com (sineb-mail-1.sun.com [192.18.19.6]) by menubar.gnome.org (Postfix) with ESMTP id 741C93B0206 for ; Thu, 29 Jun 2006 02:53:46 -0400 (EDT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k5T6rh8l019095 for ; Thu, 29 Jun 2006 14:53:44 +0800 (SGT) Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J1M00A010EONK00@mail-apac.sun.com> (original mail from Yandong.Yao@Sun.COM) for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Received: from [129.158.148.217] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J1M002H60HIM4OO@mail-apac.sun.com> for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Date: Thu, 29 Jun 2006 14:55:08 +0800 From: "yandong.yao" Subject: does g_utf8_collate() need check whether its parameter is utf8 or not? Sender: Yandong.Yao@Sun.COM To: gtk-list@gnome.org Message-id: <44A3794C.7070207@sun.com> Organization: SMI MIME-version: 1.0 Content-type: text/plain; charset=GB2312 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.4 (X11/20060613) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.549 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.549 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Yandong.Yao@Sun.COM List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:53:51 -0000 Hi guys, If i ask in wrong alias, please forgive me and forward to correct alias, thank you. The document of g_utf8_collate() require its parameters should be utf-8 encoded, but it did not check this in function body, so g_utf8_normalize() may return NULL for non-utf8 string, thus strcoll() will crash. I have met such problem for several time on opensolaris. So we need check at somewhere, 3 candidate: 1) check parameter in strcoll(): but because different c lib has diff implementation, so i guess it is not a good place to avoid this problem. 2) check parameter in g_utf8_* function: check parameter in this level will sensible, but it will result in a few check statement in g_utf8_* functions. 3) check in caller of g_utf8_*, this is ok also, but need every developer to do this. i prefer 2), cause it will reduce lots of developer's work, and the cost is little also. any comments or suggestions are welcome, thank you in advance. regards, yandong From linuxhippy@gmail.com Thu Jun 29 13:48:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1CC2F3B010F for ; Thu, 29 Jun 2006 13:48:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31768-05 for ; Thu, 29 Jun 2006 13:48:51 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.196]) by menubar.gnome.org (Postfix) with ESMTP id C6A213B00D4 for ; Thu, 29 Jun 2006 13:48:50 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so144861hue for ; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.164.13 with SMTP id m13mr1091961hue; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Message-ID: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Date: Thu, 29 Jun 2006 19:48:49 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Newbie question about GTKs object model... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.908 tagged_above=-999 required=2 tests=[AWL=0.492, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -1.908 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:48:52 -0000 Sorry for such a stupid question ... shame on myself for asking it :-/ I looked arround GdkWindow.h/c bit and actually did not find the definition of the type "GdkWindow", instead I only found the definition of _GdkWindowObject which looks quite like I imagine GdkWindow could look like. So where/how does a GdkWindowObject become to an GdkWindow or do I understand some things completly wrong? btw. yes I did read some docs about Glib's object model ;) Thank you in advance, lg Clemens From RMain@gmx.de Thu Jun 29 13:56:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7050A3B00AE for ; Thu, 29 Jun 2006 13:56:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32350-01 for ; Thu, 29 Jun 2006 13:56:12 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id B6A873B027E for ; Thu, 29 Jun 2006 13:56:11 -0400 (EDT) Received: (qmail 2526 invoked by uid 0); 29 Jun 2006 17:56:10 -0000 Received: from 89.57.94.28 by www018.gmx.net with HTTP; Thu, 29 Jun 2006 19:56:10 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Thu, 29 Jun 2006 19:56:10 +0200 From: "Robert Main" Message-ID: <20060629175610.156930@gmx.net> MIME-Version: 1.0 Subject: Problem with compiling To: gtk-list@gnome.org X-Authenticated: #31472207 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.465 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.465 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:56:14 -0000 Hi, need to compile GTK+ 1.2 to use it with MPlayer. The problem is: I'm on windows, I need a makefile, but how/where is one? There is makefile.am|in, but cant use that. I also cant run configure, windows and so... friend said i should download this library and that and all that and maybe it would work, but thats so much for just this purpose! ... is there a simple and easy way? I know there are binaries in the latest GTK+, but I dont know if i can use that... the same problem is with glib, also cant compile because i cant run configure hope you can help me :-) -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f黵 Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From yeti@physics.muni.cz Thu Jun 29 14:26:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC7EE3B016C for ; Thu, 29 Jun 2006 14:26:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01572-02 for ; Thu, 29 Jun 2006 14:26:40 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 4E5DC3B00AE for ; Thu, 29 Jun 2006 14:26:39 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5TIQb1N025861 for ; Thu, 29 Jun 2006 20:26:38 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 50CC323D59; Thu, 29 Jun 2006 20:26:37 +0200 (CEST) Date: Thu, 29 Jun 2006 20:26:41 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Newbie question about GTKs object model... Message-ID: <20060629182641.GA2296@potato.chello.upc.cz> References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 18:26:45 -0000 On Thu, Jun 29, 2006 at 07:48:49PM +0200, Clemens Eisserer wrote: > Sorry for such a stupid question ... shame on myself for asking it :-/ > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow" You could easily find it using ctags: Run `ctags *' in gdk/ and then press ^] when you have cursor on GdkWindow -- assuming you use vim. > instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? GdkWindow is defined in gdktypes.h: typedef struct _GdkDrawable GdkWindow; and GdkWindowObject has GdkDrawable as a *parent*. The net result is that GdkWindowObject is a GdkWindow which is the same as GdkDrawable. Yeti -- Anonyms eat their boogers. From christianseberino@yahoo.com Thu Jun 29 15:04:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5EC873B00AE for ; Thu, 29 Jun 2006 15:04:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03543-07 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: from web37611.mail.mud.yahoo.com (web37611.mail.mud.yahoo.com [209.191.87.94]) by menubar.gnome.org (Postfix) with SMTP id 446233B0120 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: (qmail 96171 invoked by uid 60001); 29 Jun 2006 19:03:59 -0000 Message-ID: <20060629190359.96169.qmail@web37611.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37611.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:03:59 PDT Date: Thu, 29 Jun 2006 12:03:59 -0700 (PDT) From: Christian Seberino Subject: What does *gnome integration" mean for a GTK app? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1939649571-1151607839=:91636" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.273 tagged_above=-999 required=2 tests=[AWL=-1.288, BAYES_50=0.001, BE_BOSS=1.539, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: 2.273 X-Spam-Level: ** X-Spam-Flag: YES X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:04:01 -0000 --0-1939649571-1151607839=:91636 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME? and... What does "GNOME integration" buy you? Please give examples? Is there some extra work one must do to get this "integration" in their GTK app? (I'm wondering if wxGTK apps will work with GNOME) Chris --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME?

and...

What does "GNOME integration" buy you?  Please give examples?


Is there some extra work one must do to get this "integration"
in their GTK app?

(I'm wondering if wxGTK apps will work with GNOME)

Chris


Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636-- From christianseberino@yahoo.com Thu Jun 29 15:05:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B45013B0003 for ; Thu, 29 Jun 2006 15:05:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03609-10 for ; Thu, 29 Jun 2006 15:05:54 -0400 (EDT) Received: from web37610.mail.mud.yahoo.com (web37610.mail.mud.yahoo.com [209.191.87.93]) by menubar.gnome.org (Postfix) with SMTP id CEAD03B00A4 for ; Thu, 29 Jun 2006 15:05:53 -0400 (EDT) Received: (qmail 42338 invoked by uid 60001); 29 Jun 2006 19:05:53 -0000 Message-ID: <20060629190553.42336.qmail@web37610.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37610.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:05:53 PDT Date: Thu, 29 Jun 2006 12:05:53 -0700 (PDT) From: Christian Seberino Subject: Do wx apps lose any (GNOME) integration abilitlies of "pure" GTK apps? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2050439885-1151607953=:41127" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.742 tagged_above=-999 required=2 tests=[AWL=-0.907, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_MESSAGE=0.001] X-Spam-Score: 0.742 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:05:55 -0000 --0-2050439885-1151607953=:41127 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps? e.g. with GNOME and with other GTK apps? (I sent another email about what benefits there are to integration as I'm not sure.) I don't know if there any bad things about using wx with GTK under the hood. Chris --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps?
e.g. with GNOME and with other GTK apps?

(I sent another email about what benefits there are to integration
as I'm not sure.)

I don't know if there any bad things about using wx with GTK under the
hood.

Chris


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127-- From christianseberino@yahoo.com Thu Jun 29 15:09:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 777823B00AE for ; Thu, 29 Jun 2006 15:09:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03693-08 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: from web37603.mail.mud.yahoo.com (web37603.mail.mud.yahoo.com [209.191.87.86]) by menubar.gnome.org (Postfix) with SMTP id 9717A3B00A4 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: (qmail 26717 invoked by uid 60001); 29 Jun 2006 19:08:59 -0000 Message-ID: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37603.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:08:59 PDT Date: Thu, 29 Jun 2006 12:08:59 -0700 (PDT) From: Christian Seberino Subject: Any reason to worry about using wx? (but it uses GTK!?! :) To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1343824353-1151608139=:24277" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.122 tagged_above=-999 required=2 tests=[AWL=-2.190, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514] X-Spam-Score: 1.122 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:09:01 -0000 --0-1343824353-1151608139=:24277 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux. Can anyone see any problems //down the road// with using wx as far as losing benefits a pure GTK app would have? Thanks Chris --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux.

Can anyone see any problems //down the road// with using wx as far
as losing benefits a pure GTK app would have?

Thanks

Chris


Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277-- From einKI.ml@gmx.net Thu Jun 29 17:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A16FC3B0285 for ; Thu, 29 Jun 2006 17:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09269-06 for ; Thu, 29 Jun 2006 17:14:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 7577E3B018F for ; Thu, 29 Jun 2006 17:14:15 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:14:14 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp019) with SMTP; 29 Jun 2006 23:14:14 +0200 X-Authenticated: #31874521 Subject: Draw directly to the screen From: "einKI.ml" To: gtk-list Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:14:12 +0200 Message-Id: <1151615652.5113.18.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.456 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.456 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:14:17 -0000 Hi My goal is to draw a line directly to the screen using gdk. "To the screen" means that it should be visible for the user over any other window. I thin i have to use the root window to accomplish this int main( int argc,char *argv[] ) { gtk_init (&argc, &argv); GdkWindow* rw = gdk_get_default_root_window(); GdkGC* gc = gdk_gc_new(rw); gdk_draw_line(rw,gc,10,10,500,500); gdk_flush(); gtk_main (); return 0; } However i dont see anything. I only can see the line if i shut down the x-server. So I believe i only draw to the background even behind nautilus. This seems logically but I cant find any other method to draw directly to the screen. If anyone has done this before or know how to do it I appreciate any help by einKI From paul@linuxaudiosystems.com Thu Jun 29 17:22:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EBB533B007B for ; Thu, 29 Jun 2006 17:22:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09674-01 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id C875B3B0198 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1N00CZL4PFXGPC@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 29 Jun 2006 16:22:28 -0500 (CDT) Date: Thu, 29 Jun 2006 17:22:58 -0400 From: Paul Davis Subject: Re: Draw directly to the screen In-reply-to: <1151615652.5113.18.camel@localhost> To: einKI.ml@gmx.net Message-id: <1151616178.28727.116.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1151615652.5113.18.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.55 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599] X-Spam-Score: -2.55 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:22:34 -0000 On Thu, 2006-06-29 at 23:14 +0200, einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. i suggest you look for the little app called "gromit" for ideas. From king@eiffel.com Thu Jun 29 17:26:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC5C53B0273 for ; Thu, 29 Jun 2006 17:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09893-02 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from smtp.eiffel.com (smtp.eiffel.com [65.170.180.5]) by menubar.gnome.org (Postfix) with ESMTP id A79583B0198 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from ise171.ise ([10.0.10.171]) by smtp.eiffel.com with esmtp (Exim 4.01) id 1Fw42B-0004qX-00; Thu, 29 Jun 2006 14:26:47 -0700 Message-ID: <44A44597.9030902@eiffel.com> Date: Thu, 29 Jun 2006 14:26:47 -0700 From: Ian King User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: einKI.ml@gmx.net Subject: Re: Draw directly to the screen References: <1151615652.5113.18.camel@localhost> In-Reply-To: <1151615652.5113.18.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[AWL=0.053, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.469 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:26:50 -0000 If you add the line gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); after you create the gc, then it should draw over all child windows. Regards, Ian King Eiffel Software einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. > > I thin i have to use the root window to accomplish this > > int main( int argc,char *argv[] ) > { > gtk_init (&argc, &argv); > > GdkWindow* rw = gdk_get_default_root_window(); > GdkGC* gc = gdk_gc_new(rw); > gdk_draw_line(rw,gc,10,10,500,500); > > gdk_flush(); > > gtk_main (); > return 0; > } > > However i dont see anything. I only can see the line if i shut down the > x-server. So I believe i only draw to the background even behind > nautilus. This seems logically but I cant find any other method to draw > directly to the screen. > > If anyone has done this before or know how to do it I appreciate any > help > by > einKI > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From einKI.ml@gmx.net Thu Jun 29 17:40:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C2FF3B013E for ; Thu, 29 Jun 2006 17:40:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10413-05 for ; Thu, 29 Jun 2006 17:40:31 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id BE9303B0120 for ; Thu, 29 Jun 2006 17:40:30 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:40:29 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp035) with SMTP; 29 Jun 2006 23:40:29 +0200 X-Authenticated: #31874521 Subject: Re: Re: Draw directly to the screen From: "einKI.ml" To: gtk-list In-Reply-To: <44A44597.9030902@eiffel.com> References: <1151615652.5113.18.camel@localhost> <44A44597.9030902@eiffel.com> Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:40:28 +0200 Message-Id: <1151617228.5113.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.5 tagged_above=-999 required=2 tests=[AWL=0.100, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.5 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:40:32 -0000 Hi > If you add the line > gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); > after you create the gc, then it should draw over all child windows. thx works perfect! I think i never figured this out alone from the reference but now its clear. > i suggest you look for the little app called "gromit" for ideas. seems a good starting point thy you too by From esodan@gmail.com Thu Jun 29 18:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 70A2A3B00AC for ; Thu, 29 Jun 2006 18:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13109-09 for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 2822F3B000D for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so628092uge for ; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.224.19 with SMTP id w19mr727175ugg; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.233.12 with HTTP; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Message-ID: <144160610606291553u37f4a830l7012f094d4db4cb3@mail.gmail.com> Date: Thu, 29 Jun 2006 17:53:31 -0500 From: "Daniel Espinosa" To: "Clemens Eisserer" Subject: Re: Newbie question about GTKs object model... In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9631_30011709.1151621611867" References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=-0.174, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.122 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 22:53:34 -0000 ------=_Part_9631_30011709.1151621611867 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2006/6/29, Clemens Eisserer : > > Sorry for such a stupid question ... shame on myself for asking it :-/ > > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow", instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? btw. yes I did read some docs > about Glib's object model ;) > > Thank you in advance, lg Clemens > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Why do you need GdkWindow? If you only need to create a window, don't worry about GdkWindow, is internaly managed by a GtkWindow object. --=20 Trabajar, la mejor arma para tu superaci=F3n "de grano en grano, se hace la arena" (R) (entr=E1mite, pero para los cuate= s: LIBRE) ------=_Part_9631_30011709.1151621611867 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

2006/6/29, Clemens Eisserer <linuxhippy@gmail.com>:<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Sorry for such a stupid question ... shame on myself for asking it :-/
<= br>I looked arround GdkWindow.h/c  bit and actually did not find = the
definition of the type "GdkWindow", instead I only found t= he
definition of _GdkWindowObject which looks quite like I imagine
GdkWindo= w could look like.
So where/how does a GdkWindowObject become to an GdkW= indow or do I
understand some things completly wrong? btw. yes I did rea= d some docs
about Glib's object model ;)

Thank you in advance, lg Clemens_______________________________________________
gtk-list mailing listgtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
<= br>Why do you need GdkWindow?

If you only need to create a window, d= on't worry about GdkWindow, is internaly managed by a GtkWindow object.

--
Trabajar, la mejor arma para tu superaci=F3n"de grano en grano, se hace la arena" (R) (entr=E1mite, pero pa= ra los cuates: LIBRE) ------=_Part_9631_30011709.1151621611867-- From sylvia.lopez@obs.u-bordeaux1.fr Fri Jun 30 04:10:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDF3B3B0219 for ; Fri, 30 Jun 2006 04:10:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03249-10 for ; Fri, 30 Jun 2006 04:10:34 -0400 (EDT) Received: from alienor.obs.u-bordeaux1.fr (alienor.obs.u-bordeaux1.fr [147.210.44.5]) by menubar.gnome.org (Postfix) with ESMTP id 3307D3B0108 for ; Fri, 30 Jun 2006 04:10:33 -0400 (EDT) Received: from [147.210.44.54] (pclopez.obs.u-bordeaux1.fr [147.210.44.54]) by alienor.obs.u-bordeaux1.fr (8.13.6/alienor) with ESMTP id k5U8ATeb002417 for ; Fri, 30 Jun 2006 10:10:29 +0200 Message-ID: <44A4DC4F.6050103@obs.u-bordeaux1.fr> Date: Fri, 30 Jun 2006 10:09:51 +0200 From: Sylvia Lopez User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk image drawing Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at alienor.obs.u-bordeaux1.fr with ID 44A4DC75.000 by Joe's j-chkmail (17-05-06)! X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.74 tagged_above=-999 required=2 tests=[BAYES_20=-0.74] X-Spam-Score: -0.74 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 08:10:38 -0000 Hello, first, sorry for my english. my answer : i have to create an gtk+ interface who can display an image, zoom, get the x y and value of the pixel (on mouse over), and select a region (rectangle). For the image i had used GtkImage but whe can't draw (?) I had tryed to use GtkDrawingArea, I'm reading docs since days and days, I think there is something that I don't understand for instance (maybe it's so simple ? ;-) ) Can you tell me witch widget I have to use and how can I do that. Thank you for your help syl From mekstran@scl.ameslab.gov Fri Jun 30 09:24:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A16B93B028E for ; Fri, 30 Jun 2006 09:24:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21926-05 for ; Fri, 30 Jun 2006 09:24:52 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id 87F563B0108 for ; Fri, 30 Jun 2006 09:24:52 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 30 Jun 2006 08:24:51 -0500 id 000538B0.44A52623.00004980 In-Reply-To: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> References: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <39eea0d52365fbbe332ff511a3629c34@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Subject: Re: Any reason to worry about using wx? (but it uses GTK!?! :) Date: Fri, 30 Jun 2006 08:24:20 -0500 To: Christian Seberino X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.87 tagged_above=-999 required=2 tests=[AWL=-0.560, BAYES_00=-2.599, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514] X-Spam-Score: -1.87 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 13:24:53 -0000 Chris: I'll try to address all three of your mails from yesterday here. On Jun 29, 2006, at 2:08 PM, Christian Seberino wrote: > wx uses GTK under the hood...at least on Unix and Linux. > > Can anyone see any problems //down the road// with using wx as far > as losing benefits a pure GTK app would have? There are two sides to this question, really. One reflected by your previous questions, the issue of integration, and then the other of toolkit niceness. On the integration, I'm not 100% sure. GNOME integration, to me, means providing the appropriate .desktop files so the app shows up in GNOME's menus, using GNOME-style icons, following the HIG (Human Interface Guidelines) as much as possible, potentially using gconf for storing preferences, respecting GNOME's setting for the default web browser and email program, etc. In general, plain GTK apps come close enough that it doesn't matter whether they were specifically for GNOME. Also, lot of that can be accomplished with wx, but not necessarily as easily. And if you're following GNOME HIG, then you aren't following the Windows or Apple UI guidelines very closely (some elements of that wx will handle, but there's a lot that it can't). The other side is toolkit niceness. The benefit a pure GTK+ app has that wxWidgets doesn't is GTK+. GTK+ provides a good selection of expressive, high-level widgets that are capable of fairly incredible behavior out of the box. wxWidgets goes to a lowest-common-denominator, and makes you program these excellent widgets through an API that reeks of Win32 and MFC. I realize this probably isn't what you're asking, but it is a quite pertinent point when it comes to programmer sanity. Where I work, I'm working on a GUI with GTKmm, and some colleagues are working on another program using wx. Their frustration level with getting the widgets to work and do what they want is much higher. Also, wx forces GTK to abandon its native container-based widget layout model (one of GTK+'s huge benefits) in favor of a Windows-like position-and-size model, controlled with size managers. So there's a lost benefit immediately. Down the road? That one still applies as you have to maintain your code. Also, since wxWidgets has a design that makes some assumptions from the Win3.1/Win95 era (in my somewhat limited experience with it through wxPython), it feels like it won't let you easily take advantage of further UI developments as the come very easily. Just my $0.02... - Michael From kyndig@gmail.com Fri Jun 30 13:51:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A36463B00C4 for ; Fri, 30 Jun 2006 13:51:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03635-07 for ; Fri, 30 Jun 2006 13:51:16 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by menubar.gnome.org (Postfix) with ESMTP id 937673B007B for ; Fri, 30 Jun 2006 13:51:15 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so147158uge for ; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr3329250ugm; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Received: by 10.66.244.6 with HTTP; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Message-ID: Date: Fri, 30 Jun 2006 13:51:14 -0400 From: "Calvin Ellis" To: gtk-list@gnome.org Subject: midi, wave, mp3 cross platform? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14161_15395746.1151689874340" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.921 tagged_above=-999 required=2 tests=[AWL=-0.806, BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.921 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 17:51:16 -0000 ------=_Part_14161_15395746.1151689874340 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello list, I'm looking for a cross platform library to incorporate into my software application. The application currently takes the commands required to play midi, wave, and mp3 files. Is there a cross platform library which I can bundle with my application? The application currently works on Linux, Windows, and MAC OS X ( with X11 install - can't wait for the native MAC completion! ) Thank you, Calvin ------=_Part_14161_15395746.1151689874340 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello list,

I'm looking for a cross platform library to incorporate into my software application. The application currently takes the commands required to play midi, wave, and mp3 files. Is there a cross platform library which I can bundle with my application? The application currently works on Linux, Windows, and MAC OS X ( with X11 install - can't wait for the native MAC completion! )

Thank you,
Calvin

------=_Part_14161_15395746.1151689874340-- From c_gilbert@verizon.net Sun Jun 25 15:48:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2BF6F3B0018 for ; Sun, 25 Jun 2006 15:48:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27892-08 for ; Sun, 25 Jun 2006 15:48:10 -0400 (EDT) Received: from smtp101.vzn.mail.dcn.yahoo.com (smtp101.vzn.mail.dcn.yahoo.com [209.73.179.139]) by menubar.gnome.org (Postfix) with SMTP id 3A6383B000C for ; Sun, 25 Jun 2006 15:48:10 -0400 (EDT) Received: (qmail 44476 invoked from network); 25 Jun 2006 19:47:41 -0000 Received: from unknown (HELO ?192.168.1.101?) (c?gilbert@verizon.net@71.160.54.146 with login) by smtp101.vzn.mail.dcn.yahoo.com with SMTP; 25 Jun 2006 19:47:40 -0000 Subject: GtkTextBuffer "destroying" From: chuck gilbert To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 25 Jun 2006 12:49:33 -0700 Message-Id: <1151264973.3223.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.944 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: 1.944 X-Spam-Level: * X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 19:48:13 -0000 I can not seem to destroy a GtkTextBuffer created by calling gtk_text_buffer_new. To test my problem I used a function like below: somefunction() { GtkTextTagTable *tt = gtk_text_tag_table_new(); GtkTextBuffer *buffer = gtk_text_buffer_new(tt); gint n = gtk_text_buffer_get_line_count(buffer); gtk_widget_destroy(GTK_WIDGET(buffer)); } I have tried to cast "buffer" to G_OBJECT,GTK_TEXT_BUFFER,and GTK_OBJECT with no joy. At runtime I receive: gtk CRITICAL gtk_widget_destroy assumtion GTK_IS_WIDGET(widget) failed. The Buffer is created ie. the line count returns '1'. Thanks in advance for any help. From ibr@radix50.net Thu Jun 22 19:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ABA3B055E for ; Thu, 22 Jun 2006 19:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-06 for ; Thu, 22 Jun 2006 19:47:37 -0400 (EDT) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by menubar.gnome.org (Postfix) with ESMTP id AA8643B0288 for ; Thu, 22 Jun 2006 19:47:37 -0400 (EDT) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 0FA7CEAE70 for ; Fri, 23 Jun 2006 01:47:36 +0200 (CEST) Received: from mail-in-03.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id 013C417769D for ; Fri, 23 Jun 2006 01:47:36 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id BF3B21557B7 for ; Fri, 23 Jun 2006 01:47:35 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNlHdY020742 for ; Fri, 23 Jun 2006 01:47:18 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNlHtg020741 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:47:17 +0200 Date: Fri, 23 Jun 2006 01:47:17 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622234717.GB30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:48:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From MAILER-DAEMON Thu Jun 22 21:01:12 2006 Return-Path: <> X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3559E3B0413 for ; Thu, 22 Jun 2006 21:01:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04772-01 for ; Thu, 22 Jun 2006 21:01:07 -0400 (EDT) Received: from 6677.com (unknown [211.140.139.39]) by menubar.gnome.org (Postfix) with ESMTP id B68ED3B0658 for ; Thu, 22 Jun 2006 21:01:06 -0400 (EDT) Received: from 6677.com [127.0.0.1] by 6677.com [127.0.0.1] (with RAW) (MDaemon.PRO.v6.8.5.R) for ; Fri, 23 Jun 2006 09:11:56 +0800 Date: Fri, 23 Jun 2006 09:11:56 +0800 From: Postmaster@6677.com Subject: MDaemon Notification -- Attachment Removed To: gtk-list@gnome.org X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: Mime-Version: 1.0 X-Actual-From: Postmaster@6677.com X-MDSend-Notifications-To: [trash] Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.039 tagged_above=-999 required=2 tests=[BAYES_50=0.001, NO_REAL_NAME=0.961, TW_GT=0.077] X-Spam-Score: 1.039 X-Spam-Level: * X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Postmaster@6677.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 01:01:12 -0000 下列邮件包含被限制的附件,已被移除: 发信人 : gtk-list@gnome.org 收信人 : jf@6677.com 主题 : Mail Delivery (failure jf@6677.com) 邮件 ID : 已移除的附件: ----------------------------------------- message.scr From prashanthkm22@gmail.com Fri Jun 23 05:24:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 21EE33B041F for ; Fri, 23 Jun 2006 05:24:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31011-09 for ; Fri, 23 Jun 2006 05:24:18 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 4E20A3B0397 for ; Fri, 23 Jun 2006 05:24:18 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so4808wxc for ; Fri, 23 Jun 2006 02:24:17 -0700 (PDT) Received: by 10.70.108.14 with SMTP id g14mr4318104wxc; Fri, 23 Jun 2006 02:24:17 -0700 (PDT) Received: by 10.70.77.6 with HTTP; Fri, 23 Jun 2006 02:24:16 -0700 (PDT) Message-ID: Date: Fri, 23 Jun 2006 14:54:16 +0530 From: "prashanth km22" To: gtk-list@gnome.org Subject: How to set colors to Widgets MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 09:24:21 -0000 Hi all.. I am beginer to GTK, i created window and butons, but i dont know how to set colors to buttons. i saw gtk examples, i did not understand . Tell me how to do that.. Thank you. Prashanth From jalaganapathy@tataelxsi.co.in Thu Jun 29 02:25:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 03A973B011E for ; Thu, 29 Jun 2006 02:25:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22815-01 for ; Thu, 29 Jun 2006 02:25:54 -0400 (EDT) Received: from mail.tataelxsi.co.in (mail.tataelxsi.co.in [203.200.1.48]) by menubar.gnome.org (Postfix) with ESMTP id 26A103B000B for ; Thu, 29 Jun 2006 02:25:52 -0400 (EDT) Received: (from mail.tataelxsi.co.in [203.197.169.20]) by mail.tataelxsi.co.in (MOS 3.7.4b-GA) with HTTP/1.1 id BRM06226 (AUTH jalaganapathy); Thu, 29 Jun 2006 11:56:32 +0530 (IST) From: Jalagandeswari G Subject: Installing GTK+2.9.1 in Fedora core2 To: gtk-list@gnome.org X-Mailer: Mirapoint Webmail Direct 3.7.4b-GA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20060629115632.BRM06226@mail.tataelxsi.co.in> Date: Thu, 29 Jun 2006 11:56:32 +0530 (IST) X-Junkmail: Blacklisted X-Mirapoint-Sig: mail.tataelxsi.co.in X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:25:57 -0000 Hello All, Iam trying to install gtk+2.9.1 in fedora core2. my configure options are ./configure --prefix=/exp/ffox Confugure works fine. While running make i am getting the following errors. gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/exp/ffox/lib\" -DGTK_DATADIR=\"/exp/ffox/share\" -DGTK_DATA_PREFIX=\"/exp/ffox\" -DGTK_SYSCONFDIR=\"/exp/ffox/etc\" -DGTK_VERSION=\"2.9.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"pdf,cups\" -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_ENABLE_DEBUG -pthread -I/exp/ffox//include/glib-2.0 -I/exp/ffox//lib/glib-2.0/include -I/exp/ffox//include/pango-1.0 -I/exp/ffox//include/cairo -I/exp/ffox//include/atk-1.0 -I/exp/ffox/include -I/usr/X11R6/include -DG_DISABLE_DEPRECATED -g -O2 -g -Wall -MT gtkrecentmanager.lo -MD -MP -MF .deps/gtkrecentmanager.Tpo -c gtkrecentmanager.c -fPIC -DPIC -o .libs/gtkrecentmanager.o gtkrecentmanager.c:109: error: syntax error before "GBookmarkFile" gtkrecentmanager.c:109: warning: no semicolon at end of struct or union gtkrecentmanager.c:113: error: syntax error before '}' token gtkrecentmanager.c: In function `gtk_recent_manager_class_init': gtkrecentmanager.c:274: error: invalid application of `sizeof' to an incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_init': gtkrecentmanager.c:286: error: dereferencing pointer to incomplete type gtkrecentmanager.c:290: error: dereferencing pointer to incomplete type gtkrecentmanager.c:291: error: dereferencing pointer to incomplete type gtkrecentmanager.c:293: error: dereferencing pointer to incomplete type gtkrecentmanager.c:294: error: dereferencing pointer to incomplete type gtkrecentmanager.c:295: error: dereferencing pointer to incomplete type gtkrecentmanager.c:296: error: dereferencing pointer to incomplete type gtkrecentmanager.c:298: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_get_property': gtkrecentmanager.c:336: error: dereferencing pointer to incomplete type gtkrecentmanager.c:339: error: dereferencing pointer to incomplete type gtkrecentmanager.c:342: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_finalize': gtkrecentmanager.c:357: error: dereferencing pointer to incomplete type gtkrecentmanager.c:358: error: dereferencing pointer to incomplete type gtkrecentmanager.c:360: error: dereferencing pointer to incomplete type gtkrecentmanager.c:361: error: dereferencing pointer to incomplete type gtkrecentmanager.c:363: error: dereferencing pointer to incomplete type gtkrecentmanager.c:364: warning: implicit declaration of function `g_bookmark_file_free' gtkrecentmanager.c:364: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_real_changed': gtkrecentmanager.c:377: error: dereferencing pointer to incomplete type gtkrecentmanager.c:385: error: dereferencing pointer to incomplete type gtkrecentmanager.c:387: error: dereferencing pointer to incomplete type gtkrecentmanager.c:392: error: dereferencing pointer to incomplete type gtkrecentmanager.c:394: error: dereferencing pointer to incomplete type gtkrecentmanager.c:394: warning: implicit declaration of function `g_bookmark_file_new' gtkrecentmanager.c:395: error: dereferencing pointer to incomplete type gtkrecentmanager.c:399: warning: implicit declaration of function `g_bookmark_file_to_file' gtkrecentmanager.c:399: error: dereferencing pointer to incomplete type gtkrecentmanager.c:400: error: dereferencing pointer to incomplete type gtkrecentmanager.c:406: error: dereferencing pointer to incomplete type gtkrecentmanager.c:415: error: dereferencing pointer to incomplete type gtkrecentmanager.c:419: error: dereferencing pointer to incomplete type gtkrecentmanager.c:422: error: dereferencing pointer to incomplete type gtkrecentmanager.c:429: error: dereferencing pointer to incomplete type gtkrecentmanager.c:432: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_poll_timeout': gtkrecentmanager.c:458: error: dereferencing pointer to incomplete type gtkrecentmanager.c:458: error: dereferencing pointer to incomplete type gtkrecentmanager.c:461: error: dereferencing pointer to incomplete type gtkrecentmanager.c:470: error: dereferencing pointer to incomplete type gtkrecentmanager.c:477: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_set_filename': gtkrecentmanager.c:498: error: dereferencing pointer to incomplete type gtkrecentmanager.c:500: error: dereferencing pointer to incomplete type gtkrecentmanager.c:502: error: dereferencing pointer to incomplete type gtkrecentmanager.c:503: error: dereferencing pointer to incomplete type gtkrecentmanager.c:506: error: dereferencing pointer to incomplete type gtkrecentmanager.c:507: error: dereferencing pointer to incomplete type gtkrecentmanager.c:514: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `build_recent_items_list': gtkrecentmanager.c:534: error: dereferencing pointer to incomplete type gtkrecentmanager.c:536: error: dereferencing pointer to incomplete type gtkrecentmanager.c:538: error: dereferencing pointer to incomplete type gtkrecentmanager.c:539: error: dereferencing pointer to incomplete type gtkrecentmanager.c:542: error: dereferencing pointer to incomplete type gtkrecentmanager.c:555: error: dereferencing pointer to incomplete type gtkrecentmanager.c:563: error: dereferencing pointer to incomplete type gtkrecentmanager.c:565: error: dereferencing pointer to incomplete type gtkrecentmanager.c:571: warning: implicit declaration of function `g_bookmark_file_load_from_file' gtkrecentmanager.c:571: error: dereferencing pointer to incomplete type gtkrecentmanager.c:572: error: dereferencing pointer to incomplete type gtkrecentmanager.c:578: error: dereferencing pointer to incomplete type gtkrecentmanager.c:581: error: dereferencing pointer to incomplete type gtkrecentmanager.c:582: error: dereferencing pointer to incomplete type gtkrecentmanager.c:587: warning: implicit declaration of function `g_bookmark_file_get_size' gtkrecentmanager.c:587: error: dereferencing pointer to incomplete type gtkrecentmanager.c:588: error: dereferencing pointer to incomplete type gtkrecentmanager.c:590: error: dereferencing pointer to incomplete type gtkrecentmanager.c:595: error: dereferencing pointer to incomplete type gtkrecentmanager.c:596: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_for_screen': gtkrecentmanager.c:683: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `display_closed': gtkrecentmanager.c:697: error: dereferencing pointer to incomplete type gtkrecentmanager.c:698: error: dereferencing pointer to incomplete type gtkrecentmanager.c:703: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `unset_screen': gtkrecentmanager.c:718: error: dereferencing pointer to incomplete type gtkrecentmanager.c:720: error: dereferencing pointer to incomplete type gtkrecentmanager.c:726: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_set_screen': gtkrecentmanager.c:759: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_set_limit': gtkrecentmanager.c:786: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_limit': gtkrecentmanager.c:808: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_add_full': gtkrecentmanager.c:977: error: dereferencing pointer to incomplete type gtkrecentmanager.c:979: error: dereferencing pointer to incomplete type gtkrecentmanager.c:980: error: dereferencing pointer to incomplete type gtkrecentmanager.c:984: warning: implicit declaration of function `g_bookmark_file_set_title' gtkrecentmanager.c:984: error: dereferencing pointer to incomplete type gtkrecentmanager.c:987: warning: implicit declaration of function `g_bookmark_file_set_description' gtkrecentmanager.c:987: error: dereferencing pointer to incomplete type gtkrecentmanager.c:989: warning: implicit declaration of function `g_bookmark_file_set_mime_type' gtkrecentmanager.c:989: error: dereferencing pointer to incomplete type gtkrecentmanager.c:996: warning: implicit declaration of function `g_bookmark_file_add_group' gtkrecentmanager.c:996: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1003: warning: implicit declaration of function `g_bookmark_file_add_application' gtkrecentmanager.c:1003: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1007: warning: implicit declaration of function `g_bookmark_file_set_is_private' gtkrecentmanager.c:1007: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1013: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_remove_item': gtkrecentmanager.c:1048: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1050: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1051: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1061: warning: implicit declaration of function `g_bookmark_file_remove_item' gtkrecentmanager.c:1061: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1069: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_has_item': gtkrecentmanager.c:1098: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1100: warning: implicit declaration of function `g_bookmark_file_has_item' gtkrecentmanager.c:1100: error: dereferencing pointer to incomplete type gtkrecentmanager.c: At top level: gtkrecentmanager.c:1104: error: syntax error before '*' token gtkrecentmanager.c: In function `build_recent_info': gtkrecentmanager.c:1110: error: `bookmarks' undeclared (first use in this function) gtkrecentmanager.c:1110: error: (Each undeclared identifier is reported only once gtkrecentmanager.c:1110: error: for each function it appears in.) gtkrecentmanager.c:1111: error: `info' undeclared (first use in this function) gtkrecentmanager.c:1113: warning: implicit declaration of function `g_bookmark_file_get_title' gtkrecentmanager.c:1114: warning: implicit declaration of function `g_bookmark_file_get_description' gtkrecentmanager.c:1115: warning: implicit declaration of function `g_bookmark_file_get_mime_type' gtkrecentmanager.c:1117: warning: implicit declaration of function `g_bookmark_file_get_is_private' gtkrecentmanager.c:1119: warning: implicit declaration of function `g_bookmark_file_get_added' gtkrecentmanager.c:1120: warning: implicit declaration of function `g_bookmark_file_get_modified' gtkrecentmanager.c:1121: warning: implicit declaration of function `g_bookmark_file_get_visited' gtkrecentmanager.c:1123: warning: implicit declaration of function `g_bookmark_file_get_groups' gtkrecentmanager.c:1123: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1133: warning: implicit declaration of function `g_bookmark_file_get_applications' gtkrecentmanager.c:1133: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1144: warning: implicit declaration of function `g_bookmark_file_get_app_info' gtkrecentmanager.c: In function `IA__gtk_recent_manager_lookup_item': gtkrecentmanager.c:1196: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1198: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1199: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1209: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1224: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_move_item': gtkrecentmanager.c:1268: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1278: warning: implicit declaration of function `g_bookmark_file_move_item' gtkrecentmanager.c:1278: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1287: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_items': gtkrecentmanager.c:1317: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1320: warning: implicit declaration of function `g_bookmark_file_get_uris' gtkrecentmanager.c:1320: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1320: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1327: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1344: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1345: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1349: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `purge_recent_items_list': gtkrecentmanager.c:1370: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1373: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1374: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1376: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1377: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1378: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_purge_items': gtkrecentmanager.c:1406: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1409: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1415: error: dereferencing pointer to incomplete type make[4]: *** [gtkrecentmanager.lo] Error 1 make[4]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/exp/ffox/gtk+-2.9.1' make: *** [all] Error 2 Pls help me out to find a solution. regards, Jala The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@tataelxsi.co.in From jose.francisco.hevia@gmail.com Thu Jun 29 16:57:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 405123B00CC for ; Thu, 29 Jun 2006 16:57:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08622-01 for ; Thu, 29 Jun 2006 16:57:11 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by menubar.gnome.org (Postfix) with ESMTP id EF19B3B00BD for ; Thu, 29 Jun 2006 16:57:10 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c29so144243nfb for ; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Received: by 10.49.28.2 with SMTP id f2mr5801nfj; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Message-ID: Date: Thu, 29 Jun 2006 22:57:09 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Any reason to worry about using wx? (but it uses GTK!?! :) In-Reply-To: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.543 tagged_above=-999 required=2 tests=[AWL=-0.432, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514, SPF_PASS=-0.001] X-Spam-Score: -1.543 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 20:57:13 -0000 2006/6/29, Christian Seberino : > wx uses GTK under the hood...at least on Unix and Linux. > > Can anyone see any problems //down the road// with using wx as far > as losing benefits a pure GTK app would have? wx->- Another layer of stuff. - A subset of GTK, so it could be compatible with others.(you lost control) - GTK works on windows, Unix(X11) and native MacOS is in process. -Look at audacity-> wx , amsn... They are ugly on Linux (seems they use GTK 1.2 or GTK 2.0 without themes)(amsn added themes recently, but I remember a lot of people complaining how bad it was(they judged only by its appearance)) -IMHO win32 is dead, Microsoft needs to sell its new .Net related widgets, wx uses win32. -I have never used wx, so I could be mistaken. Cheers Jose Hevia From c_gilbert@verizon.net Thu Jun 29 23:46:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8428B3B00C7 for ; Thu, 29 Jun 2006 23:46:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23400-08 for ; Thu, 29 Jun 2006 23:46:07 -0400 (EDT) Received: from smtp102.vzn.mail.dcn.yahoo.com (smtp102.vzn.mail.dcn.yahoo.com [209.73.179.140]) by menubar.gnome.org (Postfix) with SMTP id 8387D3B000E for ; Thu, 29 Jun 2006 23:46:07 -0400 (EDT) Received: (qmail 10047 invoked from network); 30 Jun 2006 03:46:06 -0000 Received: from unknown (HELO ?192.168.1.101?) (c?gilbert@verizon.net@71.160.54.146 with login) by smtp102.vzn.mail.dcn.yahoo.com with SMTP; 30 Jun 2006 03:46:06 -0000 Subject: How to save GtkTextBuffers with formatting From: chuck gilbert To: gtk-list@gnome.org Content-Type: text/plain Date: Thu, 29 Jun 2006 20:48:08 -0700 Message-Id: <1151639288.29469.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.091 tagged_above=-999 required=2 tests=[AWL=-0.147, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_NEUTRAL=1.069] X-Spam-Score: 2.091 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 03:46:08 -0000 Is there a way to save and restore GtkTextBuffers with their associated TagTables and markers to files? From AFARRAG@eg.ibm.com Tue Jun 13 11:35:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4E7723B008F for ; Tue, 13 Jun 2006 11:35:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28376-08 for ; Tue, 13 Jun 2006 11:35:21 -0400 (EDT) Received: from mtagate6.uk.ibm.com (mtagate6.uk.ibm.com [195.212.29.139]) by menubar.gnome.org (Postfix) with ESMTP id 7AC3D3B000C for ; Tue, 13 Jun 2006 11:35:13 -0400 (EDT) Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate6.uk.ibm.com (8.13.6/8.13.6) with ESMTP id k5DFYN56121848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Jun 2006 15:34:23 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.6/NCO/VER7.0) with ESMTP id k5DFZbfW134912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Jun 2006 16:35:37 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5DFYNXn008997 for ; Tue, 13 Jun 2006 16:34:23 +0100 Received: from d06ml201.portsmouth.uk.ibm.com (d06ml201.portsmouth.uk.ibm.com [9.149.39.66]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5DFYNZo008994 for ; Tue, 13 Jun 2006 16:34:23 +0100 To: gtk-list@gnome.org Subject: Unable to install gtk2.8 MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 From: Ahmed Farrag Message-ID: X-MIMETrack: Serialize by Router on D06ML201/06/M/IBM(Release 6.5.5HF268 | April 6, 2006) at 13/06/2006 18:34:22 Content-Type: multipart/mixed; boundary="=_mixed 00558CBEC225718C_=" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.171 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.171 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 13 Jun 2006 15:35:26 -0000 X-Original-Date: Tue, 13 Jun 2006 18:34:22 +0300 X-List-Received-Date: Tue, 13 Jun 2006 15:35:26 -0000 --=_mixed 00558CBEC225718C_= Content-Type: multipart/alternative; boundary="=_alternative 00558CBEC225718C_=" --=_alternative 00558CBEC225718C_= Content-Type: text/plain; charset="US-ASCII" Hi, I have RHEL 4 installed on my machine, and I want to update the installed gtk to version 2.8.1 . However each time I try to start the configure script, I got a configuration error stating that I have to install glib, atk, cairo and pango libraries with newer versions than the ones currently installed (see the attached txt file). I have installed glib2.8, atk1.8, cairo 1.0.4 and pango 1.9.1 but it seems that the configure script of gtk can't find them. it finds only the older versions of these libraries. I have found that the version number of glib, atk, cairo and pango lib is hard coded in the configure script , and I think this might be the problem. Would you please advise if there is any workarounds I can make to install gtk. Thanks in advance Best Regards Ahmed Farrag Associate Software Engineer iSeries/Rational NLS Team Globalization - Cairo Technology Development Center (CTDC) - IBM EGYPT Branch Pyramids Heights Office Park, Building C10 Cairo - Alexandria Desert Road, KM 22. Giza, Egypt P.O. Box 166 El-Ahram, Giza ,Egypt Tel: Direct : (+202) 536 1422 Ext: 1422 e-mail: afarrag@eg.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------------------------------ "Nothing so conclusively proves a man's ability to lead others as what he does from day to day to lead himself." >>Thomas J. Watson --=_alternative 00558CBEC225718C_= Content-Type: text/html; charset="US-ASCII"
Hi,

I have RHEL 4 installed on my machine, and I want to update the installed gtk to version 2.8.1 . However each time I try to start the configure script, I got a configuration error stating that I have to install glib, atk, cairo and pango libraries with newer versions than the ones currently installed (see the attached txt file).  I have installed glib2.8, atk1.8, cairo 1.0.4 and pango 1.9.1 but it seems that the configure script of gtk can't find them. it finds only the older versions of these libraries. I have found that the version number of glib, atk, cairo and pango lib is hard coded in the configure script , and I think this might be the problem. Would you please advise if there is any workarounds I can make to install gtk.



Thanks in advance

Best Regards
Ahmed Farrag
Associate Software Engineer
iSeries/Rational NLS Team
Globalization -  Cairo Technology Development Center (CTDC) - IBM EGYPT Branch
Pyramids Heights Office Park, Building C10
Cairo - Alexandria Desert Road, KM 22.
Giza,  Egypt
P.O. Box  166 El-Ahram, Giza ,Egypt
Tel: Direct : (+202) 536 1422
Ext: 1422
e-mail:   afarrag@eg.ibm.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------
"Nothing so conclusively proves a man's ability to lead others as what he does from day to day to lead himself."

>>Thomas J. Watson
--=_alternative 00558CBEC225718C_=-- --=_mixed 00558CBEC225718C_= Content-Type: text/plain; name="fileconf.txt" Content-Disposition: attachment; filename="fileconf.txt" Content-Transfer-Encoding: quoted-printable [root@localhost gtk+-2.8.1]# ./configure --prefix=3D/usr=0Achecking for a B= SD-compatible install... /usr/bin//install -c=0Achecking whether build envi= ronment is sane... yes=0Achecking for gawk... gawk=0Achecking whether make = sets $(MAKE)... yes=0Achecking build system type... i686-pc-linux-gnu=0Ache= cking host system type... i686-pc-linux-gnu=0Achecking for native Win32... = no=0Achecking for gcc... gcc=0Achecking for C compiler default output file = name... a.out=0Achecking whether the C compiler works... yes=0Achecking whe= ther we are cross compiling... no=0Achecking for suffix of executables...= =0Achecking for suffix of object files... o=0Achecking whether we are using= the GNU C compiler... yes=0Achecking whether gcc accepts -g... yes=0Acheck= ing for gcc option to accept ANSI C... none needed=0Achecking for style of = include used by make... GNU=0Achecking dependency style of gcc... gcc3=0Ach= ecking for a sed that does not truncate output... /bin/sed=0Achecking for e= grep... grep -E=0Achecking for ld used by gcc... /usr/bin//ld=0Achecking if= the linker (/usr/bin//ld) is GNU ld... yes=0Achecking for /usr/bin//ld opt= ion to reload object files... -r=0Achecking for BSD-compatible nm... /usr/b= in//nm -B=0Achecking whether ln -s works... yes=0Achecking how to recognise= dependent libraries... pass=5Fall=0Achecking how to run the C preprocessor= ... gcc -E=0Achecking for ANSI C header files... yes=0Achecking for sys/typ= es.h... yes=0Achecking for sys/stat.h... yes=0Achecking for stdlib.h... yes= =0Achecking for string.h... yes=0Achecking for memory.h... yes=0Achecking f= or strings.h... yes=0Achecking for inttypes.h... yes=0Achecking for stdint.= h... yes=0Achecking for unistd.h... yes=0Achecking dlfcn.h usability... yes= =0Achecking dlfcn.h presence... yes=0Achecking for dlfcn.h... yes=0Acheckin= g for g++... g++=0Achecking whether we are using the GNU C++ compiler... ye= s=0Achecking whether g++ accepts -g... yes=0Achecking dependency style of g= ++... gcc3=0Achecking how to run the C++ preprocessor... g++ -E=0Achecking = for g77... g77=0Achecking whether we are using the GNU Fortran 77 compiler.= .. yes=0Achecking whether g77 accepts -g... yes=0Achecking the maximum leng= th of command line arguments... 32768=0Achecking command to parse /usr/bin/= /nm -B output from gcc object... ok=0Achecking for objdir... .libs=0Achecki= ng for ar... ar=0Achecking for ranlib... ranlib=0Achecking for strip... str= ip=0Achecking if gcc static flag works... yes=0Achecking if gcc supports -= fno-rtti -fno-exceptions... no=0Achecking for gcc option to produce PIC... = -fPIC=0Achecking if gcc PIC flag -fPIC works... yes=0Achecking if gcc suppo= rts -c -o file.o... yes=0Achecking whether the gcc linker (/usr/bin//ld) su= pports shared libraries... yes=0Achecking whether -lc should be explicitly = linked in... no=0Achecking dynamic linker characteristics... GNU/Linux ld.s= o=0Achecking how to hardcode library paths into programs... immediate=0Ache= cking whether stripping libraries is possible... yes=0Achecking if libtool = supports shared libraries... yes=0Achecking whether to build shared librari= es... yes=0Achecking whether to build static libraries... no=0Aconfigure: c= reating libtool=0Aappending configuration tag "CXX" to libtool=0Achecking f= or ld used by g++... /usr/bin//ld=0Achecking if the linker (/usr/bin//ld) i= s GNU ld... yes=0Achecking whether the g++ linker (/usr/bin//ld) supports s= hared libraries... yes=0Achecking for g++ option to produce PIC... -fPIC=0A= checking if g++ PIC flag -fPIC works... yes=0Achecking if g++ supports -c -= o file.o... yes=0Achecking whether the g++ linker (/usr/bin//ld) supports s= hared libraries... yes=0Achecking dynamic linker characteristics... GNU/Lin= ux ld.so=0Achecking how to hardcode library paths into programs... immediat= e=0Achecking whether stripping libraries is possible... yes=0Aappending con= figuration tag "F77" to libtool=0Achecking if libtool supports shared libra= ries... yes=0Achecking whether to build shared libraries... yes=0Achecking = whether to build static libraries... no=0Achecking for g77 option to produc= e PIC... -fPIC=0Achecking if g77 PIC flag -fPIC works... yes=0Achecking if = g77 supports -c -o file.o... yes=0Achecking whether the g77 linker (/usr/bi= n//ld) supports shared libraries... yes=0Achecking dynamic linker character= istics... GNU/Linux ld.so=0Achecking how to hardcode library paths into pro= grams... immediate=0Achecking whether stripping libraries is possible... ye= s=0Achecking for special C compiler options needed for large files... no=0A= checking for =5FFILE=5FOFFSET=5FBITS value needed for large files... 64=0Ac= hecking for =5FLARGE=5FFILES value needed for large files... no=0Achecking = for nm... /usr/bin//nm -B=0Achecking whether to enable maintainer-specific = portions of Makefiles... no=0Achecking for some Win32 platform... no=0Achec= king whether build environment is sane... yes=0Achecking for strerror in -l= cposix... no=0Achecking for gcc option to accept ANSI C... none needed=0Ach= ecking for a BSD-compatible install... /usr/bin//install -c=0Achecking whet= her make sets $(MAKE)... (cached) yes=0Achecking for pkg-config... /usr/bin= //pkg-config=0Achecking pkg-config is at least version 0.9.0... yes=0Acheck= ing for BASE=5FDEPENDENCIES=5FCFLAGS...=0Achecking for BASE=5FDEPENDENCIES= =5FLIBS...=0Aconfigure: error: Package requirements (glib-2.0 >=3D 2.7.1 = atk >=3D 1.0.1 pango >=3D 1.9.0 cairo >=3D 0.9.2) were not met.=0ACo= nsider adjusting the PKG=5FCONFIG=5FPATH environment variable if you=0Ainst= alled software in a non-standard prefix.=0A=0AAlternatively you may set the= BASE=5FDEPENDENCIES=5FCFLAGS and BASE=5FDEPENDENCIES=5FLIBS environment va= riables=0Ato avoid the need to call pkg-config. See the pkg-config man pag= e for=0Amore details.=0A= --=_mixed 00558CBEC225718C_=-- From M.Kahn@Astronautics.com Tue Jun 13 21:49:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 031683B00C8 for ; Tue, 13 Jun 2006 21:49:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13055-01 for ; Tue, 13 Jun 2006 21:49:35 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 2BD423B00A5 for ; Tue, 13 Jun 2006 21:49:35 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68F54.A6C559FA" Subject: Button background colors Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FCB1D@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.203 tagged_above=-999 required=2 tests=[AWL=1.318, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -1.203 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 14 Jun 2006 01:49:37 -0000 X-Original-Date: Tue, 13 Jun 2006 20:48:39 -0500 X-List-Received-Date: Wed, 14 Jun 2006 01:49:37 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68F54.A6C559FA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C68F54.A6C559FA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to the = latest military and commercial aircraft control panels.  Thus I am = expected to be able to emulate this with the buttons on my GUI.  So far, I have = failed utterly with GTK.

 

My web searches led me to try some of these processes = – in particular, Havoc Pennington’s “GTK colors = mini-FAQ” is what led me to try using the gtk_widget_get_parent to get the container = widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned = NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which = means I managed to set the background of the Main Window but nothing else, = despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C68F54.A6C559FA-- From suryakiran.gullapalli@gmail.com Thu Jun 1 00:10:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24B3A3B00BB for ; Thu, 1 Jun 2006 00:10:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04016-08 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by menubar.gnome.org (Postfix) with ESMTP id 9B3453B00B8 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so260553nzo for ; Wed, 31 May 2006 21:10:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=N+wbMTsUS0m6ybIQQ6WBzXon9fU/EEzIVq5El3whjJyUR4SAxxBUxIEOsBfVXkeL2YbImX2jAbHiSNiVELVdbozPa3i6O5WTSb6jawRIjg1MW1JZlhMea6gfJPV+YUdgdJ2gGLM2E/7KnKs55/7qEZslYRDyBuFifgtqtukaPXo= Received: by 10.36.160.15 with SMTP id i15mr231979nze; Wed, 31 May 2006 21:10:50 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Wed, 31 May 2006 21:10:50 -0700 (PDT) Message-ID: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Date: Thu, 1 Jun 2006 09:40:50 +0530 From: "Surya Kiran Gullapalli" To: "Tor Lillqvist" In-Reply-To: <17533.16487.144000.523256@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1980_31614517.1149135050887" References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.185, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.28 X-Spam-Level: Cc: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 04:10:54 -0000 ------=_Part_1980_31614517.1149135050887 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > > That's what supposed to happen when one uses the ms-windows theme. > I've got it. The stock icons are coming with other themes. Thanks, Surya ------=_Part_1980_31614517.1149135050887 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
That's what supposed to happen when one uses the ms-windows theme.

I've got it. The stock icons are coming with other themes.
Thanks,
Surya
------=_Part_1980_31614517.1149135050887-- From kaminaga@sm.sony.co.jp Thu Jun 1 02:40:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 71ACE3B00EB for ; Thu, 1 Jun 2006 02:40:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10435-03 for ; Thu, 1 Jun 2006 02:40:55 -0400 (EDT) Received: from ns4.sony.co.jp (NS4.Sony.CO.JP [137.153.0.44]) by menubar.gnome.org (Postfix) with ESMTP id 2A5ED3B00CB for ; Thu, 1 Jun 2006 02:40:54 -0400 (EDT) Received: from mail7.sony.co.jp ([43.0.1.209]) Received: from mail7.sony.co.jp (localhost [127.0.0.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516eqQM024123 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516epjT024108 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k516epY19677 for ; Thu, 1 Jun 2006 15:40:51 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k516fCXh017466 for ; Thu, 1 Jun 2006 15:41:12 +0900 (JST) Date: Thu, 01 Jun 2006 15:37:37 +0900 (JST) Message-Id: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> To: gtk-list@gnome.org From: Hiroki Kaminaga X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.184 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.184 X-Spam-Level: Subject: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 06:40:57 -0000 Hi, I'm trying to build GTK+ for ARM architecture, my target board is TI OMAP Starter Kit 5912 (OSK5912). >From the GTK+ FAQ, I built below package: pkg-config GNU make JPEG, PNG, TIFF libraries FreeType2 fontconfig (iconv was in glibc) gettext Glib Pango ATK and when I tryed to build GTK+, configure gave me below message: * * * checking for X... no configure: error: X development libraries not found * * * Is X required package? ARM has a limited resource, so if it is not necessary, I would like to avoid installing it. Thanks in Advance. (Hiroki Kaminaga) t -- From carlo-ag@libero.it Thu Jun 1 03:15:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CA9B63B0C35 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11982-05 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from relay-pt1.poste.it (relay-pt1.poste.it [62.241.4.164]) by menubar.gnome.org (Postfix) with ESMTP id C4C5A3B0109 for ; Thu, 1 Jun 2006 03:15:39 -0400 (EDT) Received: from [192.168.1.52] (151.37.218.171) by relay-pt1.poste.it (7.2.063) (authenticated as carlo.agrusti@poste.it) id 44119E620017FBFA for gtk-list@gnome.org; Thu, 1 Jun 2006 09:15:38 +0200 Message-ID: <447E9418.5010106@libero.it> Date: Thu, 01 Jun 2006 09:15:36 +0200 From: Carlo Agrusti User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> In-Reply-To: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> X-Enigmail-Version: 0.93.0.0 OpenPGP: id=9C055DBF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.476 tagged_above=-999 required=2 tests=[AWL=-0.785, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.476 X-Spam-Level: Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:15:41 -0000 Hiroki Kaminaga ha scritto lo scorso 01/06/2006 08:37: > Hi, > > I'm trying to build GTK+ for ARM architecture, my target board is > TI OMAP Starter Kit 5912 (OSK5912). > >>From the GTK+ FAQ, I built below package: > pkg-config > GNU make > JPEG, PNG, TIFF libraries > FreeType2 > fontconfig > (iconv was in glibc) > gettext > Glib > Pango > ATK > > and when I tryed to build GTK+, configure gave me below message: > * * * > checking for X... no > configure: error: X development libraries not found > * * * > > Is X required package? Yes, it is (unless you are using the old and unmaintained framebuffer back end). > ARM has a limited resource, so if it is not > necessary, I would like to avoid installing it. > Don't use full X server; if you enable KDrive, you will have a fully featured "tiny" X server for less than 1 MiB (compare it with a modern glibc environment and you will discover where your resources are used). From kaminaga@sm.sony.co.jp Thu Jun 1 03:46:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 793603B0C4E for ; Thu, 1 Jun 2006 03:46:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13720-10 for ; Thu, 1 Jun 2006 03:46:31 -0400 (EDT) Received: from ns6.sony.co.jp (NS6.Sony.CO.JP [137.153.0.32]) by menubar.gnome.org (Postfix) with ESMTP id 0334C3B0110 for ; Thu, 1 Jun 2006 03:46:29 -0400 (EDT) Received: from mail6.sony.co.jp ([43.0.1.208]) Received: from mail6.sony.co.jp (localhost [127.0.0.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRjJ023935; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRRt023922; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k517kQY24496; Thu, 1 Jun 2006 16:46:26 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k517kk68014618; Thu, 1 Jun 2006 16:46:47 +0900 (JST) Date: Thu, 01 Jun 2006 16:43:12 +0900 (JST) Message-Id: <20060601.164312.41633181.kaminaga@sm.sony.co.jp> To: carlo-ag@libero.it From: Hiroki Kaminaga In-Reply-To: <447E9418.5010106@libero.it> References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> <447E9418.5010106@libero.it> X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:46:32 -0000 From: Carlo Agrusti > Don't use full X server; if you enable KDrive, you will have a fully > featured "tiny" X server for less than 1 MiB (compare it with a modern > glibc environment and you will discover where your resources are used). Thank you! (Hiroki Kaminaga) t -- From kereoz@yahoo.fr Thu Jun 1 04:42:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F0E363B00DE for ; Thu, 1 Jun 2006 04:42:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17618-03 for ; Thu, 1 Jun 2006 04:42:36 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id C57323B00CD for ; Thu, 1 Jun 2006 04:42:35 -0400 (EDT) Received: (qmail 90880 invoked by uid 60001); 1 Jun 2006 08:42:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SOSnkJ16bagATwum4KefozXDgJ6fNTELp2hlhxrZ18sFApRnFZ2uY4nD+XvPhLcAJLolKMxgKsoCZk2C0xq2bxeC1M45xM6rsDN3nmiDPbam+/dTLt9nVK8hBL/wJXkIJI+1e1bGiFduHMquH1OHHZO/CZysGRmiQOduxm7a+bw= ; Message-ID: <20060601084234.90878.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 01 Jun 2006 10:42:34 CEST Date: Thu, 1 Jun 2006 10:42:34 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.36 tagged_above=-999 required=2 tests=[AWL=-0.319, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.36 X-Spam-Level: Subject: Re: Widgets overlap X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 08:42:39 -0000 Hi, First, thanks for your answers :) But I didn't ask the good question : in fact, I'd like to overlap a video output widget and a Mozilla gecko widget. I want to put the browser on top of the video output, so you can see the video through the brower. In a word, the browser should be transparent. I know this is possible to do such things when the video widget works with framebuffer. Some poeple did such things with DirectX already, and I'm looking for a way to do it with GTK. Christophe HAUSER http://kereoz.sup.fr ___________________________________________________________________________ Yahoo! Mail r閕nvente le mail ! D閏ouvrez le nouveau Yahoo! Mail et son interface r関olutionnaire. http://fr.mail.yahoo.com From katsuo_harada_evil_does@hotmail.com Thu Jun 1 11:17:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C53B13B0DB9 for ; Thu, 1 Jun 2006 11:17:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15140-10 for ; Thu, 1 Jun 2006 11:17:02 -0400 (EDT) Received: from hotmail.com (bay105-f37.bay105.hotmail.com [65.54.224.47]) by menubar.gnome.org (Postfix) with ESMTP id BC3F83B0DA9 for ; Thu, 1 Jun 2006 11:16:58 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Jun 2006 08:16:57 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 01 Jun 2006 15:16:55 GMT X-Originating-IP: [86.200.250.161] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Thu, 01 Jun 2006 17:16:55 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 01 Jun 2006 15:16:57.0804 (UTC) FILETIME=[6C7428C0:01C6858E] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.275 tagged_above=-999 required=2 tests=[AWL=0.891, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BG=0.077] X-Spam-Score: 0.275 X-Spam-Level: Subject: GLib 2.11.1 FreeBSD make fails X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 15:17:07 -0000 Hello, All! I've already posted a make issue here not so long time ago. Here we come again. For a history i'm building a desktop station based on FreeBSD 4.11-RELEASE (GENERIC) kernel. while building GLib-2.11.1 i've got the following errors : http://pages-perso.esil.univ-mrs.fr/~vdoljiko/pub/make.log +++++++ HERE COMES AN EXTRAIT ++++++++ [SNIP] Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r [COMMENT] Notice the presence of -lc_r option [/COMMENT] gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib [COMMENT] Notice the absence of the -lc_r option [/COMMENT] gcc: unrecognized option `-pthreads' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_signal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getspecific' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_exit' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_equal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setscope' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_broadcast' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_key_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setstacksize' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_unlock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_self' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_lock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_wait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_trylock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setdetachstate' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_join' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_timedwait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setspecific' *** Error code 1 Stop in /home/libs/glib-2.11.1/tests/refcount. *** Error code 1 Stop in /home/libs/glib-2.11.1/tests. *** Error code 1 Stop in /home/libs/glib-2.11.1. *** Error code 1 Stop in /home/libs/glib-2.11.1. ++++++++++++++ END +++++++++++++++++++++++++++ as you can see the problem comes IMHO from badly compiled libgthread because it was compiled without -lc_r option. libc_r.a is the implementation of threads on FreeBSD system. During configure of GLib-2.11.1 i've specified LIBS=-lc_r and even LDFLAGS=-lc_r (!!! :-) ) but libgthread IMHO wasn't properly compiled. It seems that libtool and compagny line invoked from Makefile preserves -lc_r option but the effective command doesn't include -lc_r option as you can see in the example above. BUT libgthread don't reference pthread functions as result we get the above errors. 2. as you can see the line Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r specifies -lc_r option BUT when executing the effective command this option is not present! WHY! i'm using GNU make latest specially build for freetype build. i've solved the problem by manually writing gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib -lc_r in Makefile in tests/refcount directory for each target (closures properties signals) and it worked, but i'm wondering if there won't be any problems on run-time ??? i should also say that the exactly the same problem occurs in test directory whiile compiling error-mutex-something.c what can you say about this ??? how should i proceed in order to build "proper" glib-2.11.1 ??? p.s while compiling pkg-config early i've got the same problems but in gthread subdirectory. was solved in the same manner by mannualy adding -lc_r option but not in make file but on the command line. as make checks for newer versions and dependencies it was sufficent. but in GLib-2.11.1 compiling mannually don't work because of rm -f before building each target. -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From dkasak@nusconsulting.com.au Thu Jun 1 22:11:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 095BB3B0196 for ; Thu, 1 Jun 2006 22:11:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23630-03 for ; Thu, 1 Jun 2006 22:11:15 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 9D4E63B010C for ; Thu, 1 Jun 2006 22:11:14 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k522CNvG022220; Fri, 2 Jun 2006 12:12:23 +1000 Message-ID: <447F9E48.6090304@nusconsulting.com.au> Date: Fri, 02 Jun 2006 12:11:20 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Surya Kiran Gullapalli , gtk-list@gnome.org References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> In-Reply-To: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 451465 - be5dc1df8278 X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=451465&m=be5dc1df8278 X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=451465&m=be5dc1df8278 X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=451465&m=be5dc1df8278 X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.428 tagged_above=-999 required=2 tests=[AWL=0.171, BAYES_00=-2.599] X-Spam-Score: -2.428 X-Spam-Level: Cc: Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 02:11:17 -0000 Surya Kiran Gullapalli wrote: > > That's what supposed to happen when one uses the ms-windows theme. > > > I've got it. The stock icons are coming with other themes. > Thanks, > Surya How are you installing / changing themes under Windows? I've been using a utility from http://members.lycos.co.uk/alexv6/ but if there are others, I'd like to know. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From lists@nabble.com Fri Jun 2 01:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A34C53B030A for ; Fri, 2 Jun 2006 01:41:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32639-07 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 15A363B0341 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm2Pf-0007IZ-7Z for gtk-list@gnome.org; Thu, 01 Jun 2006 22:41:35 -0700 Message-ID: <4674575.post@talk.nabble.com> Date: Thu, 1 Jun 2006 22:41:35 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <43ACACCA.70309@micahcarrick.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <43ACACCA.70309@micahcarrick.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 05:41:37 -0000 Maybe I am having the same question as you do. I am trying to display a 24bit image with size 2048X2048 pixels, and following is my code: //create a GdkPixbuf GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer GDK_COLORSPACE_RGB, //COLORSPACE FALSE, // has_alpha, 8, // int bits_per_sample, 2048, // int width, 2048, // int height, 2048*3, // sizeX*3; //int rowstride, NULL, //GdkPixbufDestroyNotify destroy_fn, NULL //gpointer destroy_fn_data); ); //display img GtkWidget* img = lookup_widget(MainWnd, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(img), //GtkImage *image, pb// GdkPixbuf *pixbuf ); the results i got is that: the image did appear, but the sizes are shrinked as 684 X 684 , and there are THREE same images tile in the viewport, the first and last ones are clipped. Can anyone tell me how to fix this? thanks!! -- View this message in context: http://www.nabble.com/Help-with-GdkPIxbuf-and-GtkImage...-t800118.html#a4674575 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Fri Jun 2 03:28:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 436273B08CC for ; Fri, 2 Jun 2006 03:28:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06135-06 for ; Fri, 2 Jun 2006 03:28:26 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1BD913B1044 for ; Fri, 2 Jun 2006 03:28:21 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm44x-0003Cd-RJ for gtk-list@gnome.org; Fri, 02 Jun 2006 00:28:19 -0700 Message-ID: <4675519.post@talk.nabble.com> Date: Fri, 2 Jun 2006 00:28:19 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <20060314073947.e7cba872.lists@elehack.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.527 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.527 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:28:29 -0000 Hi Michael, I am a beginner in Linux programming, and your suggestion works! But I am still having some problem that the CPU usage is always 100% after the program starts. Could you please look at my code below and give me some suggestion? Thanks a lot!!! Following is some of my code: // idle handler of the main loop gboolean OnIdle(int msgQid) { if(thread_signal) { RefreshImage(); } return TRUE; } int main (int argc, char *argv[]) { gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); //register an idle handler to update the image when the background thread emits a signal gdk_threads_enter(); g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a * PyGTK/GTKmm guy, so the C stuff * isn't my forte */ gdk_threads_leave(); MainWnd = create_MainWnd (); gtk_widget_show (MainWnd); gtk_main (); return 0; } -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Fri Jun 2 03:45:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F5423B1055 for ; Fri, 2 Jun 2006 03:45:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07057-07 for ; Fri, 2 Jun 2006 03:45:02 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id F1BFC3B104E for ; Fri, 2 Jun 2006 03:45:01 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp1-g19.free.fr (Postfix) with ESMTP id 9B0EE9A3E2; Fri, 2 Jun 2006 09:45:00 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4675519.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 09:47:58 +0200 Message-Id: <1149234479.10209.10.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.848 tagged_above=-999 required=2 tests=[AWL=-0.395, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.848 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:45:03 -0000 Le vendredi 02 juin 2006 00:28 -0700, heavenscape a 閏rit : > Hi Michael, > > I am a beginner in Linux programming, and your suggestion works! But I am > still having some problem that the CPU usage is always 100% after the > program starts. Could you please look at my code below and give me some > suggestion? > > Thanks a lot!!! > > Following is some of my code: > > // idle handler of the main loop > gboolean OnIdle(int msgQid) > { > if(thread_signal) > { > RefreshImage(); > } > return TRUE; > } Do you need to reexecute indefinitely this idle handler? If not use: return FALSE; > int main (int argc, char *argv[]) > { > gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, > argc, argv, > GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, > NULL); > > //register an idle handler to update the image when the background thread > emits a signal > gdk_threads_enter(); > g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a > * PyGTK/GTKmm guy, so the C stuff > * isn't my forte */ > gdk_threads_leave(); > > MainWnd = create_MainWnd (); > gtk_widget_show (MainWnd); > > gtk_main (); > return 0; > } > > -- > View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From lists@nabble.com Fri Jun 2 06:33:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D3563B03E4 for ; Fri, 2 Jun 2006 06:33:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18136-04 for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 6ACDD3B030A for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm6y0-0004Vq-NT for gtk-list@gnome.org; Fri, 02 Jun 2006 03:33:20 -0700 Message-ID: <4677462.post@talk.nabble.com> Date: Fri, 2 Jun 2006 03:33:20 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <1149234479.10209.10.camel@athlon.brefort.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 10:33:27 -0000 Yes! My background thread will send a message when it has finished something, so I do need the check the message status frequently. If my OnIdle function return false, it will never be called again, and therefore cannot monitor the message status any more. Is there any alternate solution? Thanks a lot!! -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4677462 Sent from the Gtk+ - General forum at Nabble.com. From george@clipper.ens.fr Fri Jun 2 09:36:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CE273B0401 for ; Fri, 2 Jun 2006 09:36:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29496-08 for ; Fri, 2 Jun 2006 09:36:35 -0400 (EDT) Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by menubar.gnome.org (Postfix) with ESMTP id 0462C3B03FE for ; Fri, 2 Jun 2006 09:36:34 -0400 (EDT) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id k52DaXPt088553 for ; Fri, 2 Jun 2006 15:36:33 +0200 (CEST) X-Envelope-To: Received: from (george@localhost) by clipper.ens.fr (8.13.1/jb-1.1) Date: Fri, 2 Jun 2006 15:36:33 +0200 From: Nicolas George To: gtk-list@gnome.org Message-ID: <20060602133633.GA9572@clipper.ens.fr> References: <1149104973.27709.4.camel@localhost.localdomain> <7bf6f2dc0606010816q15d512aejc30a6c93bc165e6@mail.gmail.com> <1149253312.4847.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <1149253312.4847.21.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.10 (nef2.ens.fr [129.199.96.32]); Fri, 02 Jun 2006 15:36:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[AWL=0.054, BAYES_00=-2.599] X-Spam-Score: -2.545 X-Spam-Level: Subject: Re: Color space transformations in GTK X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 13:36:38 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le quartidi 14 prairial, an CCXIV, Carlos Eduardo Rodrigues Diogenes a =E9c= rit=A0: > I think that it will help who want to play with colors in a quick way. I > don't find this in any other library, and I thinked that GTK+ could be a > good place for this, because it will become easiest to work with other > colors representations in GTK+ applications. Did you try lcms ? Despite being quite complete, it is also simple for simple tasks. --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (SunOS) iD8DBQFEgD7hsGPZlzblTJMRAh3AAJ4y7eJCapcSqGa0p/kKpw5km+O+2QCfR5Xv BafttugMjFnieL87fO646B4= =R3g0 -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From Valdis.Kletnieks@vt.edu Fri Jun 2 10:32:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B6FA03B0272 for ; Fri, 2 Jun 2006 10:32:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32747-03 for ; Fri, 2 Jun 2006 10:32:00 -0400 (EDT) Received: from turing-police.cc.vt.edu (pool-72-66-198-190.ronkva.east.verizon.net [72.66.198.190]) by menubar.gnome.org (Postfix) with ESMTP id B51C63B0238 for ; Fri, 2 Jun 2006 10:31:59 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k52EVr54003265; Fri, 2 Jun 2006 10:31:53 -0400 Message-Id: <200606021431.k52EVr54003265@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: heavenscape In-Reply-To: Your message of "Thu, 01 Jun 2006 22:41:35 PDT." <4674575.post@talk.nabble.com> From: Valdis.Kletnieks@vt.edu References: <43ACACCA.70309@micahcarrick.com> <4674575.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1149258713_2700P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 02 Jun 2006 10:31:53 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.827 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961, RCVD_IN_NJABL_DUL=1.946, SPF_SOFTFAIL=1.384] X-Spam-Score: 1.827 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:32:02 -0000 --==_Exmh_1149258713_2700P Content-Type: text/plain; charset=us-ascii On Thu, 01 Jun 2006 22:41:35 PDT, heavenscape said: > //create a GdkPixbuf > GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer > GDK_COLORSPACE_RGB, //COLORSPACE > FALSE, // has_alpha, > 8, // int bits_per_sample, > 2048, // int width, > 2048, // int height, > 2048*3, // sizeX*3; //int rowstride, > NULL, //GdkPixbufDestroyNotify destroy_fn, > NULL //gpointer destroy_fn_data); > ); > the results i got is that: the image did appear, but the sizes are shrinked > as 684 X 684 , and there are THREE same images tile in the viewport, the > first and last ones are clipped. 684 is 2048/3, plus rounding. Are you sure that when you *loaded* the image into your pDisplayBuf, you correctly calculated where the various bytes go? Assuming pixel values r, g, and b, storing them into your pDisplayBuf for a given x,y (0-based coordinates 0..2047) is like this: pDisplayBuf[x*3+y] = r; pDisplayBuf[x*3+y+1] = g; pDisplayBuf[x*3+y+2] = b; Hmm... using x+y instead of x*3+y will produce a 1/3 width image and 2/3 trash. Other possibility is you're using 3*y+x instead (confusion of x/y between your code and what Gdk expects). --==_Exmh_1149258713_2700P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEgEvZcC3lWbTT17ARAhTUAJ4zzY8i6PbLXYW709arggnJGSHTEgCg6YNz WALAkmi+KDAQus4gx/9nsnc= =/pC/ -----END PGP SIGNATURE----- --==_Exmh_1149258713_2700P-- From jean.brefort@normalesup.org Fri Jun 2 10:58:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 708E23B1174 for ; Fri, 2 Jun 2006 10:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01643-02 for ; Fri, 2 Jun 2006 10:58:23 -0400 (EDT) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id 73B6A3B1194 for ; Fri, 2 Jun 2006 10:58:18 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id CA2F254B3D; Fri, 2 Jun 2006 16:58:16 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 17:01:16 +0200 Message-Id: <1149260476.8914.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.89 tagged_above=-999 required=2 tests=[AWL=-0.360, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.89 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:58:41 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? You can use a timer, or display the message from your thread, or ... from the thread, you might use something as: gdk_threads_enter(); RefreshImage(); gdk_threads_leave(); From patrick.jacquotf@free.fr Fri Jun 2 14:47:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C93393B01E0 for ; Fri, 2 Jun 2006 14:47:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15276-10 for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 6763B3B01BA for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp6-g19.free.fr (Postfix) with ESMTP id 62746226CC; Fri, 2 Jun 2006 20:47:48 +0200 (CEST) From: Patrick Jacquot To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 20:47:40 +0200 Message-Id: <1149274060.8687.52.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 18:47:54 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? Usually, one establishes a callback function to to be called when a message is due to be serviced. I'm not fluent in GTK programming (nor in English), but all GUI systems work so. -- Patrick From gnome-gtk-list@m.gmane.org Sun Jun 4 19:35:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4EAE3B0429 for ; Sun, 4 Jun 2006 19:35:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18939-10 for ; Sun, 4 Jun 2006 19:35:11 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 0D3193B0409 for ; Sun, 4 Jun 2006 19:35:10 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fn27a-0002sx-IN for gtk-list@gnome.org; Mon, 05 Jun 2006 01:35:02 +0200 Received: from cpe-72-130-182-162.san.res.rr.com ([72.130.182.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 Received: from swbrown by cpe-72-130-182-162.san.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Steven Brown Date: Sun, 04 Jun 2006 16:27:05 -0700 Lines: 9 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe-72-130-182-162.san.res.rr.com User-Agent: Thunderbird 1.5.0.2 (X11/20060516) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.524 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.524 X-Spam-Level: Subject: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2006 23:35:12 -0000 I've been going through the glib docs trying to find a simple way to get my fd polled by glib's main loop and call me back, but I've not found anything near simple. Is there such a way? E.g., something like gdk_input_add (which says it's deprecated but doesn't say by what). I see that it could be implemented by a custom g_source_new and such, but doing so is a pretty huge amount of code for what should be a one-liner. I must be missing something obvious. From tristan.van.berkom@gmail.com Sun Jun 4 20:22:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7D323B0531 for ; Sun, 4 Jun 2006 20:22:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21420-01 for ; Sun, 4 Jun 2006 20:22:16 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id ABF0A3B05C2 for ; Sun, 4 Jun 2006 20:22:09 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i3so885889wra for ; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=rGr3/uC/YjBwRnO7oTslcMuIA9XLNEuzYxfx1mSmalOpfI5DfMvRkAHrJm5Uu4mO4fRWnEh4XiD/dS6k78RZC8DI+4xudasUUhtMNMAELaVGjCd2ZwBoZwXs7im6w9gxcnx+XmxCfeSUgDeWR1qP4mLIJ8IYyx0sU8kTo2Z5nKA= Received: by 10.54.111.13 with SMTP id j13mr4300960wrc; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) Received: from ?66.48.170.25? ( [66.48.170.25]) by mx.gmail.com with ESMTP id 33sm2256255wra.2006.06.04.17.22.06; Sun, 04 Jun 2006 17:22:08 -0700 (PDT) Message-ID: <44837CEA.9020604@gnome.org> Date: Sun, 04 Jun 2006 20:38:02 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Brown References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.196 tagged_above=-999 required=2 tests=[AWL=0.404, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.196 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 00:22:20 -0000 Steven Brown wrote: >I've been going through the glib docs trying to find a simple way to get >my fd polled by glib's main loop and call me back, but I've not found >anything near simple. Is there such a way? E.g., something like >gdk_input_add (which says it's deprecated but doesn't say by what). > >I see that it could be implemented by a custom g_source_new and such, >but doing so is a pretty huge amount of code for what should be a >one-liner. I must be missing something obvious. > > > Well its not a one-liner... but something close to a one-liner: ================================== GIOChannel *channel = g_io_channel_unix_new (fd_to_poll); guint source_id = g_io_add_watch (channel, /* args of add_watch... */); /* For convenience... pass ownership of the channel to the attached GIOWatchSource */ g_object_unref (channel); /* .... */ At this point your callback will be called under the conditions you specified... when you are finished with the polling... you should call g_source_remove(source_id); and this will get rid of the io channel object as well as your poll function. ================================== Cheers, -Tristan From mclasen@redhat.com Mon Jun 5 14:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 744343B09D3; Mon, 5 Jun 2006 14:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20278-06; Mon, 5 Jun 2006 14:15:01 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id D637E3B0988; Mon, 5 Jun 2006 14:15:00 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF08I024331; Mon, 5 Jun 2006 14:15:00 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF0I9021827; Mon, 5 Jun 2006 14:15:00 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55IExAV012588; Mon, 5 Jun 2006 14:14:59 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Mon, 05 Jun 2006 14:14:59 -0400 Message-Id: <1149531299.4071.35.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: Cc: Subject: GLib 2.11.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 18:15:03 -0000 GLib 2.11.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.2.tar.bz2 md5sum: 18464b85bfd589f83897623c637a1553 glib-2.11.2.tar.gz md5sum: f728cd295ac98d4b95d850fe91c05fd5 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.1 to GLib 2.11.2 =================================================== * Add g_ascii_stroll to parse signed 64bit integers * GMarkup: add a flag to treat CDATA as text * GHashTable: add functions to remove all entries * GMainLoop: add functions to find the currently running source, and determine if it is destroyed * Bug fixes: 342563 g_atomic_thread_init() needs to be called before other _g_*_thread_init() functions 343548 Potential use after free in callers of g_string_free() 168538 Wish: Clearing contents of GHashTables 321886 GTK+ cannot be reliably used in multi-threaded applications 341826 goption.c: 'strtoll' is C99's function 343899 g_ascii_formatd dosn't work as expected for all format strings 317793 Make GEnumValue strings const 337129 Compile warnings in G_IMPLEMENT_INTERFACE 303622 What is G_TYPE_CHAR? * Updated translations (bg,dz,eu,gl,ja,nl,th,vi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=341826,342563,343548,168538,168538,321886,343899,321886,317793,337129,303622 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Peter Kjellerstedt, Kazuki Iwamoto Leonard den Ottolander, Chris Wilson, Behdad Esfahbod, Matt Barnes, 貀stein Johansen, Tim Janik Morten Welinder Matthias Clasen June 5, 2006 From mclasen@redhat.com Mon Jun 5 16:21:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 09B113B0543; Mon, 5 Jun 2006 16:21:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28553-01; Mon, 5 Jun 2006 16:21:32 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 0F8903B0012; Mon, 5 Jun 2006 16:21:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLVn7006951; Mon, 5 Jun 2006 16:21:31 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLUBq020469; Mon, 5 Jun 2006 16:21:31 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55KLUAV025318; Mon, 5 Jun 2006 16:21:30 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 05 Jun 2006 16:21:30 -0400 Message-Id: <1149538890.4071.40.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_XI=0.077] X-Spam-Score: -2.429 X-Spam-Level: Cc: Subject: GTK+ 2.9.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 20:21:34 -0000 GTK+ 2.9.2 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.2.tar.gz md5sum: c63e7d0cf7c4e983206c3088a0fb8862 gtk+-2.9.2.tar.bz2 md5sum: 17629437af44fce03485101371c8f041 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.1 to 2.9.2 ============================================ * GtkPrintOperation - Support asynchronous pagination with the ::paginate signal - Add gtk_print_operation_cancel - Support application-specific widgets - Allow disabling features based on application capabilities - Optionally show progress - Change some function names in GtkPrintContext to be longer and better - Support preview, the default implementation spawns evince, but the api allows for an internal preview implementation * GtkCellView - Add a model property * GtkStatusIcon - Allow to obtain screen geometry * GtkTreeView - Many bug fixes, in particular for RTL handling - Separate sensitive and selectable properties of rows - Optionally allow rubberband selection * GtkButton - Add image-spacing style property - Add image-position property * GtkToolButton - Add icon-spacing style property * Make GTK+ work as an untrused X client * Bugs fixed: 343838 gtkprintoperationpreview.h guards 305530 Crashes while creating source code w/GtkFontSelection 341327 Memory corruption inside glib 341734 cursor blocked to dnd mode after using shift and dnd on a GtkCalendar 343453 G_DEFINE_TYPE messes up internal typenames of GdkWindow and GdkPixmap 136571 Problems running as untrusted client 168105 the right edge tab does not appear when switching tab 172535 Add support for UI builders in gtk+ 302556 GtkTreeView widget signals are badly documented 324480 Selecting first item with keyboard is difficult 340428 small cleanup 340444 don't run the custom page size dialogue 340839 Critical warnings in GtkTreeModelFilter 341898 gtk_tree_view_insert_column_with_attributes doesn't work with fixed_height_mode 342003 DnD: Conditional jump or move depends on uninitialised value 342072 Wrong drop location in GtkEntry 342096 GtkImage animation CRITICALS on switching themes 342513 widget class style property with type module 342529 gdk should set resolution on PangoCairoFontmap, not PangoCairoContext 342535 Add documentation for new GtkWidget style properties (including Since tags) 342543 can't compile gtk+ on opensolaris using sun cc 342569 Typo in decl of gdk_color_parse 342752 Need a way to specify custom tab label for custom page in Print dialog 342754 print-editor: font button dialog doesn't get focus if main window has a window group 342781 GtkPrintUnixDialog: Collate should be insensitive unless Copies is > 1 342783 GtkPrintUnixDialog: Range textinput area should be insensitive unless range radiobutton is selected 342894 Use after free inside gtk_text_view_set_buffer 342930 GtkButton should offer a way to position the image relative to the text 343088 Some typos in the PO file 343425 "grab-notify"-signal is not correctly propagated for internal children 343438 gtk_color_button_set_color() doesn't emit "color-set" signal 343475 page setup unix dialog confusion 343625 allow to get only some info from gtk_status_icon_get_geometry 343677 GtkWindow chains key-release to key-press 320431 Text too close when using East/West in a GtkToolButton 321523 GtkTreeView's test_expand_row signal emitting impractical on row expand all 342007 Warning in gtk_paned_compute_position 343233 gdk_rectangle_intersect doc 333284 expander animation not working in RTL mode 343444 change color of gtk-demo source-buffer comment color from red to DodgerBlue 343630 Small inconsistence in migration documentation 80127 Rubberbanding for GtkTreeView 341450 status icon + libnotify 341679 Allow absolute filenames in the options entries * Updated translations (bg,cy,de,el,es,et,eu,gl,gu,it,ja, nb,nl,pt_BR,th,vi) Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Alexander Larsson, Behdad Esfahbod, Benjamin Berg, Caolan McNamara, Carlos Garnacho Parro, Carol Spears, Christian Persch, Chris Wilson, Claudio Saavedra, Clytie Siddall, Damon Chaplin, Daniel Lindenaar, Dan Winship, Diana Fong, Ed Catmur, Emmanuele Bassi, Havoc Pennington, Henrique Romano, Hiroyuki Ikezoe, James Moger, Johan Dahlin, Kouhei Sutou, Kristian Rietveld, Markku Vire, Mart Raudsepp, Masatake Yamato, Michael Emmel, Michael Natterer, Murray Cumming, Olexiy Avramchenko, Paolo Borelli, Patrick Monnerat, Richard Hult, Sampo Savolainen, Sebastien Bacher, Srirama Sharma, Stefan Kost, Tim Janik, Tommi Komulainen, Tor Lillqvist, Yevgen Muntyan A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=342072,342096,342003,341734,305530,168105,342007,342529,342535,342543,342569,341679,342752,172535,342513,342781,342783,342754,136571,341450,333284,340428,340839,341898,321523,343088,343233,324480,342894,320431,342930,343453,343425,343438,343444,340444,343475,302556,343677,343625,80127,343838,341327,168105,343630 Matthias Clasen June 5, 2006 From katsuo_harada_evil_does@hotmail.com Mon Jun 5 17:23:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 859933B03A0 for ; Mon, 5 Jun 2006 17:23:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01136-07 for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from hotmail.com (bay105-f27.bay105.hotmail.com [65.54.224.37]) by menubar.gnome.org (Postfix) with ESMTP id 80FF43B086B for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 14:23:24 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 21:23:22 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Mon, 05 Jun 2006 23:23:22 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 21:23:24.0257 (UTC) FILETIME=[470DA510:01C688E6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.332 tagged_above=-999 required=2 tests=[AWL=-0.716, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.332 X-Spam-Level: Subject: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:23:28 -0000 Hello, i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 when running gtk-demo -> UI Manger demo i've got the following output http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log when trying File menu. is it a bug or not ??? -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Windows Live Messenger : venez tester la version b阾a ! http://www.ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73 From tomasek@ebed.etf.cuni.cz Mon Jun 5 17:57:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 048853B0963 for ; Mon, 5 Jun 2006 17:57:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03329-04 for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (ebed.etf.cuni.cz [195.113.5.3]) by menubar.gnome.org (Postfix) with ESMTP id 1BFA13B086C for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (localhost.localdomain [127.0.0.1]) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11) with ESMTP id k55LkIq0015361 for ; Mon, 5 Jun 2006 23:46:18 +0200 Received: (from tomasek@localhost) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11/Submit) id k55LkIAG015359 for gtk-list@gnome.org; Mon, 5 Jun 2006 23:46:18 +0200 Date: Mon, 5 Jun 2006 23:46:18 +0200 From: Petr Tomasek To: gtk-list@gnome.org Message-ID: <20060605214618.GA14951@ebed.etf.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Homepage: http://www.etf.cuni.cz/~tomasek/ X-Echelon: bomb Arafat Intifada bus kach drugs mafia boss heroin spy Semtex Saddam Al-Qaida Usama bin Ladin Bush Sharon X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.494 X-Spam-Level: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:57:53 -0000 On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > Hello, > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > when running gtk-demo -> UI Manger demo i've got the following output > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > when trying File menu. is it a bug or not ??? Did you also update the gtk2-engines? -- Petr Tomasek From katsuo_harada_evil_does@hotmail.com Mon Jun 5 18:13:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A06E33B08BD for ; Mon, 5 Jun 2006 18:13:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04035-10 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from hotmail.com (bay105-f10.bay105.hotmail.com [65.54.224.20]) by menubar.gnome.org (Postfix) with ESMTP id 1E6233B0929 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 15:13:06 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 22:13:05 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com In-Reply-To: <20060605214618.GA14951@ebed.etf.cuni.cz> From: "Vitaly D" To: tomasek@etf.cuni.cz, gtk-list@gnome.org Date: Tue, 06 Jun 2006 00:13:05 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 22:13:06.0099 (UTC) FILETIME=[385EA030:01C688ED] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.375 tagged_above=-999 required=2 tests=[AWL=-0.759, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.375 X-Spam-Level: Cc: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 22:13:11 -0000 >From: Petr Tomasek >To: gtk-list@gnome.org >Subject: Re: gtk+-2.9.2 bug or not ??? >Date: Mon, 5 Jun 2006 23:46:18 +0200 > >On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > > Hello, > > > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > > > when running gtk-demo -> UI Manger demo i've got the following output > > > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > > > when trying File menu. is it a bug or not ??? > >Did you also update the gtk2-engines? what is gtk2-engines ? i'm using FreeBSD 4.11 with XFree86 4.6.0 with latest pango (1.13.1) atk (1.10.3) cairo (1.1.6) freetype (2.2.1) if this helps. otherwise i don't know what is gtk2-engines Cheers _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From BillS@techsi.com Tue Jun 6 10:26:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 863103B0182 for ; Tue, 6 Jun 2006 10:26:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28454-01 for ; Tue, 6 Jun 2006 10:26:32 -0400 (EDT) Received: from mail.techsi.com (wsip-68-15-225-156.om.om.cox.net [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id B57E73B01B5 for ; Tue, 6 Jun 2006 10:26:31 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56EASAZ022954 for ; Tue, 6 Jun 2006 09:10:31 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 09:26:15 -0500 Message-ID: <00e901c68975$2e2455f0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EA_01C6894B.454E4DF0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.365 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.365 X-Spam-Level: Subject: Treeview - simulating / faking keyboard events to change selection / view X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 14:26:36 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I would like to simulate the functionality of the up and down, page up and down, and home and end keyboard keys to the treeview widget. So instead of writing all the scrolling functions myself, I would just like to use the existing ones within the treeview widget that are activated by keyboard events. So I would like to "trigger" the treeview widget into sensing that one of the keyboard buttons have been pressed that would scroll the treeview by line, page, or beginning or end of list. Thanks, Bill ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I would like to simulate the functionality of the up and down, page = up and down, and home and end keyboard keys to the treeview widget.  So = instead of writing all the scrolling functions myself, I would just like to use = the existing ones within the treeview widget that are activated by keyboard events.  So I would like to “trigger” the treeview = widget into sensing that one of the keyboard buttons have been pressed that would = scroll the treeview by line, page, or beginning or end of = list.

 

Thanks,

Bill

 

------=_NextPart_000_00EA_01C6894B.454E4DF0-- From johannes_vuori@web.de Mon Jun 5 12:46:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 916763B026A for ; Mon, 5 Jun 2006 12:46:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15064-06 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by menubar.gnome.org (Postfix) with ESMTP id 5D9E53B0429 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Reveived: from web.de by fmmailgate04.web.de (Postfix) with SMTP id 044A745BA for ; Mon, 5 Jun 2006 18:46:39 +0200 (CEST) Received: from [85.156.186.148] by freemailng1803.web.de with HTTP; Mon, 05 Jun 2006 18:46:38 +0200 Date: Mon, 05 Jun 2006 18:46:38 +0200 Message-Id: <814204608@web.de> MIME-Version: 1.0 From: johannes_vuori@web.de To: gtk-list@gnome.org Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.221 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, NO_REAL_NAME=0.961] X-Spam-Score: 0.221 X-Spam-Level: X-Mailman-Approved-At: Tue, 06 Jun 2006 11:17:41 -0400 Subject: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 16:46:51 -0000 Hi, I am developing a project with a friend. We are on the search for a good 2d graphics library, and I saw Your's. I would like to ask if the library for Windows and Linux use the same function names. So, if I would write this programm on a Linux system, would it be possible to simply install the Windows library on the Windows system, and without changing the names of the functions (of the library) in my programm, to compile it? Or are there slight/major changes we would have to do first? Is there also a c++ version for Windows? Yours sincerely, Johannes _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From tml@iki.fi Tue Jun 6 11:30:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7D50D3B0151 for ; Tue, 6 Jun 2006 11:30:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00836-04 for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 6E6E93B028A for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from pettson.tml.iki.fi (MMMDCCLXVIII.tun.saunalahti.fi [213.169.6.168]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 8AB222166B5; Tue, 6 Jun 2006 18:30:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17541.40860.218000.127270@gargle.gargle.HOWL> Date: Tue, 6 Jun 2006 18:30:36 +0300 To: johannes_vuori@web.de In-Reply-To: <814204608@web.de> References: <814204608@web.de> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.328 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.328 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 15:30:57 -0000 johannes_vuori@web.de writes: > I am developing a project with a friend. We are on the search for a > good 2d graphics library, Well, GTK+ isn't really a "2D graphics library". Maybe you are using the term loosely, or should you look on cairo instead? > I would like to ask if the library for Windows and Linux use the > same function names. Of course, it wouldn't make any sense otherwise, would it? (There are a few platform-specific functions that have x11 or win32 in their names, but they are very special-case.) > So, if I would write this programm on a Linux system, would it be > possible to simply install the Windows library on the Windows > system, and without changing the names of the functions (of the > library) in my programm, to compile it? If you program otherwise is portable, and if you take into consideration some relatively straightforward rules of thumb to follow, sure. (See http://www.iki.fi/tml/fosdem-2006.pdf ) It's best to build and test on both platforms continuously while developing the software, not just as a last-night effort, only to notice that you have made some fundamental nonportable design choice right at the start... > Is there also a c++ version for Windows? With C++ "version" I guess you mean gtkmm, which really isn't a "version", but a C++ binding on top of GTK+. Anyway, as far as I know, yes. Have never used it myself, though. --tml From BillS@techsi.com Tue Jun 6 18:09:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45303B02E8 for ; Tue, 6 Jun 2006 18:09:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25029-01 for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from mail.techsi.com (techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 7D7373B00BC for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56LrZAZ026420 for ; Tue, 6 Jun 2006 16:53:37 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 17:09:16 -0500 Message-ID: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01A0_01C6898B.F3EC31C0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.499 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.499 X-Spam-Level: Subject: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 22:09:28 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I need to indicate to the treeview widget how many rows to scroll up or down. Any suggestions on how to do this? I know I can position the cursor based on a path. However, that may be tricky in that the user may or may not have the sections within the tree expanded or not. Also, I would have to track how many rows are currently displayed within the current treeview. I other words, I need to emulate the user scrolling through the treeview by line, by page, or to the beginning or end. I think the begin or end would not be too bad. Thanks, Bill ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I need to indicate to the treeview widget how many rows to scroll = up or down.  Any suggestions on how to do this?  I know I can = position the cursor based on a path.  However, that may be tricky in that the = user may or may not have the sections within the tree expanded or not.  = Also, I would have to track how many rows are currently displayed within the = current treeview.

 

I other words, I need to = emulate the user scrolling through the treeview by line, by page, or to the = beginning or end.  I think the begin or end would not be too bad. =

 

Thanks,

Bill

 

------=_NextPart_000_01A0_01C6898B.F3EC31C0-- From tristan.van.berkom@gmail.com Tue Jun 6 22:03:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 713AF3B0B0A for ; Tue, 6 Jun 2006 22:03:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04432-05 for ; Tue, 6 Jun 2006 22:03:23 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by menubar.gnome.org (Postfix) with ESMTP id D29193B02D7 for ; Tue, 6 Jun 2006 22:03:22 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i12so280761wra for ; Tue, 06 Jun 2006 19:03:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MCzN6WRNDUHNO5h5KKbkczD+CTM0HLmY/6bgqc0T4C5mS7d+oONlRu0YSriqgEJ1voJGKRTu20Czmb2mSN30XDamoLYVDbg3g5mxYAC1GHnZo5g3K1n17wf+PRwcZ4om3AB//Xibs2oJvnB7udTlg8kvLvt40i+QFCqUYBhsAzA= Received: by 10.54.116.7 with SMTP id o7mr9068wrc; Tue, 06 Jun 2006 19:03:17 -0700 (PDT) Received: from ?66.48.170.73? ( [66.48.170.73]) by mx.gmail.com with ESMTP id g2sm1167040wra.2006.06.06.19.03.17; Tue, 06 Jun 2006 19:03:18 -0700 (PDT) Message-ID: <448637A8.7040007@gnome.org> Date: Tue, 06 Jun 2006 22:19:20 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Sousan References: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> In-Reply-To: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.222 tagged_above=-999 required=2 tests=[AWL=0.378, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.222 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 02:03:25 -0000 Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From kereoz@yahoo.fr Wed Jun 7 04:20:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C11D3B0343 for ; Wed, 7 Jun 2006 04:20:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26466-05 for ; Wed, 7 Jun 2006 04:20:04 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id 01BE63B0217 for ; Wed, 7 Jun 2006 04:20:03 -0400 (EDT) Received: (qmail 35942 invoked by uid 60001); 7 Jun 2006 08:19:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=niZGyLE9Dw8mE00kfBFaSxDwB15y4KEkapVjfVMgSDMdAH1E/ZhaTeKOFuupaoYqxWtRPTUPUlGIB6Pv5xb7h7lX7E/wWCvHddhgrZ0RjJuwK/ZA8ZfGsDS3z7jKxNXIw9umiOI3oZWHTQjPQ6Vs2r+d4icV0Uwk9rpN2O0dCHY= ; Message-ID: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 07 Jun 2006 10:19:59 CEST Date: Wed, 7 Jun 2006 10:19:59 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.011 tagged_above=-999 required=2 tests=[AWL=-0.425, BAYES_20=-0.74, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.011 X-Spam-Level: Subject: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 08:20:07 -0000 Hi, I've got questions about building the gtkmozembed widget. Do I need to build mozilla or firefox from sources ? Mozilla or firefox ? Is there a way t build only the widget ? I would like to compile a gtk app using gtkmozembed (gtk mozilla widget) for ARM, so I need to have light libs. Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tonikitoo@gmail.com Wed Jun 7 08:39:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BF753B0D02 for ; Wed, 7 Jun 2006 08:39:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12108-03 for ; Wed, 7 Jun 2006 08:39:22 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id A14753B0CE7 for ; Wed, 7 Jun 2006 08:39:21 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167152wri for ; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pmn1n8Xl2f8npFFsBp5bWT5cMk8+QQwzmdfNwjtEPx4SzHfhwJ2Vo3DTFuksX7t+yf65LUhdLJSQ+Z3yRqc+xL/yhH8A/VtCZ+LLevuZhjds3Id1CFNC0DntHXlO4aR7kNGKNFvCOi5kvYaGMNA2hgO3T68tEVs7PhWvlYsne48= Received: by 10.65.98.11 with SMTP id a11mr307127qbm; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:39:20 -0700 (PDT) Message-ID: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> Date: Wed, 7 Jun 2006 08:39:20 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.18 tagged_above=-999 required=2 tests=[AWL=0.189, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.18 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:39:23 -0000 you could try building xulrunner with the --with-gecko-profile=minimal set, from the branch MOZILLA_1_8_BRANCH [pulling] export MOZ_CO_TAG=MOZILLA_1_8_BRANCH cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk # type the password anonymous cd mozilla make -f client.mk checkout MOZ_CO_PROJECT=xulrunner [building] cd cp xulrunner/config/mozconfig . [add the following 4 line into your mozconfig] ac_add_options --prefix= ac_add_options --disable-javaxpcom ac_add_options --disable-js-static-build ac_add_options --with-embedding-profile=minimal make -f client.mk build_all make -s install this would provide you the minimal 'gecko' build for embedding purposes. Link against the .so libs created at yout/prefix/lib/mozilla/.so (according with the .pc files). regards On 6/7/06, Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? > Mozilla or firefox ? > Is there a way t build only the widget ? > > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. > -- --Antonio Gomes Nokia Technology Institute From tonikitoo@gmail.com Wed Jun 7 08:41:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96E843B0D2A for ; Wed, 7 Jun 2006 08:41:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12377-03 for ; Wed, 7 Jun 2006 08:41:35 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 83A903B0D01 for ; Wed, 7 Jun 2006 08:40:45 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167408wri for ; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SXNYjX2suiXxjuMwK8zSL9VKJKjxgoH1rxni5wMIOa8sVn7/yZ15daEQX7VbhIemOstEvrSzyN4C6DOFgZHTSAZzklftx7v19uSUOB9L5jCPvU/L+a6tLNymZj8HshTIVEJ4HGqu17GXcUUQ0zrzMdNEfFxbA3DceTBHSka6v48= Received: by 10.65.237.20 with SMTP id o20mr305181qbr; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:40:44 -0700 (PDT) Message-ID: <7eb9ad710606070540k31b59afci2e52d298787a6200@mail.gmail.com> Date: Wed, 7 Jun 2006 08:40:44 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.2 tagged_above=-999 required=2 tests=[AWL=0.169, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.2 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:41:51 -0000 you can follow their official website at http://developer.mozilla.org/en/docs/Configuring_Build_Options#Using_a_.mozconfig_Configuration_File On 6/7/06, Antonio Gomes wrote: > you could try building xulrunner with the --with-gecko-profile=minimal > set, from the branch MOZILLA_1_8_BRANCH > > [pulling] > export MOZ_CO_TAG=MOZILLA_1_8_BRANCH > > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk > # type the password anonymous > cd mozilla > make -f client.mk checkout MOZ_CO_PROJECT=xulrunner > > [building] > cd > cp xulrunner/config/mozconfig . > [add the following 4 line into your mozconfig] > ac_add_options --prefix= > ac_add_options --disable-javaxpcom > ac_add_options --disable-js-static-build > ac_add_options --with-embedding-profile=minimal > make -f client.mk build_all > make -s install > > this would provide you the minimal 'gecko' build for embedding > purposes. Link against the .so libs created at > yout/prefix/lib/mozilla/.so (according with the .pc files). > > regards > > On 6/7/06, Christophe HAUSER wrote: > > Hi, > > > > I've got questions about building the gtkmozembed > > widget. > > Do I need to build mozilla or firefox from sources ? > > Mozilla or firefox ? > > Is there a way t build only the widget ? > > > > I would like to compile a gtk app using gtkmozembed > > (gtk mozilla widget) for ARM, so I need to have light > > libs. > > > > -- > --Antonio Gomes > Nokia Technology Institute > -- --Antonio Gomes From tvb@gnome.org Wed Jun 7 09:07:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 69DD73B0CE0 for ; Wed, 7 Jun 2006 09:07:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14222-07 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id B8F923B0CB4 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id E61EA15A5E; Wed, 7 Jun 2006 09:07:23 -0400 (EDT) Message-ID: <4486D1CD.8070408@gnome.org> Date: Wed, 07 Jun 2006 09:17:01 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.48 tagged_above=-999 required=2 tests=[AWL=-0.034, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.48 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:07:28 -0000 Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? Heavens no ! the headers and gtkmozembed library is distributed with the system gecko, save yourself the trouble and use them. See the gnome 'devhelp' module's autofoo setup for an example of how to detect the correct gecko and get the right compile flags etc. Cheers, -Tristan From tvb@gnome.org Wed Jun 7 09:14:22 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0F433B0CDC for ; Wed, 7 Jun 2006 09:14:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14864-08 for ; Wed, 7 Jun 2006 09:14:20 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 258CD3B0D28 for ; Wed, 7 Jun 2006 09:14:18 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 34CE315A5E; Wed, 7 Jun 2006 09:14:14 -0400 (EDT) Message-ID: <4486D367.8070608@gnome.org> Date: Wed, 07 Jun 2006 09:23:51 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XF=0.077] X-Spam-Score: -2.441 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:14:22 -0000 Christophe HAUSER wrote: [...] > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. Sorry I missed this part... if you dont already have a gecko compiled and installed for your ARM machine... then you should look into compiling it, I havent heard of any "tiny gecko" in existence, although you can taylor your compile options I suppose and add stuff like --strip-all from your libs... If you do compile the gecko, follow the instructions at mozilla.org and find the right options to begin with: type "about:buildconfig" in the url window of any firefox to know the compile options, you want to use the compile options that suit your site (i.e. are you rendering fonts with xft ? are you using cairo backends ? what did the vendors compile with when compiling against a similar library suite to your ARM system). Cheers, -Tristan From bharat.gusain@st.com Wed Jun 7 06:05:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 56E0F3B0BCF for ; Wed, 7 Jun 2006 06:05:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01274-09 for ; Wed, 7 Jun 2006 06:05:22 -0400 (EDT) Received: from fra-del-03.spheriq.net (fra-del-03.spheriq.net [195.46.51.99]) by menubar.gnome.org (Postfix) with ESMTP id DE4263B0BA2 for ; Wed, 7 Jun 2006 06:05:21 -0400 (EDT) Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-03.spheriq.net with ESMTP id k57A5B4T000894 for ; Wed, 7 Jun 2006 10:05:11 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-02.spheriq.net with ESMTP id k57A575Q009985 for ; Wed, 7 Jun 2006 10:05:08 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id k57A567i024086 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 7 Jun 2006 10:05:07 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BFB19DA46 for ; Wed, 7 Jun 2006 10:05:05 +0000 (GMT) Received: from mail1.dlh.st.com (mail1.dlh.st.com [10.199.8.21]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 16D8C4741C for ; Wed, 7 Jun 2006 10:05:04 +0000 (GMT) Received: from dlhgn13dhcp15.dlh.st.com (dlhgn13dhcp15.dlh.st.com [10.199.13.15]) by mail1.dlh.st.com (MOS 3.5.8-GR) with ESMTP id CKW69700 (AUTH "bharat gusain"); Wed, 7 Jun 2006 15:35:02 +0530 (IST) From: Bharat Singh GUSAIN Organization: st To: gtk-list@gnome.org Date: Wed, 7 Jun 2006 15:32:26 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606071532.26772.bharat.gusain@st.com> X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.005 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DATE_IN_FUTURE_06_12=1.668, TW_GT=0.077] X-Spam-Score: 1.005 X-Spam-Level: * X-Mailman-Approved-At: Wed, 07 Jun 2006 09:14:49 -0400 Subject: YUV image display X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 10:05:23 -0000 hi all, i am new to GTK and is currently working on a webcam application developed in GTK for which i need some nice gui frontend and need to display the yuyv image formats also. but gtk only display images in rgb format. can anybody tell me that whether there is any calls in GTK which can display the yuv images. Thanx in advance Bharat From gnome-gtk-list@m.gmane.org Wed Jun 7 19:05:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CDEC93B04FF for ; Wed, 7 Jun 2006 19:05:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21300-02 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 83E5C3B0339 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fo75C-0003yi-Gn for gtk-list@gnome.org; Thu, 08 Jun 2006 01:05:04 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Wed, 7 Jun 2006 23:02:39 +0000 (UTC) Lines: 81 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_DP=0.077, TW_GT=0.077] X-Spam-Score: -1.998 X-Spam-Level: Subject: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:05:11 -0000 I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). After doing so, I get the following error messages when I run gtk applications: ~ [1] gedit gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control ~ [2] evince evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control I've done Web searches and I have tried a number of things, but none of them fix this problem. Is this the right list on which to ask this question? It seems Gtk related. Does anyone have a suggestion? I've attached some notes on some of the things that I have tried, just in case they offer a clue. Thanks for help. Dave Some additional notes follow: ========================================================= When running gtk applications, for example gedit, I get the following message:: gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control This means, apparently, that every gtk application on my system is broken. Examples: gedit, firefox, realplay, epiphany, evince, SciTE, This symbol seems to be defined in libgobject-2.0.a. I ran:: $ nm -A --defined-only lib* | grep g_object_compat_control | less and saw the following:: libgobject-2.0.a:gobject.o:000036fe T g_object_compat_control the "T" means "The symbol is in the text (code) section." Then, to find out what package libgobject-2.0.a is in, I did the following:: $ dpkg -S libgobject-2.0.a which displayed:: libglib2.0-dev: /usr/lib/libgobject-2.0.a So, I did:: $ sudo apt-get --reinstall install libglib2.0-dev But, for example, gedit still does not work. Next, I did the following: 1. Retrieved a new, fresh /etc/apt/sources.list from http://www.ubuntuforums.org/showpost.php?p=1090438 2. Did another update/upgrade:: $ sudo apt-get update $ sudo apt-get upgrade But, gedit, for example, still produces the same error message. From yeti@physics.muni.cz Wed Jun 7 19:24:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C49E93B036A for ; Wed, 7 Jun 2006 19:24:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22273-07 for ; Wed, 7 Jun 2006 19:24:27 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id F030C3B02BE for ; Wed, 7 Jun 2006 19:24:26 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k57NOOFK029666 for ; Thu, 8 Jun 2006 01:24:25 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 953C823D62; Thu, 8 Jun 2006 01:24:24 +0200 (CEST) Date: Thu, 8 Jun 2006 01:24:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060607232429.GD30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:24:28 -0000 On Wed, Jun 07, 2006 at 11:02:39PM +0000, Dave Kuhlman wrote: > I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. > I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). > After doing so, I get the following error messages when I run gtk applications: > > ~ [1] gedit > gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > ~ [2] evince > evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > > Does anyone have a suggestion? What ldd some-gtk-app prints? Namely the libgobject-2.0 is interesting. > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > $ nm -A --defined-only lib* | grep g_object_compat_control | less You cannot get symbols from shared libs with nm. Try something like eu-readelf --symbols libgobject-2.0.so.0.1000.3 instead to get symbol info from the dynamic lib. Static libs (.a) are not used for dynamic linking and thus irrelevant here. What libgobject-2.0* files you have there anyway? > ... > So, I did:: > > $ sudo apt-get --reinstall install libglib2.0-dev The NON-dev package is important for run-time, -dev is only important for compilation. So what libglib2.0 do you have installed? Is it at least 2.10.0? Yeti -- Anonyms eat their boogers. From gnome-gtk-list@m.gmane.org Wed Jun 7 20:08:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA87F3B04ED for ; Wed, 7 Jun 2006 20:08:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24955-07 for ; Wed, 7 Jun 2006 20:08:47 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id E38E63B0E52 for ; Wed, 7 Jun 2006 20:08:46 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fo84m-00068B-52 for gtk-list@gnome.org; Thu, 08 Jun 2006 02:08:40 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Thu, 8 Jun 2006 00:08:23 +0000 (UTC) Lines: 65 Message-ID: References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.242 tagged_above=-999 required=2 tests=[AWL=-0.167, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_GT=0.077] X-Spam-Score: -2.242 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 00:08:48 -0000 David Ne膷as (Yeti physics.muni.cz> writes: > > What > > ldd some-gtk-app > > prints? Namely the libgobject-2.0 is interesting. > David (Yeti) - Wow. I am really glad that I asked this question. Your reply was very educational. After posting my original message, I continued working on this problem. I remembered that, some time ago, I had compiled gtk+ on my machine. So I did $ make uninstall for each of pango, cairo, glib, and gtk+. Now, when I do (as you suggested): $ ldd gedit I do not see references to the libraries that I built in /usr/local/lib. I guess my problem was that these libraries were old and not up-to-date. > > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > > > $ nm -A --defined-only lib* | grep g_object_compat_control | less > > You cannot get symbols from shared libs with nm. Try > something like > > eu-readelf --symbols libgobject-2.0.so.0.1000.3 I do not have eu-readelf on my machine. I will have to go looking for it. > > instead to get symbol info from the dynamic lib. Static libs > (.a) are not used for dynamic linking and thus irrelevant > here. > > What libgobject-2.0* files you have there anyway? > I believe that the problem was that the version in /usr/local/lib was built from old source. When I removed it, my system started finding the more up-to- date version in /usr/lib. That fixed my problem. I do not need to build gtk+ from source right now, but will likely need to do so in the future. I will have to try to remember this problem, and the suggestions you (Yeti) gave me to track it down. I've saved your message where I will have it next time. Thanks again. Dave From yeti@physics.muni.cz Thu Jun 8 04:25:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF193B0DFE for ; Thu, 8 Jun 2006 04:25:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19030-01 for ; Thu, 8 Jun 2006 04:25:36 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 5B5A23B05CC for ; Thu, 8 Jun 2006 04:25:35 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k588PSGn010077 for ; Thu, 8 Jun 2006 10:25:29 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id BC2F123D63; Thu, 8 Jun 2006 10:25:28 +0200 (CEST) Date: Thu, 8 Jun 2006 10:25:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608082529.GH2166@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 08:25:37 -0000 On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > I do not have eu-readelf on my machine. I will have to go looking for it. It seems Debian does not contain elfutils. Granted, it used to have an idiosyncratic license, but now it is GNU GPL so hopefully it will get to Debian too. > I do not need to build gtk+ from source right now, but will likely need to do > so in the future. I will have to try to remember this problem I wrote this a hundered times but I will repeat it again and again... Do not install libraries to /usr/local while you have another version of the library installed by your distro, it is a reciepe for troubles. Use the packaging system. Take advantage of the packaging system. It is not so hard to build a package of a newer version if you have the source package of the current one. Also look at backports, the version you need can be already there. Yeti -- Anonyms eat their boogers. From kereoz@yahoo.fr Thu Jun 8 05:06:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E914A3B05CA for ; Thu, 8 Jun 2006 05:06:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21502-05 for ; Thu, 8 Jun 2006 05:06:33 -0400 (EDT) Received: from web25906.mail.ukl.yahoo.com (web25906.mail.ukl.yahoo.com [217.12.10.204]) by menubar.gnome.org (Postfix) with SMTP id C371F3B0427 for ; Thu, 8 Jun 2006 05:06:32 -0400 (EDT) Received: (qmail 11551 invoked by uid 60001); 8 Jun 2006 09:06:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yMPVnzoUVlcHS8vnCG1q+69Nrkmr9PvstPvpkyp4VhjDcDD/NUaosQ+ctN8+TRCwM3yVcymuVv2BKEkz+78Taqh16m4tmcP6P6EHx26vPh5se7LkU46jb+BLQFhgFwJllRnFnYQJWfWE0rfEI2wjtRHHGIy+synl5rqR7tQBaj8= ; Message-ID: <20060608090631.11549.qmail@web25906.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25906.mail.ukl.yahoo.com via HTTP; Thu, 08 Jun 2006 11:06:31 CEST Date: Thu, 8 Jun 2006 11:06:31 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org In-Reply-To: <4486D367.8070608@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.079 tagged_above=-999 required=2 tests=[AWL=0.443, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.079 X-Spam-Level: Subject: RE : Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 09:06:35 -0000 Thanks a lot :) Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From murrayc@murrayc.com Thu Jun 8 13:20:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C3163B07EB for ; Thu, 8 Jun 2006 13:20:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24076-02 for ; Thu, 8 Jun 2006 13:20:40 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (sd-green-bigip-98.dreamhost.com [208.97.132.98]) by menubar.gnome.org (Postfix) with ESMTP id 225883B0EFD for ; Thu, 8 Jun 2006 13:20:38 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id EE142129A8C for ; Thu, 8 Jun 2006 10:20:31 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-vTkKqJNWDGQR4LW1VhLx" Date: Thu, 08 Jun 2006 19:20:28 +0200 Message-Id: <1149787228.5749.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.444 tagged_above=-999 required=2 tests=[AWL=0.078, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.444 X-Spam-Level: Subject: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:20:44 -0000 --=-vTkKqJNWDGQR4LW1VhLx Content-Type: text/plain Content-Transfer-Encoding: 7bit Could someone point out what I'm doing wrong in the attached test case? It's meant to read a value from the rc file, to determine how a widget would be drawn, making the widget themed. I get this output: example button gtype name=ExampleButton example_button_class_init(): Registering example_thing style property. example_button_init(): example_thing from rc file=0 -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=custom_gtkrc Content-Type: text/plain; name=custom_gtkrc; charset=UTF-8 Content-Transfer-Encoding: 7bit style "example-style" { ExampleButton::example_thing = 10 } class "ExampleButton" style "example-style" --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=testrcfull.c Content-Type: text/x-csrc; name=testrcfull.c; charset=UTF-8 Content-Transfer-Encoding: 7bit #include typedef struct _ExampleButton ExampleButton; typedef struct _ExampleButtonClass ExampleButtonClass; struct _ExampleButton { GtkButton parent; /* private */ }; struct _ExampleButtonClass { GtkButtonClass parent_class; }; static void example_button_init (ExampleButton *object) { int example_thing = 0; gtk_widget_style_get(GTK_WIDGET(object), "example_thing", &example_thing, NULL); printf("example_button_init(): example_thing from rc file=%d\n", example_thing); } static void example_button_class_init (ExampleButtonClass *klass) { GtkWidgetClass *widget_klass = 0; widget_klass = GTK_WIDGET_CLASS (klass); printf("example_button_class_init(): Registering example_thing style property.\n"); gtk_widget_class_install_style_property(widget_klass, g_param_spec_int("example_thing", "Example Thing", "This is just a silly example.", G_MININT, G_MAXINT, 0, G_PARAM_READABLE) ); } G_DEFINE_TYPE (ExampleButton, example_button, GTK_TYPE_BUTTON); #define EXAMPLE_TYPE_BUTTON (example_button_get_type ()) #define EXAMPLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_TYPE_BUTTON, ExampleButton)) #define EXAMPLE_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EXAMPLE_BUTTON, ExampleButtonClass)) #define EXAMPLE_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_IS_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_BUTTON_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_BUTTON, ExampleButtonClass)) GtkWidget * example_button_new (void) { return g_object_new (EXAMPLE_TYPE_BUTTON, NULL); } int main( int argc, char *argv[] ) { GtkWidget *window = 0; GtkWidget *button = 0; gtk_init (&argc, &argv); GType gtype = example_button_get_type(); //Make sure that it is initialized. printf("example button gtype name=%s\n", g_type_name(gtype)); /* Without the gtk_window_new(), the RC file is never parsed. */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 200, 200); button = example_button_new(); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_rc_parse("custom_gtkrc"); gtk_main (); return 0; } --=-vTkKqJNWDGQR4LW1VhLx-- From tkomulai@gmail.com Thu Jun 8 13:55:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C39FF3B0670 for ; Thu, 8 Jun 2006 13:55:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26215-06 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by menubar.gnome.org (Postfix) with ESMTP id 1C0663B0718 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id m2so969661uge for ; Thu, 08 Jun 2006 10:55:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N/uF80Ph918v7qMbZwwC4m8meKdr58vk9243wbszTySV3jyA0b8R3dTqgp4Hn4dkDgd5RdsId8kyvevrz2CNZbJMYCVLeEEaV7C/KHshARrLSrba0urdFRwNtxLhTucxnKtW1uYecUM5neZXyU5rjMIqdi/rmdbnXiRSBseYAmY= Received: by 10.78.18.1 with SMTP id 1mr592938hur; Thu, 08 Jun 2006 10:55:38 -0700 (PDT) Received: by 10.78.41.17 with HTTP; Thu, 8 Jun 2006 10:55:38 -0700 (PDT) Message-ID: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> Date: Thu, 8 Jun 2006 20:55:38 +0300 From: "Tommi Komulainen" Sender: tkomulai@gmail.com To: gtk-list@gnome.org In-Reply-To: <1149787228.5749.5.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1149787228.5749.5.camel@localhost.localdomain> X-Google-Sender-Auth: 220f190103d8c34d X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=0.162, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.438 X-Spam-Level: Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:55:43 -0000 On 6/8/06, Murray Cumming wrote: > Could someone point out what I'm doing wrong in the attached test case? > It's meant to read a value from the rc file, to determine how a widget > would be drawn, making the widget themed. > > I get this output: > > example button gtype name=ExampleButton > example_button_class_init(): Registering example_thing style property. > example_button_init(): example_thing from rc file=0 Instance init is too early to get style properties (though I suppose you could call gtk_widget_ensure_style there), you need to wait until 'style-set' is called. You should implement the style-set default handler anyway to work with theme changes. Unless you change widget hierarchies based on the style property it should be enough to access the property in size-request, size-allocate and expose. -- Tommi Komulainen tommi.komulainen@iki.fi From paul@linuxaudiosystems.com Thu Jun 8 14:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28F3F3B0F8F for ; Thu, 8 Jun 2006 14:26:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27909-07 for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 5CC3C3B0F4E for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from dholak ([151.197.23.127]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0K00IO20K3LGR1@vms040.mailsrvcs.net> for gtk-list@gnome.org; Thu, 08 Jun 2006 13:26:28 -0500 (CDT) Date: Thu, 08 Jun 2006 14:26:45 -0400 From: Paul Davis In-reply-to: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> To: Tommi Komulainen Message-id: <1149791205.5323.0.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 18:26:35 -0000 On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > On 6/8/06, Murray Cumming wrote: > > Could someone point out what I'm doing wrong in the attached test case? > > It's meant to read a value from the rc file, to determine how a widget > > would be drawn, making the widget themed. > > > > I get this output: > > > > example button gtype name=ExampleButton > > example_button_class_init(): Registering example_thing style property. > > example_button_init(): example_thing from rc file=0 > > Instance init is too early to get style properties (though I suppose > you could call gtk_widget_ensure_style there), you need to wait until > 'style-set' is called. You should implement the style-set default > handler anyway to work with theme changes. > > Unless you change widget hierarchies based on the style property it > should be enough to access the property in size-request, size-allocate > and expose. or call widget::ensure_style() From adam@ajtee.plus.com Thu Jun 8 15:45:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0B4A3B0FBE for ; Thu, 8 Jun 2006 15:45:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00491-09 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by menubar.gnome.org (Postfix) with ESMTP id 69ECB3B0766 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from [212.159.108.21] (helo=[192.168.0.3]) by pih-relay04.plus.net with esmtp (Exim) id 1FoQRs-0000el-NZ for gtk-list@gnome.org; Thu, 08 Jun 2006 20:45:44 +0100 Message-ID: <44887E68.8030004@ajtee.plus.com> Date: Thu, 08 Jun 2006 20:45:44 +0100 From: Adam Tee User-Agent: Thunderbird 1.5.0.4 (X11/20060606) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.399 X-Spam-Level: Subject: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 19:45:48 -0000 Hi all, I have a couple of questions regarding keybindings in my application. Is there anyway of overriding a window managers keybindings in an application ? The second concerns menued items which have been configured using an array of GtkActionEntries. Can I changed the associated keybindings on the fly, i.e. after loading a keymap file ? The menus are defined in a xml file. Thanks Adam Maintainer GNU Denemo, a GTK+ Front-End to GNU Lilypond From murrayc@murrayc.com Thu Jun 8 16:07:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A46153B021A for ; Thu, 8 Jun 2006 16:07:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02092-04 for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by menubar.gnome.org (Postfix) with ESMTP id 529653B000E for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id 5B020129A8D; Thu, 8 Jun 2006 13:07:47 -0700 (PDT) From: Murray Cumming To: paul@linuxaudiosystems.com In-Reply-To: <1149791205.5323.0.camel@localhost.localdomain> References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> <1149791205.5323.0.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 08 Jun 2006 22:07:43 +0200 Message-Id: <1149797263.5749.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.482 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599] X-Spam-Score: -2.482 X-Spam-Level: Cc: Tommi Komulainen , gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:07:50 -0000 On Thu, 2006-06-08 at 14:26 -0400, Paul Davis wrote: > On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > > On 6/8/06, Murray Cumming wrote: > > > Could someone point out what I'm doing wrong in the attached test case? > > > It's meant to read a value from the rc file, to determine how a widget > > > would be drawn, making the widget themed. > > > > > > I get this output: > > > > > > example button gtype name=ExampleButton > > > example_button_class_init(): Registering example_thing style property. > > > example_button_init(): example_thing from rc file=0 > > > > Instance init is too early to get style properties (though I suppose > > you could call gtk_widget_ensure_style there), you need to wait until > > 'style-set' is called. You should implement the style-set default > > handler anyway to work with theme changes. > > > > Unless you change widget hierarchies based on the style property it > > should be enough to access the property in size-request, size-allocate > > and expose. > > or call widget::ensure_style() Thanks. gtk_widget_ensure_style() doesn't make any difference for me, but I can successfully read the value in the realize handler. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From ben@benjohnson.net Thu Jun 8 16:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C31863B1008 for ; Thu, 8 Jun 2006 16:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03294-10 for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: from server018.dfw.nationwide.net (unknown [206.123.129.81]) by menubar.gnome.org (Postfix) with SMTP id 7FA0B3B021A for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: (qmail 21060 invoked from network); 8 Jun 2006 20:30:05 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 08 Jun 2006 20:30:05 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id B3A5BE4067 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02308-05 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id 9152AE4068; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Date: Thu, 8 Jun 2006 13:30:04 -0700 From: Anna To: gtk-list@gnome.org Message-ID: <20060608203003.GG6681@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608082529.GH2166@potato.chello.upc.cz> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:30:22 -0000 On Thu, Jun 08, 2006 at 10:25:29AM +0200, David Ne?as (Yeti) wrote: > On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > > > I do not have eu-readelf on my machine. I will have to go looking for it. > > It seems Debian does not contain elfutils. Granted, it used > to have an idiosyncratic license, but now it is GNU GPL so > hopefully it will get to Debian too. darling:~# cat /etc/debian_version 3.1 darling:~# dpkg -S /usr/bin/readelf binutils: /usr/bin/readelf maybe 'readelf' on Debian the same as eu-readelf? - Anna From yeti@physics.muni.cz Thu Jun 8 16:38:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 160683B1008 for ; Thu, 8 Jun 2006 16:38:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03782-07 for ; Thu, 8 Jun 2006 16:38:03 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 852DA3B036E for ; Thu, 8 Jun 2006 16:38:01 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Kbt6q023889 for ; Thu, 8 Jun 2006 22:37:56 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 53BF923D9A; Thu, 8 Jun 2006 22:37:55 +0200 (CEST) Date: Thu, 8 Jun 2006 22:38:00 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608203800.GI30886@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> <20060608203003.GG6681@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608203003.GG6681@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:38:08 -0000 On Thu, Jun 08, 2006 at 01:30:04PM -0700, Anna wrote: > > darling:~# cat /etc/debian_version > 3.1 > darling:~# dpkg -S /usr/bin/readelf > binutils: /usr/bin/readelf > > maybe 'readelf' on Debian the same as eu-readelf? This is binutils' readelf. They are different but both should work for the discussed purpose. Yeti -- Anonyms eat their boogers. From BillS@techsi.com Thu Jun 8 17:36:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA1DA3B000E for ; Thu, 8 Jun 2006 17:36:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07163-08 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 38CAB3B0194 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k58LKsAZ017367; Thu, 8 Jun 2006 16:20:57 -0500 From: "Bill Sousan" To: "'Tristan Van Berkom'" Date: Thu, 8 Jun 2006 16:36:03 -0500 Message-ID: <003601c68b43$8dcba100$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJ1Fpwdt0TDWdPQL6ky+QryalI6ABbv/jQ In-Reply-To: <448637A8.7040007@gnome.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.109 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_05=-1.11, TW_GT=0.077] X-Spam-Score: -1.109 X-Spam-Level: Cc: gtk-list@gnome.org Subject: RE: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:36:14 -0000 Thanks! One question, however, how can you change the column header font? I was able to make the rows nice and fat. However, I can't figure out how to change the column title size (its font type). Thanks, Bill -----Original Message----- From: Tristan Van Berkom [mailto:tristan.van.berkom@gmail.com] Sent: Tuesday, June 06, 2006 9:19 PM To: Bill Sousan Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From yeti@physics.muni.cz Thu Jun 8 17:39:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 94A863B0408 for ; Thu, 8 Jun 2006 17:39:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07377-08 for ; Thu, 8 Jun 2006 17:39:10 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9387F3B0105 for ; Thu, 8 Jun 2006 17:39:09 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Ld71R001243 for ; Thu, 8 Jun 2006 23:39:08 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 8BFE723D9A; Thu, 8 Jun 2006 23:39:07 +0200 (CEST) Date: Thu, 8 Jun 2006 23:39:12 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608213912.GK30886@potato.chello.upc.cz> References: <448637A8.7040007@gnome.org> <003601c68b43$8dcba100$db00a8c0@techsi.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003601c68b43$8dcba100$db00a8c0@techsi.local> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:39:13 -0000 On Thu, Jun 08, 2006 at 04:36:03PM -0500, Bill Sousan wrote: > Thanks! One question, however, how can you change the column header font? > I was able to make the rows nice and fat. However, I can't figure out how > to change the column title size (its font type). The default column header widget is inaccessible, but gtk_tree_view_column_set_widget() can put any widget you wish there. Yeti -- Anonyms eat their boogers. From mekstran@scl.ameslab.gov Fri Jun 9 10:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CD183B1106 for ; Fri, 9 Jun 2006 10:26:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30922-04 for ; Fri, 9 Jun 2006 10:26:31 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id AE19D3B02F7 for ; Fri, 9 Jun 2006 10:26:23 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 09 Jun 2006 09:26:22 -0500 id 0005389C.4489850E.00007C9B In-Reply-To: <44887E68.8030004@ajtee.plus.com> References: <44887E68.8030004@ajtee.plus.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6ec3650a2d223d4ab126ac1b931be9f0@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Date: Fri, 9 Jun 2006 09:25:52 -0500 To: Adam Tee X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, TW_KB=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 14:26:35 -0000 On Jun 8, 2006, at 2:45 PM, Adam Tee wrote: > Is there anyway of overriding a window managers keybindings in an > application ? AFAIK, no. I could be wrong here, but I believe the window manager sees the keys before they ever get to the application, and eats them. Some window managers may potentially support a "pass-through" mode, but I don't know (I don't know that I've ever seen such a features, except I seem to remember one in an older version of wmii that was user-activated, not program-activated). Besides, overriding the WM's keybindings would be detrimental to users - they expect the WM keybindings to work the same in all applications. Especially those of us using highly kbd-driven WM's. > The second concerns menued items which have been configured using an > array of GtkActionEntries. Can I changed the associated keybindings on > the fly, i.e. after loading a keymap file ? The menus are defined in a > xml file. Can't help you there. I'm a bit fuzzy on the details of managing accellerator myself. - Michael From mattias.nissler@gmx.de Fri Jun 9 09:07:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA523B01CA for ; Fri, 9 Jun 2006 09:07:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25743-04 for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 5D6DE3B031E for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: (qmail invoked by alias); 09 Jun 2006 13:06:59 -0000 Received: from T56c9.t.pppool.de (EHLO [192.168.2.32]) [89.55.86.201] by mail.gmx.net (mp027) with SMTP; 09 Jun 2006 15:06:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Jun 2006 15:06:56 +0200 Message-Id: <1149858416.14903.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Jun 2006 11:58:55 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 13:07:02 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, I think its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From r.floret@laposte.net Sat Jun 10 12:21:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 807953B01CB for ; Sat, 10 Jun 2006 12:21:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14072-01 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from mx.laposte.net (mx.laposte.net [81.255.54.11]) by menubar.gnome.org (Postfix) with ESMTP id 67CF63B0158 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from [192.168.0.3] (81.248.212.147) by mx.laposte.net (7.2.060.1) (authenticated as r.floret) id 448702A20026ED87 for gtk-list@gnome.org; Sat, 10 Jun 2006 18:19:51 +0200 From: regis To: gtk-list@gnome.org In-Reply-To: <1149858416.14903.2.camel@localhost> References: <1149858416.14903.2.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Sat, 10 Jun 2006 20:19:40 +0400 Message-Id: <1149956380.11938.1.camel@Regis> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.264 tagged_above=-999 required=2 tests=[AWL=0.101, BAYES_00=-2.599, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: -0.264 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 16:21:03 -0000 Le vendredi 09 juin 2006 15:06 +0200, Mattias Nissler a 閏rit : > Hallo, > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > standard gtk+ file chooser dialog, I think its default size is really > too small. Is there some style option I can put into a rc file or some > other way to make the default size larger? Why don't you try gtk_widget_set_size_request(dialog,width,height) ? R間is From murrayc@murrayc.com Sat Jun 10 17:12:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E24673B0007 for ; Sat, 10 Jun 2006 17:12:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28035-01 for ; Sat, 10 Jun 2006 17:12:33 -0400 (EDT) Received: from swarthymail-a1.dreamhost.com (sd-green-bigip-176.dreamhost.com [208.97.132.176]) by menubar.gnome.org (Postfix) with ESMTP id F34183B0494 for ; Sat, 10 Jun 2006 17:12:31 -0400 (EDT) Received: from noname (p5497E4C3.dip.t-dialin.net [84.151.228.195]) by swarthymail-a1.dreamhost.com (Postfix) with ESMTP id 1835F90ED6 for ; Sat, 10 Jun 2006 14:12:29 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Jun 2006 23:12:24 +0200 Message-Id: <1149973944.5715.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599] X-Spam-Score: -2.481 X-Spam-Level: Subject: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 21:12:36 -0000 Is there any particular reason why GtkClipboardRichTextReceivedFunc provides the text as const guint8*: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc instead of the const gchar* that GtkClipboardTextReceivedFunc provides: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardTextReceivedFunc ? -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From mattias.nissler@gmx.de Sun Jun 11 07:03:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D1743B00F2 for ; Sun, 11 Jun 2006 07:03:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05206-10 for ; Sun, 11 Jun 2006 07:03:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 9BCA03B057C for ; Sun, 11 Jun 2006 07:03:15 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 11:02:40 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp039) with SMTP; 11 Jun 2006 13:02:40 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Sun, 11 Jun 2006 13:02:32 +0200 Message-Id: <1150023752.27952.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.492 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.492 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 11:03:17 -0000 > Le vendredi 09 juin 2006 锟5:06 +0200, Mattias Nissler a 锟絠t : > > Hallo, > > > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > > standard gtk+ file chooser dialog, I think its default size is really > > too small. Is there some style option I can put into a rc file or some > > other way to make the default size larger? > > Why don't you try gtk_widget_set_size_request(dialog,width,height) ? > Well, I am not writing a GTK program, but I'm using programs that (my guess) don't resize the file dialog boxes, so they stay at their default size. So I'd like to change the default size to something more usable. Mattias From chris@cvine.freeserve.co.uk Sun Jun 11 08:32:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C364D3B010F for ; Sun, 11 Jun 2006 08:32:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09209-04 for ; Sun, 11 Jun 2006 08:32:54 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id DACC13B0091 for ; Sun, 11 Jun 2006 08:32:53 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3107 [172.22.158.37]) by mwinf3110.me.freeserve.com (SMTP Server) with ESMTP id ED6444800A4E for ; Sun, 11 Jun 2006 14:31:29 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id DEB8D4800089; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) Received: from boulder.homenet (user-3382.l6.c5.dsl.pol.co.uk [84.65.109.54]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id ADB754800087; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) X-ME-UUID: 20060611123119711.ADB754800087@mwinf3107.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5BCVI7p002398; Sun, 11 Jun 2006 13:31:18 +0100 From: Chris Vine To: gtk-list@gnome.org Date: Sun, 11 Jun 2006 13:31:17 +0100 User-Agent: KMail/1.9.1 References: <1149973944.5715.10.camel@localhost.localdomain> In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606111331.18048.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.293 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.293 X-Spam-Level: Cc: Murray Cumming Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 12:32:55 -0000 On Saturday 10 June 2006 22:12, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >RichTextReceivedFunc > > instead of the const gchar* that GtkClipboardTextReceivedFunc provides: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >TextReceivedFunc ? Probably the use of guint8 has something to do with the rich text specification, although if so it would appear to be no more than a statement of intention as I did not think that glib supports anything but systems with 8-bit char types. At any rate there could only be a difference if the gchar (or guchar) type is formed other than by an octet. It seems inconceivable that modern systems would have char types smaller than an octet, but conceivable that they could be larger (sizeof(char), sizeof(wchar_t) and sizeof(long) can all be the same, for example). Chris From michael@zolnott.de Sun Jun 11 14:29:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D9A243B028A for ; Sun, 11 Jun 2006 14:29:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27506-08 for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 40D703B023D for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (mwinf3002 [172.22.159.24]) by mwinf3010.me.freeserve.com (SMTP Server) with ESMTP id A1EF85C0336E for ; Sun, 11 Jun 2006 20:28:38 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 951E11C00146 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 583001C00142 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) X-ME-UUID: 20060611182828361.583001C00142@mwinf3002.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id CC22B2355F; Fri, 9 Jun 2006 23:55:26 +0100 (BST) Date: Fri, 9 Jun 2006 23:55:26 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060609225524.GC726@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.16 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.507 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.507 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:29:14 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEifxcXDV4oK/n3xIRAjSiAJ4mNyWu+1/oCesRm39Hu+coAoTjgACg2iQW Ba0/mrxfPfoc07kenuGRSV4= =JYWo -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- From michael@zolnott.de Sun Jun 11 14:53:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36F563B02CD for ; Sun, 11 Jun 2006 14:53:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28561-02 for ; Sun, 11 Jun 2006 14:53:19 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id F36443B02A7 for ; Sun, 11 Jun 2006 14:53:17 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3113 [172.22.158.41]) by mwinf3105.me.freeserve.com (SMTP Server) with ESMTP id EDF821C01BEE for ; Sun, 11 Jun 2006 20:28:36 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id A35105C00087 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id 4868F5C00084 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) X-ME-UUID: 20060611182826296.4868F5C00084@mwinf3113.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 0EA072356B; Sat, 10 Jun 2006 23:59:06 +0100 (BST) Date: Sat, 10 Jun 2006 23:59:06 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060610225904.GA6852@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.324 tagged_above=-999 required=2 tests=[AWL=-0.183, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.324 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:53:23 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEi064XDV4oK/n3xIRAnh3AJ9IxGDAYCsDMbrCeB5MUQmb+k2jqACgz7qH 0flJ2aY7euqfiqe2jXibZRs= =ChBT -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- From yeti@physics.muni.cz Sun Jun 11 18:08:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 211243B0697 for ; Sun, 11 Jun 2006 18:08:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05325-01 for ; Sun, 11 Jun 2006 18:08:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9C4F63B0350 for ; Sun, 11 Jun 2006 18:08:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5BKghIY010616 for ; Sun, 11 Jun 2006 22:42:44 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0B40B23D59; Sun, 11 Jun 2006 22:42:43 +0200 (CEST) Date: Sun, 11 Jun 2006 22:42:47 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060611204247.GD30886@potato.chello.upc.cz> References: <20060609225524.GC726@zolnott06.zolnott> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060609225524.GC726@zolnott06.zolnott> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 22:08:21 -0000 On Fri, Jun 09, 2006 at 11:55:26PM +0100, Michael Ott wrote: > I try to compile an application under winxp. Under Linux i work with > some gnome lib (for printing) and this i cannot do under win32. > > But i got an error before: > I use only libglade-2.0 and gtk+-2.0 under win32. > > When i try to compile i get on the following line: > > sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); Do not use sprintf(), use g_snprintf() or g_strdup_printf() (and see below). > i got the following error: > > 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passing arg 2 of `sprintf' makes pointer from integer without a cast The error probably comes from implicitly declared _(). When a C function is not declared, the compiler invents an implicit declaration with int return value -- and you definitely want to tell it to make a lot noise instead, for gcc it's -Werror-implicit-function-declaration and for MSVC it's #pragma warning(error:4013) _() is a common convenience macro defined #define _(x) gettext(x) but it's up to you to define it. Why you mark "%02d.%02d.%d" as translatable anyway? Either the format is fixed and then it must not be translated, or you want it translatable for some reason, but then you never know how c_str needs to be long, so use g_strdup_printf(). Yeti -- Anonyms eat their boogers. From mclasen@redhat.com Mon Jun 12 12:04:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41C3B3B000C; Mon, 12 Jun 2006 12:04:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09149-04; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 7270D3B009D; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc9030255; Mon, 12 Jun 2006 12:03:37 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc3007778; Mon, 12 Jun 2006 12:03:37 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CG3blQ018463; Mon, 12 Jun 2006 12:03:37 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 12:03:36 -0400 Message-Id: <1150128216.15532.14.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_LQ=0.077, TW_RX=0.077, TW_TR=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GLib 2.11.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 16:04:32 -0000 GLib 2.11.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.3.tar.bz2 md5sum: 41931c4965f7e1848f81b800914905cd glib-2.11.3.tar.gz md5sum: cd78ebc535e29cdef0fed9487aa21dac This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.2 to GLib 2.11.3 =================================================== * GBookmarkFile: - g_bookmark_file_move_item: Return TRUE in case of an empty target * Bugs fixed: 343919 gunicollate.c: strxfrm bug on VC8 * Updated translations (fi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343919 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Kazuki Iwamoto, Tor Lillqvist Matthias Clasen June 12, 2006 From mitch@gimp.org Mon Jun 12 14:02:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888803B0461 for ; Mon, 12 Jun 2006 14:02:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21914-06 for ; Mon, 12 Jun 2006 14:02:17 -0400 (EDT) Received: from mitch.gimp.org (unknown [88.134.1.244]) by menubar.gnome.org (Postfix) with ESMTP id 0C81D3B0132 for ; Mon, 12 Jun 2006 12:07:15 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FpMpr-0003Vw-00; Sun, 11 Jun 2006 12:06:23 +0200 From: Michael Natterer To: Murray Cumming In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> References: <1149973944.5715.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 11 Jun 2006 12:06:16 +0200 Message-Id: <1150020377.3010.29.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.572 tagged_above=-999 required=2 tests=[AWL=-0.919, BAYES_00=-2.599, RCVD_IN_NJABL_DUL=1.946] X-Spam-Score: -1.572 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 18:02:20 -0000 On Sat, 2006-06-10 at 23:12 +0200, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc Because the format of the serialized rich text data is arbitrary. Basically it's a blob of binary data of size "length", and not text. ciao, --mitch From mclasen@redhat.com Mon Jun 12 15:43:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 851123B00E5; Mon, 12 Jun 2006 15:43:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-06; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 5B16F3B0010; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWav007572; Mon, 12 Jun 2006 15:35:32 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWUd001833; Mon, 12 Jun 2006 15:35:32 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CJZWlQ009694; Mon, 12 Jun 2006 15:35:32 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 15:35:31 -0400 Message-Id: <1150140931.15532.18.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.541 X-Spam-Level: Cc: Subject: GTK+ 2.8.19 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 19:43:04 -0000 GTK+ 2.8.19 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.19.tar.bz2 md5sum: 1a03dbed4b794194a610e9d7eb175b06 gtk+-2.8.19.tar.gz md5sum: 604d3263498994c58af378f0ec076e6f This is a bugfix release in the 2.8.x series. It fixes a rare memory corruption issue when using the deprecated GdkFont API. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.18 to GTK+ 2.8.19 =================================================== Bugs fixed: 341327 Memory corruption inside glib 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 343425 "grab-notify"-signal is not correctly propagated for internal children 344244 Window resizing not working when keeping the aspect fixed 344496 CRLF converting via Clipboard Updated translations (ne) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343425,341327,344244,337491,344496 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Markku Vire, Sampo Savolainen, Tim Janik, Tor Lillqvist, Chris Wilson June 12, 2006 Matthias Clasen From mclasen@redhat.com Tue Jun 13 02:09:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 72FE93B00AF; Tue, 13 Jun 2006 02:09:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12183-04; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id B2F773B000C; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D681s3022181; Tue, 13 Jun 2006 02:08:01 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D67uRP017686; Tue, 13 Jun 2006 02:07:56 -0400 Received: from [172.16.83.145] (vpn83-145.boston.redhat.com [172.16.83.145]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5D67tQC015619; Tue, 13 Jun 2006 02:07:56 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Organization: Red Hat Date: Tue, 13 Jun 2006 02:09:42 -0400 Message-Id: <1150178982.4081.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.2.1 (2.7.2.1-4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_KB=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GTK+ 2.9.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:09:16 -0000 GTK+ 2.9.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.3.tar.bz2 md5sum: d73039a3b5847c352f5740ac908be7d2 gtk+-2.9.3.tar.gz md5sum: 0156eef91d2bbb23f1b6ccb49335fae5 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.2 to 2.9.3 ============================================ * GtkPrintOperation: - Introduce an allow-async property - Introduce a GtkPrintOperationAction enumeration - Rename pdf_target to export_filename - Allow to hide "Print to PDF" in the low-level API * GtkNotebook: - Add a destroy notify to gtk_notebook_set_window_creation_hook. * GtkTreeView: - Support grid lines * GtkRange: - Add a number of new stle properties which allow more fexible stepper theming * Bugs fixed: 153212 Have the Paste kbd shortcut jump to the location in the buffer 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 339739 gtk/gtkprintoperation-win32.c: 3 compile error 342339 GtkRange::stepper-spacing style property not implemented correctly 343945 Buttons of a GtkAssistant are not accessible 344148 Wrong reqs for ATK 344209 gtk_notebook_set_window_creation_hook() has no destroy func. 344232 GtkEntry's "Delete" context menu item is sensitive on a non-editable GtkEntry 344244 Window resizing not working when keeping the aspect fixed 344288 gtk_print_operation_preview_is_selected must return a value 344386 gdk-2.0-uninstalled.pc.in and gdkconfig.h 344496 CRLF converting via Clipboard 344504 GtkPrintCapabilities not in gtktypebuiltins.h 344505 Wrong signal registration for create_custom_widget 344512 cvs build issue 344513 pdf print module's print_stream not calling destroy notify 344518 NULL unref in page setup dialogue 344543 gtk_progress_bar_pulse calls gtk_progress_bar_paint directly 344560 gtk_print_settings_[sg]et_scale shouldn't be in percent 344607 memory leaks in gtkrecentchooserdefault.c and gtkrecentchoosermenu.c 344624 Memory leak in gtk_tree_model_filter_finalize: User data not freed 337603 Possible off-by-one in gdk_pango_layout_line_get_clip_region 344239 Wrong filename for gtk-find stock item. 344528 comma at end of GtkPrintOperationAction enum causes mozilla compilation error 344290 horizontal-padding not take into account when placing submenus 344558 document print dialogue response codes 339592 Add print-to-postscript 342249 Allow to draw upper and lower sides of GtkRange's trough differently 344530 gtk_recent_chooser_widget_new_for_manager and gtk_recent_chooser_menu_new_for_manager should allow NULL manager arg * Updated translations (es,fi,gu,ko,th,wa) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=153212,337491,339739,342339,343945,344148,344209,344232,344244,344288,344386,344496,344504,344505,344512,344513,344518,344543,344560,344607,344624,337603,344239,344528,344290,344558,339592,342249,344530 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Behdad Esfahbod, Bastian Nocera, Alexander Larsson, J黵g Billeter, Murray Cumming, Milosz Derezynski, Tor Lillqvist, Kazuki Iwamoto, Chris Wilson, Michael Natterer, Benjamin Berg, Marko Anastasov, Christian Persch, Masatake Yamamoto, Elijah Newren, John Finlay, Emmanuele Bassi, David Malcolm, John Darrington, Christian Weiske, Yvgen Muntyan, Martyn Russell, Kristian Rietveld June 13, 2006 Matthias Clasen From suryakiran.gullapalli@gmail.com Tue Jun 13 02:17:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ECF3B015D for ; Tue, 13 Jun 2006 02:17:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12730-02 for ; Tue, 13 Jun 2006 02:17:09 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 1E5ED3B00AF for ; Tue, 13 Jun 2006 02:17:08 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2351869nzo for ; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AjdeG/my9aZKptVxVu2SIogubCWxKAr3HX1opiXSepv2WV/xdlS7lqfXrYoQlSpChmZcBUDN5LhZopltI7Ei+MXADb5GyUs2yol7NRqVgmzN3F04gW/KosoogyTrCbFXpCbVoZwCa32PIFzGvURU4zgEsm1eSsPmN/+VaRtR7AM= Received: by 10.36.56.4 with SMTP id e4mr5918423nza; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Message-ID: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> Date: Tue, 13 Jun 2006 11:46:23 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9016_20460533.1150179383165" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.859 tagged_above=-999 required=2 tests=[AWL=-0.132, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.859 X-Spam-Level: Subject: Font Path X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:17:15 -0000 ------=_Part_9016_20460533.1150179383165 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_9016_20460533.1150179383165 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_9016_20460533.1150179383165-- From suryakiran.gullapalli@gmail.com Tue Jun 13 06:52:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5924B3B000A for ; Tue, 13 Jun 2006 06:52:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20305-10 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 78A063B00C9 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2460005nzo for ; Tue, 13 Jun 2006 03:50:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UcWT8tNT7p4SbjxzYU7oPici9Ro4C0nxkQ0RGHY/Ox9lpXzzZIEYgNNa4PMdAJvSOypndwVY9RDFl5b+ipj4/a3Fo9hblR+xxl8x2fO7IQqHgwcFB5ScMUIHWv7eSQXZ4OML/pwhL6o75U8+bodUFhK/ChF1yUImiQujKV861Uc= Received: by 10.36.8.4 with SMTP id 4mr10540719nzh; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Message-ID: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> Date: Tue, 13 Jun 2006 16:20:52 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_559_15776072.1150195852962" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.114 tagged_above=-999 required=2 tests=[AWL=-0.876, BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.114 X-Spam-Level: Subject: Theme engine tutorial. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 10:52:23 -0000 ------=_Part_559_15776072.1150195852962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_559_15776072.1150195852962 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_559_15776072.1150195852962-- From andi_sz_2000@yahoo.com Mon Jun 12 11:51:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C6323B00D4 for ; Mon, 12 Jun 2006 11:51:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08963-02 for ; Mon, 12 Jun 2006 11:51:53 -0400 (EDT) Received: from web51612.mail.yahoo.com (web51612.mail.yahoo.com [68.142.224.85]) by menubar.gnome.org (Postfix) with SMTP id 8A69F3B00D8 for ; Mon, 12 Jun 2006 11:51:52 -0400 (EDT) Received: (qmail 98982 invoked by uid 60001); 12 Jun 2006 15:51:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=twFPqLknw7rC+J3lu/TUPVojwbQkB+djl+EvcOmiR4QyNT69l3nofSk9rPpvx7m2zLc/2k70C+kP5pQqlLOHFuJGzNgOWOW1XOfn0p/woPoIAGZx4v0s0di6G84r+aCvTf57YEqin+6hSK+/3QOTRp1Y6dxXdhIifQLJExfDXAA= ; Message-ID: <20060612155104.98980.qmail@web51612.mail.yahoo.com> Received: from [85.204.36.18] by web51612.mail.yahoo.com via HTTP; Mon, 12 Jun 2006 08:51:04 PDT Date: Mon, 12 Jun 2006 08:51:04 -0700 (PDT) From: Andrea Szenasi To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, FROM_HAS_ULINE_NUMS=0.291, HOT_NASTY=0.157] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:25 -0400 Subject: question: connecting to mysql X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrea Szenasi List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 15:51:57 -0000 Hi all, i am a beginner in GTK PHP and i have problem connecting to MySQL 5.0.18. I am using GTK-PHP2 with PHP5. I use @mysql_connect, so i cant see the error message. But if I use just mysql_connect, then i got the following error message: Fatal:error: Call to undefined function mysql_connect() in XXX on line XXX . With PHP5 (classic, no GTK), the connection is working, so I have no idea what's the problem. Thanks in advance, Andi From mattias.nissler@gmx.de Sun Jun 11 06:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1F53B0095 for ; Sun, 11 Jun 2006 06:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05002-04 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 4B79D3B00D3 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 10:13:59 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp020) with SMTP; 11 Jun 2006 12:13:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Jun 2006 12:13:52 +0200 Message-Id: <1150020832.27952.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.494 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 10:43:38 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From behdad.esfahbod@gmail.com Mon Jun 12 18:10:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C1AE3B00A5 for ; Mon, 12 Jun 2006 18:10:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00834-05 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 337843B00F5 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h26so959411wxd for ; Mon, 12 Jun 2006 15:09:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:sender; b=HkVpdki0/g3XkGcHUm613LiH99RNWp83QpOiB04twtI9/oyY5QJs7xgUW9ugXUYWTW0FQESua3SiFes9GpwcHFnulMB+jmu6Frg1gjSTz94Z0WNKazKYJCx/0yCrKVvi+sIhO9793kd+R7hBbKFWLBqlIyo5yetvED1gx6HIjnc= Received: by 10.70.36.1 with SMTP id j1mr6891335wxj; Mon, 12 Jun 2006 14:44:52 -0700 (PDT) Received: from to-dhcp26.toronto.redhat.com ( [63.250.163.171]) by mx.gmail.com with ESMTP id h18sm3879342wxd.2006.06.12.14.44.50; Mon, 12 Jun 2006 14:44:51 -0700 (PDT) From: Behdad Esfahbod To: Pango Release Lists , gtk-app-devel-list@gnome.org, gtk-devel-list@gnome.org, gtk-i18n-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HZBsNn3KdPR3jVVwB9gO" Date: Mon, 12 Jun 2006 17:44:37 -0400 Message-Id: <1150148678.10765.8.camel@home> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Sender: Behdad Esfahbod X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Cc: Subject: Pango-1.13.2 released [unstable] X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 22:10:14 -0000 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pango-1.13.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ or http://download.gnome.org/sources/pango/1.13/ 28a6ea9d43c4cd398e7352032f775401 pango-1.13.2.tar.bz2 17d78473c05fece044c6a3b44519b61f pango-1.13.2.tar.gz This is a development release leading up to Pango-1.14.0, which will be released just in time for GNOME-2.16. Notes: * This is unstable development release. While it has had fairly extensive testing, there are likely bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of Pango-1.12. If you have problems, you'll need to reinstall Pango-1.12.x * Bugs should be reported to http://bugzilla.gnome.org. About Pango =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x. Pango is designed to be modular; the core Pango layout engine can be used with different font backends. There are three basic backends, with multiple options for rendering with each. - Client side fonts using the FreeType and fontconfig libraries. Rendering can be with with Cairo or Xft libraries, or directly to an in-memory buffer with no additional libraries. - Native fonts on Microsoft Windows. (Optionally using Uniscribe for complex-text handling). Rendering can be done via Cairo or directly using the native Win32 API. - Native fonts on MacOS X, rendering via Cairo. The integration of Pango with Cairo (http://cairographics.org) provides a complete solution with high quality text handling and graphics rendering. Dynamically loaded modules then handle text layout for particular combinations of script and font backend. Pango ships with a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported. As well as the low level layout rendering routines, Pango includes PangoLayout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text. More information about Pango is available from http://www.pango.org/. Pango 1.13.2 depends on version 2.10.0 or newer of the GLib library and version 1.1.2 or newer of the cairo library (if the cairo backend is desired); more information about GLib and cairo can be found at http://www.gtk.org/ and http://cairographics.org/ respectively. Overview of changes between 1.13.1 and 1.13.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * Improved hexbox drawing, and font metrics calculations. * Synthesize italic variants on win32 [Hans Breuer] * New public API: - pango_cairo_show_error_underline - pango_cairo_error_underline_path - pango_font_describe_with_absolute_size * Misc fixes. * Bugs fixed in this release: Bug 326960 =E2=80=93 hex box drawing for win32 and atsui backends of cairo Bug 343717 =E2=80=93 License information in unclear. Bug 343355 =E2=80=93 Add pango_cairo_show_error_underline & pango_cairo_error_underline_path Bug 343966 =E2=80=93 pango Cygwin build fixes Patch from Cygwin Ports maintainer. Bug 343796 =E2=80=93 Italic Chinese character can't be show correctly in Win32. Bug 314114 =E2=80=93 max_x_advance not appropriate for approximate_(char|digit)_width Bug 341138 =E2=80=93 Using TTC font, Gtk2 programs begin to eating big mem= ory and have many cpu usage. Patch from Yong Li. Bug 336153 =E2=80=93 Mark to mark positioning (Lookup Type 6) isn't correc= t when using MarkAttchmentType Patch from Tin Myo Htet. Bug 333984 =E2=80=93 pango_language_from_string improvements Bug 125378 =E2=80=93 Better underline thickness handling Bug 339730 =E2=80=93 Pango needlessly falls back away from a Type 1 font i= nto a TTF font Bug 342562 =E2=80=93 Support absolute sizes in pango_font_description_to/from_string Bug 341922 =E2=80=93 pango should handle more characters as zero width Patch from Roozbeh Pournader Bug 342525 =E2=80=93 With PangoFc and PangoWin32, approximate digit width = is not what it says Bug 342079 =E2=80=93 pangoatsui-private.h missing from release Behdad Esfahbod 12 June 2006 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEjeBFn+4E5dNTERURApTwAJ9OvqbaG1xnQYzGPC9u0WPi30b6ggCfXNvZ oFfMwctzkAaKRETc/0aDRj0= =Wl7j -----END PGP SIGNATURE----- --=-HZBsNn3KdPR3jVVwB9gO-- From ibaldo@adinet.com.uy Tue Jun 13 14:57:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 16B3A3B03F2 for ; Tue, 13 Jun 2006 14:57:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02939-02 for ; Tue, 13 Jun 2006 14:57:02 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 2FFFE3B00C4 for ; Tue, 13 Jun 2006 14:57:01 -0400 (EDT) Received: from [201.217.132.210] (201.217.132.210) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009A5526 for gtk-list@gnome.org; Tue, 13 Jun 2006 15:56:17 -0300 Message-ID: <448F0A43.8030606@adinet.com.uy> Date: Tue, 13 Jun 2006 15:56:03 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.182 tagged_above=-999 required=2 tests=[AWL=-0.645, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.182 X-Spam-Level: Subject: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 18:57:07 -0000 Hello. I must be doing something wrong but I don't know what is it, I can't believe that it is a bug in libglade since it should hit a lot of applications and people and I am not very experienced with GTK2 (I used GTK1 some long time ago though). It seems that libglade is not connecting the realize event of the drawing area but I can't believe it. Can someone tell what I am doing wrong or what I am missing? I googled for this, read a lot of documentation, invested like 4 hours and still don't get it. I know I can do some workarounds to what I am trying to do, but I think that it is better to learn. Your toughts are very appreciated. Here is my testglade.c file: /* Compile with: gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags --libs) -export-dynamic */ #include #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GladeXML *gxml; gtk_init(&argc, &argv); gxml = glade_xml_new("test.glade", NULL, NULL); glade_xml_signal_autoconnect(gxml); gtk_main(); return 0; } Here is my test.glade file: True window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True I made a testgtk.c file too to see if I can get the realize event and this works (I used a notebook because thats what I am doing in my real application which uses libglade): /* Compile with: gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) */ #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GtkWidget *window, *nb, *lbl, *da; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); da = gtk_drawing_area_new (); gtk_widget_set_size_request (da, 100, 100); g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); lbl = gtk_label_new ("A notebook with a Drawing Area"); nb = gtk_notebook_new (); gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), GTK_WIDGET(lbl)); gtk_container_add (GTK_CONTAINER (window), nb); gtk_widget_show_all (window); gtk_main(); return 0; } Goodbye. P.s.: I posted this email to gtk-app-devel-list yesterday but it didn't show up... -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From ibaldo@adinet.com.uy Tue Jun 13 21:16:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EA96E3B00D4; Tue, 13 Jun 2006 21:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12110-07; Tue, 13 Jun 2006 21:16:26 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 6CF0B3B0147; Tue, 13 Jun 2006 21:16:25 -0400 (EDT) Received: from [201.217.133.125] (201.217.133.125) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009C939E; Tue, 13 Jun 2006 22:15:32 -0300 Message-ID: <448F404C.4020209@adinet.com.uy> Date: Tue, 13 Jun 2006 19:46:36 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org References: <448DEC68.9000706@adinet.com.uy> In-Reply-To: <448DEC68.9000706@adinet.com.uy> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.142 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.142 X-Spam-Level: Cc: Subject: Re: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 01:16:32 -0000 Hello. Sorry for the crosspost, I tought that gtk-app-devel-list wasn't working but what isn't working is my ISP, for some reason I don't receive the emails of this mailing lists so I have to watch the archives :-(, and since I sent this email to gtk-list too I think that it is apropiate to close this thread there as well since maybe someone answers it without knowing that I already discovered my problem. I will not disturb on gtk-list anymore. Well, now I get it! libglade first creates all widgets and *shows* them because that is what is told on the XML file, after that it autoconnects all the events, but it is already too late for the realize event since the widgets are already realized :-). Silly me... I couldn't figure it before. Solution: don't enable the visible attribute on widgets that you want to catch the realize event and show this widgets manually with your own code after all signals are autoconnected. Thank you and goodbye. P.s.: now I need to figure out why the unrealize signal isn't emitted, but maybe because I use gtk_main_quit instead of destroying the main window... El 12/06/06 19:36, Ivan Baldo escribi: > Hello. > I must be doing something wrong but I don't know what is it, I > can't believe that it is a bug in libglade since it should hit a lot > of applications and people and I am not very experienced with GTK2 (I > used GTK1 some long time ago though). > It seems that libglade is not connecting the realize event of the > drawing area but I can't believe it. > Can someone tell what I am doing wrong or what I am missing? I > googled for this, read a lot of documentation, invested like 4 hours > and still don't get it. I know I can do some workarounds to what I am > trying to do, but I think that it is better to learn. Your toughts are > very appreciated. > Here is my testglade.c file: > > /* > Compile with: > gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags > --libs) -export-dynamic > */ > > #include > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GladeXML *gxml; > gtk_init(&argc, &argv); > gxml = glade_xml_new("test.glade", NULL, NULL); > glade_xml_signal_autoconnect(gxml); > gtk_main(); > return 0; > } > > > Here is my test.glade file: > > > > > > > > True > window1 > GTK_WINDOW_TOPLEVEL > GTK_WIN_POS_NONE > False > True > False > True > False > False > GDK_WINDOW_TYPE_HINT_NORMAL > GDK_GRAVITY_NORTH_WEST > True > False > > > > True > last_modification_time="Mon, 12 Jun 2006 22:21:03 GMT"/> > > > > > > > > I made a testgtk.c file too to see if I can get the realize event > and this works (I used a notebook because thats what I am doing in my > real application which uses libglade): > /* > Compile with: > gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) > */ > > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GtkWidget *window, *nb, *lbl, *da; > gtk_init(&argc, &argv); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > da = gtk_drawing_area_new (); > gtk_widget_set_size_request (da, 100, 100); > g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); > lbl = gtk_label_new ("A notebook with a Drawing Area"); > nb = gtk_notebook_new (); > gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), > GTK_WIDGET(lbl)); > gtk_container_add (GTK_CONTAINER (window), nb); > gtk_widget_show_all (window); > gtk_main(); > return 0; > } > > Goodbye. > P.s.: I still don't know where to post this, I think the correct place > is here iin gtk-app-devel-list but maybe it should be gtk-list? > > -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From kereoz@yahoo.fr Wed Jun 14 11:41:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525F23B029F for ; Wed, 14 Jun 2006 11:41:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01059-03 for ; Wed, 14 Jun 2006 11:41:52 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id E2C1F3B01CF for ; Wed, 14 Jun 2006 11:41:51 -0400 (EDT) Received: (qmail 57560 invoked by uid 60001); 14 Jun 2006 15:41:09 -0000 Message-ID: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 14 Jun 2006 17:41:09 CEST Date: Wed, 14 Jun 2006 17:41:09 +0200 (CEST) From: Christophe HAUSER Subject: GtkFixed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.215 tagged_above=-999 required=2 tests=[AWL=0.384, BAYES_00=-2.599] X-Spam-Score: -2.215 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 15:41:54 -0000 Hello, I've got a problem using GtkFixed. Using the following code, the window is empty when I launch the app. fixed = gtk_fixed_new(); Moz = gtk_moz_embed_new(); gtk_container_add (GTK_CONTAINER (window), fixed); gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); gtk_widget_show_all(window); Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tvb@gnome.org Wed Jun 14 13:52:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36FAE3B0081 for ; Wed, 14 Jun 2006 13:52:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17448-10 for ; Wed, 14 Jun 2006 13:52:53 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id DB2C83B000E for ; Wed, 14 Jun 2006 13:52:52 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 4948015A7F; Wed, 14 Jun 2006 13:51:46 -0400 (EDT) Message-ID: <44904EFB.2060907@gnome.org> Date: Wed, 14 Jun 2006 14:01:31 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER Subject: Re: GtkFixed References: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_HELO_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 17:52:54 -0000 Christophe HAUSER wrote: > Hello, > > I've got a problem using GtkFixed. > Using the following code, the window is empty when I > launch the app. > > fixed = gtk_fixed_new(); > Moz = gtk_moz_embed_new(); > > gtk_container_add (GTK_CONTAINER (window), fixed); > gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); > > gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); > gtk_widget_show_all(window); Hmmm, looks like you have a fixed child with width/height = 0; try setting the size-request, since fixed doesnt allocate any size that you dont request. Cheers, -Tristan From M.Kahn@Astronautics.com Wed Jun 14 16:31:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03783B013D for ; Wed, 14 Jun 2006 16:31:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15984-10 for ; Wed, 14 Jun 2006 16:31:23 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 7DC8E3B0135 for ; Wed, 14 Jun 2006 16:31:22 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68FF1.5E830686" Subject: Button background colors Date: Wed, 14 Jun 2006 15:30:29 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaP8WA158meoUl2QFmwJ7Wu6VRUvQ== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.082 tagged_above=-999 required=2 tests=[AWL=0.439, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.082 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 20:31:25 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 =20 ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

 

------_=_NextPart_001_01C68FF1.5E830686-- From paul@linuxaudiosystems.com Wed Jun 14 17:26:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CF6E3B02DC for ; Wed, 14 Jun 2006 17:26:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23464-07 for ; Wed, 14 Jun 2006 17:26:36 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id AC98D3B0388 for ; Wed, 14 Jun 2006 17:26:35 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0V00LGSCVCHRK9@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Jun 2006 16:26:01 -0500 (CDT) Date: Wed, 14 Jun 2006 17:26:22 -0400 From: Paul Davis Subject: Re: Button background colors In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150320382.1765.96.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 21:26:42 -0000 On Wed, 2006-06-14 at 15:30 -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file > because I am programming to requirements that specify different > background colors for different buttons. gtk_widget_set_name (buttonwidget, "myNameForThisSpecialButton"); then use "myNameForThisSpecialButton" in an RC file. From ben@benjohnson.net Wed Jun 14 22:09:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B08C13B00F3 for ; Wed, 14 Jun 2006 22:09:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05224-06 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: from server019.dfw.nationwide.net (server019.dfw.nationwide.net [206.123.129.82]) by menubar.gnome.org (Postfix) with SMTP id 604B53B0018 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: (qmail 20394 invoked from network); 15 Jun 2006 02:08:31 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 15 Jun 2006 02:08:31 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 0AA77E4067 for ; Wed, 14 Jun 2006 19:08:32 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21661-10 for ; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id A3C6BE4071; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Date: Wed, 14 Jun 2006 19:08:31 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615020831.GP11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.551 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599] X-Spam-Score: -2.551 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 02:09:12 -0000 On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file because I am > programming to requirements that specify different background colors for > different buttons. > > I have tried using gtk_widget_modify_bg the button, using all combinations > of creating the button with and without a label. I use gtk_widget_modify_bg() without trouble. piece of a function: struct somethingorother pagestate_colors = { blah, blah, blah }; static void update_examples_from_state( GtkWidget * toggle ) { GdkColor color = pagestate_colors.scheme_bg_normal; gtk_widget_modify_bg( toggle, GTK_STATE_NORMAL, &color); gtk_widget_modify_bg( toggle, GTK_STATE_ACTIVE, &color); gtk_widget_modify_bg( toggle, GTK_STATE_PRELIGHT, &color); gtk_widget_modify_bg( toggle, GTK_STATE_SELECTED, &color); gtk_widget_modify_bg( toggle, GTK_STATE_INSENSITIVE, &color); } after running that you have to let the main event processing loop run a little to let your changes take effect. I am using using 2.6.8-1 but I can't imagine this functionality would have changed. - Anna From laowenbo@gmail.com Thu Jun 15 02:38:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EC5B3B02E7 for ; Thu, 15 Jun 2006 02:38:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17015-01 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id B09DC3B0118 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so183376pyd for ; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr2447571pyi; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.109.19 with HTTP; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 14:37:56 +0800 From: "lao wb" To: gtk-list@gnome.org Subject: Where to get more information about GDK MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1639_31450020.1150353476125" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -0.659 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 06:38:34 -0000 ------=_Part_1639_31450020.1150353476125 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, i am a newcomer The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk, but look like there is no www.gdk.org, another site i can find is developer.gnome.org, while lack of enough examples. I really need examples to know how to use the tricky gdk_XXX APIs. Thanks in advance! laowenbo ------=_Part_1639_31450020.1150353476125 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,
i am a newcomer
The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk,  but look like there is no www.gdk.org , another site i can find is developer.gnome.org, while lack of enough examples.  I  really  need examples  to  know how to use the tricky gdk_XXX APIs. Thanks  in advance!

laowenbo
------=_Part_1639_31450020.1150353476125-- From yeti@physics.muni.cz Thu Jun 15 04:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 407AC3B03BB for ; Thu, 15 Jun 2006 04:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23572-06 for ; Thu, 15 Jun 2006 04:48:08 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 74E203B00F7 for ; Thu, 15 Jun 2006 04:48:07 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5F8laRp032159 for ; Thu, 15 Jun 2006 10:47:37 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id DBA3623D5E; Thu, 15 Jun 2006 10:47:36 +0200 (CEST) Date: Thu, 15 Jun 2006 10:47:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615084737.GM2858@potato.chello.upc.cz> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 08:48:10 -0000 On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > I use gtk_widget_modify_bg() without trouble. piece of a function: It works for people who use a decent Gtk+ theme. But themes and theme engines can easily make similar things stop working. Try just style "default" { bg_pixmap[NORMAL] = "someimage" } widget_class "*" style "default" in your gtkrc. I am afraid the requirement of particular colors goes directly against themeability. One cannot have both. Yeti -- Anonyms eat their boogers. From rvaughan@gmail.com Thu Jun 15 08:11:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F45E3B03E8 for ; Thu, 15 Jun 2006 08:11:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05367-05 for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 422B93B03BB for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so845715uge for ; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr1254247ugm; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.97.17 with HTTP; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 13:11:47 +0100 From: "Richard Vaughan" To: gtk-list@gnome.org Subject: Layered Drawing Areas MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.026 tagged_above=-999 required=2 tests=[AWL=1.068, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: 0.026 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:11:53 -0000 Hi, Has anyone managed to get multiple drawing areas to layer transparently ontop of eachother? I am trying to create an app that looks like it will need 3 or four layers of information drawn ontop of each other - but I want to be able to work with the layers independantly, and I want to be able to see down to the bottom layer. Using a fixed container I can have the layers (at least it seems to do what I think I want), but when I draw in a layer it seems to blank out the 'destroyed' area. Is there a way of setting the transparency, or linking the background image for the layer above to the layer beneath it? If it changes anything I am using GPE on an Ipaq... Thanks, Richard From paul@linuxaudiosystems.com Thu Jun 15 08:56:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA8FA3B05A7 for ; Thu, 15 Jun 2006 08:56:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10559-01 for ; Thu, 15 Jun 2006 08:56:36 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B95773B04A2 for ; Thu, 15 Jun 2006 08:56:11 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W00MXXJXDED5C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 07:56:02 -0500 (CDT) Date: Thu, 15 Jun 2006 08:56:23 -0400 From: Paul Davis Subject: Re: Layered Drawing Areas In-reply-to: To: Richard Vaughan Message-id: <1150376183.1765.118.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:56:47 -0000 On Thu, 2006-06-15 at 13:11 +0100, Richard Vaughan wrote: > Hi, > > Has anyone managed to get multiple drawing areas to layer > transparently ontop of eachother? > > I am trying to create an app that looks like it will need 3 or four > layers of information drawn ontop of each other - but I want to be > able to work with the layers independantly, and I want to be able to > see down to the bottom layer. > > Using a fixed container I can have the layers (at least it seems to do > what I think I want), but when I draw in a layer it seems to blank out > the 'destroyed' area. Is there a way of setting the transparency, or > linking the background image for the layer above to the layer beneath > it? > > If it changes anything I am using GPE on an Ipaq... GnomeCanvas widget. GTK widgets do not (currently) support any notion of alpha transparency or z-order (stacking). The Canvas does. It has no relationships with Gnome other than those shared with GTK. GnomeCanvas is no longer "supported", but as yet its successor has not emerged and there are several contenders. --p From kereoz@yahoo.fr Thu Jun 15 10:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A85B3B05A7 for ; Thu, 15 Jun 2006 10:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16151-02 for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id 36F783B05BC for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: (qmail 4610 invoked by uid 60001); 15 Jun 2006 14:17:18 -0000 Message-ID: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 16:17:17 CEST Date: Thu, 15 Jun 2006 16:17:17 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <44904EFB.2060907@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.274 tagged_above=-999 required=2 tests=[AWL=0.325, BAYES_00=-2.599] X-Spam-Score: -2.274 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 14:17:33 -0000 I tried setting the size-request, but the widget is still not shown...and I've got no error while compiling... I can run the app without any error, but I only see the main window... > Hmmm, looks like you have a fixed child with > width/height = 0; > try setting the size-request, since fixed doesnt > allocate any size > that you dont request. > > Cheers, > -Tristan > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:11:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDA413B0427 for ; Thu, 15 Jun 2006 11:11:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18523-06 for ; Thu, 15 Jun 2006 11:11:29 -0400 (EDT) Received: from web25909.mail.ukl.yahoo.com (web25909.mail.ukl.yahoo.com [217.12.10.207]) by menubar.gnome.org (Postfix) with SMTP id C78DB3B0261 for ; Thu, 15 Jun 2006 11:11:28 -0400 (EDT) Received: (qmail 17522 invoked by uid 60001); 15 Jun 2006 15:11:03 -0000 Message-ID: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25909.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:11:02 CEST Date: Thu, 15 Jun 2006 17:11:02 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615145020.HUVX16286.aamtaout03-winn.ispmail.ntl.com@smtp.ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.242, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:11:31 -0000 I think it will help :) But about the size request, I wonder if my code is right : GtkRequisition *req ; req->height = 300; req->width = 400; gtk_widget_size_request(GTK_WIDGET(Moz), req); Maybe I forget something ? It doesn't work better with a button or any other widget, but when it is something else than a mozilla widget, I can see it very small :) It is not resized... > This may help or may not? > Sometimes I have found with GtkContainer derived > widgets the requested position/layout is overridden. > Do a search for _gtk_widget_get_aux_info in the gtk > code. > > Calls to gtk_widget_set_uposition and > gtk_widget_set_usize create a GtkWidgetAuxInfo > structure which holds the location and positional > information from the fore mentioned calls. Once > created these values are used as default in size > requests. > > Could the moz widget be using > gtk_widget_set_uposition or gtk_widget_set_usize > internally? > > Regards > > ----------------------------------------- > Email sent from www.ntlworld.com > Virus-checked using McAfee(R) Software > Visit www.ntlworld.com/security for more information > > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:27:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E921A3B05D7 for ; Thu, 15 Jun 2006 11:27:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19172-08 for ; Thu, 15 Jun 2006 11:27:23 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id D9EB83B05DE for ; Thu, 15 Jun 2006 11:27:22 -0400 (EDT) Received: (qmail 6262 invoked by uid 60001); 15 Jun 2006 15:26:43 -0000 Message-ID: <20060615152643.6260.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:26:43 CEST Date: Thu, 15 Jun 2006 17:26:43 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.311 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.311 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:27:26 -0000 Ok, I found the problem : I called the function gtk_widget_size_request instead of gtk_widget_set_size_request There is something strange : I didn't find gtk_widget_set_size_request in GTK documentation, but I found gtk_widget_size_request --- Christophe HAUSER a 閏rit : > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > > > > Christophe HAUSER > http://kereoz.sup.fr > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la > meilleure protection possible contre les messages > non sollicit閟 > http://mail.yahoo.fr Yahoo! Mail > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From paul@linuxaudiosystems.com Thu Jun 15 11:54:59 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8F83D3B0623 for ; Thu, 15 Jun 2006 11:54:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21029-03 for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 5B6DC3B063D for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W0030XS358E42@vms042.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 10:52:17 -0500 (CDT) Date: Thu, 15 Jun 2006 11:52:39 -0400 From: Paul Davis Subject: Re: RE : Re: RE : Re: GtkFixed In-reply-to: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> To: Christophe HAUSER Message-id: <1150386759.22276.5.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:54:59 -0000 On Thu, 2006-06-15 at 17:11 +0200, Christophe HAUSER wrote: > I think it will help :) > But about the size request, I wonder if my code is > right : > > GtkRequisition *req ; > req->height = 300; > req->width = 400; > > gtk_widget_size_request(GTK_WIDGET(Moz), req); gtk_widget_set_size_request() From cole-anstey@ntlworld.com Thu Jun 15 13:44:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A2983B0314 for ; Thu, 15 Jun 2006 13:44:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25557-02 for ; Thu, 15 Jun 2006 13:44:03 -0400 (EDT) Received: from queue01-winn.ispmail.ntl.com (queue01-winn.ispmail.ntl.com [81.103.221.55]) by menubar.gnome.org (Postfix) with ESMTP id 62F8D3B0126 for ; Thu, 15 Jun 2006 13:44:02 -0400 (EDT) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20060615145316.CKIP28076.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 Received: from smtp.ntlworld.com ([81.103.221.25]) by aamtaout04-winn.ispmail.ntl.com with SMTP id <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 X-Mailer: Openwave WebEngine, version 2.8.17 (webedge20-101-1107-20041027) X-Originating-IP: [146.82.1.162] From: To: Subject: Re: RE : Re: GtkFixed Date: Thu, 15 Jun 2006 14:53:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.572 tagged_above=-999 required=2 tests=[AWL=-0.718, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -0.572 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 17:44:04 -0000 > > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > This may help or may not? Sometimes I have found with GtkContainer derived widgets the requested position/layout is overridden. Do a search for _gtk_widget_get_aux_info in the gtk code. Calls to gtk_widget_set_uposition and gtk_widget_set_usize create a GtkWidgetAuxInfo structure which holds the location and positional information from the fore mentioned calls. Once created these values are used as default in size requests. Could the moz widget be using gtk_widget_set_uposition or gtk_widget_set_usize internally? Regards ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From adc4444@hotmail.com Thu Jun 15 14:07:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9713A3B0397 for ; Thu, 15 Jun 2006 14:07:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26238-06 for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 7FBC63B007F for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 Jun 2006 11:07:10 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Thu, 15 Jun 2006 18:07:09 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com From: "DC A" To: gtk-list@gnome.org Subject: Problem in updating progress bar Date: Thu, 15 Jun 2006 18:07:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Jun 2006 18:07:10.0440 (UTC) FILETIME=[85713E80:01C690A6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.162 tagged_above=-999 required=2 tests=[AWL=-2.069, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 18:07:45 -0000 What could be the reason for using gtk_events_pending() and gtk_main_iteration() in the following code snippet: for( gflt=0; gflt<=1; ){ gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); //update while (gtk_events_pending ()) gtk_main_iteration (); gflt += 0.1; sleep(1); if ( gflt > 1 ) break; } why the code cannot update the progressbar without these two functions? I saw the API but still it is not clear to me. Thanks. --AD _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From yeti@physics.muni.cz Thu Jun 15 16:27:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 733223B01A1 for ; Thu, 15 Jun 2006 16:27:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31273-10 for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 575F33B006C for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5FJHlVX028614 for ; Thu, 15 Jun 2006 21:17:48 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 2DC7C23D5E; Thu, 15 Jun 2006 21:17:47 +0200 (CEST) Date: Thu, 15 Jun 2006 21:17:50 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Problem in updating progress bar Message-ID: <20060615191750.GO30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:27:57 -0000 On Thu, Jun 15, 2006 at 06:07:09PM +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. Have yor read the FAQ too? http://www.gtk.org/faq/#AEN602 Also, are you aware gtk_progress_bar_update() is deprecated? gtk_progress_bar_set_fraction() -- which is the function to use -- only queues the drawing. The drawing then actually occurs in Gtk+ main loop, which does not have a chance to run without gtk_main_iteration(). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Thu Jun 15 16:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F7FB3B01A1 for ; Thu, 15 Jun 2006 16:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00430-05 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id BFC843B0237 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0X009IA2VD7944@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 14:45:14 -0500 (CDT) Date: Thu, 15 Jun 2006 15:45:35 -0400 From: Paul Davis Subject: Re: Problem in updating progress bar In-reply-to: To: DC A Message-id: <1150400735.22276.22.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:53:34 -0000 On Thu, 2006-06-15 at 18:07 +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. google for "event based programming main loop" programming GUIs is very different in its basic control flow model than writing simple non-user-driven procedural software. From M.Kahn@Astronautics.com Thu Jun 15 16:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 740B13B03D2 for ; Thu, 15 Jun 2006 16:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00479-06 for ; Thu, 15 Jun 2006 16:54:44 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 79F013B0311 for ; Thu, 15 Jun 2006 16:54:43 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C690BD.DA53493A" Subject: RE: Button background colors Date: Thu, 15 Jun 2006 15:54:10 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019481FF@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSABaKA0g From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:54:47 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A coworker came to my rescue on this one. I am a Linux developer and this application had to work under Windows. It turns out that if your Windows desktop theme is set to "Windows XP" then you cannot change the background color of your buttons. If you change your desktop theme to "Windows Classic" then the gtk_widget_modify_style approach works. The gtk_widget_set_style and other approaches may also work, but I haven't tested them. We have a short deadline on this app - I'll test it later. =20 Thanks to everyone who gave it a look. What a surprise it turned out to be a Windows problem, not a GTK problem. =20 Michael Kahn =20 ________________________________ From: Michael Kahn=20 Sent: Tuesday, June 13, 2006 8:49 PM To: 'gtk-list@gnome.org' Subject: Button background colors =20 I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A coworker came to my rescue on = this one.  I am a Linux developer and this application had to work under Windows.  It turns out that if your Windows desktop theme is set to = “Windows XP” then you cannot change the background color of your = buttons.  If you change your desktop theme to “Windows Classic” then the = gtk_widget_modify_style approach works.  The gtk_widget_set_style  and other = approaches may also work, but I haven’t tested them.  We have a short = deadline on this app – I’ll test it later.

 

Thanks to everyone who gave it a look.  What a surprise it turned out to be a Windows problem, not a = GTK problem.

 

  Michael = Kahn

 


From: = Michael Kahn
Sent: Tuesday, June 13, = 2006 8:49 PM
To: = 'gtk-list@gnome.org'
Subject: Button = background colors

 

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C690BD.DA53493A-- From BillS@techsi.com Thu Jun 15 18:05:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348F23B01FF for ; Thu, 15 Jun 2006 18:05:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02711-10 for ; Thu, 15 Jun 2006 18:05:22 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 09F4F3B018C for ; Thu, 15 Jun 2006 18:05:21 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k5FLp1AZ024125 for ; Thu, 15 Jun 2006 16:51:06 -0500 From: "Bill Sousan" To: Subject: use of gtk rc files slows down display Date: Thu, 15 Jun 2006 17:04:18 -0500 Message-ID: <000601c690c7$aa62c850$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C6909D.C18CC050" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.603 tagged_above=-999 required=2 tests=[AWL=-0.682, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.603 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 22:05:25 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using some existing rc files for my gtk application that I pulled off of the web and noticed a considerable slow down in the display versus when not using an rc file (the one passed to gtk_rc_parse() function). Are there considerations that I need to be aware of if I want to use to rc files to have a nice "skin" without the slowdown? Thanks, Bill ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using some existing rc files for my gtk = application that I pulled off of the web and noticed a considerable slow down in the = display versus when not using an rc file (the one passed to gtk_rc_parse() function).  Are there considerations that I need to be aware of if = I want to use to rc files to have a nice “skin” without the = slowdown?

 

Thanks,

Bill

 

 

------=_NextPart_000_0007_01C6909D.C18CC050-- From diego@otello.alma.unibo.it Fri Jun 16 01:40:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C38C23B006C for ; Fri, 16 Jun 2006 01:40:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18193-03 for ; Fri, 16 Jun 2006 01:40:09 -0400 (EDT) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 852AC3B0011 for ; Fri, 16 Jun 2006 01:39:59 -0400 (EDT) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 44DB0122256; Fri, 16 Jun 2006 03:38:40 -0400 (EDT) Message-ID: <449243F6.6010901@otello.alma.unibo.it> Date: Fri, 16 Jun 2006 07:39:02 +0200 From: Diego Zuccato User-Agent: Thunderbird 1.5.0.2 (X11/20060422) MIME-Version: 1.0 To: DC A Subject: Re: Problem in updating progress bar References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.558 tagged_above=-999 required=2 tests=[AWL=0.041, BAYES_00=-2.599] X-Spam-Score: -2.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 05:40:28 -0000 DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. 'Cause you're blocking the main loop (which handles all the updating). But that sleep(1) still blocks for a whole second any action: your GUI will act quite strangely! Could be really better to handle a timeout/idle callback. If all you have to do is some lengthy operation, you could use a thread that does it and updates a "percentage indicator" (a shared variable). In the main program (the GUI manager) you set up a timeout callback (the timeout is up to you: from .1 to tenths of seconds) that reads the shared variable and updates the progress bar. This way you won't have to bother about locks: just DON'T do anything GUI-related in the calc thread. BYtE, Diego. From lists@nabble.com Fri Jun 16 07:14:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12D983B0007 for ; Fri, 16 Jun 2006 07:14:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26539-04 for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id C61543B002C for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FrCGc-0008HH-NC for gtk-list@gnome.org; Fri, 16 Jun 2006 04:13:34 -0700 Message-ID: <4898493.post@talk.nabble.com> Date: Fri, 16 Jun 2006 03:58:40 -0700 (PDT) From: prashu To: gtk-list@gnome.org Subject: Regarding GTK player MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: prashan@sasken.com X-Nabble-From: prashu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.316 tagged_above=-999 required=2 tests=[AWL=2.285, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.316 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 11:14:35 -0000 hi all... i am designing user inerface to mobiles for mobiles. For UI i selected GTK as framework. I am writting in C langauge. What actually i need is one playlist window which contains audio files from particular directory. on selecting file from playlist another window should open. which contains play and pause buttons. If any one have code of this thing , please mail to my id, prashan@sasken.com. with regards, Prashanth KM -- View this message in context: http://www.nabble.com/Regarding-GTK-player-t1797584.html#a4898493 Sent from the Gtk+ - General forum at Nabble.com. From adc4444@hotmail.com Fri Jun 16 14:07:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C2A253B026A for ; Fri, 16 Jun 2006 14:07:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11049-01 for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 5D7A93B030D for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 16 Jun 2006 11:05:35 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Fri, 16 Jun 2006 18:05:30 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com In-Reply-To: <449243F6.6010901@otello.alma.unibo.it> From: "DC A" To: diego@otello.alma.unibo.it, gtk-list@gnome.org Subject: Re: Problem in updating progress bar Date: Fri, 16 Jun 2006 18:05:30 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 16 Jun 2006 18:05:35.0606 (UTC) FILETIME=[77547960:01C6916F] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.156 tagged_above=-999 required=2 tests=[AWL=-2.063, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.156 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 18:07:54 -0000 Thank you all for explaining this problem. --DC _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From papel@free.fr Wed Jun 14 07:03:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB43B01B1 for ; Wed, 14 Jun 2006 07:03:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16109-06 for ; Wed, 14 Jun 2006 07:03:40 -0400 (EDT) Received: from swip.net (mailfe04.tele2.fr [212.247.154.108]) by menubar.gnome.org (Postfix) with ESMTP id 9DBBD3B0093 for ; Wed, 14 Jun 2006 07:03:39 -0400 (EDT) X-T2-Posting-ID: 4qjjVdH8TQlq0xUsIYMW3y8I4nzdJt8e7HSuCLByD9Y= X-Cloudmark-Score: 0.000000 [] Received: from [80.170.52.241] (HELO localhost) by mailfe04.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 212846123 for gtk-list@gnome.org; Wed, 14 Jun 2006 13:03:02 +0200 Message-ID: <448FEC06.9090600@free.fr> Date: Wed, 14 Jun 2006 12:59:18 +0200 From: Papel User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.12) Gecko/20050920 X-Accept-Language: fr, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk events ??? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.898 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -0.898 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 11:03:42 -0000 Hello, From a few days ago, i have a lot of problems with gtk events (MainLoop). I have created a GTK frame into a main widget and a box into this frame. I have reparent this widget (window) to a XWindow. I would like to send events (XEvents) to this widget. How I can do to send this XEvents to GtkEvents to the widget ??? I have tried : gtk_widget_event / gtk_main_iteration_do / gtk_main_do_event / etc... Thank you in advance MCB From root@gateshead-online.co.uk Thu Jun 15 03:57:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B35803B0155 for ; Thu, 15 Jun 2006 03:57:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20648-07 for ; Thu, 15 Jun 2006 03:57:12 -0400 (EDT) Received: from gateshead-online.co.uk (p15122568.pureserver.info [217.160.177.192]) by menubar.gnome.org (Postfix) with ESMTP id 1EC033B02FA for ; Thu, 15 Jun 2006 03:57:09 -0400 (EDT) Received: from root by gateshead-online.co.uk with local (Exim 4.30) id 1Fqmic-0008Bj-Jf for gtk-list@gnome.org; Thu, 15 Jun 2006 08:56:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17553.4798.584679.71190@p15122568.pureserver.info> Date: Thu, 15 Jun 2006 08:56:46 +0100 To: gtk-list@gnome.org From: dale_mellor@users.sourceforge.net Subject: Re: Button background colors In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> X-Mailer: VM 7.18 under Emacs 21.4.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.503 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961] X-Spam-Score: -1.503 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 07:57:14 -0000 I too use gtk_widget_modify_bg without trouble on a GtkButton object, using GTK version 2.9.2. Anna writes: > On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > > I am using Gtk 2.8.18. > > > > I would like to know how to set the background color in a GtkButton. > > > > I cannot set the background in a style, theme, or resource file because I am > > programming to requirements that specify different background colors for > > different buttons. > > > > I have tried using gtk_widget_modify_bg the button, using all combinations > > of creating the button with and without a label. > > I use gtk_widget_modify_bg() without trouble. piece of a function: > From jose.francisco.hevia@gmail.com Thu Jun 15 05:27:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B20D43B0270 for ; Thu, 15 Jun 2006 05:27:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25836-07 for ; Thu, 15 Jun 2006 05:27:38 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8A7003B0353 for ; Thu, 15 Jun 2006 05:27:37 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so51745nfe for ; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.47.10 with SMTP id u10mr360304nfu; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 15 Jun 2006 02:27:35 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 11:27:35 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Button background colors In-Reply-To: <20060615084737.GM2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.104 tagged_above=-999 required=2 tests=[AWL=0.195, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.104 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 09:27:39 -0000 MjAwNi82LzE1LCBEYXZpZCBOZehhcyAoWWV0aSkgPHlldGlAcGh5c2ljcy5tdW5pLmN6PjoKPiBP biBXZWQsIEp1biAxNCwgMjAwNiBhdCAwNzowODozMVBNIC0wNzAwLCBBbm5hIHdyb3RlOgo+ID4K PiA+IEkgdXNlIGd0a193aWRnZXRfbW9kaWZ5X2JnKCkgd2l0aG91dCB0cm91YmxlLiAgcGllY2Ug b2YgYSBmdW5jdGlvbjoKPgo+IEl0IHdvcmtzIGZvciBwZW9wbGUgd2hvIHVzZSBhIGRlY2VudCBH dGsrIHRoZW1lLiAgQnV0IHRoZW1lcwo+IGFuZCB0aGVtZSBlbmdpbmVzIGNhbiBlYXNpbHkgbWFr ZSBzaW1pbGFyIHRoaW5ncyBzdG9wIHdvcmtpbmcuCj4gVHJ5IGp1c3QKPgo+IHN0eWxlICJkZWZh dWx0IiB7Cj4gICAgYmdfcGl4bWFwW05PUk1BTF0gPSAic29tZWltYWdlIgo+IH0KPiB3aWRnZXRf Y2xhc3MgIioiIHN0eWxlICJkZWZhdWx0Igo+Cj4gaW4geW91ciBndGtyYy4KPgo+IEkgYW0gYWZy YWlkIHRoZSByZXF1aXJlbWVudCBvZiBwYXJ0aWN1bGFyIGNvbG9ycyBnb2VzCj4gZGlyZWN0bHkg YWdhaW5zdCB0aGVtZWFiaWxpdHkuICBPbmUgY2Fubm90IGhhdmUgYm90aC4KPgo+IFlldGkKCkF0 IGZpcnN0LCBJIGFncmVlZCB3aXRoIHRoaXMuIE5vdyBJIGtub3cgdGhhdCBpdCdzIHBvc3NpYmxl IHRvIG1ha2UgYW4KaW50ZWxsaWdlbnQgcHJvZ3JhbSB0aGF0IGtub3dzIHdpdGNoIGNvbG9ycyBh cmUgeW91IHVzaW5nIGFuZCB0YWtlCmFjdGlvbiBmcm9tIGl0LgoKODAgcGVyIGNlbnQgb2YgdGhl bWVzIGFyZSBhbG1vc3Qgd2hpdGUgZm9yIGJ1dHRvbnMsIEkgbGlrZSBkYXJrIG9uZXMuClRoaXMg Y291bGQgYmUgZGV0ZWN0ZWQgYnkgdGhlIHByb2dyYW0gYW5kIGRlY2lkZToKSWYgeW91IGFyZSB1 c2luZyBicmlnaHQgdGhlbWVzIHtzZWxlY3QgdGhpcyBjb2xvcnMufQplbHNlIHtzZWxlY3QgdGhl IG90aGVyIG9uZXMufQpiYXNlZCBpbiBjb250cmFzdCBiZXR3ZWVuIHRoZW0KClRoZW1lYWJpbGl0 eSBpcyB2ZXJ5IGltcG9ydGFudCBmb3IgR3RrLCBidXQgdXNpbmcgY29sb3JzIGxpa2Ugc2NhbGFi bGUKaWNvbnMgKGxvb2sgYXQgdGhlc2UgZmlsbXMgd2l0aCB0aGUgInJlZCBidXR0b24iKSB3aXRo b3V0IGhhdmluZyB0bwpib3RoZXIgd2l0aCBjb21wbGV4aXR5IGdpdmVzIGd0ayBhIGxvdCBvZiBw b3dlciB0byBnaXZlIGl0IGF3YXkuCgogICAgICAgICAgICBKb3NlIEhldmlhCg== From kstachowski@o2.pl Thu Jun 15 19:00:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1AB673B00D0 for ; Thu, 15 Jun 2006 19:00:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04700-08 for ; Thu, 15 Jun 2006 19:00:27 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 03CFC3B0080 for ; Thu, 15 Jun 2006 19:00:26 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2035C58014 for ; Fri, 16 Jun 2006 00:59:51 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: drawing a generated bitmap Date: Thu, 15 Jun 2006 22:59:50 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606152259.50433.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.102 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: 1.102 X-Spam-Level: * X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 23:00:28 -0000 hello :) i understand this is a basic question and am sorry for my ignorance. i really haven't managed to find an answer though i've searched quite a time. i've actually got two problems (using nemerle (mono, i.e. gtk#)): 1. i'd like to generate a terrain heightmap and draw it onto a widget. should i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), try to convert it to an xpm (how?) or what other method would be most appropriate? (please, read the second question before answering this one) 2. i'd like to be able to fluently change the colours while the heightmap is already generated. in the old days (i haven't written much for quite a time) it was possible to just draw a bitmap onto the screen and keep redefining the colours, which was pretty fast and looked nice in its way. is it still doable? i'd need it for altering the water level on the map. any help would be appreciated :) From zhaolj@gmail.com Fri Jun 16 03:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46A9B3B000B for ; Fri, 16 Jun 2006 03:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20725-04 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 76F973B0007 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so510575pyd for ; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.15.11 with SMTP id s11mr424956pyi; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Message-ID: <9f5a93cb0606160026o65c6bc68gdd9b2a4ad88f4264@mail.gmail.com> Date: Fri, 16 Jun 2006 15:26:41 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.818 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.818 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 07:27:56 -0000 RGVhciBBbGwsCgpJIGhhdmUgYSBwcm9ibGVtIHdoZW4gSSBjcmVhdGUgYSBuZXcgR1NvdXJjZSBz dHJ1Y3R1cmUuCgpJbiBmYWN0LCBJIHdvdWxkIHNlbmQgc29tZSBldmVudHMgdG8gdGhlIG1haW4g bG9vcCBvZiBteSBhcHAgZnJvbQpvdGhlciB0aHJlYWRzIG9ubHkgd2l0aCB0aGUgZ2xpYiBBUElz LiBJIGNyZWF0ZSBteSBvd24gR1NvdXJjZQpzdHJ1Y3R1cmUgYW5kIGF0dGFjaCBpdCB3aXRoIHRo ZSBkZWZhdWx0IG1haW4gY29udGV4dC4gQnV0IEkgYWx3YXlzCmdldCBhIHNlZ21lbnQgZmF1bHQg d2hlbiB0aGUgb3RoZXIgdGhyZWFkIHNlbmQgc29tZSB0aGluZyB0byB0aGUgbWFpbgpsb29wLiBJ IGZpbmQgZXZlcnkgZmV3IGluZm9ybWF0aW9uIGFib3V0IHVzaW5nIEdTb3VyY2UuCgpXaGVyZSBj YW4gSSBmaW5kIGFuIGV4YW1wbGUgb2YgdXNpbmcgR1NvdXJjZSAobm90IHVzaW5nCmdfaWRsZV9z b3VyY2VfbmV3LCBub3IgZ190aW1lb3V0X3NvdXJjZV9uZXcpID8gb3IgQ2FuIHlvdSBndXlzIHN1 Z2dlc3QKbWUgYmV0dGVyIHNvbHV0aW9uIGFib3V0IHNlbmQgZXZlbnQgd2l0aCBteSBvd24gZGF0 YSB0byBtYWluIGxvb3AKKG1haW4gbG9vcCBjYW4gbm90IGJlIHN0b3BlZCBvciBibG9ja2VkKSBv bmx5IHVzaW5nIGdsaWIgQVBJcz8KClRoYW5rcyBpbiBhZHZhbmNlIQoKLS0gClJlZ2FyZHOjoQoK TGlhbmdqaW5nCg== From andyggill@gmail.com Fri Jun 16 09:51:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF0263B0011 for ; Fri, 16 Jun 2006 09:51:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30311-07 for ; Fri, 16 Jun 2006 09:51:39 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by menubar.gnome.org (Postfix) with ESMTP id BC4D33B0007 for ; Fri, 16 Jun 2006 09:51:38 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so487632nfe for ; Fri, 16 Jun 2006 06:50:41 -0700 (PDT) Received: by 10.48.43.7 with SMTP id q7mr1735277nfq; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Received: by 10.49.58.15 with HTTP; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Message-ID: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> Date: Fri, 16 Jun 2006 14:50:40 +0100 From: "andy gill" To: gtk-list@gnome.org Subject: opengl and gtk MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_113283_13878838.1150465840774" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.161 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -0.161 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 13:51:42 -0000 ------=_Part_113283_13878838.1150465840774 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree. what's the best (i.e. documented and supported) way of getting opengl and gtk to work together? cheers. ------=_Part_113283_13878838.1150465840774 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree.
what's the best (i.e. documented and supported) way of getting opengl and gtk to work together?

cheers.
------=_Part_113283_13878838.1150465840774-- From zhaolj@gmail.com Sat Jun 17 12:32:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 872CF3B0139 for ; Sat, 17 Jun 2006 12:32:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27157-09 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id 3DAF43B00E6 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so865244pyd for ; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr6012908pyi; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Message-ID: <9f5a93cb0606170932i455c53c0ved3aa0c501215662@mail.gmail.com> Date: Sun, 18 Jun 2006 00:32:02 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.597 tagged_above=-999 required=2 tests=[AWL=0.779, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -1.597 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 16:32:47 -0000 RGVhciBBbGwsCgpTb3JyeSwgSSBhbSBub3Qgc3VyZSBpZiBJIHBvc3QgdGhpcyBxdWVzdGlvbiB0 d2ljZSBpbiB0aGlzIGxpc3QuIEJ1dAppdCBzZWVtcyB0aGUgZmlyc3QgdGltZSB3YXMgZmFpbGVk LgoKSSBoYXZlIGEgcHJvYmxlbSB3aGVuIEkgY3JlYXRlIGEgbmV3IEdTb3VyY2Ugc3RydWN0dXJl LgoKSW4gZmFjdCwgSSB3b3VsZCBzZW5kIHNvbWUgZXZlbnRzIHRvIHRoZSBtYWluIGxvb3Agb2Yg bXkgYXBwIGZyb20Kb3RoZXIgdGhyZWFkcyBvbmx5IHdpdGggdGhlIGdsaWIgQVBJcy4gSSBjcmVh dGUgbXkgb3duIEdTb3VyY2UKc3RydWN0dXJlIGFuZCBhdHRhY2ggaXQgd2l0aCB0aGUgZGVmYXVs dCBtYWluIGNvbnRleHQuIEJ1dCBJIGFsd2F5cwpnZXQgYSBzZWdtZW50IGZhdWx0IHdoZW4gdGhl IG90aGVyIHRocmVhZCBzZW5kIHNvbWUgdGhpbmcgdG8gdGhlIG1haW4KbG9vcC4gSSBmaW5kIGV2 ZXJ5IGZldyBpbmZvcm1hdGlvbiBhYm91dCB1c2luZyBHU291cmNlLgoKV2hlcmUgY2FuIEkgZmlu ZCBhbiBleGFtcGxlIG9mIHVzaW5nIEdTb3VyY2UgKG5vdCB1c2luZwpnX2lkbGVfc291cmNlX25l dywgbm9yIGdfdGltZW91dF9zb3VyY2VfbmV3KSA/IG9yIENhbiB5b3UgZ3V5cyBzdWdnZXN0Cm1l IGJldHRlciBzb2x1dGlvbiBhYm91dCBzZW5kIGV2ZW50IHdpdGggbXkgb3duIGRhdGEgdG8gbWFp biBsb29wCihtYWluIGxvb3AgY2FuIG5vdCBiZSBzdG9wZWQgb3IgYmxvY2tlZCkgb25seSB1c2lu ZyBnbGliIEFQSXM/CgpUaGFua3MgaW4gYWR2YW5jZSEKCi0tIApSZWdhcmRzo6EKCkxpYW5namlu Zwo= From ben@benjohnson.net Sat Jun 17 16:19:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6D3B02A9 for ; Sat, 17 Jun 2006 16:19:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06354-09 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: from server016.dfw.nationwide.net (server016.dfw.nationwide.net [206.123.129.79]) by menubar.gnome.org (Postfix) with SMTP id C8CD93B00D2 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: (qmail 15137 invoked from network); 17 Jun 2006 20:17:13 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Sat, 17 Jun 2006 20:17:13 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 2E560E4067 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00589-06 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id E181DE4071; Sat, 17 Jun 2006 13:17:12 -0700 (PDT) Date: Sat, 17 Jun 2006 13:17:12 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617201712.GF11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.515 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.515 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:19:46 -0000 On Thu, Jun 15, 2006 at 11:27:35AM +0200, Jose Hevia wrote: > 2006/6/15, David Ne?as (Yeti) : > > On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > > > > > I use gtk_widget_modify_bg() without trouble. piece of a function: > > > > It works for people who use a decent Gtk+ theme. But themes > > and theme engines can easily make similar things stop working. > > Try just > > > > style "default" { > > bg_pixmap[NORMAL] = "someimage" > > } > > widget_class "*" style "default" > > > > in your gtkrc. > > > > I am afraid the requirement of particular colors goes > > directly against themeability. One cannot have both. > > > > Yeti > > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them > > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I have a "widget" (actually, a dialog with database interface) that allows users to create button background colors, and apply that "theme" to a "class" of buttons in the application. This was an important element to have in my app because the buttons, from the GTK+ point of view, are all more or less the same, and are created on-the-fly at the user's bequest. The user is allowed to group the buttons in any way they see fit. It works quite well with two great benefits: it gets around inflexabilities in themes and makes button color selection accessible to users who don't know how to use a text editor... much less use a syntax to create a complex theme. - Anna From yeti@physics.muni.cz Sat Jun 17 16:45:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F38AC3B07E3 for ; Sat, 17 Jun 2006 16:45:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09232-08 for ; Sat, 17 Jun 2006 16:45:26 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 7746F3B0805 for ; Sat, 17 Jun 2006 16:45:25 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HHKKwI018732 for ; Sat, 17 Jun 2006 19:20:21 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0804923CE9; Sat, 17 Jun 2006 19:20:20 +0200 (CEST) Date: Sat, 17 Jun 2006 19:20:23 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060617172023.GS30886@potato.chello.upc.cz> References: <200606152259.50433.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606152259.50433.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:45:29 -0000 On Thu, Jun 15, 2006 at 10:59:50PM +0000, kamil stachowski wrote: > i understand this is a basic question and am sorry for my ignorance. i really > haven't managed to find an answer though i've searched quite a time. > > i've actually got two problems (using nemerle (mono, i.e. gtk#)): > > 1. i'd like to generate a terrain heightmap and draw it onto a widget. should > i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), > try to convert it to an xpm (how?) or what other method would be most > appropriate? (please, read the second question before answering this one) Don't draw pixel by pixel, it would be awfully slow. Use GdkPixbufs and gdk_draw_pixbuf(). > 2. i'd like to be able to fluently change the colours while the heightmap is > already generated. in the old days (i haven't written much for quite a time) > it was possible to just draw a bitmap onto the screen and keep redefining the > colours, which was pretty fast and looked nice in its way. is it still > doable? Something along these lines should be doable *if* you can get a indexed color visual, which you cannot count on. So I would just redraw it (incidentally I develop a program which uses false-color maps a lot and redrawing works good enough). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Sat Jun 17 17:36:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2443E3B0139 for ; Sat, 17 Jun 2006 17:36:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11011-09 for ; Sat, 17 Jun 2006 17:36:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 0D2693B0104 for ; Sat, 17 Jun 2006 17:36:32 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1000D5OX9ZC3Q3@vms040.mailsrvcs.net> for gtk-list@gnome.org; Sat, 17 Jun 2006 16:34:48 -0500 (CDT) Date: Sat, 17 Jun 2006 17:35:12 -0400 From: Paul Davis Subject: Re: Gtk events ??? In-reply-to: <448FEC06.9090600@free.fr> To: Papel Message-id: <1150580112.8703.55.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <448FEC06.9090600@free.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 21:36:36 -0000 On Wed, 2006-06-14 at 12:59 +0200, Papel wrote: > Hello, > > From a few days ago, i have a lot of problems with gtk events (MainLoop). > I have created a GTK frame into a main widget and a box into this frame. > I have reparent this widget (window) to a XWindow. > I would like to send events (XEvents) to this widget. How I can do to > send this XEvents to GtkEvents to the widget ??? > > I have tried : gtk_widget_event / gtk_main_iteration_do / > gtk_main_do_event / etc... you're not thinking clearly. GTK is a multiplatform GUI toolkit. its backend is not just X Window, but includes the DirectFB (framebuffer) system on Linux, the GDI API (and others on win32) and recently Quartz/Aqua on OS X. sending GTK events doesn't mean sending events that are translated all the way down to the backend's notion of an "event". if you send a GTK "Button Press" event to a widget, GTK will do that entirely within its own event system, without any reference to the backend you are using. back to basics: why have you reparented the window inside a non-GTK XWindow? --p From yeti@trific.ath.cx Sat Jun 17 19:05:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F32E3B00DC for ; Sat, 17 Jun 2006 19:05:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13816-04 for ; Sat, 17 Jun 2006 19:05:33 -0400 (EDT) Received: from trific.ath.cx (rb5bf232.chello.upc.cz [89.176.185.232]) by menubar.gnome.org (Postfix) with ESMTP id 026623B00AA for ; Sat, 17 Jun 2006 19:05:32 -0400 (EDT) Received: by trific.ath.cx (Postfix, from userid 16809) id 34EC4156127; Sun, 18 Jun 2006 00:09:49 +0200 (CEST) Date: Sun, 18 Jun 2006 00:09:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617220938.GW30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 23:05:34 -0000 On Thu Jun 15 05:27:35 2006, Jose Hevia wrote: > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them How this makes the look consistent with Bumblebee [the theme]? Colors are not the only part of look and feel and they are the easiest part. When the theme uses pixmap backgrounds you should [in most cases] take the pixmap, give it a tint and use it instead of a solid color. Etc. Hackish theme engines like the qt one do not make it easier either. > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I agree with the importance, but I don't agree with the statement it is solved. The only real solution would be taking your app specific widgets into account in the theme itself and drawing themed icons for it if necessary. Not very realistic. Instead we are left with a bunch of heuristics, workarounds and hacks that do something not too awful in some common cases. Yeti -- Anonyms eat their boogers. From lists@nabble.com Sat Jun 17 22:11:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D2483B00EC for ; Sat, 17 Jun 2006 22:11:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20102-07 for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id AFE163B000B for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Frmk9-00052t-CL for gtk-list@gnome.org; Sat, 17 Jun 2006 19:10:29 -0700 Message-ID: <4920028.post@talk.nabble.com> Date: Sat, 17 Jun 2006 19:10:29 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to draw a rectangle on a GtkImage widget? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 02:11:42 -0000 Hi All, I am displaying an image in the main window with a thumbnail of the same image on one side. The thumbnail always shows the entire image while the main window shows just a part of the image because of zoom. Now I want to draw a rectange in the thumbnail to indicate which part of the image is currently displayed in the main window. How can I achieve this? Thanks!! -- View this message in context: http://www.nabble.com/How-to-draw-a-rectangle-on-a-GtkImage-widget--t1805314.html#a4920028 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Sun Jun 18 02:56:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6C5B3B008A for ; Sun, 18 Jun 2006 02:56:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28242-09 for ; Sun, 18 Jun 2006 02:55:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8DBF53B014D for ; Sun, 18 Jun 2006 02:55:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HMJ3jN031835 for ; Sun, 18 Jun 2006 00:19:04 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 19A4223D5D; Sun, 18 Jun 2006 00:19:03 +0200 (CEST) Date: Sun, 18 Jun 2006 00:19:08 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Mailing list problems? Message-ID: <20060617221907.GX30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 06:56:00 -0000 Hello, a couple of days ago my e-mails took almost a day to deliver (and it still takes a long time). But that was a small problem, now when I look at the archives, e.g. http://mail.gnome.org/archives/gtk-list/ I see only ========================================================================== The gtk-list Archives You can get more information about this list. Archive View by: Downloadable version June 2006: [ Thread ] [ Subject ] [ Author ] [ Date ] [ Gzip'd Text 7 KB ] ========================================================================== IOW there is only June 2006 -- and even that is incomplete. Other Gtk+ lists look similarly empty. Did something bad happen to them? Yeti -- Anonyms eat their boogers. From dov.grobgeld@gmail.com Sun Jun 18 04:10:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7A56F3B01BA for ; Sun, 18 Jun 2006 04:10:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31006-02 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 840143B01B4 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so1633845nzo for ; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.14.31 with SMTP id r31mr2636632nzi; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.21.57 with HTTP; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Message-ID: Date: Sun, 18 Jun 2006 11:08:28 +0300 From: "Dov Grobgeld" To: "andy gill" Subject: Re: opengl and gtk In-Reply-To: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 08:10:00 -0000 As far as I understand gtkglext is currently the prefered method of using GL within gtk. I have recently used it in a cross platform application that works fine both on Linux and on Win32. Regards, Dov On 6/16/06, andy gill wrote: > is there any officially supported way of integrating opengl into a > gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to > have varying levels of support for different platforms/language bindings, > and i don't quite understand why there isn't opengl support in the main > tree. > what's the best (i.e. documented and supported) way of getting opengl and > gtk to work together? > > cheers. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From kstachowski@o2.pl Sun Jun 18 07:29:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C2BB3B03F5 for ; Sun, 18 Jun 2006 07:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20622-07 for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 44C653B02EF for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2B8285807B for ; Sun, 18 Jun 2006 13:28:32 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 11:28:31 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200606181128.31582.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.444 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -1.444 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 11:29:39 -0000 thank you for the answer :) > Don't draw pixel by pixel, it would be awfully slow. > Use GdkPixbufs and gdk_draw_pixbuf(). you mean "don't draw pixel by pixel using drawpoint", is that it? > Something along these lines should be doable *if* you can > get a indexed color visual, which you cannot count on. So > I would just redraw it (incidentally I develop a program > which uses false-color maps a lot and redrawing works good > enough). that's a pity but i'll have to cope with that if there's no other way. however, i ran into a problem with colourmaps. i was using gdk.image (has the putpixel method which treats the colours in a more traditional way, and seems to be fast enough for my needs) but didn't manage to change the colours it uses. i keep getting a blue gradient which is not precisely what i want. here's the code: def img=Image(ImageType.Fastest,Visual.System,500,500); for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) img.PutPixel(x,y,(x+y):>UInt32); def gc=GC(args.Event.Window); mutable col=Color(0xff,0,0); gc.Colormap.AllocColor(ref col,true,true); img.Colormap=gc.Colormap; args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); i don't seem to be able to spot anything red in the result. could you please tell me what i am doing wrong? From yeti@physics.muni.cz Sun Jun 18 09:43:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8AFFD3B0BF1 for ; Sun, 18 Jun 2006 09:43:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28794-01 for ; Sun, 18 Jun 2006 09:43:29 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 128E23B0C68 for ; Sun, 18 Jun 2006 09:41:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5ICGX47030918 for ; Sun, 18 Jun 2006 14:16:34 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 5E0A123D5F; Sun, 18 Jun 2006 14:16:33 +0200 (CEST) Date: Sun, 18 Jun 2006 14:16:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060618121635.GZ30886@potato.chello.upc.cz> References: <200606181128.31582.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606181128.31582.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_XF=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 13:43:45 -0000 On Sun, Jun 18, 2006 at 11:28:31AM +0000, kamil stachowski wrote: > > Don't draw pixel by pixel, it would be awfully slow. > > Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? Yes, I do -- and I still mean it. > however, i ran into a problem with colourmaps. i was using gdk.image (has the > putpixel method which treats the colours in a more traditional way, and seems > to be fast enough for my needs) but didn't manage to change the colours it > uses. i keep getting a blue gradient which is not precisely what i want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could you please > tell me what i am doing wrong? Well, I can't speak Nemerle, but as far as I understand it, you first fill the image with arbitrary values no one knows which color they correspond to in the colormap, then allocate one very dark red color (full red is 0xffff in Gdk) but never use it -- the `pixel' field filled by AllocColor is the value to use with PutPixel -- and after all that you set the image's colormap. To draw you have to allocate the colors *first* -- and note if the display is not direct/true-color, it has a limited number of colors and you will not be able to allocate a new color for each unique (x+y):>UInt32 value. So, please save yourself all the hassle and just use GdkPixbuf. Yeti -- Anonyms eat their boogers. From riboaz@xs4all.nl Sun Jun 18 10:04:43 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBDDB3B0B99 for ; Sun, 18 Jun 2006 10:04:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29603-07 for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by menubar.gnome.org (Postfix) with ESMTP id 569E53B0BAA for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from [192.168.1.101] (dpc6744211093.direcpc.com [67.44.211.93]) by smtp-vbr7.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5IDtEGv072056 for ; Sun, 18 Jun 2006 15:55:17 +0200 (CEST) (envelope-from riboaz@xs4all.nl) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <200606181128.31582.kstachowski@o2.pl> References: <200606181128.31582.kstachowski@o2.pl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <14003C28-5DE0-4295-9EC8-E2D3D0A8F9A0@xs4all.nl> Content-Transfer-Encoding: 7bit From: Richard Boaz Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 17:55:07 +0200 To: gtk-list@gnome.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -2.445 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:04:44 -0000 hi, i do something like this in an application to draw probability density function plots. what i do is render the image to an internal RGB buffer, followed by gdk_draw_rgb_image() to render it to the internal pixmap (this pixmap subsequently rendered to the screen): width = DrawingArea->allocation.width; height = DrawingArea->allocation.height; rgbbuf = malloc(width * height * 3); memset(rgbbuf, 240, width * height * 3); // set the background to GREY=(240, 240, 240) DrawBufferImage(rgbbuf, width, height, data); gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); free(rgbbuf); inside the DrawBufferImage() routine, i examine the data, point by point, and assign each pixel to be the RGB combination corresponding to the colour defined/assigned for each data value. my input data also dictates an absolute starting size, so inside the DrawBufferImage() routine, i also magnify the image using a bi-cubic spline interpolation algorithm. the speed achieved in ultimately rendering the image is as fast as possible, and there is no real discernable delay between receiving the data to plot and rendering the image to the screen, i.e., it's instantaneous. plotting pixel by pixel (and magnifying to boot) can result in a quickly drawn image (depending on the number of data points, of course), if gone about in the right manner. cheers, richard On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > thank you for the answer :) > >> Don't draw pixel by pixel, it would be awfully slow. >> Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? > >> Something along these lines should be doable *if* you can >> get a indexed color visual, which you cannot count on. So >> I would just redraw it (incidentally I develop a program >> which uses false-color maps a lot and redrawing works good >> enough). > > that's a pity but i'll have to cope with that if there's no other way. > > however, i ran into a problem with colourmaps. i was using > gdk.image (has the > putpixel method which treats the colours in a more traditional way, > and seems > to be fast enough for my needs) but didn't manage to change the > colours it > uses. i keep getting a blue gradient which is not precisely what i > want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could > you please > tell me what i am doing wrong? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From gaal@forum2.org Sun Jun 18 10:06:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 435323B0BB8 for ; Sun, 18 Jun 2006 10:06:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29678-04 for ; Sun, 18 Jun 2006 10:06:01 -0400 (EDT) Received: from smtp2.actcom.co.il (smtp2.actcom.co.il [192.114.47.35]) by menubar.gnome.org (Postfix) with ESMTP id 650563B0BCC for ; Sun, 18 Jun 2006 10:06:00 -0400 (EDT) Received: from sike (line25-249.adsl.actcom.co.il [192.115.25.249]) by smtp2.actcom.co.il (8.13.3/8.13.3) with ESMTP id k5IDMLPC010326 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jun 2006 16:22:28 +0300 Received: from roo by sike with local (Exim 4.62) (envelope-from ) id 1FrxCy-0004RL-3X for gtk-list@gnome.org; Sun, 18 Jun 2006 16:22:14 +0300 Received: by sike (hashcash-sendmail, from uid 1000); Sun, 18 Jun 2006 16:20:55 +0300 Date: Sun, 18 Jun 2006 16:20:54 +0300 From: Gaal Yahas To: gtk-list@gnome.org Subject: Interrupt signal, GLib, threads Message-ID: <20060618132054.GL9396@sike.forum2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 X-Hashcash: 1:26:060618:gtk-list@gnome.org::gDKzIiB7k7Eeir0+:0000000000000000000 000000000000000000000007LSqZ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.509 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599] X-Spam-Score: -2.509 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:06:04 -0000 I have a GLib/GThread console application that runs fine on Linux and Solaris. But ever since I added threading, when the user hits ^C in the shell the signal is ignored. Does using GThread automatically mask signals? What do I do to get them back? When running my app under gdb, incidentally, ^C works as expected (that is, it drops me in a gdb prompt wherever I was). -- Gaal Yahas http://gaal.livejournal.com/ From kstachowski@o2.pl Sun Jun 18 10:36:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C9DB3B0BEE for ; Sun, 18 Jun 2006 10:36:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30842-02 for ; Sun, 18 Jun 2006 10:36:26 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id B38393B0B9E for ; Sun, 18 Jun 2006 10:36:25 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id AF99258082 for ; Sun, 18 Jun 2006 16:35:40 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:35:39 +0000 User-Agent: KMail/1.9.1 References: <200606181128.31582.kstachowski@o2.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200606181435.39660.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.392 tagged_above=-999 required=2 tests=[AWL=-0.789, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -1.392 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:36:28 -0000 hello :) thank you very much for your answer :) but i'm afraid i won't be able to use it. the access to the rgb class seems= to=20 be either very much limited in gtk sharp (mono) compared to the original an= d=20 other bindings, or at least quite a way beyond my programming skills. i think i'm supposed to be using a gdk.pixbuf instead but than again i can'= t=20 or don't know how to access the memory directly. anyways, in the meantime i've received another answer which made me finally= =20 grab the concept behind colour allocation and colour.pixel value. it seems= =20 that i eventually got an idea of what i'm actually writing :) still, thanks a lot for the answer once again:) Dnia niedziela, 18 czerwca 2006 15:27, napisa=B3e=B6: > hi, > > i do something like this in an application used to draw probability > density function plots. what i do is render the image to an internal > RGB buffer followed by gdk_draw_rgb_image() to render it to the > internal pixmap (this pixmap subsequently rendered to the screen): > > width =3D DrawingArea->allocation.width; > height =3D DrawingArea->allocation.height; > rgbbuf =3D malloc(width * height * 3); > memset(rgbbuf, 240, width * height * 3); // set the background to > GREY=3D(240, 240, 240) > DrawBufferImage(rgbbuf, width, height, data); > gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], > 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); > free(rgbbuf); > > my input data dictates an absolute starting size, so inside my > DrawBufferImage() routine, i also magnify the image using a bi-cubic > spline interpolation algorithm. the speed achieved in ultimately > rendering the image is as fast as possible, and there is no real > discernable delay between receiving the data to plot and rendering > the image to the screen, i.e., it's instantaneous. > > plotting pixel by pixel (and magnifying to boot) can result in a > quickly drawn image (depending on the number of data points, of > course), if gone about in the right manner. > > cheers, > > richard > > On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > > thank you for the answer :) > > > >> Don't draw pixel by pixel, it would be awfully slow. > >> Use GdkPixbufs and gdk_draw_pixbuf(). > > > > you mean "don't draw pixel by pixel using drawpoint", is that it? > > > >> Something along these lines should be doable *if* you can > >> get a indexed color visual, which you cannot count on. So > >> I would just redraw it (incidentally I develop a program > >> which uses false-color maps a lot and redrawing works good > >> enough). > > > > that's a pity but i'll have to cope with that if there's no other way. > > > > however, i ran into a problem with colourmaps. i was using > > gdk.image (has the > > putpixel method which treats the colours in a more traditional way, > > and seems > > to be fast enough for my needs) but didn't manage to change the > > colours it > > uses. i keep getting a blue gradient which is not precisely what i > > want. > > here's the code: > > > > def img=3DImage(ImageType.Fastest,Visual.System,500,500); > > for (mutable x=3D0, x<500; x++) for (mutable y=3D0; y<500; y++) > > img.PutPixel(x,y,(x+y):>UInt32); > > > > def gc=3DGC(args.Event.Window); > > mutable col=3DColor(0xff,0,0); > > gc.Colormap.AllocColor(ref col,true,true); > > img.Colormap=3Dgc.Colormap; > > > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > > > i don't seem to be able to spot anything red in the result. could > > you please > > tell me what i am doing wrong? > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list From tomee@kadu.net Sun Jun 18 10:55:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C71413B0100 for ; Sun, 18 Jun 2006 10:55:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31378-02 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from mail.chilan.com (mail.chilan.com [82.160.212.9]) by menubar.gnome.org (Postfix) with ESMTP id 3229A3B0077 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from aereo (aaso91.neoplus.adsl.tpnet.pl [83.5.226.91]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by mail.chilan.com (Postfix) with ESMTP id 4713723F60 for ; Sun, 18 Jun 2006 16:54:00 +0200 (CEST) From: Tomek Jarzynka To: gtk-list@gnome.org Subject: No icons in Open File dialog Date: Sun, 18 Jun 2006 16:53:58 +0200 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181653.59412.tomee@kadu.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:55:15 -0000 Hello, after playing around with unstable packages I messed up GTK - i.e. it doesn't display folder and file icons in the Open File dialog, only text. I've downgraded to the latest stable versions available for Mandriva 2006 (2.8.3) but still no icons appear. I can change the theme with gtk-chtheme (I am using KDE), but still there are no icons. I get no errors in the console. How do I fix that? Where to look for the icon configuration files that may be missing or corrupted? -- tomasz k. jarzynka / 601 706 601 / tomee(a-t)kadu(d-o-t)net "You laugh because I'm different. I laugh beacuse you're all the same." From nf2@scheinwelt.at Sun Jun 18 18:55:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 462013B00AF; Sun, 18 Jun 2006 18:55:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12908-03; Sun, 18 Jun 2006 18:55:31 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 208EC3B00B2; Sun, 18 Jun 2006 18:55:30 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1Fs69X-0004Oc-Kv; Mon, 19 Jun 2006 00:54:01 +0200 Message-ID: <4495D984.5090705@scheinwelt.at> Date: Mon, 19 Jun 2006 00:53:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gtk-list@gnome.org, gnome vfs list Subject: libxdg-vfs and Gtk-Filechooser Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 9d02a3267670e8bb77f537b38fda5a39 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.012, BAYES_00=-2.599, TW_XD=0.077] X-Spam-Score: -2.51 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 22:55:34 -0000 Hi, The experimental "libxdg-vfs" provides a generic interface to VFS libraries. It tries to autodetect the current desktop and then connects to Gnome-VFS or KIO by launching the backend executables xdg_vfs_gnome or xdg_vfs_kde. http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html The target of "libxdg-vfs" would be giving applications access to ftp/smb shares etc... Of course this also involves bringing VFS access to filechoosers. AFAIK Gtk-Filechooser has pluggable backends (GtkFilesystem). It would be interesting if it could also run on top of "libxdg-vfs". The problem is, that i couldn't find any documentation how to implement a GtkFilesystem module. Could you please give me an introduction and maybe tell me about the specific requirements for a GtkFilesystem? Perhaps i need to provide more functions through "libxdg-vfs": listing and mounting Volumes, obtaining icon-paths,... Regards, Norbert From kstachowski@o2.pl Mon Jun 19 01:31:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03CC3B02D0 for ; Mon, 19 Jun 2006 01:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26079-03 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 501B13B0CE7 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 541273A0414 for ; Mon, 19 Jun 2006 00:05:44 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 88F8C58010 for ; Mon, 19 Jun 2006 00:05:13 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Date: Sun, 18 Jun 2006 22:05:08 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200606182205.09332.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.108, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 05:31:54 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm very sorry about the mess with my posts... this is the first time i'm using a mailing list... From kstachowski@o2.pl Mon Jun 19 02:29:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3900E3B0D4C for ; Mon, 19 Jun 2006 02:29:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28331-03 for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 6FC8A3B0D5D for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 0FEDB2A42D9 for ; Sun, 18 Jun 2006 16:16:06 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id B93C9748099 for ; Sun, 18 Jun 2006 16:15:35 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:15:34 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181415.34985.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.446 tagged_above=-999 required=2 tests=[AWL=-0.766, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -1.446 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 06:29:17 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm sorry if this post appears as a new thread. it's my first time using a mailing list... From kstachowski@o2.pl Mon Jun 19 03:12:18 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 049243B0469 for ; Mon, 19 Jun 2006 03:12:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29499-07 for ; Mon, 19 Jun 2006 03:12:17 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 344293B0198 for ; Mon, 19 Jun 2006 03:12:02 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id A33D22A7E30 for ; Mon, 19 Jun 2006 02:07:22 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 829CB748066 for ; Mon, 19 Jun 2006 02:06:52 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: re: drawing a generated bitmap Date: Mon, 19 Jun 2006 00:06:51 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606190006.52079.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.402 tagged_above=-999 required=2 tests=[AWL=-0.799, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077, TW_XF=0.077] X-Spam-Score: -1.402 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 07:12:18 -0000 hello :) sorry for writing to you at your private address instead of the gtk list but it seems that using a mailing list exceeds my computer skills :/ anyway, i'd like to thank you very much for your answer. it made me finally understand how stuff works. here's the answer i think i failed to post on the list: >> Well, I can't speak Nemerle, but as far as I understand it, >> you first fill the image with arbitrary values no one knows >> which color they correspond to in the colormap, then >> allocate one very dark red color (full red is 0xffff in >> Gdk) but never use it -- the `pixel' field filled by >> AllocColor is the value to use with PutPixel -- and after >> all that you set the image's colormap. >> To draw you have to allocate the colors *first* -- and note >> if the display is not direct/true-color, it has a limited >> number of colors and you will not be able to allocate a new >> color for each unique (x+y):>UInt32 value. > so that's the way it works! oh dear, thank you very much! you've saved me > headache for at least a week :) > the thing is that i got completely lost about the concept of colour > allocation and colour.pixel value. i've utterly failed to understand the > meaning of "hardware pixel" as it is put in the docs. > actually, this also why i sticked to image instead of pixbuf - i thought > image.putpixel's colour parameter was the traditional way, and was afraid to > use pixbuf.drawpoint's gc.foreground because i couldn't understand it. > but now the penny dropped, thank you a great lot :) i definitely owe you a > beer or two in case we ever met :) thanks again, kamil stachowski From lists@nabble.com Mon Jun 19 05:10:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5E0723B008F for ; Mon, 19 Jun 2006 05:10:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-05 for ; Mon, 19 Jun 2006 05:10:31 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E4EB73B0014 for ; Mon, 19 Jun 2006 05:10:30 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFlX-0004aX-HJ for gtk-list@gnome.org; Mon, 19 Jun 2006 02:09:51 -0700 Message-ID: <4932993.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:09:51 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Is there any widget on which I can plot my own primitives? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:10:32 -0000 I have explored some widgets such as GtkImage and GnomeCanvas, but none of them provide the functions I need. Does anyone got any idea? Thanks! -- View this message in context: http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Mon Jun 19 05:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3EC43B0004 for ; Mon, 19 Jun 2006 05:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01908-01 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 72F253B00A4 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFsB-0004kJ-Do for gtk-list@gnome.org; Mon, 19 Jun 2006 02:16:43 -0700 Message-ID: <4933077.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:16:43 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the mouse move and double click event? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:17:33 -0000 I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, I need to capture the coordination of the cursor. In VC++, this can be easily achieved by using the OnMouseMove() function. But in Gtk, I cannot find any similar signal to map. Does anyone got any idea? Thanks!! -- View this message in context: http://www.nabble.com/How-to-capture-the-mouse-move-and-double-click-event--t1810142.html#a4933077 Sent from the Gtk+ - General forum at Nabble.com. From z_b_r@poczta.fm Mon Jun 19 05:36:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 633A53B00A4 for ; Mon, 19 Jun 2006 05:36:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01950-04 for ; Mon, 19 Jun 2006 05:36:03 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id C12ED3B0004 for ; Mon, 19 Jun 2006 05:36:02 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id 66C9F373E63; Mon, 19 Jun 2006 11:35:15 +0200 (CEST) Received: from poczta.interia.pl (f27.poczta.interia.pl [10.217.2.27]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 09FB9373E29 for ; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 0B5532E5C9D; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id DC2132E5C98 for ; Mon, 19 Jun 2006 11:35:09 +0200 (CEST) Date: 19 Jun 2006 11:35:09 +0200 From: hm Subject: Drawing images ( with transparency ) one on another To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060619093509.DC2132E5C98@poczta.interia.pl> X-EMID: 1aa40acc X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.455 tagged_above=-999 required=2 tests=[AWL=-0.971, BAYES_40=-0.185, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:36:05 -0000 =0AHi, =0A=0A I`ve got a problem. I`ve got two separate images. One is bac= kground for the secondone. Secondone is partially transparent. There is al= so table. Question is : how to draw in one of the table`s cells the backgra= ound, and on this background ( as a second layer ) second image (transparen= t) ? I know ( of course ) how to create images, tables.=0A=0Athanks ---------------------------------------------------------------------- Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 From jean.brefort@normalesup.org Mon Jun 19 06:43:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A42C3B00C8 for ; Mon, 19 Jun 2006 06:43:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05026-01 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 7BF243B0091 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5E409225FA; Mon, 19 Jun 2006 12:43:01 +0200 (CEST) Subject: Re: Is there any widget on which I can plot my own primitives? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:46:15 +0200 Message-Id: <1150713975.8915.1.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.892 tagged_above=-999 required=2 tests=[AWL=-0.362, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.892 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:43:49 -0000 Le lundi 19 juin 2006 02:09 -0700, heavenscape a 閏rit : > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. Which functions do you need? > Does anyone got any idea? Thanks! May be GtkDrawingArea? Regards, Jean From jean.brefort@normalesup.org Mon Jun 19 06:47:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A8DF3B015D for ; Mon, 19 Jun 2006 06:47:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05099-08 for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by menubar.gnome.org (Postfix) with ESMTP id 5B4743B008F for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp3-g19.free.fr (Postfix) with ESMTP id 4AF08444E6; Mon, 19 Jun 2006 12:46:28 +0200 (CEST) Subject: Re: How to capture the mouse move and double click event? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4933077.post@talk.nabble.com> References: <4933077.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:49:42 +0200 Message-Id: <1150714182.8915.6.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.891 tagged_above=-999 required=2 tests=[AWL=-0.361, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.891 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:47:09 -0000 Le lundi 19 juin 2006 02:16 -0700, heavenscape a 閏rit : > I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, > I need to capture the coordination of the cursor. In VC++, this can be > easily achieved by using the OnMouseMove() function. But in Gtk, I cannot > find any similar signal to map. > > Does anyone got any idea? Thanks!! The "motion-notify-event" signal is most probably what you need. Regards, Jean From lieven@quasar3d.nl Mon Jun 19 07:28:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A099F3B00A5 for ; Mon, 19 Jun 2006 07:28:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06013-07 for ; Mon, 19 Jun 2006 07:28:08 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 0257C3B000F for ; Mon, 19 Jun 2006 07:28:07 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JBQgWa009810 for ; Mon, 19 Jun 2006 13:26:45 +0200 To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? References: <4932993.post@talk.nabble.com> Message-ID: From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 19 Jun 2006 13:26:42 +0200 In-Reply-To: <4932993.post@talk.nabble.com> User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 11:28:11 -0000 Hi, Use the GtkDrawingArea. You can draw to it using Gdk or maybe Cairo (not sure if that's already in the stable version). Google gave me this tutorial: http:// www.gtk.org/tutorial/x2491.html Greets, Lieven van der Heide. On Mon, 19 Jun 2006 11:09:51 +0200, heavenscape wrote: > > I have explored some widgets such as GtkImage and GnomeCanvas, but none > of > them provide the functions I need. > > Does anyone got any idea? Thanks! > -- > View this message in context: > http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lieven@quasar3d.nl Mon Jun 19 08:15:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 540D53B0AAF for ; Mon, 19 Jun 2006 08:15:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09991-10 for ; Mon, 19 Jun 2006 08:15:06 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 75A0A3B0444 for ; Mon, 19 Jun 2006 08:15:05 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JCDXWa008938 for ; Mon, 19 Jun 2006 14:13:33 +0200 Date: Mon, 19 Jun 2006 14:13:33 +0200 To: gtk-list@gnome.org Subject: Different thickness depending on widget properties. From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=0.109, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.356 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:15:08 -0000 Hi, I am currently working on the wimp theme engine, and I would like to have different thickness property values depending on whether the edge type is etched, or sunken. What would be the best approach on doing so? Also, I'm wondering why the GtkFrame is used for both visually grouping widgets together (like the windows groupbox), aswell as adding edges to widgets (like the drop down list in the combobox seems to be doing). They may have the same functionality (which is none, afaik ;)), and in the default theme they may look the same, but imho there really is a difference between a grouping frame and an edge, and when you're theming, it may be very likely that you want to theme them differently. So I think it would be easier if it were different widgets. Greets, Lieven van der Heide. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From yeti@physics.muni.cz Mon Jun 19 09:03:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B68713B0387 for ; Mon, 19 Jun 2006 09:03:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12359-02 for ; Mon, 19 Jun 2006 09:03:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id CE0ED3B0246 for ; Mon, 19 Jun 2006 09:03:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JAfVKW028290 for ; Mon, 19 Jun 2006 12:41:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4E12123CE6; Mon, 19 Jun 2006 12:41:31 +0200 (CEST) Date: Mon, 19 Jun 2006 12:41:32 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Drawing images ( with transparency ) one on another Message-ID: <20060619104132.GW2858@potato.chello.upc.cz> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:03:16 -0000 On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. Either use gdk_draw_pixbuf() if the correct order (first base, then the one with alpha channel) in expose event handler, or use gdk_pixbuf_composite() and draw the final image. Yeti -- Anonyms eat their boogers. From jmad@maerskdata.dk Mon Jun 19 09:04:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DAE2B3B0312 for ; Mon, 19 Jun 2006 09:04:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12532-05 for ; Mon, 19 Jun 2006 09:04:52 -0400 (EDT) Received: from smddisadksgd001.mdd.local (mail.maerskdata.dk [85.89.224.39]) by menubar.gnome.org (Postfix) with ESMTP id 810BC3B006A for ; Mon, 19 Jun 2006 09:04:51 -0400 (EDT) Received: from smdgldodksgd005.mdd.local ([172.29.201.20]) by smddisadksgd001.mdd.local with InterScan VirusWall; Mon, 19 Jun 2006 14:33:26 +0200 Subject: xevent ? To: gtk-list@gnome.org Cc: X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 From: Jens Madsen Date: 19-Jun-2006 14:33:25 CEDT Message-ID: X-MIMETrack: Serialize by Router on SDRMAIL01/MDG(Release 6.5.3|September 14, 2004) at 19-06-2006 14:33:27 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.519 tagged_above=-999 required=2 tests=[AWL=-0.699, BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, INVALID_DATE=2.193] X-Spam-Score: 0.519 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:04:55 -0000 Hi, I am converting some old x-windows software to GTK. It contains a handler for receiving xevents from other applications. What sort of GTK api should I use for receiving/sending the x-events ? Best regards Jens Madsen From simon@thegestalt.org Mon Jun 19 10:43:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CFD73B0123 for ; Mon, 19 Jun 2006 10:43:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15901-01 for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from mail.thegestalt.org (kanga.astray.com [195.82.114.48]) by menubar.gnome.org (Postfix) with ESMTP id 6C54F3B017E for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from simon by mail.thegestalt.org with local (Exim 4.12) id 1FsKwK-00071M-00 for gtk-list@gnome.org; Mon, 19 Jun 2006 15:41:20 +0100 Date: Mon, 19 Jun 2006 15:41:20 +0100 From: Simon Wistow To: gtk-list@gnome.org Subject: Problems using GTK in Maya Message-ID: <20060619144120.GJ7044@thegestalt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.455 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_RG=0.077] X-Spam-Score: -2.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 14:43:40 -0000 I've attempted to write a dialog for Maya using GTK but it consistently causes segfaults. The dialog will launch and return successfully but the next button I press will causes a Maya crash with the message The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 62194 error_code 8 request_code 42 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) And so far I've been unable to geta back trace out of GDB or Totalview. I've narrowed it down to a test case string create_dialog { int argc = 0; char** argv = 0; // Initialize the widget set if (!gtk_init_check (&argc, &argv)) { return ""; } // drain the event loop while (gtk_events_pending ()) { gtk_main_iteration (); } return ""; } either with or without the event loop draining. Am I doing something fundamentally wrong? Do I need to do somethign with XEmbed? Is GTK just not suited to this? Do I need to sacrifice a different breed of chicken? I'm using GTK 2.69 for what it's worth. Simon -- X-Gleitschirmfliegen: macht Spaaaasss! From paul@linuxaudiosystems.com Mon Jun 19 12:36:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E4033B03A5 for ; Mon, 19 Jun 2006 12:36:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20590-07 for ; Mon, 19 Jun 2006 12:36:08 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 14F6B3B01C6 for ; Mon, 19 Jun 2006 12:36:07 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1400EA98NCJ2C6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Mon, 19 Jun 2006 11:33:12 -0500 (CDT) Date: Mon, 19 Jun 2006 12:33:38 -0400 From: Paul Davis Subject: Re: xevent ? In-reply-to: <1150734280.8703.98.camel@localhost.localdomain> To: Jens Madsen Message-id: <1150734818.8703.101.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1150734280.8703.98.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GD=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 16:36:11 -0000 On Mon, 2006-06-19 at 14:33 +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? basically, you can't. GTK is a cross platform toolkit, so it doesn't have an API that exposes backend details like XEvent. if you root around in the sources of gdk, especially the gdk-x11 directory, you will find some stuff that could be useful. but its not GTK and not even really GDK, since these APIs are designed to work on a variety of backends, including several that are not X Window related. --p From jose.francisco.hevia@gmail.com Mon Jun 19 06:50:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B57E3B007B for ; Mon, 19 Jun 2006 06:50:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05221-03 for ; Mon, 19 Jun 2006 06:50:53 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id DDACA3B013E for ; Mon, 19 Jun 2006 06:50:52 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so538227hue for ; Mon, 19 Jun 2006 03:49:46 -0700 (PDT) Received: by 10.49.72.7 with SMTP id z7mr4462656nfk; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2006 12:49:45 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4932993.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Mon, 19 Jun 2006 14:33:36 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:50:56 -0000 2006/6/19, heavenscape : > > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. > Does anyone got any idea? Thanks! Oh, yes, I'm looking my crystal ball, but I can't manage to get to know what kind of functions you need :-) But I'm sure you know, so please, give more info. Jose Hevia From lists@nabble.com Mon Jun 19 21:48:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9193B09BA for ; Mon, 19 Jun 2006 21:48:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15436-06 for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 142DA3B059B for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsVLU-0004uW-Mp for gtk-list@gnome.org; Mon, 19 Jun 2006 18:48:00 -0700 Message-ID: <4947880.post@talk.nabble.com> Date: Mon, 19 Jun 2006 18:48:00 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Trouble with GtkImage on button press event! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 01:48:41 -0000 I need to capture the button press event on a GtkImage widget, and I use the following code: w = lookup_widget(MainWnd,"image1"); gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); and I mapped the "Button press event" using glade, but it never worked. Anyone knows why? -- View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Mon Jun 19 23:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DA3403B022F for ; Mon, 19 Jun 2006 23:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19691-10 for ; Mon, 19 Jun 2006 23:15:01 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9BAA53B036C for ; Mon, 19 Jun 2006 23:15:00 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JI2VFE002259 for ; Mon, 19 Jun 2006 20:02:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4559923D5E; Mon, 19 Jun 2006 20:02:31 +0200 (CEST) Date: Mon, 19 Jun 2006 20:02:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: xevent ? Message-ID: <20060619180234.GF30886@potato.chello.upc.cz> References: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:15:04 -0000 On Mon, Jun 19, 2006 at 04:22:25PM +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? See gdk_add_client_message_filter() and related funcs. At least I think they are intended for this situation, fortunately I have never needed them. Yeti -- Anonyms eat their boogers. From lists@nabble.com Mon Jun 19 23:37:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 155253B032C for ; Mon, 19 Jun 2006 23:37:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20664-03 for ; Mon, 19 Jun 2006 23:37:49 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 0B8933B03A6 for ; Mon, 19 Jun 2006 23:37:48 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsX2j-0006su-9z for gtk-list@gnome.org; Mon, 19 Jun 2006 20:36:45 -0700 Message-ID: <4948583.post@talk.nabble.com> Date: Mon, 19 Jun 2006 20:36:45 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: trouble getting the current size of GtkViewport MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:37:52 -0000 I am displaying an image inside a GtkViewport (which is in a scrolled window), my main window resizes frequently (and so the viewport), and i want the image to rescale to fit the current size of the viewport. Anybody has any idea how to get the current size of the viewport? Thanks a lot!!!! -- View this message in context: http://www.nabble.com/trouble-getting-the-current-size-of-GtkViewport-t1815369.html#a4948583 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Tue Jun 20 01:47:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC0303B05AF for ; Tue, 20 Jun 2006 01:47:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26815-06 for ; Tue, 20 Jun 2006 01:47:47 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 08FEA3B031E for ; Tue, 20 Jun 2006 01:47:41 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id C710471130; Tue, 20 Jun 2006 07:46:38 +0200 (CEST) Subject: Re: Trouble with GtkImage on button press event! From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 07:49:52 +0200 Message-Id: <1150782592.14978.0.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.853 tagged_above=-999 required=2 tests=[AWL=-0.400, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.853 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 05:47:48 -0000 Le lundi 19 juin 2006 18:48 -0700, heavenscape a 閏rit : > I need to capture the button press event on a GtkImage widget, and I use the > following code: > > w = lookup_widget(MainWnd,"image1"); > gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); > > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? do you call glade_xml_signal_autoconnect in your code? > View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From andrew@operationaldynamics.com Tue Jun 20 02:16:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC8873B0F1C for ; Tue, 20 Jun 2006 02:16:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28283-07 for ; Tue, 20 Jun 2006 02:16:40 -0400 (EDT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by menubar.gnome.org (Postfix) with SMTP id 8BF9B3B0EBA for ; Tue, 20 Jun 2006 02:16:39 -0400 (EDT) Received: (qmail 57818 invoked by uid 0); 20 Jun 2006 05:49:08 -0000 Received: from unknown (HELO procyon) (unknown) by unknown with SMTP; 20 Jun 2006 05:49:08 -0000 X-pair-Authenticated: 150.101.122.233 Subject: Re: Trouble with GtkImage on button press event! From: Andrew Cowie To: gtk-list@gnome.org In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain Organization: Operational Dynamics Date: Tue, 20 Jun 2006 15:48:53 +1000 Message-Id: <1150782533.17295.4.camel@procyon.operationaldynamics.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.384 tagged_above=-999 required=2 tests=[AWL=0.215, BAYES_00=-2.599] X-Spam-Score: -2.384 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:16:42 -0000 On Mon, 2006-06-19 at 18:48 -0700, heavenscape wrote: > I need to capture the button press event on a GtkImage widget... > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? [gtk] Images themselves don't have [gdk] Windows underneath them, and only such Windows receive events. There is thus a "helper" class called GtkEventBox. You have to nest the Image inside an EventBox to which you can then hook up mouse button press events. http://developer.gnome.org/doc/API/2.0/gtk/GtkEventBox.html or http://java-gnome.sourceforge.net/docs/javadoc/org/gnu/gtk/EventBox.html AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Website: http://www.operationaldynamics.com/ Blog: http://research.operationaldynamics.com/blogs/andrew/ GPG key: 0945 9282 449C 0058 1FF5 2852 2D51 130C 57F6 E7BD From lists@nabble.com Tue Jun 20 02:46:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA183B038D for ; Tue, 20 Jun 2006 02:46:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30258-08 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 873AB3B0085 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsZzm-00022R-Mg for gtk-list@gnome.org; Mon, 19 Jun 2006 23:45:54 -0700 Message-ID: <4950061.post@talk.nabble.com> Date: Mon, 19 Jun 2006 23:45:54 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the scroll event of the scrolled window? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:46:56 -0000 I need to track the scroll events of the GtkScrolledWindow, and i use following code: GtkWidget* w = lookup_widget(MainWnd,"scrolledwindow1"); gtk_widget_add_events (w, GDK_SCROLL_MASK); and I mapped the scroll child event with glade, but it does not work. Anyone knows why? -- View this message in context: http://www.nabble.com/How-to-capture-the-scroll-event-of-the-scrolled-window--t1815899.html#a4950061 Sent from the Gtk+ - General forum at Nabble.com. From prashan@sasken.com Tue Jun 20 04:48:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC4BB3B0E25 for ; Tue, 20 Jun 2006 04:48:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03632-08 for ; Tue, 20 Jun 2006 04:47:55 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id 1A6C73B0F64 for ; Tue, 20 Jun 2006 04:47:53 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8jlRJ007178 for ; Tue, 20 Jun 2006 14:15:47 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8ji59007156for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5K8jiKm016268for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Message-ID: <4497B5B8.1080000@sasken.com> Date: Tue, 20 Jun 2006 14:15:44 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: proggressbar.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:75.63018 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.072 tagged_above=-999 required=2 tests=[AWL=-0.074, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.072 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 08:48:03 -0000 how to design a progressbar, and add to my application window? with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From prashan@sasken.com Tue Jun 20 07:07:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D06E33B032F for ; Tue, 20 Jun 2006 07:07:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10540-04 for ; Tue, 20 Jun 2006 07:07:04 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id B9BA63B03AD for ; Tue, 20 Jun 2006 07:07:03 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6ERJ012845 for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6E59012842for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5KB6EKm016317for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Message-ID: <4497D6A6.20505@sasken.com> Date: Tue, 20 Jun 2006 16:36:14 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Please help me.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:25.28121 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.3 tagged_above=-999 required=2 tests=[AWL=0.298, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:07:06 -0000 hi all... I am doing GUI for audio players using *GTK* as framework. i have to design a *playlist* which contains files from one* directory*, on selecting file from playlist another window should open,which contains play,* pause and stop buttons and one progress bar*. i have to write *events* for those play & all buttons. if anybody have idea of this please help me. or tell me where i get source code of this. with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From paul@linuxaudiosystems.com Tue Jun 20 07:52:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 318133B044D for ; Tue, 20 Jun 2006 07:52:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-01 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B16773B03B8 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J15007F0Q8GB21C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Tue, 20 Jun 2006 06:50:40 -0500 (CDT) Date: Tue, 20 Jun 2006 07:51:07 -0400 From: Paul Davis Subject: Re: proggressbar.. In-reply-to: <4497B5B8.1080000@sasken.com> To: Kalli Math Message-id: <1150804267.8703.134.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <4497B5B8.1080000@sasken.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.547 tagged_above=-999 required=2 tests=[AWL=0.052, BAYES_00=-2.599] X-Spam-Score: -2.547 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:52:07 -0000 On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? it is customary to show some indication that you've attempted to find an answer to such simple, basic questions before asking a mailing list. www.gtk.org has lots of documentation on the GTK API, and links to lots of example source code which you are expected to make use of to find useful, real world, working examples. if you don't understand even the basic idea behind using GTK (or any GUI toolkit), mailing lists are not the right place to begin. From linuxhippy@gmail.com Tue Jun 20 09:27:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 520BE3B02A4 for ; Tue, 20 Jun 2006 09:27:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17603-06 for ; Tue, 20 Jun 2006 09:27:34 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 14A793B01A8 for ; Tue, 20 Jun 2006 09:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so742257hue for ; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.40.10 with SMTP id n10mr2592344hun; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Message-ID: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Date: Tue, 20 Jun 2006 15:26:51 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Scrolling performance MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 13:27:36 -0000 Hi there, I recently updated to OpenSuSE 10.1 since some people suggested that Eclipse/GTK's performance is better with gtk 2.8. My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with latest NVidia binary drivers, renderaccel enabled. GTK applications tend to be very unresponsive compared to other toolkits: - Slow expose reaction. If I move a window above e.g. gtk-demo I see a repaint-lag of about 2-3cm. - Slow scrolling. Even fast scrolling inside of the filechooser is not smooth. I can see scrolling srtifacts which look like caused by asynchronous repainting of the scrolled area. - Slow layouting, especially for Text composnents: Moving e.g. the vertical splitters of gftp (one pane a table as content, other table is empty) is done with about 5fps. Even my old P233 with Windows2000 can do compareable GUI operations without any problems. Also reslayouting/repainting windows after window-size change is slow. - Sluggish Menu-behaviour. In gftp I can feel a ~400ms lag, therefor it takes about 400ms for the menu to catch up to my mouse-pointer if I move with about 500pixel/s. - Eclipse in general is just _very_ slow at all. If large popup menus go away you see the background about 300-500ms repainting itself. Netbeans (Swing based) is way faster, only after start its slow (till the java JIT compiled the hot spots). I know this is an opensource project, I know if something bothers me I can grab the code and enhance it or dontate some money to make someone else fix my problems. However I still go to school and currently have to do my diploma -> no money, no time. I know its unpolite to post such problems to the list, but bad performance has been discussed since ... I guess the 2.0 release. I still remember many projects refusing to upgarde with tables of micro-benchmarks. Till a long time improvements are promiesed, fast paths in pango, enhanced speed of cairo, better repaint handling and whatsoever. If I start a application which links against GTK-2.8 _feels_ exactly as good damn slow as GTK-2.0. The I start a GTK-1.2 based problem and can't trust my eyes ... what happend to GTK. At times of GTK-1.2 I preffered GTK since it felt a bit faster than QT-2.x but now QT is lightening fast compared to GTK-2.x not talking about high-performance libraries like FOX or FLTK. I used Mozilla/GTK1.2 builds as long as they were available, since even mozilla slowed down by only using GDK(2). I just don't get it why I need a 3ghz PC to not see repaint lags or 5fps layout updates. These things worked years ago ten times better than now (and no, this are not themes. GTK-1/QT-2 were themed too with tons of pixmaps). What has happend? I guess performance regression testing is something never here has heard of :-/ And where to start getting my hands on? I just can't work with this crap anymore, but since GTK is on the way to be used as the default toolkit ... it seems there's no way arround it. Which profiling tools do you recommend? Do you think using the intel compiler is worth a try? Where does all the time go to? I've done some sysprof-profiling and its shows than pango is not the evil. Are maybe the repaint algorythmns not optimal, repainting too often too large areas/hidden components? Sorry for wasting your time and your energy, a frustrated Clemens From mclasen@redhat.com Tue Jun 20 11:22:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B32C3B043F; Tue, 20 Jun 2006 11:22:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-09; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 71CF13B00E7; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLnL004523; Tue, 20 Jun 2006 11:21:21 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLNA016479; Tue, 20 Jun 2006 11:21:21 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5KFLKdH032719; Tue, 20 Jun 2006 11:21:20 -0400 Subject: GLib 2.11.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Date: Tue, 20 Jun 2006 11:21:20 -0400 Message-Id: <1150816880.15532.58.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 15:22:11 -0000 GLib 2.11.4 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.4.tar.bz2 md5sum: 9d3a94baa4bfcd9a579b45eea6de3a8c glib-2.11.4.tar.gz md5sum: f7768bc7ed524c6b40cb87daccb6c2b2 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.3 to GLib 2.11.4 =================================================== * GBookmarkFile: - g_bookmark_file_remove_item returns a boolean * g_mkstemp accepts the XXXXXX in the middle of the template * Bugs fixed: 344868 g_key_file_to_data should separate groups * Updated translations (de,es,fr,gu,hi,ko,th) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=344868 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Christian Persch, Federico Mena Quintero Matthias Clasen June 20, 2006 From torriem@chem.byu.edu Tue Jun 20 14:00:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AAD953B04F0 for ; Tue, 20 Jun 2006 14:00:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02250-08 for ; Tue, 20 Jun 2006 14:00:13 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 8D0CF3B0302 for ; Tue, 20 Jun 2006 14:00:02 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5KFR9lG010025 for ; Tue, 20 Jun 2006 09:27:10 -0600 Subject: Re: Please help me.. From: Michael L Torrie To: gtk-list@gnome.org In-Reply-To: <4497D6A6.20505@sasken.com> References: <4497D6A6.20505@sasken.com> Content-Type: text/plain Date: Tue, 20 Jun 2006 09:27:09 -0600 Message-Id: <1150817229.26278.4.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Tue, 20 Jun 2006 09:27:10 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.514 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.514 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:00:23 -0000 On Tue, 2006-06-20 at 16:36 +0530, Kalli Math wrote: > hi all... > > I am doing GUI for audio players using *GTK* as framework. i have to > design a *playlist* which contains files from one* directory*, on > selecting file from playlist another window should open,which contains > play,* pause and stop buttons and one progress bar*. i have to write > *events* for those play & all buttons. if anybody have idea of this > please help me. or tell me where i get source code of this. Do you have a specific question? I doubt anyone here will write your program for you. > > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mitch@gimp.org Tue Jun 20 14:16:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C5693B03C5 for ; Tue, 20 Jun 2006 14:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03488-03 for ; Tue, 20 Jun 2006 14:16:26 -0400 (EDT) Received: from mitch.gimp.org (fuckup.club.berlin.ccc.de [195.160.172.2]) by menubar.gnome.org (Postfix) with ESMTP id 86EB33B0341 for ; Tue, 20 Jun 2006 14:16:25 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FsknV-0007g7-00; Tue, 20 Jun 2006 20:17:58 +0200 Subject: Re: proggressbar.. From: Michael Natterer To: Kalli Math In-Reply-To: <4497B5B8.1080000@sasken.com> References: <4497B5B8.1080000@sasken.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 20:17:57 +0200 Message-Id: <1150827477.31698.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:16:27 -0000 I think it would help a bit if you a) asked specific questions b) didn't have 3 times as much advertizing as content in your mail c) didn't have this idiotic disclaimer On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Tue Jun 20 14:20:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D25DE3B03E3 for ; Tue, 20 Jun 2006 14:20:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03798-03 for ; Tue, 20 Jun 2006 14:20:52 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 120A73B0401 for ; Tue, 20 Jun 2006 14:20:51 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id i30so402545wxd for ; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.19.6 with SMTP id 6mr10823687wxs; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Message-ID: <522c6460606201120g780d763dvf18c90f7fb461681@mail.gmail.com> Date: Tue, 20 Jun 2006 19:20:51 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:20:54 -0000 On 6/20/06, Clemens Eisserer wrote: > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Hi Clemens, I've not tried suse 10.1, but older suses used to install a theme engine for gtk which tried to copy the current KDE theme. It always caused me problems: it was slow, very ugly, and had repaint errors. Maybe it's better than it used to be, but if you have not disabled it, I think it's worth trying without. I forget what the package you have to remove is called, maybe try something like rpm -q a | grep -i gtk | grep -i engine (untested) and see if it lists any theme engines. GTK on the default theme should be fast. John From patrick.jacquotf@free.fr Tue Jun 20 15:18:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A6EB3B046A for ; Tue, 20 Jun 2006 15:18:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07752-07 for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 9EC583B047F for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp2-g19.free.fr (Postfix) with ESMTP id C6C8F73297; Tue, 20 Jun 2006 21:18:10 +0200 (CEST) Subject: Re: Drawing images ( with transparency ) one on another From: Patrick Jacquot To: hm In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 21:17:43 +0200 Message-Id: <1150831063.12639.2.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.582 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599] X-Spam-Score: -2.582 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:18:15 -0000 Le lundi 19 juin 2006 11:35 +0200, hm a 閏rit : > Hi, > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. > > thanks > > ---------------------------------------------------------------------- > Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 > One solution could be to prepare the composite image with the imagemagick library, then to display that composite image HTH -- Patrick From Valdis.Kletnieks@vt.edu Tue Jun 20 15:31:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 908813B04C0 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08815-08 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 9C8D13B04A5 for ; Tue, 20 Jun 2006 15:31:30 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KJVPU2012082; Tue, 20 Jun 2006 15:31:25 -0400 Message-Id: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 15:26:51 +0200." <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150831885_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 15:31:25 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.596 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.596 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:31:31 -0000 --==_Exmh_1150831885_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 15:26:51 +0200, Clemens Eisserer said: > Where does all the time go to? I've done some sysprof-profiling and > its shows than pango is not the evil. Are maybe the repaint > algorythmns not optimal, repainting too often too large areas/hidden > components? So where *does* the time go to, if not pango? The more detail you can provide, the easier it is to track down. For what it's worth, I'm using an older Dell C840 laptop (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer, and it's able to keep up just fine. (Although I admit that if I grab one 700x1000 window and start using the mouse to move it back and forth as fast as I can move the mouse, in front of 2 other 700x1000 windows, and the window manager is doing the moving window in translucent mode as well, that *will* spike the processor up to about 100% and only 8 or 10 redraws per second. I'm not saying it's *not* an issue for you, but simply pointing out that not everybody is seeing the problem - on my machine, GTK2 *is* a bit heavier than GTK1, but not to the point where it's a major issue. And in general, it's really hard to chase down performance regressions in an open-source project without somebody actually seeing the problem and willing to work in some detail to chase it down (been there myself - there's been more than a few times when I've been literally the only person who was both seeing a given bug in the Linux kernel and in a position to help debug it...) --==_Exmh_1150831885_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmE0NcC3lWbTT17ARAu6DAKCFrdWzrt6jGOyh69x5OyWXCTOWfQCfdYba DBRnnX3k5h5Y8BId+X2kJlo= =y5ZG -----END PGP SIGNATURE----- --==_Exmh_1150831885_3210P-- From linuxhippy@gmail.com Tue Jun 20 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A25C13B037B for ; Tue, 20 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11895-05 for ; Tue, 20 Jun 2006 16:21:18 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id C470F3B0270 for ; Tue, 20 Jun 2006 16:21:17 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so710136hud for ; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.69.7 with SMTP id r7mr2961683hua; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Message-ID: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Date: Tue, 20 Jun 2006 22:21:16 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.561 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 20:21:19 -0000 Hi again, Maybe GTK is using X in a way it does not like? > of 2 other 700x1000 windows, and the window manager is doing the moving window > in translucent mode as well, that *will* spike the processor up to about 100% > and only 8 or 10 redraws per second. Well but then a composition manager is installed (as far as I know this is needed for transculesent windows), the window-content is cached in a pixmap and just this pixmap is drawn overe and over and the application does not receive a single expose event by X - So it has in fact nothing to do with GTK. Thanks for the tip with the theme, the only theme I've installed is called "Raleigh". > (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer Well but it should be enough to handle these simple tasks very fast. If QT can do it fast, GTK should be able too. I just wonder why QT performs that well (and many other toolkits I've used too like FOX or FLTK) but everytime it comes down to bad performance of GTK the following things happen: 1.) Not even one comment from a developer. Maybe there are not enough, maybe nobody cares, ore maybe they can't cope with critic? I don't know. 2.) Some fans respond that on their machines its working fast enough. Fighting against that one that brought up the topic to show him that their favourite Gui toolkit is not as weak as it looks. 3.) The discussion dies with or without a flame. -> no result, nothing changes. I see/saw quite frequently complaints about GTK's performance, I saw tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away from GTK-2 because they were concerned loosing users when switching to this toolkit. > So where *does* the time go to, if not pango? The more detail you can > provide, the easier it is to track down. I did some sysprof testing back when I tried to analyze why the Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default theme). It was almost a flat profile, but X spiked quite a lot. Doing the same test (invalidating eclispe's main window) shows about half (!!!) of the time is spent in X. The test with gftp (moving splitters) shows X using 67.1% of CPU whereas gftp itself only consumes 31%. I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). lg Clemens From myeates@jpl.nasa.gov Tue Jun 20 17:24:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B67933B090F for ; Tue, 20 Jun 2006 17:24:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14950-08 for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from nmta3.jpl.nasa.gov (nmta.jpl.nasa.gov [137.78.160.108]) by menubar.gnome.org (Postfix) with ESMTP id 9336B3B082C for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from xmta3.jpl.nasa.gov (xmta3.jpl.nasa.gov [137.78.160.111]) by nmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlIa004610 for ; Tue, 20 Jun 2006 14:24:47 -0700 Received: from [137.78.28.25] (matslab.jpl.nasa.gov [137.78.28.25]) by xmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlK8000301 for ; Tue, 20 Jun 2006 14:24:47 -0700 Message-ID: <4498679B.7000508@jpl.nasa.gov> Date: Tue, 20 Jun 2006 14:24:43 -0700 From: Mathew Yeates User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: matslab.jpl.nasa.gov [137.78.28.25] X-Source-Sender: myeates@jpl.nasa.gov X-AUTH: Internal IP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.568 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599] X-Spam-Score: -2.568 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:24:49 -0000 Hi When I try and compile I get the error in my subject line. This is with a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Mathew From Valdis.Kletnieks@vt.edu Tue Jun 20 17:30:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4628D3B082C for ; Tue, 20 Jun 2006 17:30:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15364-10 for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 4B7023B05CA for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KLUJKk016876; Tue, 20 Jun 2006 17:30:19 -0400 Message-Id: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 22:21:16 +0200." <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150839019_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 17:30:19 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.558 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:23 -0000 --==_Exmh_1150839019_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 22:21:16 +0200, Clemens Eisserer said: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. Maybe none of the developers are seeing your issue, and none of the usual bleeding-edge testers see it either. This makes it hard for them to fix it. > 2.) Some fans respond that on their machines its working fast enough. I'm suspecting you're addressing me with that comment. ;) My point was that it *isn't* the case where every single GTK2 system is seeing horrid performance, and that it always sucks in every case. You seem to be encountering an issue that is *not* present on every system. (On the other hand, if computers and users didn't keep finding new ways to trip over obscure corner cases, I'd be unemployed, so I'm not complaining ;) > I see/saw quite frequently complaints about GTK's performance, I saw > tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away > from GTK-2 because they were concerned loosing users when switching to > this toolkit. Because usually the person complaining disappears before providing useful info like this: > > So where *does* the time go to, if not pango? The more detail you can > > provide, the easier it is to track down. > I did some sysprof testing back when I tried to analyze why the > Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default > theme). It was almost a flat profile, but X spiked quite a lot. Doing > the same test (invalidating eclispe's main window) shows about half > (!!!) of the time is spent in X. The test with gftp (moving splitters) > shows X using 67.1% of CPU whereas gftp itself only consumes 31%. > I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). OK, *now* we have something that we can start looking into - we now know that at least part of the problem is that gftp is generating some very sub-optimal X requests. And we have a test case that reproduces easily (although on my box moving the main horizontal splitter in the gftp gui up and down result in about 70% gftp-gtk and 25% in the X server). I'll take a closer look at this later tonight - the kernel I have booted at the moment doesn't have oprofile support. (And no, I don't pretend to know the GTK innards well enough to fix this, but I've been doing systems debugging and tuning for enough decades that I certainly should be able to get a clear and coherent bugzilla out of it so that somebody else can run with it from there...) --==_Exmh_1150839019_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmGjrcC3lWbTT17ARAipXAJ0VwdLBfSxH0117D7jSuyfn23bE9gCgudlr 1k0WTieYG9P86q3XX2RzYns= =rDWz -----END PGP SIGNATURE----- --==_Exmh_1150839019_3210P-- From mleisher@crl.nmsu.edu Tue Jun 20 17:30:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC5483B0ACC for ; Tue, 20 Jun 2006 17:30:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-02 for ; Tue, 20 Jun 2006 17:30:38 -0400 (EDT) Received: from crl.nmsu.edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id A09343B0BBE for ; Tue, 20 Jun 2006 17:30:36 -0400 (EDT) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.nmsu.edu (8.13.6/8.13.6) with ESMTP id k5KLUYPh018088; Tue, 20 Jun 2006 15:30:34 -0600 Message-ID: <44986900.7080407@crl.nmsu.edu> Date: Tue, 20 Jun 2006 15:30:40 -0600 From: Mark Leisher User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Clemens Eisserer Subject: Re: Scrolling performance References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.2/1551/Tue Jun 20 07:37:21 2006 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.494 tagged_above=-999 required=2 tests=[AWL=-0.840, BAYES_00=-2.599, DNS_FROM_RFC_BOGUSMX=1.945] X-Spam-Score: -1.494 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:44 -0000 Clemens Eisserer wrote: > >> (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer > Well but it should be enough to handle these simple tasks very fast. > If QT can do it fast, GTK should be able too. > > I just wonder why QT performs that well (and many other toolkits I've > used too like FOX or FLTK) but everytime it comes down to bad > performance of GTK the following things happen: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. > 2.) Some fans respond that on their machines its working fast enough. > Fighting against that one that brought up the topic to show him that > their favourite Gui toolkit is not as weak as it looks. > 3.) The discussion dies with or without a flame. > -> no result, nothing changes. I run GTK+ 2.8 on a 400MHz Pentium II box (512MB, Slackware 9) every day without any noticeable performance problems. At one time or another I have used pretty much all versions of GTK+ on this machine without any performance problems. In fact I just installed all the latest libraries last night and didn't experience any performance problems with any programs I linked to the new libraries. Your performance problem is most likely configuration or distribution-specific. Thus the lack of response from the developers. The discussion founders because nothing needs changing except perhaps your system, which your fellow travelers can only help with up to a point because most of us don't have your specific setup. I will say that it not a good sign that problems like yours can't be diagnosed easily. The accretion of mass and complexity in the OS and GUI is making it increasingly difficult to determine where to start troubleshooting. -- ------------------------------------------------------------------------ Mark Leisher Computing Research Lab They never open their mouths New Mexico State University without subtracting from the Box 30001, MSC 3CRL sum of human knowledge. Las Cruces, NM 88003 -- Thomas Bracket Reed (1839-1902) From tml@iki.fi Tue Jun 20 17:49:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33B5C3B0954 for ; Tue, 20 Jun 2006 17:49:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16362-09 for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 3898C3B028D for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 349E1151226; Wed, 21 Jun 2006 00:49:32 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17560.28006.652000.134571@gargle.gargle.HOWL> Date: Wed, 21 Jun 2006 00:49:26 +0300 To: Mathew Yeates Subject: Re: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix In-Reply-To: <4498679B.7000508@jpl.nasa.gov> References: <4498679B.7000508@jpl.nasa.gov> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.329 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.329 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:49:40 -0000 Mathew Yeates writes: > When I try and compile I get the error in my subject line. This is with > a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Presumably you get the error when running your code, not compiling? Anyway, you probably have an older version of the GNU iconv Dll, iconv.dll, in your Windows System32 folder. (Or something totally unrelated that just happens to also be called iconv.dll.) Hide that other iconv.dll. If you later then notice that some 3rd-party app that has installed it in the system32 folder starts complaining about it missing, copy it to that app's executable's folder, where it should have been in the first place. --tml From jcupitt@gmail.com Tue Jun 20 17:57:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D481A3B026F for ; Tue, 20 Jun 2006 17:57:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17120-07 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.203]) by menubar.gnome.org (Postfix) with ESMTP id 9A3F33B0244 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h30so11009wxd for ; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.92.17 with SMTP id p17mr11155104wxb; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Message-ID: <522c6460606201457k7a194a19n956616ccdaeb85da@mail.gmail.com> Date: Tue, 20 Jun 2006 22:57:34 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:57:43 -0000 On 6/20/06, Clemens Eisserer wrote: > Thanks for the tip with the theme, the only theme I've installed is > called "Raleigh". I found the package: http://www.novell.com/products/linuxpackages/suselinux/gtk-qt-engine.html it is installed by default, so unless you've removed it, you are probably using it. Worth checking anyway. I used to use gtk2.4 apps under suse on a very old 450MHz PII machine and performance was not obviously worse than Qt (for me). John From linuxhippy@gmail.com Tue Jun 20 18:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4FC13B0170 for ; Tue, 20 Jun 2006 18:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20290-07 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 2388D3B08F1 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so720860hud for ; Tue, 20 Jun 2006 15:41:32 -0700 (PDT) Received: by 10.78.17.4 with SMTP id 4mr3049235huq; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Message-ID: <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Date: Wed, 21 Jun 2006 00:41:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.37 tagged_above=-999 required=2 tests=[AWL=-0.155, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -2.37 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 22:41:37 -0000 Hi again, > I'm suspecting you're addressing me with that comment. ;) Well, maybe ;) When I wrote the original post I was quite frustrated since I was unhappy about GTKs performance since a long time (I used FC3 (2.4) and FC4(2.6) and now OpenSuSE 10.1 (2.8), my laptop died (2.6ghz) and now I've to work on an Athlon-1000 where all gtk programs are the same oder of magnitude slower than on my laptop, I just can feel it much more because of the slowness of the machine itself. > Because usually the person complaining disappears before providing useful > info like this: Well I understand that this leads to frustration over the time. I am too one of those guys crying very loud, however I am a java-programmer working with Eclipse since about 2 years. I can choose between a slow GTK2 interface or an unuseable but fast Motif based, and that for the tool I work most of the time with :-/ So ... yes I am interested in investing time to at least help abit with informations ;) For now my timeframe is *very* limmited (my current project has its deadline about 2-3 weeks), but I am of course I am willed to help. I would also be willed to get my hands on code ... if someone would be patient enough to help me at the beginning ;) I did some oprofiling, however I don't have a vmlinz-file handy so its quite a bit useless: 5558 39.2930 no-vmlinux 2116 14.9593 libfb.so 1319 9.3248 nvidia_drv.so 1031 7.2888 Xorg 603 4.2630 libqt-mt.so.3.3.5 550 3.8883 libc-2.4.so 470 3.3227 libgobject-2.0.so.0.800.5 416 2.9410 libcairo.so.2.2.3 337 2.3825 libglib-2.0.so.0.800.5 304 2.1492 libgdk-x11-2.0.so.0.800.10 272 1.9229 libpango-1.0.so.0.1001.1 201 1.4210 libX11.so.6.2 177 1.2513 libpthread-2.4.so 155 1.0958 libgtk-x11-2.0.so.0.800.10 > I'll take a closer look at this later tonight - the kernel I have booted at the > moment doesn't have oprofile support. Thanks for looking into this. lg Clemens From Valdis.Kletnieks@vt.edu Tue Jun 20 19:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1109D3B0357 for ; Tue, 20 Jun 2006 19:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24750-03 for ; Tue, 20 Jun 2006 19:43:33 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id C354B3B02B8 for ; Tue, 20 Jun 2006 19:43:32 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KNhQN3004405; Tue, 20 Jun 2006 19:43:26 -0400 Message-Id: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Wed, 21 Jun 2006 00:41:31 +0200." <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150847006_3852P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 19:43:26 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.404 tagged_above=-999 required=2 tests=[AWL=-0.150, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_IB=0.077] X-Spam-Score: -1.404 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 23:43:38 -0000 --==_Exmh_1150847006_3852P Content-Type: text/plain; charset=us-ascii On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > I did some oprofiling, however I don't have a vmlinz-file handy so its > quite a bit useless: > 5558 39.2930 no-vmlinux Bummer. With a system time *that* high, I'm wondering if there's something odd going on here... a vmlinux to help split that out would certainly help a lot in debugging here.. > 2116 14.9593 libfb.so > 1319 9.3248 nvidia_drv.so > 1031 7.2888 Xorg > 603 4.2630 libqt-mt.so.3.3.5 > 550 3.8883 libc-2.4.so > 470 3.3227 libgobject-2.0.so.0.800.5 Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a generic GTK issue, not gftp, unless the 3 other apps I tested did the same wrong thing with it.. ;) samples % image name app name symbol name 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process 5232 6.7536 libfb.so libfb.so (no symbols) 4834 6.2398 Xorg Xorg (no symbols) 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy 2172 2.8037 vmlinux vmlinux get_page_from_freelist 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock 1359 1.7542 nvidia nvidia (no symbols) 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup (or, done by shared library: 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 10538 13.6027 vmlinux 5594 7.2209 libc-2.4.90.so 5377 6.9408 libgobject-2.0.so.0.1102.1 5232 6.7536 libfb.so 4953 6.3934 Xorg 4784 6.1753 nvidia_drv.so 3933 5.0768 libpthread-2.4.90.so At least in my case, the top hog appears to be too much work done scaling theme pixmaps over and over, when they're likely to be invalidated by another resize before the scaling is completed.... You probably mentioned it before, but what GTK2 theme are you using? --==_Exmh_1150847006_3852P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmIgecC3lWbTT17ARAvXtAKDYfozX87Bk7LwUKWF75kNiCuBY2gCgp136 iJcjpeJlIWrhq/fYvfTtwEc= =x8rS -----END PGP SIGNATURE----- --==_Exmh_1150847006_3852P-- From nick.soffe@bioch.ox.ac.uk Wed Jun 21 04:41:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 68FAD3B0A36 for ; Wed, 21 Jun 2006 04:41:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-02 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from relay0.mail.ox.ac.uk (relay0.mail.ox.ac.uk [129.67.1.161]) by menubar.gnome.org (Postfix) with ESMTP id 910DE3B07B7 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from smtp1.herald.ox.ac.uk ([163.1.0.247]) by relay0.mail.ox.ac.uk with esmtp (Exim 4.62) (envelope-from ) id 1FsyHA-0005TT-2r for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Received: from nmrpc.bioch.ox.ac.uk ([129.67.77.14]) by smtp1.herald.ox.ac.uk with esmtp (Exim 3.36 #1) id 1FsyHA-0000gW-01 for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Date: Wed, 21 Jun 2006 09:39:16 +0100 (GMT Daylight Time) From: Nick Soffe To: Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Message-ID: X-X-Sender: bioc0391@imap228.herald.ox.ac.uk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 08:41:32 -0000 On Tue, 20 Jun 2006, Clemens Eisserer wrote: > Hi there, > > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Clemens, I don't know if this has any relevance now, but I experienced similar poor performance a while ago with a machine who's configuration was very similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the Nvidia binary driver current at the time (a couple of years ago). The driver worked well for 3d applications (glxgears gave much higher fps) but seemed to devastate the 2d performance particularly with GTK2 applications. Changing back to the open source 'nv' driver seemed to work much better. I never knew whether the problem was hardware or software related and eventually swapped the graphics card for an inexpensive radeon using the OS 'radeon' driver. This combination worked much better for me so I never investigated further. Nick From linuxhippy@gmail.com Wed Jun 21 07:44:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 173903B0F80 for ; Wed, 21 Jun 2006 07:44:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01010-04 for ; Wed, 21 Jun 2006 07:44:13 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id AFCBC3B0EEF for ; Wed, 21 Jun 2006 07:44:12 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so800375hud for ; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.51.9 with SMTP id y9mr3301492huy; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Message-ID: <194f62550606210444r79f41268xebc6eb2a75e46f20@mail.gmail.com> Date: Wed, 21 Jun 2006 13:44:10 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.735 tagged_above=-999 required=2 tests=[AWL=-0.693, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.735 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 11:44:14 -0000 Hello Nick, > I don't know if this has any relevance now, but I experienced similar poor > performance a while ago with a machine who's configuration was very > similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the > Nvidia binary driver current at the time (a couple of years ago). Definitivly could be ... all my systems are equiped with NVidia cards (GF488Go, FX5200, GF6600) and I am using the nvidia binary driver on all of my systems. However throwing their closed-source beast away is not an option for me, from time to time I play 3d games or enjoy opengl/shader development for fun. Many others also use the nvidia driver, maybe theres a way it could be solved? It really could be this combination, maybe it could be worked arround (if easy) or someone could file a bugreport at nvidia, however I guess they would like to see specific claims. Does anybody know a better way for profiling X/X requests than oprofile? Thanks a lot for reading, lg Clemens From linuxhippy@gmail.com Wed Jun 21 08:04:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D3E753B090F for ; Wed, 21 Jun 2006 08:04:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02496-05 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id 28A553B0992 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so855999hue for ; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.26.9 with SMTP id 9mr3210819huz; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Message-ID: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> Date: Wed, 21 Jun 2006 14:04:21 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.395 tagged_above=-999 required=2 tests=[AWL=-0.661, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_BF=0.077, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -1.395 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 12:04:27 -0000 Hello Valdis, Thanks again for taking all the time :-) You were right, novell installed by default a gtk-qt-engine package, that was also the reason why I was not able to get rid of "this one and only theme". Now I am using the default theme and its _way_ better, I see about twice as much refreshed when moving gftp's vertical splitter, the horizontal are still very slow. gtk-demo still shows a much higher expose-lag than even konqueror which its much more complex (and skinned) default interface. > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. Great, SuSe (unlike fedora) stores an compressed vmlinux directly in /boot. 4676 19.7391 libfb.so (no symbols) 3647 15.3953 vmlinux-copy default_idle 2445 10.3212 nvidia_drv.so _nv000805X 2031 8.5736 vmlinux-copy get_page_from_freelist 1817 7.6702 Xorg (no symbols) 1130 4.7701 libcairo.so.2.2.3 (no symbols) 888 3.7486 libgobject-2.0.so.0.800.5 (no symbols) 699 2.9507 libpango-1.0.so.0.1001.1 (no symbols) 659 2.7819 libgdk-x11-2.0.so.0.800.10 (no symbols) 638 2.6932 libglib-2.0.so.0.800.5 (no symbols) 482 2.0347 nvidia_drv.so _nv000194X 331 1.3973 libgtk-x11-2.0.so.0.800.10 (no symbols) 315 1.3297 libc-2.4.so _int_malloc 309 1.3044 nvidia (no symbols) This profile looks _very_ strange for me. For what is libfb good ... I am quite sure I am using the binary nvidia driver. A lot if time is "wasted" allocating memory and a lot of time goes to the nvidia drivers doing something. Is there a way to get something like call-graphs out of oprofile, maybe this would illustrate which functions call into _nv000805X or libfb. When moving gftps splitters I still see X (with the default theme) eating cpu-time at about 65% and gftp at about 33%. > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... Just because of interrest couldn't cairo be used for scaling with a fast path through XRender? Does XRender supports scaling of images? Thanks again, lg Clemens From jcupitt@gmail.com Wed Jun 21 09:07:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DF073B0F19 for ; Wed, 21 Jun 2006 09:07:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07105-09 for ; Wed, 21 Jun 2006 09:07:36 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id CE1593B0FD4 for ; Wed, 21 Jun 2006 09:07:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so128046wxc for ; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.78.5 with SMTP id a5mr1084728wxb; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Message-ID: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> Date: Wed, 21 Jun 2006 14:07:35 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.441 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:07:39 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From jcupitt@gmail.com Wed Jun 21 09:22:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941143B0FAC for ; Wed, 21 Jun 2006 09:22:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08193-05 for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 7AF683B0FCF for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so130171wxc for ; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.18.10 with SMTP id 10mr1106184wxr; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Message-ID: <522c6460606210621u56e6c915u4db618c4c3de2cc0@mail.gmail.com> Date: Wed, 21 Jun 2006 14:21:54 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.437 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.437 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:22:00 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From paul@linuxaudiosystems.com Wed Jun 21 09:30:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 524143B0FAC for ; Wed, 21 Jun 2006 09:30:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08899-09 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 6ED913B0FE0 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J17000M8PHWT1L4@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 08:29:57 -0500 (CDT) Date: Tue, 20 Jun 2006 21:00:15 -0400 From: Paul Davis Subject: Re: Scrolling performance In-reply-to: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> To: Valdis.Kletnieks@vt.edu Message-id: <1150851615.8703.171.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.931 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247] X-Spam-Score: -1.931 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:30:03 -0000 On Tue, 2006-06-20 at 19:43 -0400, Valdis.Kletnieks@vt.edu wrote: > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) i talked for a little while with tim janik at LAC2006 this year about this very issue. GTK1's pane widget used the standard draw-with-XOR to indicate the new position of the divider, and the resize didn't occur till mouse release. GTK2, for some unknown reason, abandoned that approach and instead keeps issuing resize events as the mouse moves. its completely and totally braindead as the default behaviour, although i would concede that there are situations where it would be nice to have this available. in ardour, dragging panes around like this causes a more or less complete redraw of our monster canvas widget, which causes absurdly slow and ugly visuals while doing it. i've looked at rewriting GtkPaned to use the old behaviour by default, but it was just too much work for me to get into at the time i was looking into it. --p From linuxhippy@gmail.com Wed Jun 21 10:12:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E2C53B0F79 for ; Wed, 21 Jun 2006 10:12:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11455-01 for ; Wed, 21 Jun 2006 10:12:43 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 024343B0954 for ; Wed, 21 Jun 2006 10:12:42 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so3546903uge for ; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.17.1 with SMTP id 1mr3355654huq; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Message-ID: <194f62550606210712n52adc4fbu66cc223ceec68c87@mail.gmail.com> Date: Wed, 21 Jun 2006 16:12:41 +0200 From: "Clemens Eisserer" To: paul@linuxaudiosystems.com, gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <1150851615.8703.171.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <1150851615.8703.171.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:12:47 -0000 Hello Paul, > GTK2, for some unknown reason, abandoned that > approach and instead keeps issuing resize events as the mouse moves. its > completely and totally braindead as the default behaviour, although i > would concede that there are situations where it would be nice to have > this available. Yes I know, older toolkits used to solve it this way. However most modern toolkits resize the content as soon as the slider is moved and are able to cope with it better than GTK (at least on my machine), e.g. moving the panes of k3b (a KDE based cdrecord frontend, qt: skinned, gtk: default theme) is smooth whereas gftp's panes always give an impression of beeing behind the cursor and showing visual ugliness. However this could also be caused by the nvidia driver, I don't know :-/ Maybe I can create a small video of both programs and upload it somewhere.... lg Clemens From M.Kahn@Astronautics.com Wed Jun 21 10:21:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EA683B106A for ; Wed, 21 Jun 2006 10:21:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11945-10 for ; Wed, 21 Jun 2006 10:21:48 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id D14463B1034 for ; Wed, 21 Jun 2006 10:21:47 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6953D.FE391C43" Subject: GTK Performance on Athlon Date: Wed, 21 Jun 2006 09:21:31 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: GTK Performance on Athlon Thread-Index: AcaVPf3m6pVD3d/ISkecaOL4KsmRdA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.3 tagged_above=-999 required=2 tests=[AWL=-1.116, BAYES_40=-0.185, HTML_MESSAGE=0.001] X-Spam-Score: -1.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:21:51 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. The system clock took off at warp speed (about three times normal speed). When I emailed SuSE, they told me that the BIOS does not provide a solid real-time clock interrupt. (One side-effect of the warp speed system clock was I could not "double click" on anything.) They felt that they may have a fix for this problem in SUSE 10.0. It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance. I really hope this isn't your problem. =20 BTW - I have since returned to using my old 1.7 GHz PC (assembled myself) to run Linux. I won't be taking any chances on the Athlon in the future; that's just too much money to spend on a machine that doesn't play nicely with my preferred flavor of Linux. =20 Michael Kahn =20 ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A few months ago, I bought an HP Athlon PC and = installed SuSE 9.2.  The system clock took off at warp speed (about three = times normal speed).  When I emailed SuSE, they told me that the BIOS = does not provide a solid real-time clock interrupt.  (One side-effect of the = warp speed system clock was I could not “double click” on = anything.)  They felt that they may have a fix for this problem in SUSE 10.0.  = It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance.  I really hope this isn’t your = problem.

 

BTW – I have since returned to using my old 1.7 = GHz PC (assembled myself) to run Linux.  I won’t be taking any = chances on the Athlon in the future; that’s just too much money to spend on a machine that doesn’t play nicely with my preferred flavor of = Linux.

 

  Michael Kahn

 

------_=_NextPart_001_01C6953D.FE391C43-- From paul@linuxaudiosystems.com Wed Jun 21 10:46:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4A2C3B1091 for ; Wed, 21 Jun 2006 10:46:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13938-01 for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 328253B105D for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1700ETJSZ4L7UG@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 09:45:05 -0500 (CDT) Date: Wed, 21 Jun 2006 10:45:33 -0400 From: Paul Davis Subject: Re: GTK Performance on Athlon In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150901133.10221.2.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:46:47 -0000 On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > The system clock took off at warp speed (about three times normal > speed). When I emailed SuSE, they told me that the BIOS does not > provide a solid real-time clock interrupt. (One side-effect of the > warp speed system clock was I could not 鈥渄ouble click鈥 on anything.) > They felt that they may have a fix for this problem in SUSE 10.0. It > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > your GTK performance. I really hope this isn鈥檛 your problem. it sounds quite likely that you have been the victim of some slightly uninformed customer support. was this a dual core Athlon? From Valdis.Kletnieks@vt.edu Wed Jun 21 11:42:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D6F313B0F95 for ; Wed, 21 Jun 2006 11:42:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17781-01 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 381A23B1012 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5LFgNYf004294; Wed, 21 Jun 2006 11:42:24 -0400 Message-Id: <200606211542.k5LFgNYf004294@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: paul@linuxaudiosystems.com Subject: Re: GTK Performance on Athlon In-Reply-To: Your message of "Wed, 21 Jun 2006 10:45:33 EDT." <1150901133.10221.2.camel@localhost.localdomain> From: Valdis.Kletnieks@vt.edu References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> <1150901133.10221.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150904543_3088P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 21 Jun 2006 11:42:23 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.583 tagged_above=-999 required=2 tests=[AWL=0.056, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.583 X-Spam-Level: Cc: gtk-list@gnome.org, Michael Kahn X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 15:42:31 -0000 --==_Exmh_1150904543_3088P Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 21 Jun 2006 10:45:33 EDT, Paul Davis said: > On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > > The system clock took off at warp speed (about three times normal > > speed). When I emailed SuSE, they told me that the BIOS does not > > provide a solid real-time clock interrupt. (One side-effect of the > > warp speed system clock was I could not =E2=80=9Cdouble click=E2=80= =9D on anything.) > > They felt that they may have a fix for this problem in SUSE 10.0. It= > > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > > your GTK performance. I really hope this isn=E2=80=99t your problem.= >=20 > it sounds quite likely that you have been the victim of some slightly > uninformed customer support. was this a dual core Athlon? No, the =22turbo clock ticks=22 problem is a very real issue on certain A= thlon motherboards. There's been several long threads about it on the linux-ke= rnel mailing list, and I believe it's fixed in 2.6.16 or 2.6.17 or so (althoug= h I'd have to go back and check, I wasn't paying much attention because I d= on't have an Athlon). SUSE may well have backported the fix into whatever ker= nel they're shipping with 10.0. And a screaming clock *can* bork double-clicks - imagine where you need t= o get in 2 clicks in under 250 milliseconds, but the system ticks off what it t= hinks is 250ms in only 75ms. And your mouse won't double-click faster than 80m= s. ;) --==_Exmh_1150904543_3088P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmWjfcC3lWbTT17ARAl0OAKCdWN5CkoY/7CUNUYAB9THaAsKlFgCbBk+e PUDaJiUXtpFfp14/cFuJQes= =hmFE -----END PGP SIGNATURE----- --==_Exmh_1150904543_3088P-- From chris@cvine.freeserve.co.uk Wed Jun 21 19:26:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525373B00CF for ; Wed, 21 Jun 2006 19:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12592-06 for ; Wed, 21 Jun 2006 19:26:48 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 2D0E93B009B for ; Wed, 21 Jun 2006 19:26:47 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id 004B21C00083; Thu, 22 Jun 2006 01:26:46 +0200 (CEST) Received: from boulder.homenet (user-2086.l1.c4.dsl.pol.co.uk [81.79.136.38]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id C5F531C00082; Thu, 22 Jun 2006 01:26:45 +0200 (CEST) X-ME-UUID: 20060621232645810.C5F531C00082@mwinf3106.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5LNRE68002592; Thu, 22 Jun 2006 00:27:14 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: proggressbar.. Date: Thu, 22 Jun 2006 00:27:13 +0100 User-Agent: KMail/1.9.1 References: <4497B5B8.1080000@sasken.com> In-Reply-To: <4497B5B8.1080000@sasken.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.989 tagged_above=-999 required=2 tests=[AWL=-1.325, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -0.989 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 23:26:49 -0000 On Tuesday 20 June 2006 09:45, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged > information. In case you are not the original intended Recipient of the > message, you must not, directly or indirectly, use, Disclose, distribute, > print, or copy any part of this message and you are requested to delete it > and inform the sender. Any views expressed in this message are those of the > individual sender unless otherwise stated. Nothing contained in this > message shall be construed as an offer or acceptance of any offer by Sasken > Communication Technologies Limited ("Sasken") unless sent with that express > intent and with due authority of Sasken. Sasken has taken enough > precautions to prevent the spread of viruses. However the company accepts > no liability for any damage caused by any virus transmitted by this email It is reasonably straightforward, but I think your disclaimer prevents me from answering your question. Chris From mclasen@redhat.com Wed Jun 21 23:10:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA4213B0172; Wed, 21 Jun 2006 23:10:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23030-07; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 63BA23B0008; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AclX021506; Wed, 21 Jun 2006 23:10:38 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AcnM019751; Wed, 21 Jun 2006 23:10:38 -0400 Received: from [172.16.83.158] (vpn83-158.boston.redhat.com [172.16.83.158]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5M3AciB004961; Wed, 21 Jun 2006 23:10:38 -0400 Subject: GTK+ 2.9.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Organization: Red Hat Date: Wed, 21 Jun 2006 23:12:41 -0400 Message-Id: <1150945961.4457.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.3 (2.7.3-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:10:42 -0000 GTK+ 2.9.4 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.4.tar.bz2 md5sum: c06cf2cfa66485600d90789c9e58f27c gtk+-2.9.4.tar.gz md5sum: e3fefedc7f1a89b66c71c9967168a857 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are finalized by now. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.3 to 2.9.4 ============================================ * GtkPrintOperation: - UI improvements in the print dialog - Make printing work without a display connection - Replace "Print to PDF" by "Print to file" that can generate PDF or PostScript - Add a function to the low-level API to enumerate all printers * GtkNotebook tab DND has been improved * GtkProgressbar supports text in activity mode * GtkLabel allows to set the wrap mode * GtkStatusIcon supports transparency * Bugs fixed: 344850 Dragging a GtkTreeViewColumn segfaults when using certain GtkTreeViewColumnDropFunc 342458 Stock menu items without icons are broken in recent GTK+ releases. 335873 notebook DND + popup windows 337882 gtk_progress_bar_set_text() does nothing in activity mode 339456 unix print dialogue help button bug 339702 Make sure printing works without a display 341571 tabs too easily reordered 344074 New Feature: get printer list, and get default print 344743 gtk_targets_include_text() should initialize atoms 344838 Allow func to be NULL in gtk_tree_view_set_search_position_func 344891 GtkPrintOperationPreview signal defs correction 345008 Need updated cairo req 345093 print preview temp file issues 345107 Memory leak in gtk_entry_completion_finalize: User data not freed 345194 gdk_window_set_functions() docs need to be updated 345456 grid-lines property is wrongly registered and get/set. 314278 strings in gtk-update-icon-cache are not marked for translation 344707 size group with widgets in hidden container 344897 Entry completion model NULL handling should be documented 345038 gtk_print_job_set_status' status 345106 dialog button box spacings 345176 GtkIconView doc about drag and drop 345275 doc imporovements for gtk_window_move 345320 Two very similiar strings should be made equal 345321 Add meaning of "shortcut" as translator comment 320034 transparency gtkstatusicon 339592 Add print-to-postscript 344867 custom paper file could use keyfile * Updated translations (cs,de,es,fr,gl,gu,hi,ko,ta,th) A list of all bugs fixed in this release can be found at http://bugzilla.gnome.org/buglist.cgi?bug_id=344838,344743,344867,344891,345008,341571,345038,337882,345093,344707,339456,345107,345275,339702,344074,345320,345321,344897,314278,320034,344850,345194,345176,345106,335873,342458,339592,345456 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Christian Persch, John Finlay, Federico Mena Quintero, Michael Emmel, Marko Anastasov, Bastien Nocera, Carlos Garnacho, Yevgen Muntyan, Tommi Komulainen, Tim Janik, Christian Weiske, Behdad Esfahbod, Alexander Larsson, Felipe Heidrich, Hendrik Richter, Claudio Saavedra, Dan Winship, Callum McKenzie, John Palmieri, Murray Cumming, Kristian Rietveld June 21, 2006 Matthias Clasen From lists@nabble.com Wed Jun 21 23:29:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CB3B03DC for ; Wed, 21 Jun 2006 23:29:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24140-01 for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1411D3B026B for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FtFsh-0000bD-BH for gtk-list@gnome.org; Wed, 21 Jun 2006 20:29:23 -0700 Message-ID: <4986548.post@talk.nabble.com> Date: Wed, 21 Jun 2006 20:29:23 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: cannot draw lines in a GtkDrawingArea widget MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.82 tagged_above=-999 required=2 tests=[AWL=-0.708, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.82 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:29:25 -0000 Hi all, I need to draw some lines in a GtkDrawingArea widget, and I use the following code: GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. 10,//the x coordinate of the start point 30,//the y coordinate of the start point 580,//the x coordinate of the end point 30 //the y coordinate of the start point ); it does not work! Anybody knows why? Thanks!! -- View this message in context: http://www.nabble.com/cannot-draw-lines-in-a-GtkDrawingArea-widget-t1827981.html#a4986548 Sent from the Gtk+ - General forum at Nabble.com. From yogesh.ar@gmail.com Thu Jun 22 01:09:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0E443B03C9 for ; Thu, 22 Jun 2006 01:09:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29017-09 for ; Thu, 22 Jun 2006 01:09:41 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id C40353B0098 for ; Thu, 22 Jun 2006 01:09:40 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so202391pyf for ; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.34.18 with SMTP id m18mr649285pyj; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:09:39 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 10:39:39 +0530 From: "Yogesh Arora" To: gtk-list@gnome.org Subject: auromatic scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.382 tagged_above=-999 required=2 tests=[AWL=0.218, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.382 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:09:48 -0000 I have a TextView inside a scroll window. I want to create an animation effect in which TextView scrolls automatically I know there is set_value function in Range class. But for calling that function i will always have to calculate the value. There should be some funtion such as step_increment page_increment can called for step or page_increment From yogesh.ar@gmail.com Thu Jun 22 01:38:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59EBA3B035E for ; Thu, 22 Jun 2006 01:38:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30733-08 for ; Thu, 22 Jun 2006 01:38:31 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id BFA423B0008 for ; Thu, 22 Jun 2006 01:38:30 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id t32so201085pyc for ; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.91.15 with SMTP id t15mr679056pyl; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:38:29 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 11:08:29 +0530 From: "Yogesh Arora" To: "Chris Vine" Subject: Re: proggressbar.. In-Reply-To: <200606220027.13878.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.391 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.391 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:38:32 -0000 is that just due to tall claims he is making...or has it got something to do with india On 6/22/06, Chris Vine wrote: > On Tuesday 20 June 2006 09:45, Kalli Math wrote: > > how to design a progressbar, and add to my application window? > > > > with regards, > > Prashanth km > > > > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > > > SASKEN BUSINESS DISCLAIMER > > This message may contain confidential, proprietary or legally Privileged > > information. In case you are not the original intended Recipient of the > > message, you must not, directly or indirectly, use, Disclose, distribute, > > print, or copy any part of this message and you are requested to delete it > > and inform the sender. Any views expressed in this message are those of the > > individual sender unless otherwise stated. Nothing contained in this > > message shall be construed as an offer or acceptance of any offer by Sasken > > Communication Technologies Limited ("Sasken") unless sent with that express > > intent and with due authority of Sasken. Sasken has taken enough > > precautions to prevent the spread of viruses. However the company accepts > > no liability for any damage caused by any virus transmitted by this email > > It is reasonably straightforward, but I think your disclaimer prevents me from > answering your question. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Thanks Yogesh Dont be intimidated by impossibillity.... be motivated by possibillity! From yeti@physics.muni.cz Thu Jun 22 02:37:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 938243B021B for ; Thu, 22 Jun 2006 02:37:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01472-04 for ; Thu, 22 Jun 2006 02:37:42 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 81A8C3B0234 for ; Thu, 22 Jun 2006 02:37:41 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5M6bdQI030282 for ; Thu, 22 Jun 2006 08:37:40 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 6499123CE9; Thu, 22 Jun 2006 08:37:39 +0200 (CEST) Date: Thu, 22 Jun 2006 08:37:39 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: cannot draw lines in a GtkDrawingArea widget Message-ID: <20060622063739.GM30886@potato.chello.upc.cz> References: <4986548.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4986548.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 06:37:44 -0000 On Wed, Jun 21, 2006 at 08:29:23PM -0700, heavenscape wrote: > > I need to draw some lines in a GtkDrawingArea widget, and I use the > following code: > > GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); > gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow > w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. > 10,//the x coordinate of the start point > 30,//the y coordinate of the start point > 580,//the x coordinate of the end point > 30 //the y coordinate of the start point > ); > > it does not work! Anybody knows why? .From the use of lookup_widget() I assume you don't draw in expose event handler (where you get the widget as function argument and do not have to look it up). Draw in the expose handler -- can you see the lines now? Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Thu Jun 22 07:55:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EB213B0086 for ; Thu, 22 Jun 2006 07:55:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21594-10 for ; Thu, 22 Jun 2006 07:55:40 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id 10CEC3B042E for ; Thu, 22 Jun 2006 07:55:39 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id EB5F427105B; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from poczta.interia.pl (f34.poczta.interia.pl [10.217.2.34]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 8C873271069 for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 8D01125049D; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 3F0DE25049A for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Date: 22 Jun 2006 13:55:30 +0200 From: hm Subject: Two buttons, two images and switching between them To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060622115530.3F0DE25049A@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.765 tagged_above=-999 required=2 tests=[AWL=0.223, BAYES_00=-2.599, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: -0.765 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 11:55:41 -0000 =0AHi !=0A=0A I`ve got a problem : I have window, with two buttons inside= . I`ve got two GtkImage`s, and on a beginning of the program, i`m ( setting= gtk_button_set_image () ) these images to be button`s "icons". =0AI want t= o make a signal function, that handles clicking on both of these buttons. O= n click it should switch images between the buttons. For example i`ve got i= con1, icon2, button1 and button2. =0Abutton1 -> icon1=0Abutton2 -> icon2 ( = icon2 is set to be an icon for button2 )=0A=0Anow.. i`ve got a signal, that= button1 is pressed. So i want now, to have situation :=0A=0Abutton1 -> ico= n2=0Abutton2 -> icon1=0A=0A When I try again to do gtk_button_set_image ( b= utton1, icon2 ) and gtk_button_set_image ( button2, icon1 ) it doesn`t work= propertly ( button1 has icon2 , but button2 has no icon ). I suppose it is= so because of button1 is now "parrent" ( or owner ) of both icons ???? I= `m not quiet sure. I would be appreciate for any clue how to do this. Maybe= there is any method to release icon from being button`s child ? Uhh.. it i= s little twisted :) From betsy.vyce@ctg.com Wed Jun 21 12:39:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 10E193B108D for ; Wed, 21 Jun 2006 12:39:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21747-06 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from smtp.ctg.com (smtp-out.ctg.com [206.201.124.158]) by menubar.gnome.org (Postfix) with ESMTP id 6BC553B1035 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from netmail.ctg.com (netmail.ctg.com [205.142.112.242]) by smtp.ctg.com (Symantec Mail Security) with ESMTP id 4762810CF for ; Wed, 21 Jun 2006 12:39:30 -0400 (EDT) Received: from BUF-EXC1.ctg.com ([205.142.112.13]) by netmail.ctg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 12:39:29 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C69551.44546463"; type="multipart/alternative" Subject: Linux Accessibility Project Date: Wed, 21 Jun 2006 12:39:28 -0400 Message-ID: <46A68DDC98C6464DBB54D968081874CF021EAFD2@BUF-EXC1.ctg.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: Linux Accessibility Project Thread-Index: AcaVUUPWid50p5tHQK+nedj3OL/r1A== From: "Betsy Vyce" To: X-OriginalArrivalTime: 21 Jun 2006 16:39:29.0956 (UTC) FILETIME=[446D9640:01C69551] X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.093 tagged_above=-999 required=2 tests=[BAYES_50=0.001, EXTRA_MPART_TYPE=1.091, HTML_MESSAGE=0.001] X-Spam-Score: 1.093 X-Spam-Level: * X-Mailman-Approved-At: Thu, 22 Jun 2006 11:45:55 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 16:39:38 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C69551.44546463 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C69551.44546463" ------_=_NextPart_002_01C69551.44546463 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Our client, IBM, currently has an immediate opening for candidates with=0D= =0A Internals knowledge of GTK and "GTK custom widget", "Bonobo", AT-SPI",=0D= =0A "ATK", and/or "Accessibility" skills. In general, we are seeking=0D=0A someone with deeper GTK knowledge. The project involves working on=0D=0A solving a set of bugs in the Gnome desktop which can be viewed at the=0D=0A following link:=0D=0A =0D=0A =0D=0A =0D=0A http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.html=0D=0A =0D=0A =0D=0A =0D=0A Candidates MUST have Linux experience. We are looking for someone who=0D= =0A can add new functionality after debugging an issue rather than just a=0D=0A debugger, so we need someone with significant development and/or design=0D= =0A skills.=0D=0A =0D=0A =0D=0A =0D=0A Candidates can work from any location in the U.S. as long as they can=0D=0A work at an IBM facility. If they can be in Austin, TX, then all the=0D=0A better.=0D=0A =0D=0A =0D=0A =0D=0A If anyone is interested in being considered for this opportunity, please=0D= =0A reply to this email with a copy of your resume at your earliest=0D=0A convenience.=0D=0A =0D=0A =0D=0A =0D=0A Regards,=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Betsy Vyce=0D=0A Senior Recruiter, Austin Team=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Tel: 877-222-0688 (Toll Free)=0D=0A =0D=0A Home Office: 303-339-0928=0D=0A =0D=0A Fax: 303-814-1735=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A ------_=_NextPart_002_01C69551.44546463 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0D=0A =0D=0A =0D=0A =0D=0A =0D= =0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A
=0D=0A =0D=0A

Our client, IBM, currently has an immediate opening fo= r=0D=0A candidates with Internals knowledge of GTK and “GTK custom widget&#= 8221;,=0D=0A “Bonobo”, AT-SPI”, “ATK”, and/or “Acc= essibility”=0D=0A skills.  In general, we are seeking someone with deeper GTK knowledg= e.  The=0D=0A project involves working on solving a set of bugs in the Gnome desktop wh= ich=0D=0A can be viewed at the following link:

=0D=0A =0D=0A

 

=0D=0A =0D=0A

http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.ht= ml

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates MUST have Linux experience.  We are lo= oking for=0D=0A someone who can add new functionality after debugging an issue rather tha= n just=0D=0A a debugger, so we need someone with significant development and/or design= =0D=0A skills.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates can work from any location in the U.S. = as long as=0D=0A they can work at an IBM facility.  If they can be in Austin, TX,=0D=0A then all the better.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

If anyone is interested in being considered for this=0D= =0A opportunity, please reply to this email with a copy of your resume at you= r=0D=0A earliest convenience.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Regards,

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A

Betsy Vyce
=0D=0A Senior Re= cruiter,=0D=0A Austin Team

=0D= =0A =0D=0A

=

=0D=0A =0D=0A

 = =

=0D=0A =0D=0A

= Tel: =0D=0A 877-222-0688 (Toll Free)

=0D=0A =0D=0A

= Home=0D=0A Office:  303-339-0928

=0D=0A =0D=0A

= Fax: =0D=0A 303-814-1735

=0D=0A =0D=0A
=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A =0D=0A =0D=0A ------_=_NextPart_002_01C69551.44546463-- ------_=_NextPart_001_01C69551.44546463 Content-Type: image/gif; name="image001.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Description: image001.gif Content-Location: image001.gif R0lGODlhvQBrAPcAAFqmjVmqk7XYzjqSdsHe1ZPFtdyhJMrc05TIukqegp/EtJW+rXG2o47Gtvbo yc3k3dXo4mOkja3VyUyji6TQxODu6un08cni2j2cgezLh9Ho4eCrPEKWem61obzVyuvHffv05C+P cOLw7DKWeua6X/nv2t7u6r3d1EZKizKRcsbi2rja0X29q6DOwVapkYfBse/TmHa5pmCtl3q7qUGe g4G/rd3t6WWwm7rc0mmznjU5gZ7NwJzMvlGmjpnLvEWghvj8+6vUyYnDsuS2VcTh2fT6+DaYfMPg 2Dqaf7LYzajTxpHHt4PArrba0C6Ud+OzTv///4C7p+z18qrRxT6XerLVylGih8Xg13i3otnq5fj7 +p/LvYvBr/v9/FWkiuTx7e/39PP597raz9zs5zuVeDeTdZfHt2WslVKcg5DDsoS9qsjJ3Gmul67U x9Dm36PNv1adhZrJutXj3Ie/rdfX5kKafUabf+jy73CynVldmHS0n12oj6bPwmxvpO3t9PT0+HSt mE6ghXmvm4Gyn/v8/LLOwr3c0mVon8/Q4eLi7Z+hwyyOb+729Hy4pfD39fT39bK0z11hmn+Br3t9 rObm797e6unp8aqsyu/39cLYzujw672/1lZalpGTuvv7/UtPj4W1ovDw9qbIufj4+66wzcTG2qvK vMDC2GGqkm2wmoaIs/L49u3z7+z187W30d3o46Olxvb6+czN3+3285G7qrm71PD08dvb6PT5+IqM tnCqlWFknU5SkZWXvVJWk+Tt6NPU4/H49tjr5UBEiNns5s/n4I2PuGhroXR2qHBypm2plJiav3yw nMLg1/z9/Xi6p/3+/vr8/NDn4f3682inkKPGttnm4EqYf/3+/aepyC+UeMnj3Oby7v79+3d5qpye wY24p6rTyIm3pYKEsbbRxeDq5cba0Pj6+fz471SnkOjz8K/Nv5vMvvf7+uXy7vDXot+pNt3u6eKw Rs/g2Mrk3Ds/hPTfteGuQvrx36/Wy4zEtEehiNjr5uKxSiuNbf///yH5BAEAAP8ALAAAAAC9AGsA AAj/AP8JHEiwoMGDCBMqXMiwocOHECNKnEjR4JSLGDNq3Mixo8cpWiqKHEmypMl//lKqXMmypcuX MP1JOUmzpk2aMXPq3Dnzps+fQBfuHEp0Zc+gSJP6LMqUp9KnUEs2nQrzaNSrWBtS3crSatavYAdy HSszrNmwZLl6PctWadqta9vK/fmWaty5eHHWbXo3r9+Re/n+HXwyMNO+hBM7NFwUseLHCRkTdQy5 MkHJQylbtozZaUMVOBIyenGDARGGAdIVRMJis9S0CzgIZtjBiROELGzrdoJLYRAnEwba3pbVGdi0 aP6hma1w90EETnqs+ucsnO2FLZx0+IfBCfGB0Xbb/25xsEEPhLV3BzG4aoTuGSGvpvWgnPlBEbZx TLht8DrBJE40sdAMuklQkCO2pZPOBPs0Y1AXtglzkG0TTNCDbRUUZIQTCFCw4WnyjQWKQMsdltAK tn3BHX8EIUheQU7kgJoTLxiEoBBhYJJQeiwS5N8/GjihAoxOCEDAF7FkldMi1AwiCijKLMKSOAOV 2BhC+tgWjyOz2GZBQcE4wUN/Mi4EgRPRsLcbAweFx8CZEhIpnnEEqSCeNFjBFIICtvzziByv/GML IP7AMY8mBL0iBy0phUCLHIRYI8eklBYyQFkTiqdbMUQW9FtoC9mp44FOsOCOCPEVRKBuI/TnBDs7 2P9WBEKxMFLMj1C9hEag/ywQQkoRPPIPICMe9Is/A8jxDyFwpJRJQbpgahAE9BxBwLW2NQNEQT44 gQEjAmXXY0Ki2ujEEl0AsQoj2w4EjW03yLAfpz7yh4sTLhgUAAvQ/APhuG61NAArAnnAkin/vBIC IOsQtMAgzdL3zwEqDTIQOeD8qtmKCDGhKTYNEeEEGGqKhwFBDDjRr0C4/vNjt/QOhIR4J+TZUiED KcCSIP8Y7A/PVaY0wECFqBTBQKCotHEFDyTkiA/PvICnQ10MeRARTQigtQBxCiQMMQS1ckRBxIA9 EAFfFmQBD88sMWqIKw1ASM4sLQLIpT8TVGJyAhX/DexApijt2uAHtXQ03TABTaLQRKtEzUALCE74 5AK1pPg/Oieut0rP/mNOxQI9IltKG1P+V0uAEJT5S5dbyUGgj+D9LCsRGAURLo5JkaqNJFMUSysI tRIMQowMf1AspS/FEhyqx8TM5inBkYktmtgihybW0IK35P3lQxABu2Fg/ECtbKhbzQRlqRsD7Tr0 m25LEJTDbkoQ9MxuDRB0wm40qKNkS79oHEzIAT00nKN2QqsKQs41kAfYpgEUuIFtbDCQL9hGCDgQ V4YE4gLgSCAJMnBCAB7SrXNRgAZOABWFKFDCGAjEPTTYgQ+0IUKBUGA8K6hBy57iEmUMRBNScoku /wpSomo8AhBwSKIS4fAr200IAcLpERh+ZBsIBIEBL1DB1P6xvwZogAkxSIIGZvEQdXhPIK1wgguz 5KCBpEwKEnBC/Qaiw6ZN0Acd8IEGTPC/ltBiINVoCQdEQYjOCYQZyCJYQjIxOmnBCIosG5cON6gp 28Sng5oSQEEqYIJOmsAGayFCd5ygox2Wyj39CcCtNMUmm/UQUf+Yx8MUUIgA/kIXiyjHQB4hClbM TSG2wNtdODQQHORHGPmYmXf+EQvb7GAgAnDCDwTyg+hQ8B9dcsJ0BMINTcmAIErQTY1Yto/+XMgI /fmBMZ2Avn9IMByudIndTCEHYf1DDqZQhkpS0P9LgWgCFIdTSOQc6SNICmQblSSjy8Y1M4HkBmQD aSYBHBJNJJgtigXBhBNakI5xAUGNjHACBWA0TbiRpYn++KNCfDZMg/6jAyrABbiCxKIsuRCN/tGC bUQwEAlywyE7/EcznHCDgdzrNvyQ5kD+BS7brGAgcdRHPN8iCEKI4iUW89sw4yeQfznBfE4IA0FC KJ5r/uNMtqGhdh5SyRkIRIdOUKsTNCCQEu5Gk8ysJESjEphrEIIQKYCJNQZ6FwRscCBB6M4InmkQ DXTUCQx420AaQEMatLMhOIgBAzbLgBxMVCAVCIBtntEOgoiArB1QKFRH6VK+7iV15YDJIljRLIL/ mo4ze7nGsho5pUxw77abMUzD5rG9Ri3gANtLHnDlYphFLOAcjygEOHQxiGpoQhQhQAMoBDEA5S6X LZIZwCBMYY4DmAIUeKMuNQDh3e+apTO6AgQzrtFe94IlCvjNr373y9/++ve/URCrfQdM4AIb+MAI TrCCF8zgBjv4wRCOsIQnTOGsgOADHyhBhSuCDhKQAASP6cYGMgCDDYB4wwaxRz9gkJB3GMAAG3iC jGdM4xrb+MY4zrGObyyPIQjkAzHesZCHTOQiG/nINn6xAdCBkBLAwwAOeMw0NuAAfNxDwyguyAcM QAKFdGMalXEACYZgjywfBMxmTrOa18zmNrv5/81wjrOc50xnrPihzre9xSfwDBVFUOIfpaDDP+iA iF7c+RSV+Acw6GCMUfyjFon4hywSPZBSqGIZf1DEJ0jxBz90QhWwWAalBeIKVSjC0bVQxSUEIotT wKIToSBFJyLNZ4RMAhL/QAEy/nHrY9RiFMNQxT+SsYlIyMIP9ejEPyKBiIEAgxdrUIQnNuELQR8i F2v4xCX+MJBNcGINsPjHJfpAh0nk4h+kQEEvJoECRahiHLVGCCTGQQdv+OIfn7CEIoyxBkn4whPD +EMvFOEKSURiFCjwxEAmsYyB3CIPAkGBLP6RB1wP5BirFsguTjHoYfyj4IDuwz/WAPF4G8QSnP9Q xCWQUQpODDoSndjELkpxCEknQxJr4MQmvEGQPmTD4SXfRB4OsQtuDyQPtRgItP/hBx38AeRrEDnJ TX4QThwiEeNWNr4PEYpl9OEb//DEJw6ei2OQ4h+UaHYujAF0gWTjGEb/RyUEjYxwC6QPZ0cECj4u iZFLveRUJ4gxePGPROhgDQKZRCT+gQgdAEMgyUjGP06hgz/n4t6V+EQnrm6JemTjD6c4RB6GkXRk 1FzvvTiEHxDBi0tEAtdQ/3vgCxIKWtNB4Uz/syduLxBLWOIfo7iFQELxe6aXwvabCIXI/wGJXTD9 zv+wxCn+jHZIUDoUf/5DpP8w6tkjhROTgAX/J8DufcUAgxTNLr/618/+9rv//fCPv/znT//62//+ +B+MBS7wgDtkpRkFAAENgQsQcAUVsDsMEQZm0AhqcAHt8AYMKAAFMAYkIQUPcAF3sFcUAQRvEAe9 4xPcoAdlkBIpcAZtADKr4AZ04hBScAHt4xB3kAKL4AUriBAXkABSEgKBUAAzAQ1f0DQJsQUq0QiN oBIjiAUiIQVRQAYkuAdT0AUVMQUpYQY/EQZeQIIj6A920A6MkACBsDINsQVl8IURcQcjuAc1aBAi QAUpkYX+4Ab/gAUpoAcKsQf+EAdicAFHaAhi4A+NUBFagAqNkoV14AgVUQUpsQU/0QYpgQd3/7AK hhAFFwANfegFX6AO0KAFzsAIWTAdUlA2aeMIeOAPCVABPaEOY2CIEWUDYyAFQCAFbgANhoAFVvMP 6qABXsEFi2AHblAEGsAFb2CLduAPehASzsANWUAMvSMFCeAPDxAGFyAlb7AKsYAF9PAPWiACReAM FWADpSUQ2CACWVABuAAEY7BBGpASbPAFq0AAavBZ/wAGWZCKAhELIgANjEAM3FABaYKN3MCOcRAF PQENFZAF3/gPnFgBYPgPX+AGGvAFaWgQaZASeuA/A5EFQeQPeMAIVoAFdRACb1AATLgIZaCIRagS UfAPXDCCdoBXYtCM/jCGTMgHqVAHcyAQYv8Yk1VAEKlAihCwkGegEl9QBQDwKyFABU91kimRkf6w BXVQAP+ACimQCgCwCClgBTylBWfwK4tQB4HgD3UgEFeQEqlgkQSRBcOohTuZAHNIBSSZAmIgEGmQ AnZQBXZABVfwD9yACr8SCDz1Bmy4CHtAgUUgh0v5hwphCEZ4BnGgIlLABmDZCBeADXXgDyHgBQLg D4sAAEyYAhYgAM1YBtbIBylhhylQASIQWGcAmVqoBm5gBX74D1LAhACQAtc4EHGwlFbQgDg5ggkQ C6EJACwZDVXAhqkwB40gJXugBhXgD1zwDwCgEmx4h/9gBv5ABY2QlqhAhf9gA0FUBtvJU7L/2Yx4 YIchMAZMaJmBcIVIGA3NiAUXkBJ5KYghUAdeAIlkOYx78A9C6A+oEAV2gIQK4QxYwBJUUDPxyQYC AQRW4AUVUFpxIICZuQhgEwX+YAUCUZl48A/D+AaZ6Zn/YIf7+Q9f+YekGQjRkAUFAQZXqBKLkAYC AZspSQBm0BsF4A8pIFZBmSEV8Cs7iQ3O+Q+QyYtSwIZUeIUT5Qa/wgfuYqErQQWa9AYaKRDDWACw 6aDtwAXXGQ1ukBIE0KXO+AApwQV34H+C6AX/MJb+QAwWGgJw+A+quBAC4JHSiQvxeQYLupsDoQV8 EAWQeZ7/UIQYqg6BtQcFwIaNgIghAAEc/3mh0OAMMhqH/qAGCMENahAIKGUI/wCbiOkGBRAFdlgG vRGUFDgGv9IG/wAEQQqZCrqp/kCFdvgGWrACUhIHBSEGdJoSZCAFauAPhnqoGhmp/6ACKfEAQlgH QKCmGiCl/vBZuMCECfCpKbEC1nmdWNAG2zSAxZkSzSCmeJqqVoCYXwCb+0SBgvoPqckSbGABXrAI VJCFwcig/pCSQcmdCAEEEGCHk+qqf6gGTCmq/xCUYEMMp5qqq+oPeNoFsAmV+SCDaWkHKmIQsSAG lekPYjAHLcEGnCoQ0fCVUSCIlKqs/ZmX/7AKbqgSVXAHLUqWEXGShtCl38qgiDmRXkAPuf8ZAhR0 roTqD1hwBVdwAQLYBilQBnvQCJ8lrympB0G6EASQEn8ooxCgjhqAsWUwKwL7DwTrD6iqqs8ZlAm7 sP+AC7BpB2yQBhGLEL3qD1WgpfDps/QgDBsrENZJBSGwCBcgVCmhASMrELjAhqigAj+LgQJBAHEQ nWXAtGogDFoABDbQjIsgAvE5ojIrEAVKhYqasxcqEM34rXD4BYHFBlMgANckr3+YmwAgVNn6D22w BbEQDcHgpMFYon2ottUZkyFxtVm7tQf7tf4AlUKYAgUwBVeQujbABRCwuCLQojaAiN/6D00Tt/9g qilhBVDYDMWqpmbgCHkJmQkgEI5AgRD/AIQiEAIpsBBXuAgJYAVZSKljYJlz0AZAEAiIqaV2YAZf 6Q8waqEpMAcnwKxzEJ0CsApp2ShRgA1dUKLo+rn7KhCMMIJ1YAUVGwjgcoV10LQXWgCVuQhTEJX+ oKIY6Q8bzLUBi7D+8pVQOQVMSQWaKhCkib7q67T/EAbNiAr/q7YIPBCC2LuDK59a8JU66A8XQKz+ wAZR8K4iYIeoUABDuhBpMMD+QAZpsC1dUKD+EAi44AUp+Q8VcL9XGZtukJap8A8FkIUA8ABgIAYF sAUFkMMT5QUhkMVp8CtUwKQCYQFFvE94IJ5VMIIQkLbXCZu2ygYpUKplkAJbGwIwmgohjqCgXeDG tjoGcRCSXACt8XEBgZCRUNwuaKkSAOAGbpzFAiG0ZaCiaZoCKZCXxNCiVgCHU1CxKRAFIqAG6fnE G8wQ4TiOvfETvboIZvAG0QnEEHHL5KgUUhBYjTAFaTCCVtCP4CiOw0wQwpzLDmYCeGAHdVsGXqCI iVEFVrAIdVsHbACEcxbNkEHO+cdnAQEAOw== ------_=_NextPart_001_01C69551.44546463-- From linuxhippy@gmail.com Thu Jun 22 13:08:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CBBF3B03E5 for ; Thu, 22 Jun 2006 13:08:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11990-05 for ; Thu, 22 Jun 2006 13:08:30 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id D7CA73B0603 for ; Thu, 22 Jun 2006 13:08:29 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so579907uge for ; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr612924hue; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Message-ID: <194f62550606221008p61ceb686s5402452b96c8c6bb@mail.gmail.com> Date: Thu, 22 Jun 2006 19:08:29 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=-0.080, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 17:08:33 -0000 Hello again, Thanks a lot for sending your results of the 6200. It seems that (on my system) 35% of total cpu time are spent in software rendering related stuff (I guess _nv000805X is some kind of vram readback or upload function). When running gftp with the open-source "nv" driver performance feels way better (but not as ligthening fast as qt) as log as not-AA'ed fonts are used. So by identifying these problematic areas someone could send nvidia an bug-report for the missing XRender hookups/implementations. But I don't have any clue howto identify these :-/ Does anybody know a good technique/tools for finding out which calls to X are slow? Does running gftp in sync mode with some x protocoll analyzer make sence? Thank you in advance, lg Clemens 2006/6/21, John Cupitt : > > Good, glad that helped. There are fast and attractive gtk2 themes as > well: I use clearlooks myself. > > For what it's worth, if I maximise gftp and wiggle the vertical > splitter I see rather similar numbers to you. I have an nvidia 6200 > with driver 1.0-8762 and gtk2.8.18. > > 379387 69.5894 Xorg > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 143932 37.9380 libfb.so > 101881 26.8541 no-vmlinux > 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) > 26745 7.0495 Xorg > 6181 1.6292 libc-2.3.6.so > 1685 0.4441 libextmod.so > 116 0.0306 mouse_drv.so > 42 0.0111 libramdac.so > 1 2.6e-04 libm-2.3.6.so > 125293 22.9820 gftp-gtk > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 20136 16.0711 libpangoft2-1.0.so.0.1201.2 > 16493 13.1635 libcairo.so.2.2.4 > 15452 12.3327 libgobject-2.0.so.0.1000.3 > 13860 11.0621 libpango-1.0.so.0.1201.2 > 12485 9.9646 libc-2.3.6.so > 12299 9.8162 libgdk-x11-2.0.so.0.800.18 > 11823 9.4363 libglib-2.0.so.0.1000.3 > 4191 3.3450 libgtk-x11-2.0.so.0.800.18 > 4190 3.3442 libX11.so.6.2.0 > 2946 2.3513 libpthread-2.3.6.so > 2517 2.0089 no-vmlinux > 2171 1.7327 libpangocairo-1.0.so.0.1201.2 > 2087 1.6657 libXrender.so.1.3.0 > 1887 1.5061 libm-2.3.6.so > 1084 0.8652 libfreetype.so.6.3.8 > 956 0.7630 libclearlooks.so > 352 0.2809 pango-basic-fc.so > 323 0.2578 libgthread-2.0.so.0.1000.3 > 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 > 8 0.0064 ld-2.3.6.so > 3 0.0024 gftp-gtk > > John > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From oystein@gnubg.org Thu Jun 22 15:00:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 66FFE3B006D for ; Thu, 22 Jun 2006 15:00:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19184-03 for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 6F8D03B00BC for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J19009W9ZGSS260@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1900LMZZGRKNH7@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Date: Thu, 22 Jun 2006 21:00:24 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Main Loop, IO Channels and my CLI To: gtk-list@gnome.org Message-id: <449AE8C8.9030709@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig4D0040E48100B18213443258 X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:00:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D0040E48100B18213443258 Content-Type: multipart/mixed; boundary="------------030705090007050505050704" This is a multi-part message in MIME format. --------------030705090007050505050704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I've just made a small glib code that read commands from from a command line interface prompt. It uses g_main_loop and a g_io_channel. I've attached the code. First: It nearly works as expected. The callback is called each time I enter a command, and it's parsed to the command handler. However, I want to expand this to system to use automatic string completion, (the system provided in glib), for all available commands. Now it only handles command as I press enter. I guess I need a extra callback for each keypress. This callback can check if I press and then call g_completion_complete(), but how do I attach such a signal to the main lo= op? Then: Can this be a bug? It work fine unless I use a special scandinavian letter in my commands. Do I have to convert my string at any time? How? (I'm using win32 command prompt window) Example: myprompt> hello You typed: hello myprompt> =C6sop ** (gnubg.exe:3128): WARNING **: Something went wrong Invalid byte sequence in conversion input -=D8ystein --------------030705090007050505050704 Content-Type: text/plain; name="commandsystem.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="commandsystem.c" #include #include static void prompt(){ g_printf("myprompt> "); } static void handlecommand( gchar *sz ){ g_printf( "You typed: %s", sz ); prompt(); } static gboolean mycallback( GIOChannel *channel, GIOCondition cond, gpointer data) { gchar *str_return; gsize length, terminator_pos; GError *error = NULL; if( g_io_channel_read_line( channel, &str_return, &length, &terminator_pos, &error) == G_IO_STATUS_ERROR ) g_warning("Something went wrong"); if ( error != NULL ) { g_printf(error->message); exit(1); } handlecommand( str_return ); g_free( str_return ); return TRUE; } int main(int argc, char* argv[]) { GMainLoop *mainloop = g_main_loop_new( NULL, FALSE); #ifdef G_OS_WIN32 GIOChannel *channel = g_io_channel_win32_new_fd( STDIN_FILENO ); #else GIOChannel *channel = g_io_channel_unix_new( STDIN_FILENO ); #endif prompt(); g_io_add_watch( channel, G_IO_IN, mycallback, NULL ); g_main_loop_run(mainloop); return 0; } --------------030705090007050505050704-- --------------enig4D0040E48100B18213443258 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmujL6kDTFPhwyqYRAmO8AJ90ccVLei/Y2LKl4OmNPvFmCxc48QCbBpkZ DBHxKFHZ30sS+FdQ1vWycnk= =B070 -----END PGP SIGNATURE----- --------------enig4D0040E48100B18213443258-- From tristan.van.berkom@gmail.com Thu Jun 22 15:25:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87E353B0137 for ; Thu, 22 Jun 2006 15:25:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20656-05 for ; Thu, 22 Jun 2006 15:25:06 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id 0E8183B04F4 for ; Thu, 22 Jun 2006 15:25:05 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so586701nzh for ; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: by 10.65.182.16 with SMTP id j16mr3112039qbp; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: from ?66.48.170.242? ( [66.48.170.242]) by mx.gmail.com with ESMTP id q18sm1306507qbq.2006.06.22.12.25.03; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Message-ID: <449AF297.6070003@gnome.org> Date: Thu, 22 Jun 2006 15:42:15 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI References: <449AE8C8.9030709@gnubg.org> In-Reply-To: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.229 tagged_above=-999 required=2 tests=[AWL=0.371, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.229 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:25:07 -0000 貀stein Johansen wrote: >Hi, > >I've just made a small glib code that read commands from from a command >line interface prompt. It uses g_main_loop and a g_io_channel. I've >attached the code. > >First: >It nearly works as expected. The callback is called each time I enter a >command, and it's parsed to the command handler. However, I want to >expand this to system to use automatic string completion, (the system >provided in glib), for all available commands. Now it only handles >command as I press enter. I guess I need a extra callback for each >keypress. This callback can check if I press and then call >g_completion_complete(), but how do I attach such a signal to the main loop? > > > You need to get raw keyboard input from your terminal, in unix you can use tcsetattr(). >Then: >Can this be a bug? It work fine unless I use a special scandinavian >letter in my commands. Do I have to convert my string at any time? How? >(I'm using win32 command prompt window) > >Example: >myprompt> hello >You typed: hello >myprompt> 苨op > >** (gnubg.exe:3128): WARNING **: Something went wrong >Invalid byte sequence in conversion input > > > You might want to change the encoding on the io channel.. if you set it to NULL then it should work. Cheers, -Tristan From tml@iki.fi Thu Jun 22 15:29:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34F8A3B05BF for ; Thu, 22 Jun 2006 15:29:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21008-07 for ; Thu, 22 Jun 2006 15:29:06 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id F38B13B04A4 for ; Thu, 22 Jun 2006 15:29:05 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 636F315138F; Thu, 22 Jun 2006 22:29:02 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.61302.590000.98041@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:28:54 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.33 tagged_above=-999 required=2 tests=[AWL=0.134, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.33 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:29:09 -0000 =D8ystein Johansen writes: > (I'm using win32 command prompt window) And GIOChannel watches work? Wow, I'm amazed. Or actually, in the case of watches for GIOChannels associated with C file descriptors on Win32, GLib uses a separate thread that sits most of the time blocked waiting to read() from the file descriptor, so I guess indeed there is no reason why it wouldn't work for terminal input. > Invalid byte sequence in conversion input > Can this be a bug? It work fine unless I use a special scandinavian > letter in my commands. Do I have to convert my string at any time? > How? I think the input you get from a console window is typically in the so-called OEM code page of your Windows installation. You need to call the GetConsoleCP() function to find out the codepage of the console, and then form the encoding name as a string like "CP437", and tell the GIOChannel to use that encoding. Something like: char codepage[10]; ... sprintf (codepage, "CP%d", GetConsoleCP ()); ... g_io_channel_set_encoding (channel, codepage, &error); (Totally untested, tell us if it works ;) Otherwise GLib assumes the data is in UTF-8, and reading *lines* from a GIOChannel indeed requires it to know the actual encoding of the data, so it will complain when the data isn't proper UTF-8. --tml From tml@iki.fi Thu Jun 22 15:41:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46DF13B022E for ; Thu, 22 Jun 2006 15:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21958-02 for ; Thu, 22 Jun 2006 15:41:35 -0400 (EDT) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 07D893B06CE for ; Thu, 22 Jun 2006 15:41:34 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 9443B1394B7; Thu, 22 Jun 2006 22:41:31 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.62051.621000.757828@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:41:23 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.331 tagged_above=-999 required=2 tests=[AWL=0.133, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.331 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:41:36 -0000 =D8ystein Johansen writes: > However, I want to expand this to system to use automatic string > completion, (the system provided in glib), for all available > commands. Now it only handles command as I press enter. I guess I > need a extra callback for each keypress. This callback can check if > I press and then call g_completion_complete(), but how do I > attach such a signal to the main loop? Ah, I forgot to answer this part. I am afraid you might run into difficulty in doing this on Win32. Or maybe it isn't that hard? There is an API SetConsoleMode(), and mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe it's actually quite similar to Unix, and you can do character-at-a-time input, and your own echo processing. Maybe all you need to do is something like GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); and it will Just Work?=20 --tml From bonefry@gmail.com Thu Jun 22 17:13:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 416803B0601 for ; Thu, 22 Jun 2006 17:13:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26826-10 for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 572B63B061C for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so606362nzh for ; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: by 10.65.95.12 with SMTP id x12mr3218683qbl; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: from ?86.34.237.177? ( [86.34.237.177]) by mx.gmail.com with ESMTP id a5sm1382428qbd.2006.06.22.14.13.35; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Message-ID: <449B07F9.9030500@gmail.com> Date: Fri, 23 Jun 2006 00:13:29 +0300 From: Alex Nedelcu User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: GTK performance on Windows Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.158 tagged_above=-999 required=2 tests=[AWL=0.442, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.158 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:39 -0000 Why is GTK's performance so bad on Windows ? Of all the gui tookits I use, it has the worse performance. I am interested in GTK on Windows because I want to make cross-platform applications. Isn't there a new version on the horizon that will fix this ? Or what can be done to tune the performance of GTK interfaces ? I am using GTK+ version 2.8, and Windows XP. The platform I use is Mono with the GTK# bindings, but I also made tests in Python with the PyGTK.bindings, and I've got the same results. Thank you, From chris@cvine.freeserve.co.uk Thu Jun 22 17:13:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96F463B02CA for ; Thu, 22 Jun 2006 17:13:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27147-02 for ; Thu, 22 Jun 2006 17:13:50 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 774DB3B0769 for ; Thu, 22 Jun 2006 17:13:44 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id A0287580008E; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) Received: from boulder.homenet (user-2802.lns6-c11.dsl.pol.co.uk [84.69.106.242]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id 5BE1E58001A9; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) X-ME-UUID: 20060622211342377.5BE1E58001A9@mwinf3114.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5MLDBgq004659; Thu, 22 Jun 2006 22:13:11 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Two buttons, two images and switching between them Date: Thu, 22 Jun 2006 22:13:11 +0100 User-Agent: KMail/1.9.1 References: <20060622115530.3F0DE25049A@poczta.interia.pl> In-Reply-To: <20060622115530.3F0DE25049A@poczta.interia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606222213.11197.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.306 tagged_above=-999 required=2 tests=[AWL=-0.042, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.306 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:53 -0000 On Thursday 22 June 2006 12:55, hm wrote: > Hi ! > > I`ve got a problem : I have window, with two buttons inside. I`ve got > two GtkImage`s, and on a beginning of the program, i`m ( setting > gtk_button_set_image () ) these images to be button`s "icons". I want to > make a signal function, that handles clicking on both of these buttons. On > click it should switch images between the buttons. For example i`ve got > icon1, icon2, button1 and button2. button1 -> icon1 > button2 -> icon2 ( icon2 is set to be an icon for button2 ) > > now.. i`ve got a signal, that button1 is pressed. So i want now, to have > situation : > > button1 -> icon2 > button2 -> icon1 > > When I try again to do gtk_button_set_image ( button1, icon2 ) and > gtk_button_set_image ( button2, icon1 ) it doesn`t work propertly ( button1 > has icon2 , but button2 has no icon ). I suppose it is so because of > button1 is now "parrent" ( or owner ) of both icons ???? I`m not quiet > sure. I would be appreciate for any clue how to do this. Maybe there is any > method to release icon from being button`s child ? Uhh.. it is little > twisted :) When you substitute an image in button1 the reference count to icon1 would have been decremented, and if you have not taken steps to stop button1 taking ownership of it it will have been destroyed. That may be your problem (although in that case it is surprising that it worked the first time). Chris From oystein@gnubg.org Thu Jun 22 17:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AC523B0242 for ; Thu, 22 Jun 2006 17:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28976-07 for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 18D9A3B022C for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A009X17J7S2C0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A00FW87J6QD35@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Date: Thu, 22 Jun 2006 23:54:39 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <449AF297.6070003@gnome.org> To: Tristan Van Berkom Message-id: <449B119F.1000203@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enigF4FE71D812066FD76946249B X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.563 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599] X-Spam-Score: -2.563 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:54:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF4FE71D812066FD76946249B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tristan Van Berkom wrote: > =D8ystein Johansen wrote: >=20 >> Hi, >> >> I've just made a small glib code that read commands from from a comman= d >> line interface prompt. It uses g_main_loop and a g_io_channel. I've >> attached the code. >> >> First: >> It nearly works as expected. The callback is called each time I enter = a >> command, and it's parsed to the command handler. However, I want to >> expand this to system to use automatic string completion, (the system >> provided in glib), for all available commands. Now it only handles >> command as I press enter. I guess I need a extra callback for each >> keypress. This callback can check if I press and then call >> g_completion_complete(), but how do I attach such a signal to the main= >> loop? >> >> =20 >> > You need to get raw keyboard input from your terminal, in unix > you can use tcsetattr(). >=20 >> Example: >> myprompt> hello >> You typed: hello >> myprompt> =C6sop >> >> ** (gnubg.exe:3128): WARNING **: Something went wrong >> Invalid byte sequence in conversion input > You might want to change the encoding on the io > channel.. if you set it to NULL then it should work. Thank you! Adding this line: g_io_channel_set_encoding (channel, NULL, &error); makes it work. Thank you! Now let me try finding the right codepage as Tor suggests. Hmmm.... gcc -o mycli commandsystem.o -LC:/GTK/lib -lglib-2.0 -lintl -liconv -lkernel32 commandsystem.o(.text+0x3f):commandsystem.c: undefined reference to `GetConsoleCP' It doesn't link? (Yes, I do add -lkernel32) -=D8ystein --------------enigF4FE71D812066FD76946249B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmxGi6kDTFPhwyqYRAm34AJsEdcDQXNEIGbhSJrl8V1Y0BqA7qgCfXAcm 5Ita9vLa8F8qptA4rEeUAHw= =nwVe -----END PGP SIGNATURE----- --------------enigF4FE71D812066FD76946249B-- From itsme_515@hotmail.com Thu Jun 22 18:00:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6F863B06F4 for ; Thu, 22 Jun 2006 18:00:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29478-01 for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from hotmail.com (bay109-f14.bay109.hotmail.com [64.4.19.24]) by menubar.gnome.org (Postfix) with ESMTP id 9A4DC3B067C for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 15:00:53 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Thu, 22 Jun 2006 22:00:50 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com From: "Aar Em" To: gtk-list@gnome.org Subject: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 17:00:50 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 22 Jun 2006 22:00:53.0042 (UTC) FILETIME=[5474C120:01C69647] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.907 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: 1.907 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 22:00:55 -0000 Dear peers, After struggling with this for over a day, I wanted to ask you for your help regarding usage for g_list_insert_sorted. Can someone please help. Here are the operative parts of my program: I have the following struct: typedef struct _message_info { char *from; char *subject; char *face; long *ctime; } MESSAGE_INFO; I have the following comparison function: static gint compare_ctime (gconstpointer a, gconstpointer b) { const MESSAGE_INFO *p1=a,*p2=b; return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); } and the following calling part: Glist *headers; ..... MESSAGE_INFO *m; m = g_new(MESSAGE_INFO,1); m->from = safe_strdup (from); m->subject = safe_strdup (subject); m->face = safe_strdup (xface); m->ctime = ctime; headers = g_list_insert_sorted (headers, m,compare_ctime); .... I get segmentation fault with this, and was wondering how I could fix it. I guess my question is how to use g_list_insert_sorted. I have Googled quite a bit on this, but have not been able to devise the fix. Any help would be very appreciated. Any suggestions? Many thanks and best wishes, Aarem _________________________________________________________________ Don抰 just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ibr@radix50.net Thu Jun 22 19:51:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 934D53B0320 for ; Thu, 22 Jun 2006 19:51:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01890-02 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 340233B0288 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-11-z2.arcor-so.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 12CA117689F for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-11-z2.arcor-so.net (Postfix) with ESMTP id 025AB1C71CE for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id BD69FEAE5C for ; Fri, 23 Jun 2006 01:51:07 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNongI020870 for ; Fri, 23 Jun 2006 01:50:49 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNon3l020869 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:50:49 +0200 Date: Fri, 23 Jun 2006 01:50:49 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622235049.GC30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:51:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From itsme_515@hotmail.com Thu Jun 22 20:01:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 764923B0295 for ; Thu, 22 Jun 2006 20:01:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02104-10 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from hotmail.com (bay109-f40.bay109.hotmail.com [64.4.19.50]) by menubar.gnome.org (Postfix) with ESMTP id 30A843B0176 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 17:01:08 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Fri, 23 Jun 2006 00:01:07 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <20060622235049.GC30610@radix50.net> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 19:01:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 23 Jun 2006 00:01:08.0504 (UTC) FILETIME=[2134E180:01C69658] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.407 tagged_above=-999 required=2 tests=[AWL=-0.714, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.407 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 00:01:10 -0000 Hi, Many thanks! I think I should let you know that g_list_append works fine, except that it does not give me a sorted list by ctime (creation time). org. The debugger crashes just after entering the function at the point of the "return statement". Program received signal SIGSEGV, Segmentation fault. 0x0804db2b in compare_ctime (a=0x8ef5ae0, b=0x0) at count.c:19 /usr/local/aarem/Desktop/gbuffy-0.2.6/count.c:19:339:beg:0x804db2b Btw, I am sorting by the ctime, the creation time of the messages in the mh folder. Many thanks, aarem > >Hello Aarem, > >On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > > Glist *headers; > > ..... > > headers = g_list_insert_sorted (headers, m,compare_ctime); > >Do you initialize headers with NULL? If not, this could be the reason. >Otherwise, use gdb to see where it crashes. > > > > typedef struct _message_info > > { > > char *from; > > char *subject; > > char *face; > > long *ctime; > > } MESSAGE_INFO; >... > > static gint compare_ctime (gconstpointer a, gconstpointer b) > > { > > const MESSAGE_INFO *p1=a,*p2=b; > > > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : >-1); > > } > >I don't know what long *ctime is, but sorting by pointer value looks >suspicious. This shouldn't segfault, but I'm not sure it does what you >want. > > >With kind regards, >Baurzhan. >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dkasak@nusconsulting.com.au Thu Jun 22 22:27:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1AA23B050E for ; Thu, 22 Jun 2006 22:27:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08034-02 for ; Thu, 22 Jun 2006 22:27:05 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 8B07A3B0139 for ; Thu, 22 Jun 2006 22:27:04 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k5N2SbNx017452; Fri, 23 Jun 2006 12:28:38 +1000 Message-ID: <449B5170.6050609@nusconsulting.com.au> Date: Fri, 23 Jun 2006 12:26:56 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Alex Nedelcu , gtk-list@gnome.org Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> In-Reply-To: <449B07F9.9030500@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 462445 - f5bdb0dffa1b X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=462445&m=f5bdb0dffa1b X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.124, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.398 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 02:27:07 -0000 Alex Nedelcu wrote: > Why is GTK's performance so bad on Windows ? > Of all the gui tookits I use, it has the worse performance. > > I am interested in GTK on Windows because I want to make cross-platform > applications. > > Isn't there a new version on the horizon that will fix this ? > Or what can be done to tune the performance of GTK interfaces ? > > I am using GTK+ version 2.8, and Windows XP. > The platform I use is Mono with the GTK# bindings, > but I also made tests in Python with the PyGTK.bindings, and I've got > the same results. > I don't think it's so bad. I'm developing gtk2-perl applications and deploying on a mix of Linux and Windows ( 2000 ) clients, and the performance is actually quite impressive. It even runs inside vmware on my Linux desktop quite well, though obviously not at full speed. As per previous posts re: performance problems, have you tried changing themes? Also, what exactly is slow? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From tml@iki.fi Fri Jun 23 02:23:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C97C3B0567 for ; Fri, 23 Jun 2006 02:23:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18933-03 for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 542053B00ED for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CFBA5151223; Fri, 23 Jun 2006 09:23:38 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17563.35042.590000.373902@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:23:30 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449B119F.1000203@gnubg.org> References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> <449B119F.1000203@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.332 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.332 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:23:44 -0000 =D8ystein Johansen writes: > It doesn't link? (Yes, I do add -lkernel32) Did you #include ?=20 --tml From tml@iki.fi Fri Jun 23 02:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A0813B04C0 for ; Fri, 23 Jun 2006 02:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18926-08 for ; Fri, 23 Jun 2006 02:27:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 0A0133B041F for ; Fri, 23 Jun 2006 02:27:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CEEBD1511A1; Fri, 23 Jun 2006 09:27:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.35295.574000.601419@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:27:43 +0300 To: Alex Nedelcu Subject: Re: GTK performance on Windows In-Reply-To: <449B07F9.9030500@gmail.com> References: <449B07F9.9030500@gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.333 tagged_above=-999 required=2 tests=[AWL=0.131, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.333 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:27:56 -0000 Alex Nedelcu writes: > Why is GTK's performance so bad on Windows ? Because you haven't profiled it and contributed performance improvements? > Of all the gui tookits I use, it has the worse performance. Well, d'oh, you should ask for your money back then! --tml From hdnews@gawab.com Fri Jun 23 02:52:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 596D63B0218 for ; Fri, 23 Jun 2006 02:52:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20492-03 for ; Fri, 23 Jun 2006 02:52:31 -0400 (EDT) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by menubar.gnome.org (Postfix) with ESMTP id D54F03B00ED for ; Fri, 23 Jun 2006 02:52:30 -0400 (EDT) Received: from pegasus.strader.xs4all.nl (strader.xs4all.nl [80.127.15.33]) by smtp-vbr4.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5N6qT2W054997; Fri, 23 Jun 2006 08:52:29 +0200 (CEST) (envelope-from hdnews@gawab.com) Received: from [10.8.0.2] (vpnclient [10.8.0.2] (may be forged)) (authenticated bits=0) by pegasus.strader.xs4all.nl (8.12.10/8.12.10) with ESMTP id k5N6qMbh029399; Fri, 23 Jun 2006 08:52:29 +0200 Message-ID: <449B8FA2.3050501@gawab.com> Date: Fri, 23 Jun 2006 08:52:18 +0200 From: Hans Oesterholt-Dijkema User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tor Lillqvist Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.656 tagged_above=-999 required=2 tests=[AWL=-1.303, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, SPF_SOFTFAIL=1.384, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -0.656 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:52:32 -0000 He must have been adding sleeps in his code. Tor Lillqvist schreef: > Alex Nedelcu writes: > > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! > > --tml > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From nf2@scheinwelt.at Fri Jun 23 04:25:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28DDE3B078E for ; Fri, 23 Jun 2006 04:25:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27712-01 for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 689883B011E for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1FtgyI-0008KO-1Y; Fri, 23 Jun 2006 10:25:02 +0200 Message-ID: <449BA558.7040303@scheinwelt.at> Date: Fri, 23 Jun 2006 10:24:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Sean Middleditch , gtk-list@gnome.org Subject: Re: libxdg-vfs and Gtk-Filechooser References: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> In-Reply-To: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 3eb4023d85beba22221bf02b5aa627a5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, TW_BX=0.077, TW_IB=0.077, TW_XD=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:25:04 -0000 Hi, Sean Middleditch wrote: > Making the GTK file chooser use libxdg is pretty shady. Letting an > application select a file on an FTP share is pointless if the application > itself cannot actually access the file returned by the file chooser. At > best you'd have to have the chooser download/copy the file locally and > return a temporary file path to the app. But then changes to the file > would be lost. Saving the file would be difficult since when saving, the > chooser just returns the URI to the app, which again has no way to write > to any file that isn't local. > http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html libxdg-vfs supports get/put functions for reading and writing files - the application just has to link libxdg-vfs. The libxdg-vfs backend for GTKFileChooser wouldn't be the default, but just for applications which use libxdg-vfs . > The xdg-vfs stuff is interesting, but until there is a complete library > that can be easily integrated into applications, there's little point in > having the file chooser support the xdg stuff. And if you have GTK apps > willing to use a VFS library, you might as well get them to go straight to > the GObject-based gnome-vfs rather than xdg-vfs. > AFAIK gnome-vfs doesn't use GObject in the API. The advantage of libxdg-vfs is, that it uses the VFS system (password storage, protocol handlers, network shares) of the current desktop (KIO *or* Gnome-VFS). Therefore your GTK application will integrate nicely into KDE without directly linking to KIO (or the other way round - a Qt application on Gnome using Gnome-VFS). Also - you don't have a whole desktop-system in the dependencies of your application - Just a little library. (If you want to use Gnome-VFS directly, you also have to link to libGnomeUI - same problem for KIO and the KDE desktop libraries). cheers, Norbert From sven@gimp.org Fri Jun 23 04:54:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1DCD3B038E for ; Fri, 23 Jun 2006 04:54:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29667-05 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from buzzloop.caiaq.de (buzzloop.caiaq.de [212.112.241.133]) by menubar.gnome.org (Postfix) with ESMTP id 667C63B0231 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 9A4CF7F4028; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23383-03; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from [192.168.1.124] (i577B660E.versanet.de [87.123.102.14]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTP id 251EB7F4022; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Subject: Re: Main Loop, IO Channels and my CLI From: Sven Neumann To: =?ISO-8859-1?Q?=D8ystein?= Johansen In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=utf-8 Date: Fri, 23 Jun 2006 10:54:01 +0200 Message-Id: <1151052841.13729.8.camel@bender> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[AWL=0.853, BAYES_00=-2.599] X-Spam-Score: -1.746 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:54:24 -0000 Hi, On Thu, 2006-06-22 at 21:00 +0200, 貀stein Johansen wrote: > I've just made a small glib code that read commands from from a command > line interface prompt. It uses g_main_loop and a g_io_channel. I've > attached the code. > > First: > It nearly works as expected. The callback is called each time I enter a > command, and it's parsed to the command handler. However, I want to > expand this to system to use automatic string completion, (the system > provided in glib), for all available commands. That sounds like fun. When you have something ready and are willing to put it under the GPL, I think it would be interesting to add this code for the GIMP Script-Fu text console mode. The current code needs an overhaul anyway and it would be sweet to have command completion. Sven From linuxhippy@gmail.com Fri Jun 23 06:06:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FFCC3B0231 for ; Fri, 23 Jun 2006 06:06:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01577-01 for ; Fri, 23 Jun 2006 06:06:08 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.202]) by menubar.gnome.org (Postfix) with ESMTP id DB91E3B01D8 for ; Fri, 23 Jun 2006 06:06:07 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so316956hue for ; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.138.14 with SMTP id l14mr1205881hud; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Message-ID: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> Date: Fri, 23 Jun 2006 12:06:06 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.423 tagged_above=-999 required=2 tests=[AWL=-0.381, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.423 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:06:10 -0000 1.) Is this really nescessary? This guy has performance problems on windows asking for help (well, maybe a bit indirect) ... and this is what he gets. Go to QT's bugzilla and search for performance bugs .... 2.) How could he profile it. I asked two times for ways to find out which operations are done in software fallbacks (on X) on this list, no reply. For a non-profgessional profiling GTK and all the stuff it is surrounded by is not trivial and well without no help ... It seems there is not even interrest in speeding up GTK2. lg > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! From tml@iki.fi Fri Jun 23 06:22:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F0CC3B012A for ; Fri, 23 Jun 2006 06:22:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02739-05 for ; Fri, 23 Jun 2006 06:22:24 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 288523B045A for ; Fri, 23 Jun 2006 06:22:23 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id B4B61216477; Fri, 23 Jun 2006 13:22:19 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.49363.293000.582022@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 13:22:11 +0300 To: "Clemens Eisserer" Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.335 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.335 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:22:25 -0000 Clemens Eisserer writes: > 1.) Is this really nescessary? > This guy has performance problems on windows asking for help (well, > maybe a bit indirect) ... and this is what he gets. I am sorry for being a but rude, but I found his mail more of an accusation than a question. > Go to QT's bugzilla and search for performance bugs .... Why? Are the underlying assumptions and historical background of GTK+ and QT at all comparable? > For a non-profgessional profiling GTK and all the stuff it is > surrounded by is not trivial and well without no help ... If one would ask specific question like "I draw 100000 line segments with separate gdk_draw_line() calls, and it's too slow on Win32" one might get better help. --tml From linuxhippy@gmail.com Fri Jun 23 07:33:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 003FB3B03A7 for ; Fri, 23 Jun 2006 07:33:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06705-03 for ; Fri, 23 Jun 2006 07:33:14 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id C32AC3B0061 for ; Fri, 23 Jun 2006 07:33:13 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so327531hue for ; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.157.15 with SMTP id f15mr1224696hue; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Message-ID: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> Date: Fri, 23 Jun 2006 13:33:12 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.49363.293000.582022@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.313 tagged_above=-999 required=2 tests=[AWL=-0.348, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.313 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 11:33:15 -0000 First of all thanks a lot for doing that much work porting GTK to windows. I can't count how many apps I've used myself on windows-pcs which were able to run because of your work. > If one would ask specific question like "I draw 100000 line segments > with separate gdk_draw_line() calls, and it's too slow on Win32" one > might get better help. I installed gimp on some win-xp computers in the company I work for (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These are very much the issues I have on linux but more "visible". Its the UI, menus, window resizing, layout changes or repaint-events sent to the window because its content was invalidated. I can't say wether its really slow or just feels so, maybe the graphic card driver had an influence (nvidia gf4 mx4000) or some other circumstances were not optimal. I simply never did care that much simply because I don't use/like this planform. Its just hard to know whats going wrong, especially if someone is no gtk insider. lg Clemens From linuxhippy@gmail.com Sat Jun 24 06:27:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 803AF3B00EA for ; Sat, 24 Jun 2006 06:27:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06912-07 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 173283B0132 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so449148hue for ; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1550801hue; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Message-ID: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> Date: Sat, 24 Jun 2006 12:27:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.745 tagged_above=-999 required=2 tests=[AWL=0.193, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -1.745 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 10:27:37 -0000 Hello again, I did some further testing and found that even the gtk-demo part "paned widgets" show such low performance if the panes are as large as the whole screen. I further talked to an nvidia driver developer which also analysed the situation and got a profile very similar to mine. This is what he replied: [quote]So I guess I didn't reproduce your problem. In my case, the reason so much time is spent in software solid fills and copies is that GTK seems to create and destroy pixmaps at a fantastic rate. In fact, it creates and destroys a pixmap every time it blinks the cursor. Pixmaps start out in system memory and are only migrated to video memory after they've been used for a while. This means that creating pixmaps, doing two or three rendering operations, and then destroying them is a sure-fire way to make your rendering fall back to software. Future drivers will have an InitialPixmapPlacement nvidia-settings attribute so people can try tweaking this behavior. If I use that to force pixmaps to start in video RAM, then profiling shows that most of the time is spent waiting for the GPU.[/quote] Does even the default theme uses pixmaps for all and everything? Any ideas where to look into this? Thank you in advance, lg Clemens 2006/6/21, Valdis.Kletnieks@vt.edu : > On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > > > I did some oprofiling, however I don't have a vmlinz-file handy so its > > quite a bit useless: > > 5558 39.2930 no-vmlinux > > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. > > > 2116 14.9593 libfb.so > > 1319 9.3248 nvidia_drv.so > > 1031 7.2888 Xorg > > 603 4.2630 libqt-mt.so.3.3.5 > > 550 3.8883 libc-2.4.so > > 470 3.3227 libgobject-2.0.so.0.800.5 > > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) > > samples % image name app name symbol name > 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line > 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process > 5232 6.7536 libfb.so libfb.so (no symbols) > 4834 6.2398 Xorg Xorg (no symbols) > 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop > 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X > 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy > 2172 2.8037 vmlinux vmlinux get_page_from_freelist > 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock > 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock > 1359 1.7542 nvidia nvidia (no symbols) > 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel > 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup > > (or, done by shared library: > > 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 > 10538 13.6027 vmlinux > 5594 7.2209 libc-2.4.90.so > 5377 6.9408 libgobject-2.0.so.0.1102.1 > 5232 6.7536 libfb.so > 4953 6.3934 Xorg > 4784 6.1753 nvidia_drv.so > 3933 5.0768 libpthread-2.4.90.so > > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... > > You probably mentioned it before, but what GTK2 theme are you using? > > > From itsme_515@hotmail.com Sat Jun 24 22:59:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D2E4A3B0165 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14000-06 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from hotmail.com (bay109-f20.bay109.hotmail.com [64.4.19.30]) by menubar.gnome.org (Postfix) with ESMTP id DDB273B00C4 for ; Sat, 24 Jun 2006 22:59:13 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 24 Jun 2006 19:57:12 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Sun, 25 Jun 2006 02:57:07 GMT X-Originating-IP: [63.175.166.181] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <449B14BA.4030509@gnubg.org> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Sat, 24 Jun 2006 21:57:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Jun 2006 02:57:12.0485 (UTC) FILETIME=[0EA7F550:01C69803] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.178 tagged_above=-999 required=2 tests=[AWL=-2.085, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.178 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 02:59:15 -0000 Folks, so I figured it out: turns out that there is what I believe a bug (or a feature) in g_list_insert_sorted -- if the list is null, even then it goes off to sort. This should not happen. If the list is NULL, it should just add to the list. Many thanks and best wishes, Aarem _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From torriem@chem.byu.edu Sun Jun 25 01:12:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 757323B0079 for ; Sun, 25 Jun 2006 01:12:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17632-03 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by menubar.gnome.org (Postfix) with ESMTP id 5E5773B00A6 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (sccrmhc13) with ESMTP id <2006062505113001300mgu3se>; Sun, 25 Jun 2006 05:11:31 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5P5BTrC002542 for ; Sat, 24 Jun 2006 23:11:30 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5P5BOTq002537 for gtk-list@gnome.org; Sat, 24 Jun 2006 23:11:24 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: proggressbar.. From: Michael Torrie To: gtk-list@gnome.org In-Reply-To: References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 24 Jun 2006 23:11:24 -0600 Message-Id: <1151212284.32440.16.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.416 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.416 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 05:12:17 -0000 On Thu, 2006-06-22 at 11:08 +0530, Yogesh Arora wrote: > is that just due to tall claims he is making...or has it got something > to do with india I doubt it has to do with India. I have recently noticed a number of posts from people for whom English is not their native language to this list, posts containing questions that are extremely unclear. It could very well be the language barrier, but several of these posts appear to be asking us to do the work for someone, rather than wanting to read the docs, tutorials, and example code. It is those posts that appear to be demanding that we do their work for them that draw reactions such as this one. Michael > > From yeti@physics.muni.cz Sun Jun 25 03:23:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628F93B0374 for ; Sun, 25 Jun 2006 03:23:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21579-03 for ; Sun, 25 Jun 2006 03:23:22 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8AEA53B030F for ; Sun, 25 Jun 2006 03:23:21 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P7MWuA020910 for ; Sun, 25 Jun 2006 09:22:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id A7E5223D5E; Sun, 25 Jun 2006 09:22:32 +0200 (CEST) Date: Sun, 25 Jun 2006 09:22:33 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060625072233.GK2296@potato.chello.upc.cz> References: <449B14BA.4030509@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 07:23:23 -0000 On Sat, Jun 24, 2006 at 09:57:07PM -0500, Aar Em wrote: > Folks, so I figured it out: turns out that there is what I believe a bug (or > a feature) in g_list_insert_sorted -- if the list is null, even then it goes > off to sort. It does no such thing and never did: http://cvs.gnome.org/viewcvs/glib/glib/glist.c?rev=1.35&view=log > If the list is NULL, it should just add > to the list. And that's exactly what it does since ever. Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Sun Jun 25 05:16:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32E853B01D0 for ; Sun, 25 Jun 2006 05:16:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07093-07 for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: from smtp.poczta.interia.pl (unknown [80.48.65.7]) by menubar.gnome.org (Postfix) with ESMTP id A627E3B013D for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id CEE8237485A; Sun, 25 Jun 2006 11:15:17 +0200 (CEST) Received: from poczta.interia.pl (f30.poczta.interia.pl [10.217.2.30]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 544FC3747D7 for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 4773210C018; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 2006310C00F for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Date: 25 Jun 2006 11:15:12 +0200 From: hm Subject: GtkImage simple question, please help To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060625091512.2006310C00F@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.137 tagged_above=-999 required=2 tests=[AWL=-0.734, BAYES_20=-0.74, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.137 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 09:16:14 -0000 =0AHi !=0A=0A I`ve got a question. Let`s have this piece of code :=0A=0A= =0A...=0A=0A GtkWidget * image1;=0A GtkWidget * button;=0A ...=0A butto= n =3D gtk_button_new ();=0A image =3D gtk_image_new_from_file ( PATH );=0A= gtk_button_set_image ( GTK_BUTTON ( button), image1 );=0A =0Aquestions a= re :=0A=0A* if i`ll call gtk_image_clear (image) .. will it dispose memory = reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap= ? =0A=0A* if answer for previous question is no, it will not dispose the m= emory, then how it is possible to change image inside button ? From yeti@physics.muni.cz Sun Jun 25 06:03:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 047A73B00C9 for ; Sun, 25 Jun 2006 06:03:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08827-02 for ; Sun, 25 Jun 2006 06:03:06 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D10853B008F for ; Sun, 25 Jun 2006 06:03:05 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P9kCR0012281 for ; Sun, 25 Jun 2006 11:46:13 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 840F923D5E; Sun, 25 Jun 2006 11:46:12 +0200 (CEST) Date: Sun, 25 Jun 2006 11:46:14 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: GtkImage simple question, please help Message-ID: <20060625094614.GN2296@potato.chello.upc.cz> References: <20060625091512.2006310C00F@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060625091512.2006310C00F@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 10:03:08 -0000 On Sun, Jun 25, 2006 at 11:15:12AM +0200, hm wrote: > > * if i`ll call gtk_image_clear (image) .. will it dispose memory reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap ? gtk_image_clear() clears the image, therefore the image releases the reference the image holds to the displayed pixbuf (or other objects). But the image will still *exist*, it will be just empty. > * if answer for previous question is no, it will not dispose the memory, then how it is possible to change image inside button ? By setting another image. The button then releases the reference it holds to the old image -- and in the described scenario nothing else holds a reference to it, therefore it will be finalized. Please read the refcounting parts in GObject API docs and GObject tutorial -- and of GtkObject too as although the methods are superseded by GObject methods the intro is more comprehensible (IMO). Yeti -- Anonyms eat their boogers. From suryakiran.gullapalli@gmail.com Sun Jun 25 11:51:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E43F33B008C for ; Sun, 25 Jun 2006 11:51:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19785-07 for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 389173B008F for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id m22so1138082nzf for ; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.36.252.42 with SMTP id z42mr6653491nzh; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Message-ID: <3462bcdb0606250851v35bce67mf725816429f52603@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:09 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Theme engine tutorial. In-Reply-To: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4916_21889957.1151250669841" References: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.729, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:51:36 -0000 ------=_Part_4916_21889957.1151250669841 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_4916_21889957.1151250669841 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_4916_21889957.1151250669841-- From suryakiran.gullapalli@gmail.com Sun Jun 25 11:52:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24C333B008C for ; Sun, 25 Jun 2006 11:52:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20036-02 for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id AB5653B008F for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 40so1027430nzk for ; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.2.65 with SMTP id e65mr6484642nzi; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Message-ID: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:49 +0530 From: "Surya Kiran Gullapalli" To: gtkmm-list@gnome.org, gtk-list@gnome.org Subject: Font Path In-Reply-To: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4920_12764368.1151250709216" References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.439 tagged_above=-999 required=2 tests=[AWL=-0.468, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.439 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:52:27 -0000 ------=_Part_4920_12764368.1151250709216 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_4920_12764368.1151250709216 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_4920_12764368.1151250709216-- From pocmatos@gmail.com Sun Jun 25 12:17:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D32D3B00BB for ; Sun, 25 Jun 2006 12:17:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20843-01 for ; Sun, 25 Jun 2006 12:17:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 04EF43B008C for ; Sun, 25 Jun 2006 12:17:50 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so1536173nzh for ; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.224.8 with SMTP id w8mr1383704nzg; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.66.9 with HTTP; Sun, 25 Jun 2006 09:17:35 -0700 (PDT) Message-ID: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> Date: Sun, 25 Jun 2006 17:17:35 +0100 From: "Paulo J. Matos" To: gtk-list@gnome.org Subject: Using GTK+ with C++ MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.404 tagged_above=-999 required=2 tests=[AWL=-0.158, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.404 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: pocm@sat.inesc-id.pt List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 16:17:53 -0000 Hi all, I know about gtkmm but if I wish to use GTK+ directly, can I do it through C++? Is anyone doing this? Are there any 'tricks' I should know about beyond having to extern "C" the includes of gtk header files? Cheers, -- Paulo Jorge Matos - pocm at sat inesc-id pt Web: http://sat.inesc-id.pt/~pocm Computer and Software Engineering INESC-ID - SAT Group From jcupitt@gmail.com Sun Jun 25 14:02:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A39383B0018 for ; Sun, 25 Jun 2006 14:02:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24527-04 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id 632163B0079 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so538377uge for ; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1804088hue; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.129.2 with HTTP; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Message-ID: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> Date: Sun, 25 Jun 2006 19:02:21 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 18:02:23 -0000 On 6/24/06, Clemens Eisserer wrote: > [quote]So I guess I didn't reproduce your problem. In my case, the > reason so much time is spent in software solid fills and copies is > that GTK seems to create and destroy pixmaps at a fantastic rate. In > fact, it creates and destroys a pixmap every time it blinks the > cursor. Pixmaps start out in system memory and are only migrated to > video memory after they've been used for a while. This means that > creating pixmaps, doing two or three rendering operations, and then > destroying them is a sure-fire way to make your rendering fall back to > software. Future drivers will have an InitialPixmapPlacement > nvidia-settings attribute so people can try tweaking this behavior. If > I use that to force pixmaps to start in video RAM, then profiling > shows that most of the time is spent waiting for the GPU.[/quote] > > Does even the default theme uses pixmaps for all and everything? That's interesting. gtk2 uses pixmaps for double buffering ... for each expose rectangle, it will create an off-screen pixmap, ask all relevant widgets to paint to that, then at the end of expose, paint the off-screen pixmap on the display. I think it can potentially create and destroy quite a lot of pixmaps in a single expose operation. You could try making a test program and turning off double buffering for some widgets: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 John From oystein@gnubg.org Sun Jun 25 16:42:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33D083B0119 for ; Sun, 25 Jun 2006 16:42:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00506-08 for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id A0BBC3B000C for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00KQ1O5QACC0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00I0YO5PEJ33@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Date: Sun, 25 Jun 2006 22:41:43 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <17562.62051.621000.757828@gargle.gargle.HOWL> To: Tor Lillqvist Message-id: <449EF507.2010707@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig87FEA3859F86E18D841D879D X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, TW_LQ=0.077] X-Spam-Score: -2.525 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:42:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig87FEA3859F86E18D841D879D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tor Lillqvist wrote: > =D8ystein Johansen writes: > > However, I want to expand this to system to use automatic string > > completion, (the system provided in glib), for all available > > commands. Now it only handles command as I press enter. I guess I > > need a extra callback for each keypress. This callback can check if > > I press and then call g_completion_complete(), but how do I > > attach such a signal to the main loop? >=20 > Ah, I forgot to answer this part. I am afraid you might run into > difficulty in doing this on Win32. >=20 > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > it's actually quite similar to Unix, and you can do > character-at-a-time input, and your own echo processing. Maybe all you > need to do is something like >=20 > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); >=20 > and it will Just Work?=20 Wow! I just tried this, and it does indeed Just Work! Thanks. I must handle all the characters like backspace and return and so on, but it works... But, it doesn't work on linux.... How can I get character-at-a-time input from a linux console? -=D8ystein --------------enig87FEA3859F86E18D841D879D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEnvUK6kDTFPhwyqYRAtpuAJsEnbvESOizT1xs0ast/iphrHPtpgCdEMi2 fxlkPGgv32vw8JOoa44jBiE= =Hnzr -----END PGP SIGNATURE----- --------------enig87FEA3859F86E18D841D879D-- From linuxhippy@gmail.com Sun Jun 25 16:54:58 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A65A53B00E7 for ; Sun, 25 Jun 2006 16:54:58 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01177-05 for ; Sun, 25 Jun 2006 16:54:56 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 718C23B0079 for ; Sun, 25 Jun 2006 16:54:55 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so595935hue for ; Sun, 25 Jun 2006 13:54:38 -0700 (PDT) Received: by 10.78.167.12 with SMTP id p12mr1824154hue; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Message-ID: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> Date: Sun, 25 Jun 2006 22:54:37 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.427, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:54:58 -0000 Hello John, Thanks a lot for answering. I created a sample program which contains two buttons in a (horizontally) paned window. When I maximize the window and resize the panes I get very slow resizing, however when setting all involved widgets unbuffered resizing is fast (but painting is done with artifacts). Also the profile looks very different: With doublebuffering enabled: 3298 36.0398 libfb.so (no symbols) 1710 18.6865 nvidia_drv.so _nv000805X Widthout doublebuffering: 1974 19.1632 libcairo.so.2.2.3 (no symbols) 1535 14.9015 Xorg (no symbols) 1083 10.5135 libfb.so (no symbols) So there's still some software rendering involved but its _way_ better. I am currently hitting a deadline in a java project, so I'll busy the next 1-2 weeks, however I would really like to get my hands on the buffer manager, do you think theres a chance to get it in (if its well written and stylish correct). I like tuning code, although I've to admit my C/Unix knowledge is rusty, however then its a good training. lg Clemens > That's interesting. gtk2 uses pixmaps for double buffering ... for > each expose rectangle, it will create an off-screen pixmap, ask all > relevant widgets to paint to that, then at the end of expose, paint > the off-screen pixmap on the display. I think it can potentially > create and destroy quite a lot of pixmaps in a single expose > operation. > > You could try making a test program and turning off double buffering > for some widgets: > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > John > From yeti@physics.muni.cz Sun Jun 25 17:09:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2201E3B00C7 for ; Sun, 25 Jun 2006 17:09:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01871-06 for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 3E1553B000C for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5PL9Wtb021542 for ; Sun, 25 Jun 2006 23:09:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1AF7F23D5E; Sun, 25 Jun 2006 23:09:32 +0200 (CEST) Date: Sun, 25 Jun 2006 23:09:36 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Message-ID: <20060625210936.GP2296@potato.chello.upc.cz> References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <449EF507.2010707@gnubg.org> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:09:40 -0000 On Sun, Jun 25, 2006 at 10:41:43PM +0200, ?ystein Johansen wrote: > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? Wouldn't it be better to use GNU readline, at least on Linux? It would give users all the editing operations they are used to and honour their settings. I admit the integration of readline to GLib main loop can be tricky (I think about a second thread which whould just feed complete lines to a pipe managed with GIOChannel on the receiving end), but it can be still more elegant than reimplementation of line editting from scratch. Yeti -- Anonyms eat their boogers. From chris@cvine.freeserve.co.uk Sun Jun 25 17:43:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E5443B0104 for ; Sun, 25 Jun 2006 17:43:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03755-03 for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 843BA3B000C for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 92D711C00089; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 6AFFA1C00088; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) X-ME-UUID: 20060625214312438.6AFFA1C00088@mwinf3012.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PLhBtx004287; Sun, 25 Jun 2006 22:43:11 +0100 From: Chris Vine To: gtk-list@gnome.org, pocm@sat.inesc-id.pt Subject: Re: Using GTK+ with C++ Date: Sun, 25 Jun 2006 22:43:10 +0100 User-Agent: KMail/1.9.1 References: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> In-Reply-To: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606252243.10889.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.323 tagged_above=-999 required=2 tests=[AWL=-1.072, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.323 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:43:15 -0000 On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > Hi all, > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > through C++? Is anyone doing this? Are there any 'tricks' I should > know about beyond having to extern "C" the includes of gtk header > files? They are already declared extern "C" if compiled for a C++ program. There is nothing you need to know - just use them. Chris From chris@cvine.freeserve.co.uk Sun Jun 25 18:28:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D960A3B0122 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05775-02 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id EB0203B013D for ; Sun, 25 Jun 2006 18:28:45 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 9E2E71C00083; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 711621C00082; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) X-ME-UUID: 20060625222840463.711621C00082@mwinf3011.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PMSdtx004517; Sun, 25 Jun 2006 23:28:39 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Date: Sun, 25 Jun 2006 23:28:39 +0100 User-Agent: KMail/1.9.1 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> In-Reply-To: <449EF507.2010707@gnubg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200606252328.39192.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.232 tagged_above=-999 required=2 tests=[AWL=-0.045, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_LQ=0.077] X-Spam-Score: -2.232 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 22:28:47 -0000 On Sunday 25 June 2006 21:41, 貀stein Johansen wrote: > Tor Lillqvist wrote: [snip] > > Ah, I forgot to answer this part. I am afraid you might run into > > difficulty in doing this on Win32. > > > > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > > it's actually quite similar to Unix, and you can do > > character-at-a-time input, and your own echo processing. Maybe all you > > need to do is something like > > > > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > > mode &= ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); > > > > and it will Just Work? > > Wow! I just tried this, and it does indeed Just Work! Thanks. I must > handle all the characters like backspace and return and so on, but it > works... > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? If you are not using an event based toolkit such as GDK/GTK+ for handling the keyboard, then you will have to code on a platform specific basis. If you want to code for a Linux/Unix console and you are using the glib main loop then the easiest thing is to use curses with non-blocking input (see the cbreak() and nodelay() calls) and poll it in a timer event you have set up with g_timeout_add(). If you are feeling adventurous you can dispense with curses and use the termios/tcgetattr()/tcsetattr() interface directly and set up the console that way. If you have no other reason to use the glib main loop (and there are plenty of reasons why you might want to use it), you can make your own program loop with select() and an appropriate timeout which polls the keyboard; or if all you are interested in is keyboard events, you can put curses in single extraction (cbreak) mode but with blocking input (or the equivalent with termios) and use that as your event loop. Chris From torriem@chem.byu.edu Sun Jun 25 20:45:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F2DA53B016F for ; Sun, 25 Jun 2006 20:45:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12049-09 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [216.148.227.153]) by menubar.gnome.org (Postfix) with ESMTP id 957B23B0199 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (rwcrmhc13) with ESMTP id <20060626003351m1300g4ie2e>; Mon, 26 Jun 2006 00:33:51 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5Q0XjV3017707; Sun, 25 Jun 2006 18:33:45 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5Q0XiQj017703; Sun, 25 Jun 2006 18:33:44 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: Font Path From: Michael Torrie To: Surya Kiran Gullapalli In-Reply-To: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 25 Jun 2006 18:33:44 -0600 Message-Id: <1151282024.32440.29.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.377 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.377 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 00:45:16 -0000 On Sun, 2006-06-25 at 21:21 +0530, Surya Kiran Gullapalli wrote: > Hi, > I'm trying to understand the gtk code. I've a question regarding font > path. > What is the font path, gtk application is looking into when one open a > font selection dialog. > > This question arose, due to the fact that garnome ships with bitstream > vera fonts, and when you install it, it goes into the installation > directory ($PREFIX/share... etc) > But when opened a font selection dialog, it shows all the available > fonts on the machine. > > Also if i'm shipping a new application with a new font, and say, i've > to ship this font also. where should i put that font. Also please let > me know if i need to set any environment variables. Fonts are not GTK specific. On Unix (X11) fonts should be installed to $HOME/.fonts If you install fonts to another place on the system, you need to modify the config file in /etc/fonts/fonts.conf and set up the path. For more information, see the specifications at freedesktop.org (fontconfig). Michael > > > Surya > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yeajchao@yahoo.com.cn Sun Jun 25 22:36:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79C833B00D9 for ; Sun, 25 Jun 2006 22:36:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16386-06 for ; Sun, 25 Jun 2006 22:36:52 -0400 (EDT) Received: from web15101.mail.cnb.yahoo.com (web15101.mail.cnb.yahoo.com [202.165.103.70]) by menubar.gnome.org (Postfix) with SMTP id 5BEF03B00A9 for ; Sun, 25 Jun 2006 22:36:50 -0400 (EDT) Received: (qmail 93283 invoked by uid 60001); 26 Jun 2006 02:36:39 -0000 Message-ID: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Received: from [221.8.12.141] by web15101.mail.cnb.yahoo.com via HTTP; Mon, 26 Jun 2006 10:36:39 CST Date: Mon, 26 Jun 2006 10:36:39 +0800 (CST) From: yeajchao Subject: =?gb2312?q?=BB=D8=B8=B4=A3=BA=20Re:=20Using=20GTK+=20with=20C++?= To: gtk-list@gnome.org In-Reply-To: <200606252243.10889.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.53 tagged_above=-999 required=2 tests=[AWL=-1.533, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: 0.53 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 02:36:53 -0000 hello when i using gtk+ with c++,how can i compile my application? --- Chris Vine 写道: > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > Hi all, > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > through C++? Is anyone doing this? Are there any 'tricks' I should > > know about beyond having to extern "C" the includes of gtk header > > files? > > They are already declared extern "C" if compiled for a C++ program. There is > > nothing you need to know - just use them. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ___________________________________________________________ 雅虎免费邮箱-3.5G容量,20M附件 http://cn.mail.yahoo.com/ From laowenbo@gmail.com Sun Jun 25 23:23:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBB8B3B0185 for ; Sun, 25 Jun 2006 23:23:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18438-05 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id 898803B0199 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so1299223pyf for ; Sun, 25 Jun 2006 20:23:32 -0700 (PDT) Received: by 10.35.129.19 with SMTP id g19mr5477137pyn; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Received: by 10.35.103.18 with HTTP; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2006 11:23:31 +0800 From: "lao wb" To: "=?ISO-8859-2?Q?David_Ne=E8as_(Yeti)?=" Subject: Re: Drawing images ( with transparency ) one on another In-Reply-To: <20060619104132.GW2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_47883_15491290.1151292211820" References: <20060619093509.DC2132E5C98@poczta.interia.pl> <20060619104132.GW2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.025 tagged_above=-999 required=2 tests=[AWL=0.073, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.025 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 03:23:34 -0000 ------=_Part_47883_15491290.1151292211820 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline SGksCiAgICBJIG5lZWQgZG8gdGhpcyB0b28gYnV0IGhhdmUgbm90IHN1Y2NlZWRlZCB5ZXQuIEkg dHJ5IHRvIHVzZQpnZGtfZHJhd19waXhidWYgYW5kIGdka19waXhidWZfY29tcG9zaXRlIGluIGV4 cG9zZSBldmVudCBoYW5kbGVyLCBidXQgaXQKc3RpbGwgZG9lc24ndCB3b3JrLiBJIHJlYWxseSBu ZWVkIGhlbHAgdG8gbWFrZSBteSB0ZXN0IGNvZGUgd29yay4KCkxhb3diCgojaW5jbHVkZSA8Z3Rr L2d0ay5oPgojZGVmaW5lIFNURF9XSURUSCAgICA2ODAKI2RlZmluZSBTVERfSEVJR0hUICA0ODAK CnN0YXRpYyBHZGtQaXhidWYgKiBzX2Jhc2VQaXg7CnN0YXRpYyBHZGtQaXhidWYgKiBzX2hvbWVN ZW51UGl4OwoKZ2Jvb2xlYW4gb25fZXhwb3NlKEd0a1dpZGdldCAqIHdpZGdldCwKICAgICAgICAg ICAgICAgICAgIEdka0V2ZW50RXhwb3NlICogcHMsCiAgICAgICAgICAgICAgICAgICBncG9pbnRl ciBkYXRhKQp7CiAgICBnZGtfcGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LAogICAgICAg ICAgICAgICAgICAgICAgICAgc19iYXNlUGl4LCAwLCAwLCBTVERfV0lEVEgsIFNURF9IRUlHSFQs IDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICBHREtfSU5URVJQX05FQVJFU1Qs IDApOwoKICAgIGdka19kcmF3X3BpeGJ1Zih3aWRnZXQtPndpbmRvdywgd2lkZ2V0LT5zdHlsZS0+ YmdfZ2NbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgc19ob21lTWVudVBp eCwgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAgICBTVERfV0lEVEgsCiAgICAgICAgICAg ICAgICAgICAgU1REX0hFSUdIVCwKICAgICAgICAgICAgICAgICAgICBHREtfUkdCX0RJVEhFUl9O T1JNQUwsCiAgICAgICAgICAgICAgICAgICAgMCwgMCk7CiAgICByZXR1cm4gRkFMU0U7Cn0KCgpp bnQgbWFpbihpbnQgYXJnYywgY2hhciAqIGFyZ3ZbXSkKewogICAgR3RrV2lkZ2V0ICogbWFpbldu ZCAgICAgICAgPSBOVUxMOwogICAgR2RrRHJhd2FibGUgKiAgICBwaXhNYXAgICAgPSBOVUxMOwog ICAgR3RrV2lkZ2V0ICogaW1nICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYm94 ICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYnV0dG9uICAgICAgICA9IE5VTEw7 CiAgICBHdGtBZGp1c3RtZW50ICogdmFkaiAgICA9IE5VTEw7CiAgICBHdGtBZGp1c3RtZW50ICog aGFkaiAgICA9IE5VTEw7CiAgICBHZGtCaXRtYXAgICAgICAqIG1zayAgICAgICAgPSBOVUxMOwog ICAgR2RrQml0bWFwICogaG9tZU1lbnUgICAgPSBOVUxMOwoKICAgIGd0a19pbml0KCZhcmdjLCAm YXJndik7CgogICAgbWFpblduZCA9IGd0a193aW5kb3dfbmV3KEdUS19XSU5ET1dfVE9QTEVWRUwp OwoKICAgIGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19XSU5ET1cobWFpblduZCksICJ0ZXN0IGRy YXcuLi5cbiIpOwoKICAgIGd0a19zaWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAi ZGVzdHJveSIsIGd0a19tYWluX3F1aXQsIE5VTEwpOwoKICAgIGltZyA9IGd0a19pbWFnZV9uZXco KTsKICAgIGd0a19jb250YWluZXJfYWRkKEdUS19DT05UQUlORVIobWFpblduZCksIGltZyk7CiAg ICBndGtfc2lnbmFsX2Nvbm5lY3QoR1RLX09CSkVDVChpbWcpLAogICAgICAgICAgICAgICAgICAg ICAgICJleHBvc2UtZXZlbnQiLAogICAgICAgICAgICAgICAgICAgICAgIEdUS19TSUdOQUxfRlVO Qyhvbl9leHBvc2UpLAogICAgICAgICAgICAgICAgICAgICAgIE5VTEwpOwoKICAgIGd0a19jb250 YWluZXJfc2V0X2JvcmRlcl93aWR0aChHVEtfQ09OVEFJTkVSKG1haW5XbmQpLCA1KTsKCiAgICBn dGtfd2lkZ2V0X3Nob3dfYWxsKG1haW5XbmQpOwoKICAgIGhvbWVNZW51ID0gZ2RrX3BpeG1hcF9j cmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93LAogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAmbXNrLAoKJm1haW5XbmQtPnN0eWxlLT5iZ1tHVEtfU1RBVEVfTk9S TUFMXSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImY6L2hvbWVt ZW51LmJtcCIpOyAvKiBhbHBoYQpjaGFubmVsIGJpdG1hcCovCiAgICBzX2hvbWVNZW51UGl4ID0K ICAgIGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgaG9tZU1lbnUsCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGdka19jb2xvcm1hcF9nZXRfc3lzdGVtKCksCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IFNURF9XSURUSCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU1REX0hFSUdIVCk7 CgogICAgcGl4TWFwID0gZ2RrX3BpeG1hcF9jcmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93 LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJm1zaywKCiZtYWluV25k LT5zdHlsZS0+YmdbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAiZjovU3Vuc2V0LmJtcCIpOyAvKiBubyBhbHBoYQpjaGFubmVsIGJpdG1h cCovCiAgICBzX2Jhc2VQaXggPQogICAgZ2RrX3BpeGJ1Zl9nZXRfZnJvbV9kcmF3YWJsZShzX2Jh c2VQaXgsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpeE1hcCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgZ2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgU1REX1dJRFRILAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBTVERfSEVJR0hUKTsKCiAgICBndGtfbWFpbigpOwoKICAgIHJldHVybiAwOwp9CgoyMDA2LzYv MTksIERhdmlkIE5l6GFzIChZZXRpKSA8eWV0aUBwaHlzaWNzLm11bmkuY3o+Ogo+Cj4gT24gTW9u LCBKdW4gMTksIDIwMDYgYXQgMTE6MzU6MDlBTSArMDIwMCwgaG0gd3JvdGU6Cj4gPgo+ID4gICBJ YHZlIGdvdCBhIHByb2JsZW0uIElgdmUgZ290IHR3byBzZXBhcmF0ZSBpbWFnZXMuIE9uZSBpcyBi YWNrZ3JvdW5kCj4gZm9yICB0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRy YW5zcGFyZW50LiBUaGVyZSBpcyBhbHNvIHRhYmxlLgo+IFF1ZXN0aW9uIGlzIDogaG93IHRvIGRy YXcgaW4gb25lIG9mIHRoZSB0YWJsZWBzIGNlbGxzIHRoZSBiYWNrZ3Jhb3VuZCwgYW5kCj4gb24g dGhpcyBiYWNrZ3JvdW5kICggYXMgYSBzZWNvbmQgbGF5ZXIgKSBzZWNvbmQgaW1hZ2UgKHRyYW5z cGFyZW50KSA/ICBJCj4ga25vdyAoIG9mIGNvdXJzZSApIGhvdyB0byBjcmVhdGUgaW1hZ2VzLCB0 YWJsZXMuCj4KPiBFaXRoZXIgdXNlIGdka19kcmF3X3BpeGJ1ZigpIGlmIHRoZSBjb3JyZWN0IG9y ZGVyIChmaXJzdAo+IGJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudAo+IGhhbmRsZXIsIG9yIHVzZSBnZGtfcGl4YnVmX2NvbXBvc2l0ZSgpIGFuZCBk cmF3IHRoZSBmaW5hbAo+IGltYWdlLgo+Cj4gWWV0aQo+Cj4KPiAtLQo+IEFub255bXMgZWF0IHRo ZWlyIGJvb2dlcnMuCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18KPiBndGstbGlzdCBtYWlsaW5nIGxpc3QKPiBndGstbGlzdEBnbm9tZS5vcmcKPiBodHRw Oi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdAo+Cg== ------=_Part_47883_15491290.1151292211820 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: base64 Content-Disposition: inline SGksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgSSBuZWVkIGRvIHRoaXMgdG9vIGJ1dCBoYXZlIG5v dCBzdWNjZWVkZWQgeWV0LiBJIHRyeSB0byB1c2UgZ2RrX2RyYXdfcGl4YnVmIGFuZCBnZGtfcGl4 YnVmX2NvbXBvc2l0ZSBpbiBleHBvc2UgZXZlbnQgaGFuZGxlciwgYnV0IGl0IHN0aWxsIGRvZXNu J3Qgd29yay4gSSByZWFsbHkgbmVlZCBoZWxwIHRvIG1ha2UgbXkgdGVzdCBjb2RlIHdvcmsuPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Ckxhb3diPGJyPjxicj4jaW5jbHVkZSAmbHQ7Z3RrL2d0 ay5oJmd0Ozxicj4jZGVmaW5lIFNURF9XSURUSCZuYnNwOyZuYnNwOyZuYnNwOyA2ODA8YnI+I2Rl ZmluZSBTVERfSEVJR0hUJm5ic3A7IDQ4MDxicj48YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfYmFz ZVBpeDs8YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfaG9tZU1lbnVQaXg7PGJyPjxicj5nYm9vbGVh biBvbl9leHBvc2UoR3RrV2lkZ2V0ICogd2lkZ2V0LCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBHZGtFdmVudEV4cG9zZSAqIHBzLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBncG9pbnRlciBkYXRhKTxicj57PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBnZGtf cGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtzX2Jhc2VQaXgsIDAsIDAs IFNURF9XSURUSCwgU1REX0hFSUdIVCwgMCwgMCwgMCwgMCw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7R0RLX0lOVEVSUF9O RUFSRVNULCAwKTs8YnI+Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ2RrX2RyYXdfcGl4YnVmKHdp ZGdldC0mZ3Q7d2luZG93LCB3aWRnZXQtJmd0O3N0eWxlLSZndDtiZ19nY1tHVEtfU1RBVEVfTk9S TUFMXSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyBzX2hvbWVNZW51 UGl4LCAwLCAwLCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyBTVERfV0lEVEgsIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7IFNU RF9IRUlHSFQsPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgR0RLX1JH Ql9ESVRIRVJfTk9STUFMLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAwLCAwKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJldHVybiBGQUxTRTs8YnI+fTxicj48YnI+ PGJyPmludCBtYWluKGludCBhcmdjLCBjaGFyICogYXJndltdKTxicj57PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyBHdGtXaWRnZXQgKiBtYWluV25kJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtEcmF3YWJsZSAqJm5ic3A7 Jm5ic3A7Jm5ic3A7IHBpeE1hcCZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZu YnNwOyZuYnNwOyBHdGtXaWRnZXQgKiBpbWcmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7 Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsg R3RrV2lkZ2V0ICogYm94Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgPSBOVUxMOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgR3RrV2lkZ2V0ICog YnV0dG9uJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZu YnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogdmFkaiZuYnNwOyZuYnNwOyZuYnNwOyA9 IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogaGFkaiZuYnNwOyZu YnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7ICogbXNrJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAgKiBob21lTWVudSZu YnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19p bml0KCZhbXA7YXJnYywgJmFtcDthcmd2KTs8YnI+PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBtYWlu V25kID0gZ3RrX3dpbmRvd19uZXcoR1RLX1dJTkRPV19UT1BMRVZFTCk7PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19X SU5ET1cobWFpblduZCksICZxdW90O3Rlc3QgZHJhdy4uLlxuJnF1b3Q7KTsmbmJzcDsmbmJzcDsm bmJzcDsgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19z aWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAmcXVvdDtkZXN0cm95JnF1b3Q7LCBn dGtfbWFpbl9xdWl0LCBOVUxMKTsKPGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgaW1nID0gZ3Rr X2ltYWdlX25ldygpOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2NvbnRhaW5lcl9hZGQoR1RL X0NPTlRBSU5FUihtYWluV25kKSwgaW1nKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19zaWdu YWxfY29ubmVjdChHVEtfT0JKRUNUKGltZyksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyAmcXVvdDtleHBvc2UtZXZlbnQmcXVvdDssPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7IEdUS19TSUdO QUxfRlVOQyhvbl9leHBvc2UpLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsgTlVMTCk7PGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2Nv bnRhaW5lcl9zZXRfYm9yZGVyX3dpZHRoKEdUS19DT05UQUlORVIobWFpblduZCksIDUpOzxicj48 YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aWRnZXRfc2hvd19hbGwobWFpblduZCk7PGJyPjxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgaG9tZU1lbnUgPSBnZGtfcGl4bWFwX2NyZWF0ZV9mcm9tX3hw bShtYWluV25kLSZndDt3aW5kb3csPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsgJmFtcDtt c2ssCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZhbXA7bWFpblduZC0mZ3Q7c3R5bGUt Jmd0O2JnW0dUS19TVEFURV9OT1JNQUxdLDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZx dW90O2Y6L2hvbWVtZW51LmJtcCZxdW90Oyk7IC8qIGFscGhhIGNoYW5uZWwgYml0bWFwKi88YnI+ Jm5ic3A7Jm5ic3A7Jm5ic3A7IHNfaG9tZU1lbnVQaXggPTxicj4KJm5ic3A7Jm5ic3A7Jm5ic3A7 IGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCw8YnI+Jm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtob21lTWVudSwgPGJyPiZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0 ZW0oKSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDswLCAw LCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtT VERfV0lEVEgsCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw O1NURF9IRUlHSFQpOzxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHBpeE1hcCA9IGdka19waXht YXBfY3JlYXRlX2Zyb21feHBtKG1haW5XbmQtJmd0O3dpbmRvdywgPGJyPiZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmYW1wO21zaywgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmYW1wO21haW5XbmQtJmd0O3N0 eWxlLSZndDtiZ1tHVEtfU1RBVEVfTk9STUFMXSwKPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmcXVv dDtmOi9TdW5zZXQuYm1wJnF1b3Q7KTsgLyogbm8gYWxwaGEgY2hhbm5lbCBiaXRtYXAqLzxicj4m bmJzcDsmbmJzcDsmbmJzcDsgc19iYXNlUGl4ID08YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGdka19w aXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19iYXNlUGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO3BpeE1hcCwgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7MCwgMCwgMCwgMCwgPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7U1REX1dJRFRILDxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO1NURF9IRUlHSFQp Ozxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19tYWluKCk7PGJyPjxicj4mbmJzcDsmbmJz cDsmbmJzcDsgcmV0dXJuIDA7PGJyPn08YnI+PGJyPjxkaXY+PHNwYW4gY2xhc3M9ImdtYWlsX3F1 b3RlIj4KMjAwNi82LzE5LCBEYXZpZCBOZehhcyAoWWV0aSkgJmx0OzxhIGhyZWY9Im1haWx0bzp5 ZXRpQHBoeXNpY3MubXVuaS5jeiI+eWV0aUBwaHlzaWNzLm11bmkuY3o8L2E+Jmd0Ozo8L3NwYW4+ PGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0iYm9yZGVyLWxlZnQ6IDFweCBz b2xpZCByZ2IoMjA0LCAyMDQsIDIwNCk7IG1hcmdpbjogMHB0IDBwdCAwcHQgMC44ZXg7IHBhZGRp bmctbGVmdDogMWV4OyI+Ck9uIE1vbiwgSnVuIDE5LCAyMDA2IGF0IDExOjM1OjA5QU0gKzAyMDAs IGhtIHdyb3RlOjxicj4mZ3Q7PGJyPiZndDsmbmJzcDsmbmJzcDsgSWB2ZSBnb3QgYSBwcm9ibGVt LiBJYHZlIGdvdCB0d28gc2VwYXJhdGUgaW1hZ2VzLiBPbmUgaXMgYmFja2dyb3VuZCBmb3ImbmJz cDsmbmJzcDt0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRyYW5zcGFyZW50 LiBUaGVyZSBpcyBhbHNvIHRhYmxlLiBRdWVzdGlvbiBpcyA6IGhvdyB0byBkcmF3IGluIG9uZSBv ZiB0aGUgdGFibGVgcyBjZWxscyB0aGUgYmFja2dyYW91bmQsIGFuZCBvbiB0aGlzIGJhY2tncm91 bmQgKCBhcyBhIHNlY29uZCBsYXllciApIHNlY29uZCBpbWFnZSAodHJhbnNwYXJlbnQpID8mbmJz cDsmbmJzcDtJIGtub3cgKCBvZiBjb3Vyc2UgKSBob3cgdG8gY3JlYXRlIGltYWdlcywgdGFibGVz Lgo8YnI+PGJyPkVpdGhlciB1c2UgZ2RrX2RyYXdfcGl4YnVmKCkgaWYgdGhlIGNvcnJlY3Qgb3Jk ZXIgKGZpcnN0PGJyPmJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudDxicj5oYW5kbGVyLCBvciB1c2UgZ2RrX3BpeGJ1Zl9jb21wb3NpdGUoKSBhbmQg ZHJhdyB0aGUgZmluYWw8YnI+aW1hZ2UuPGJyPjxicj5ZZXRpPGJyPjxicj48YnI+LS08YnI+CkFu b255bXMgZWF0IHRoZWlyIGJvb2dlcnMuPGJyPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fPGJyPmd0ay1saXN0IG1haWxpbmcgbGlzdDxicj48YSBocmVmPSJt YWlsdG86Z3RrLWxpc3RAZ25vbWUub3JnIj5ndGstbGlzdEBnbm9tZS5vcmc8L2E+PGJyPjxhIGhy ZWY9Imh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2d0ay1saXN0Ij4KaHR0 cDovL21haWwuZ25vbWUub3JnL21haWxtYW4vbGlzdGluZm8vZ3RrLWxpc3Q8L2E+PGJyPjwvYmxv Y2txdW90ZT48L2Rpdj48YnI+Cg== ------=_Part_47883_15491290.1151292211820-- From cgallucci@inwind.it Mon Jun 26 07:58:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EFE933B0280 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15191-10 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id CEFBB3B0199 for ; Mon, 26 Jun 2006 07:58:24 -0400 (EDT) Received: from localhost (172.16.1.206) by smtp6.libero.it (7.0.027-DD01) id 44992E6400679860 for gtk-list@gnome.org; Mon, 26 Jun 2006 13:58:23 +0200 Received: from smtp1.libero.it ([172.16.1.224]) by localhost (asav20.libero.it [193.70.193.7]) (amavisd-new, port 10024) with ESMTP id 21475-01 for ; Mon, 26 Jun 2006 13:58:23 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp1.libero.it (Postfix) with ESMTP id A5BADA8C53 for ; Mon, 26 Jun 2006 13:58:22 +0200 (MEST) From: "carmelo gallucci" To: Subject: CYGWIN and GTK Date: Mon, 26 Jun 2006 14:02:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.614 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -0.614 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 11:58:26 -0000 I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My application also use SDL and i want to enable SDL hacking to encapsulate it on a gtk window. My gtk application run pefectly. I can show widget and use it. My problem is that i cannot get this code to work (it work perfectly under linux): sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget ::gobj()->window)); I cannot get WINDOWID. When i use the macro GDK_WINDOW_XWINDOW i get the following error: (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): Gdk-WARNING **: /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk drawable-x11.c:971 drawable is not a pixmap or window What's the problem? Anyone know where the problem is? Thanks. Carmelo Gallucci From tml@iki.fi Mon Jun 26 10:19:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E8AB73B03F0 for ; Mon, 26 Jun 2006 10:19:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23891-06 for ; Mon, 26 Jun 2006 10:19:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 4B9203B0369 for ; Mon, 26 Jun 2006 10:19:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 411DF151341; Mon, 26 Jun 2006 17:19:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> Date: Mon, 26 Jun 2006 17:18:57 +0300 To: "carmelo gallucci" Subject: Re: CYGWIN and GTK In-Reply-To: References: X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.337 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.337 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:19:57 -0000 carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From marko.ivancic@ultra.si Mon Jun 26 10:48:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F1643B021C for ; Mon, 26 Jun 2006 10:47:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25463-10 for ; Mon, 26 Jun 2006 10:47:56 -0400 (EDT) Received: from deliver-2.mx.triera.net (deliver-2.mx.triera.net [213.161.0.32]) by menubar.gnome.org (Postfix) with ESMTP id D503D3B0185 for ; Mon, 26 Jun 2006 10:47:55 -0400 (EDT) Received: from localhost (in-3.mx.triera.net [213.161.0.27]) by deliver-2.mx.triera.net (Postfix) with ESMTP id 384F2A7 for ; Mon, 26 Jun 2006 16:47:46 +0200 (CEST) Received: from smtp.triera.net (smtp.triera.net [213.161.0.30]) by in-3.mx.triera.net (Postfix) with SMTP id 96AFF1BC02F for ; Mon, 26 Jun 2006 16:47:49 +0200 (CEST) Received: from [172.18.1.20] (unknown [213.161.20.162]) by smtp.triera.net (Postfix) with ESMTP id 439601A18AA for ; Mon, 26 Jun 2006 16:47:50 +0200 (CEST) Message-ID: <449FF39D.6080201@ultra.si> Date: Mon, 26 Jun 2006 16:47:57 +0200 From: Marko Ivancic User-Agent: Thunderbird 1.5.0.4 (X11/20060619) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: save copy of gtktextbuffer Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Triera AV Service X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.108 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, TW_GT=0.077] X-Spam-Score: -0.108 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:48:00 -0000 Hi. Is there any way to save a GtkTextBuffer (I mean the context of this buffer including pixbufs and other embedet widgets) into another GtkTextBuffer instance ?? Tnx, By Marko I. From linuxhippy@gmail.com Mon Jun 26 10:53:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 296143B0135 for ; Mon, 26 Jun 2006 10:53:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25937-02 for ; Mon, 26 Jun 2006 10:53:31 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id EC5DF3B0185 for ; Mon, 26 Jun 2006 10:53:30 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so731232hue for ; Mon, 26 Jun 2006 07:53:30 -0700 (PDT) Received: by 10.78.117.10 with SMTP id p10mr2151522huc; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Message-ID: <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> Date: Mon, 26 Jun 2006 16:53:29 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.151 tagged_above=-999 required=2 tests=[AWL=-0.386, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.151 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:53:32 -0000 I played a bit and found something which could be considered as "slow": Open the configuration dialog of gimp and move another window on top of it. This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you can still see a ~4mm repaint lag. I wonder wether this could also be caused because of inefficient double buffering ... time will show. lg Clemens 2006/6/23, Clemens Eisserer : > First of all thanks a lot for doing that much work porting GTK to windows. > I can't count how many apps I've used myself on windows-pcs which were > able to run because of your work. > > > If one would ask specific question like "I draw 100000 line segments > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > might get better help. > > I installed gimp on some win-xp computers in the company I work for > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > are very much the issues I have on linux but more "visible". Its the > UI, menus, window resizing, layout changes or repaint-events sent to > the window because its content was invalidated. > I can't say wether its really slow or just feels so, maybe the graphic > card driver had an influence (nvidia gf4 mx4000) or some other > circumstances were not optimal. > I simply never did care that much simply because I don't use/like this planform. > > Its just hard to know whats going wrong, especially if someone is no > gtk insider. > > lg Clemens > From torriem@chem.byu.edu Mon Jun 26 11:34:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 728723B03BC for ; Mon, 26 Jun 2006 11:34:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28776-08 for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 75B363B046C for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5QFYoKJ024264; Mon, 26 Jun 2006 09:34:50 -0600 Subject: Re: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D?= =?UTF-8?Q?=EF=BC=9A?= Re: Using GTK+ with C++ From: Michael L Torrie To: yeajchao In-Reply-To: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> References: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Content-Type: text/plain; charset=UTF-8 Date: Mon, 26 Jun 2006 09:34:49 -0600 Message-Id: <1151336089.25316.0.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Mon, 26 Jun 2006 09:34:50 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.615 tagged_above=-999 required=2 tests=[AWL=-0.893, BAYES_00=-2.599, SUBJECT_ENCODED_TWICE=1.723, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.615 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:34:52 -0000 On Mon, 2006-06-26 at 10:36 +0800, yeajchao wrote: > hello > when i using gtk+ with c++,how can i compile my application? The same way you do it with C, except you have to use g++ instead of gcc. But the command line arguments for doing the build and using pkg- config to get the cflags and ldflags is the same. Michael > > --- Chris Vine 鍐欓亾: > > > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > > Hi all, > > > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > > through C++? Is anyone doing this? Are there any 'tricks' I should > > > know about beyond having to extern "C" the includes of gtk header > > > files? > > > > They are already declared extern "C" if compiled for a C++ program. There is > > > > nothing you need to know - just use them. > > > > Chris > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > ___________________________________________________________ > 闆呰檸鍏嶈垂閭-3.5G瀹归噺锛20M闄勪欢 > http://cn.mail.yahoo.com/ > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Mon Jun 26 11:41:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDD083B017D for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29419-03 for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 7AD633B0387 for ; Mon, 26 Jun 2006 11:41:10 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so888205uge for ; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.165.16 with SMTP id n16mr2166312hue; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.124.2 with HTTP; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Message-ID: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> Date: Mon, 26 Jun 2006 16:41:09 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:41:12 -0000 On 6/25/06, Clemens Eisserer wrote: > When I maximize the window and resize the panes I get very slow > resizing, however when setting all involved widgets unbuffered > resizing is fast (but painting is done with artifacts). I think the artifacts are because, with double-buffering turned off, expose events do not get an automatic clear-to-background. There's a note about this in the entry for gtk_widget_set_double_buffered(): http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 I'm not a gtk-internals expert and I can't really see a good solution to this. The possibilities I can see are: 1) Provide an option to disable double buffering for all widgets You could hack into gdk_window_begin_paint_region() and add a new code path: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 something like if (global_no_double_buffer) clear expose area to background might be enough. Repainting would be fast but flickery and incredibly ugly. People with older machines and nvidia hardware acceleration would see an FPS improvement, but their eyes would be watering. 2) Use nvidia's pixmap placement hint I think this would require a new driver from nvidia and changes to the X server to make the option accessible. Not going to happen any time soon. 3) Persuade nvidia to change their pixmap caching policy It seems to me that their policy is broken. If an app creates a pixmap, you'd expect it to be used soon. Making new pixmaps default to slow memory is rather odd. But I guess they've done a lot of profiling (of non-GTK apps, heh) and like it the way it is. 4) Have a single expose pixmap You could allocate a single large expose pixmap (maybe as big as the enclosing window?) and reuse that, with clipping, rather than creating and destroying a new pixmap each time. gdk_window_begin_paint_region() actually maintains a stack of pending pixmaps, though I've no idea how often the stack feature is used. Perhaps you could get away with having a single permanent expose pixmap, and dynamically create and destroy sub-pixmaps if the stack starts working. If the stack is used infrequently maybe this would work OK. This would chew up graphics card memory :-( and main memory for software drivers :-( and small-footprint people would hate it. My machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if each screen is 50% covered in gtk2 apps, this change will make my X server need an extra 50MB of RAM. Ouch! Maybe there could be a timeout to free the backing pixmap if it's not used for a couple of seconds. John From linuxhippy@gmail.com Mon Jun 26 14:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 889943B02E1 for ; Mon, 26 Jun 2006 14:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06142-05 for ; Mon, 26 Jun 2006 14:14:16 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by menubar.gnome.org (Postfix) with ESMTP id 036D73B03CC for ; Mon, 26 Jun 2006 14:14:15 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so963030uge for ; Mon, 26 Jun 2006 11:14:15 -0700 (PDT) Received: by 10.78.140.17 with SMTP id n17mr2247538hud; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Message-ID: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Date: Mon, 26 Jun 2006 20:14:14 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.349 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.349 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 18:14:17 -0000 Hello John, Thanks a lot for beeing that patient and constructive, its really motivating! I know I am not the dream-guy to start working on this but hey what can GTK loose ;) > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a Yea I read the note yesterday which made it clear for me too. > 1.) Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. Yes I saw this large amount of flickering, I think this would be more or less a dirty hack when looking at the results. Its really ugly ;) I'll do some tests to see which influence composition managers have, they do their own sort of double buffering, maybe we could dave all these efforts under these circumstances at all? > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. All these concepts act on the assumption that what GTK currently does is more or less a good thing. However best-case for GTKs buffering scenario are onboard shared-mem cards, which do not require (much) bus-interactivity ... but even allocating several megs each repaint in system memory is expensive and more or less a do-not. What nvidia does is very common, on windows its defacto-standard. Also if they would change they semantics GTK would be hardware accalerated but a lot of time would be spent inside the GPU waiting for the requested piece of VRAM. > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. To be honest I like this approach most, especially because I've seen this technique in several other toolkits (Swing, LwVCL) working very well. Swing (a java toolkit) has even support for smaller backbuffers than the rendered area is, they simply repaint it as often to the backbuffer with different clipping/location till they've filled the whole screen. This could help making window resizing smooth (more painting should be in >90% be much faster than allocating a new pixmap each resize), after resizing a new buffer could be created with window size. Another advantage java can take from this design (starting with mustang) is that if the buffer is as large as the window, they actually just paint the pixmap if the window receives expose events. > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. Well but to run that many applications you also should have a descent powered system wheer grahic cards with 64+m are quite common ;) I too see a problem here, for java its maybe not that too dramatical, if the runtime itself is consuming 15mb another 5mb for the backbuffer don't hurt that much but for GTK and tons of long running apps realized with it the situation is a lot different. I am not enough of an expert to know a exact answer to this, I'll do some reseach at QT and other toolkits that provide double buffering how they deal with this issue. Maybe some kind of ergonomics could do the job, deciding when its worth to keep a buffer for how long and when to destroy it (would we need a timer thread for pixmap freeing *outch*?). As I said I simply don't know an answer maybe some experiments will show ... I've the whole summer for coding on this ^^ lg Clemens I browsed a bit through GTKs source code (only gtk, not gdk till now) and I've to admit that I never coded GTK apps before except some small examples and one java-gome application. As far as I understood from the gtk-tutorial there are some widgets which are windows themself ... which is a bit confusing for me. I tried to find the entrance point where X tells gtk windows to expose, does this happen once for the main "window" and gtk repaints the widgets in an hirarchial order or do the widgets which are windows themself get seperate expose events delivered? How (and where) does the buffering take place? How does GTK deal with widgets that don't want to be drawn doublebuffered? I know tons of awkward newbie quetsions, I guess just pointers to the source would be enough ;) From yeti@physics.muni.cz Mon Jun 26 15:10:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DD37E3B0167 for ; Mon, 26 Jun 2006 15:10:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08743-04 for ; Mon, 26 Jun 2006 15:09:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id E6C703B012B for ; Mon, 26 Jun 2006 15:09:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5QJ9sfx029554 for ; Mon, 26 Jun 2006 21:09:55 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1683523D16; Mon, 26 Jun 2006 21:09:54 +0200 (CEST) Date: Mon, 26 Jun 2006 21:09:57 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Scrolling performance Message-ID: <20060626190957.GR2296@potato.chello.upc.cz> References: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:10:03 -0000 On Mon, Jun 26, 2006 at 08:14:14PM +0200, Clemens Eisserer wrote: > As far as I understood from the gtk-tutorial there are some widgets > which are windows themself ... which is a bit confusing for me. > I tried to find the entrance point where X tells gtk windows to > expose, X tells Gtk+ nothing, Gtk+ is built on top of Gdk and Gdk receives the X events. Start with gdk_event_dispatch() in gdk/x11/gdkevents-x11.c. It is also instructive to compile Gtk+ with --enable-debug=yes and then do for instance GDK_DEBUG=events ./someprogram > does this happen once for the main "window" and gtk repaints > the widgets in an hirarchial order or do the widgets which are windows > themself get seperate expose events delivered? Widgets with their own windows receive their own expose events. Also have a look at http://primates.ximian.com/~federico/misc/gtk-drawing-model/ which explains the basic concepts. Yeti -- Anonyms eat their boogers. From cgallucci@inwind.it Mon Jun 26 15:56:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D635B3B0201 for ; Mon, 26 Jun 2006 15:56:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11469-07 for ; Mon, 26 Jun 2006 15:56:01 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id E0C5D3B007A for ; Mon, 26 Jun 2006 15:56:00 -0400 (EDT) Received: from localhost (172.16.1.83) by smtp6.libero.it (7.0.027-DD01) id 44992E640071E70D; Mon, 26 Jun 2006 21:55:55 +0200 Received: from smtp0.libero.it ([172.16.1.204]) by localhost (asav4.libero.it [193.70.192.153]) (amavisd-new, port 10024) with ESMTP id 20782-04-3; Mon, 26 Jun 2006 21:55:54 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp0.libero.it (Postfix) with ESMTP id 6BA223338A7; Mon, 26 Jun 2006 21:55:53 +0200 (MEST) From: "carmelo gallucci" To: "'Tor Lillqvist'" Subject: RE: CYGWIN and GTK Date: Mon, 26 Jun 2006 21:59:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <17567.60625.324000.832379@gargle.gargle.HOWL> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.397 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.397 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:56:07 -0000 Hi Tor. Maybe i'm not really shure .-). I'm trying to explain better. I have a complete application built on Linux fedora core (GTKmm, SDL, ffmpeg, etc,etc). I'm thinking the fasted way to have the same application running on a window OS is to build it using CYGwin(i'm really new of it). This only not to spend more time to develop new thing. I compile and run my app without any problem (i intend Gtk ffmpeg). When i try tu use SDL and particylary GDK(X11) function i have problem i wrote. I use SDL only to display YUV format on the video. What can i use instead of it? Thanks. Carmelo -----Original Message----- From: Tor Lillqvist [mailto:tml@iki.fi]=20 Sent: luned=EC 26 giugno 2006 16.19 To: carmelo gallucci Cc: gtk-list@gnome.org Subject: Re: CYGWIN and GTK carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From lalitk.pune@gmail.com Mon Jun 26 23:15:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6EF93B0171 for ; Mon, 26 Jun 2006 23:15:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32665-09 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 220273B00F2 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so2013774nzh for ; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.64.148.4 with SMTP id v4mr3198669qbd; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.65.23.15 with HTTP; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Message-ID: Date: Tue, 27 Jun 2006 08:45:55 +0530 From: "Lalit Kumar" To: gtk-list@gnome.org Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.162 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 03:15:58 -0000 Hi All, I am facing problem with gdk_font_load method in my application. It returns NULL. I am using gtk-2.0 on Redhat Enterprise WS 4. Can anybody help me to resolve this proble? Help says that gdk_font_load is depricated. What is the name of new equivalent method? Thanx in advance, -- Bye, Lalit Kumar Pune On 6/26/06, gtk-list-request@gnome.org wrote: > Send gtk-list mailing list submissions to > gtk-list@gnome.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.gnome.org/mailman/listinfo/gtk-list > or, via email, send a message with subject or body 'help' to > gtk-list-request@gnome.org > > You can reach the person managing the list at > gtk-list-owner@gnome.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gtk-list digest..." > > > Today's Topics: > > 1. Re: Drawing images ( with transparency ) one on another (lao wb) > 2. CYGWIN and GTK (carmelo gallucci) > 3. Re: CYGWIN and GTK (Tor Lillqvist) > 4. save copy of gtktextbuffer (Marko Ivancic) > 5. Re: GTK performance on Windows (Clemens Eisserer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Jun 2006 11:23:31 +0800 > From: "lao wb" > Subject: Re: Drawing images ( with transparency ) one on another > To: " David Ne?as (Yeti) " > Cc: gtk-list@gnome.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-2" > > Hi, > I need do this too but have not succeeded yet. I try to use > gdk_draw_pixbuf and gdk_pixbuf_composite in expose event handler, but it > still doesn't work. I really need help to make my test code work. > > Laowb > > #include > #define STD_WIDTH 680 > #define STD_HEIGHT 480 > > static GdkPixbuf * s_basePix; > static GdkPixbuf * s_homeMenuPix; > > gboolean on_expose(GtkWidget * widget, > GdkEventExpose * ps, > gpointer data) > { > gdk_pixbuf_composite(s_homeMenuPix, > s_basePix, 0, 0, STD_WIDTH, STD_HEIGHT, 0, 0, 0, 0, > GDK_INTERP_NEAREST, 0); > > gdk_draw_pixbuf(widget->window, widget->style->bg_gc[GTK_STATE_NORMAL], > s_homeMenuPix, 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT, > GDK_RGB_DITHER_NORMAL, > 0, 0); > return FALSE; > } > > > int main(int argc, char * argv[]) > { > GtkWidget * mainWnd = NULL; > GdkDrawable * pixMap = NULL; > GtkWidget * img = NULL; > GtkWidget * box = NULL; > GtkWidget * button = NULL; > GtkAdjustment * vadj = NULL; > GtkAdjustment * hadj = NULL; > GdkBitmap * msk = NULL; > GdkBitmap * homeMenu = NULL; > > gtk_init(&argc, &argv); > > mainWnd = gtk_window_new(GTK_WINDOW_TOPLEVEL); > > gtk_window_set_title(GTK_WINDOW(mainWnd), "test draw...\n"); > > gtk_signal_connect(GTK_OBJECT(mainWnd), "destroy", gtk_main_quit, NULL); > > img = gtk_image_new(); > gtk_container_add(GTK_CONTAINER(mainWnd), img); > gtk_signal_connect(GTK_OBJECT(img), > "expose-event", > GTK_SIGNAL_FUNC(on_expose), > NULL); > > gtk_container_set_border_width(GTK_CONTAINER(mainWnd), 5); > > gtk_widget_show_all(mainWnd); > > homeMenu = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/homemenu.bmp"); /* alpha > channel bitmap*/ > s_homeMenuPix = > gdk_pixbuf_get_from_drawable(s_homeMenuPix, > homeMenu, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > pixMap = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/Sunset.bmp"); /* no alpha > channel bitmap*/ > s_basePix = > gdk_pixbuf_get_from_drawable(s_basePix, > pixMap, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > gtk_main(); > > return 0; > } > > 2006/6/19, David Ne?as (Yeti) : > > > > On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > > > > > I`ve got a problem. I`ve got two separate images. One is background > > for the secondone. Secondone is partially transparent. There is also table. > > Question is : how to draw in one of the table`s cells the backgraound, and > > on this background ( as a second layer ) second image (transparent) ? I > > know ( of course ) how to create images, tables. > > > > Either use gdk_draw_pixbuf() if the correct order (first > > base, then the one with alpha channel) in expose event > > handler, or use gdk_pixbuf_composite() and draw the final > > image. > > > > Yeti > > > > > > -- > > Anonyms eat their boogers. > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: /archives/gtk-list/attachments/20060626/bc9fc384/attachment.htm > > ------------------------------ > > Message: 2 > Date: Mon, 26 Jun 2006 14:02:02 +0200 > From: "carmelo gallucci" > Subject: CYGWIN and GTK > To: > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My > application also use SDL and i want to enable SDL hacking to encapsulate > it on a gtk window. My gtk application run pefectly. I can show widget > and use it. My problem is that i cannot get this code to work (it work > perfectly under linux): > > sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget > ::gobj()->window)); > > I cannot get WINDOWID. > > When i use the macro GDK_WINDOW_XWINDOW i get the following error: > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): Gdk-WARNING **: > /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk > drawable-x11.c:971 drawable is not a pixmap or window > > What's the problem? Anyone know where the problem is? > > Thanks. > > Carmelo Gallucci > > > > ------------------------------ > > Message: 3 > Date: Mon, 26 Jun 2006 17:18:57 +0300 > From: Tor Lillqvist > Subject: Re: CYGWIN and GTK > To: "carmelo gallucci" > Cc: gtk-list@gnome.org > Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> > Content-Type: text/plain; charset=us-ascii > > carmelo gallucci writes: > > What's the problem? Anyone know where the problem is? > > Well, firstly you are using an unmaintained version of GTK+ (2.6.x). > > Secondly, are you sure what you are doing makes sense? You are using a > GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the > SDL you are using also for X11 on Cygwin? Or are you trying to use a > SDL that would use native Win32 (GDI) together with a GTK+ built for > X11? Surely that can't work. > > --tml > > > > ------------------------------ > > Message: 4 > Date: Mon, 26 Jun 2006 16:47:57 +0200 > From: Marko Ivancic > Subject: save copy of gtktextbuffer > To: gtk-list@gnome.org > Message-ID: <449FF39D.6080201@ultra.si> > Content-Type: text/plain; charset=ISO-8859-2; format=flowed > > Hi. > > Is there any way to save a GtkTextBuffer (I mean the context of this > buffer including pixbufs and other embedet widgets) into another > GtkTextBuffer instance ?? > > Tnx, > By > Marko I. > > > > ------------------------------ > > Message: 5 > Date: Mon, 26 Jun 2006 16:53:29 +0200 > From: "Clemens Eisserer" > Subject: Re: GTK performance on Windows > To: gtk-list@gnome.org > Message-ID: > <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I played a bit and found something which could be considered as "slow": > > Open the configuration dialog of gimp and move another window on top of it. > This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you > can still see a ~4mm repaint lag. > > I wonder wether this could also be caused because of inefficient > double buffering ... time will show. > > lg Clemens > > 2006/6/23, Clemens Eisserer : > > First of all thanks a lot for doing that much work porting GTK to windows. > > I can't count how many apps I've used myself on windows-pcs which were > > able to run because of your work. > > > > > If one would ask specific question like "I draw 100000 line segments > > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > > might get better help. > > > > I installed gimp on some win-xp computers in the company I work for > > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > > are very much the issues I have on linux but more "visible". Its the > > UI, menus, window resizing, layout changes or repaint-events sent to > > the window because its content was invalidated. > > I can't say wether its really slow or just feels so, maybe the graphic > > card driver had an influence (nvidia gf4 mx4000) or some other > > circumstances were not optimal. > > I simply never did care that much simply because I don't use/like this planform. > > > > Its just hard to know whats going wrong, especially if someone is no > > gtk insider. > > > > lg Clemens > > > > > ------------------------------ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > End of gtk-list Digest, Vol 26, Issue 37 > **************************************** > From paul@linuxaudiosystems.com Tue Jun 27 09:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 168BD3B00AD for ; Tue, 27 Jun 2006 09:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31194-03 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id 1FD8D3B0084 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1I00ERKTHNOOQ4@vms044.mailsrvcs.net> for gtk-list@gnome.org; Tue, 27 Jun 2006 08:29:48 -0500 (CDT) Date: Tue, 27 Jun 2006 09:30:19 -0400 From: Paul Davis Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-reply-to: To: Lalit Kumar Message-id: <1151415019.28727.41.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.476 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 13:30:21 -0000 On Tue, 2006-06-27 at 08:45 +0530, Lalit Kumar wrote: > Hi All, > > I am facing problem with gdk_font_load method in my application. It > returns NULL. > > I am using gtk-2.0 on Redhat Enterprise WS 4. > > Can anybody help me to resolve this proble? > Help says that gdk_font_load is depricated. What is the name of new > equivalent method? a) please do NOT quote an entire digest message just so you can ask a new question. b) please change the subject line when you ask a new question c) there really is no equivalent method. what are you trying to do? explicit font loading is rarely necessary now that GTK uses pango (and has done for at least 2 years. From linuxhippy@gmail.com Wed Jun 28 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 121493B037B for ; Wed, 28 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32231-05 for ; Wed, 28 Jun 2006 16:20:47 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id 52F463B0515 for ; Wed, 28 Jun 2006 16:19:03 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so1405343hue for ; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr717001hue; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Message-ID: <194f62550606281318k48b71f34kd98baccbcef314bb@mail.gmail.com> Date: Wed, 28 Jun 2006 22:18:54 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.111 tagged_above=-999 required=2 tests=[AWL=-0.346, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.111 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 20:21:19 -0000 Hi again, Thanks a lot for all the hints about gdk, I know found the source-parts which I looked for and thanks to the paper I even understand what they are doing :-) I thought about some techniques about implementing buffer release heuristics, however they destroy the benefit to smoe degree and have some overhead too. However I realized that the memory-consumption scenario is not _such_ a big problem. If you only hold the backbuffer only as long as the window is visible and release it the whole situation is much better because more than 2-3 open full-screen windows are unlikely and 16mb VRAM are ... well ... much more than default. I guess parsing an enviroment-variable or such to enable/disable the caching behaviour wouldn't be a bad idea? lg Clemens 2006/6/26, John Cupitt : > On 6/25/06, Clemens Eisserer wrote: > > When I maximize the window and resize the panes I get very slow > > resizing, however when setting all involved widgets unbuffered > > resizing is fast (but painting is done with artifacts). > > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a > note about this in the entry for gtk_widget_set_double_buffered(): > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > I'm not a gtk-internals expert and I can't really see a good solution > to this. The possibilities I can see are: > > 1) Provide an option to disable double buffering for all widgets > > You could hack into gdk_window_begin_paint_region() and add a new code path: > > http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 > > something like > > if (global_no_double_buffer) > clear expose area to background > > might be enough. > > Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. > > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. > > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. > > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. > > John > From felipe.weckx@gmail.com Wed Jun 28 18:40:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 747D83B00EC for ; Wed, 28 Jun 2006 18:40:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05443-08 for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 4090F3B007D for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id s15so144297wxc for ; Wed, 28 Jun 2006 15:40:06 -0700 (PDT) Received: by 10.70.92.2 with SMTP id p2mr2110412wxb; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Received: from c9007af8.virtua.com.br ( [201.52.122.248]) by mx.gmail.com with ESMTP id i17sm7634039wxd.2006.06.28.15.40.04; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Subject: Set pane position on application startup From: Felipe Weckx To: gtk-list@gnome.org Content-Type: text/plain Date: Wed, 28 Jun 2006 19:40:00 -0300 Message-Id: <1151534400.6517.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.4 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -2.4 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 22:40:29 -0000 Hi everyone, I've an application that saves the pane gutter position when it finishes, so when it is started it can set the position where it was previously. However, when I start the application the gutter doesn't go where I want to... but, if I call the procedure after the app is running, it goes to the right place, I've tried running this function through g_idle_add on the main program, but it doesn't work either... any ideas? -- []'s Felipe Weckx From nc-gaertnma@netcologne.de Wed Jun 28 19:31:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9E3D53B00F3 for ; Wed, 28 Jun 2006 19:31:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07544-07 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from smtp3.netcologne.de (smtp3.netcologne.de [194.8.194.66]) by menubar.gnome.org (Postfix) with ESMTP id 9E74B3B01D5 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from limapholos.matom.wg (xdsl-81-173-182-178.netcologne.de [81.173.182.178]) by smtp3.netcologne.de (Postfix) with ESMTP id D822567384 for ; Thu, 29 Jun 2006 01:31:03 +0200 (CEST) Date: Thu, 29 Jun 2006 01:31:03 +0200 From: Mattias Gaertner To: gtk-list@gnome.org Subject: iconify and iconify Message-ID: <20060629013103.74081832@limapholos.matom.wg> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.928 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_WEB=1.456, TW_GT=0.077] X-Spam-Score: 0.928 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 23:31:08 -0000 Hi all, When the user iconifies a window and/or when the user switches to another desktop, the gtk sends the 'window-state-event' signal with GDK_WINDOW_STATE_ICONIFIED. How can I find out, which one happened? Mattias From Yandong.Yao@Sun.COM Thu Jun 29 02:53:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 169923B0071 for ; Thu, 29 Jun 2006 02:53:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23618-05 for ; Thu, 29 Jun 2006 02:53:47 -0400 (EDT) Received: from sineb-mail-1.sun.com (sineb-mail-1.sun.com [192.18.19.6]) by menubar.gnome.org (Postfix) with ESMTP id 741C93B0206 for ; Thu, 29 Jun 2006 02:53:46 -0400 (EDT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k5T6rh8l019095 for ; Thu, 29 Jun 2006 14:53:44 +0800 (SGT) Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J1M00A010EONK00@mail-apac.sun.com> (original mail from Yandong.Yao@Sun.COM) for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Received: from [129.158.148.217] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J1M002H60HIM4OO@mail-apac.sun.com> for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Date: Thu, 29 Jun 2006 14:55:08 +0800 From: "yandong.yao" Subject: does g_utf8_collate() need check whether its parameter is utf8 or not? Sender: Yandong.Yao@Sun.COM To: gtk-list@gnome.org Message-id: <44A3794C.7070207@sun.com> Organization: SMI MIME-version: 1.0 Content-type: text/plain; charset=GB2312 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.4 (X11/20060613) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.549 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.549 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Yandong.Yao@Sun.COM List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:53:51 -0000 Hi guys, If i ask in wrong alias, please forgive me and forward to correct alias, thank you. The document of g_utf8_collate() require its parameters should be utf-8 encoded, but it did not check this in function body, so g_utf8_normalize() may return NULL for non-utf8 string, thus strcoll() will crash. I have met such problem for several time on opensolaris. So we need check at somewhere, 3 candidate: 1) check parameter in strcoll(): but because different c lib has diff implementation, so i guess it is not a good place to avoid this problem. 2) check parameter in g_utf8_* function: check parameter in this level will sensible, but it will result in a few check statement in g_utf8_* functions. 3) check in caller of g_utf8_*, this is ok also, but need every developer to do this. i prefer 2), cause it will reduce lots of developer's work, and the cost is little also. any comments or suggestions are welcome, thank you in advance. regards, yandong From linuxhippy@gmail.com Thu Jun 29 13:48:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1CC2F3B010F for ; Thu, 29 Jun 2006 13:48:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31768-05 for ; Thu, 29 Jun 2006 13:48:51 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.196]) by menubar.gnome.org (Postfix) with ESMTP id C6A213B00D4 for ; Thu, 29 Jun 2006 13:48:50 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so144861hue for ; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.164.13 with SMTP id m13mr1091961hue; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Message-ID: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Date: Thu, 29 Jun 2006 19:48:49 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Newbie question about GTKs object model... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.908 tagged_above=-999 required=2 tests=[AWL=0.492, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -1.908 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:48:52 -0000 Sorry for such a stupid question ... shame on myself for asking it :-/ I looked arround GdkWindow.h/c bit and actually did not find the definition of the type "GdkWindow", instead I only found the definition of _GdkWindowObject which looks quite like I imagine GdkWindow could look like. So where/how does a GdkWindowObject become to an GdkWindow or do I understand some things completly wrong? btw. yes I did read some docs about Glib's object model ;) Thank you in advance, lg Clemens From RMain@gmx.de Thu Jun 29 13:56:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7050A3B00AE for ; Thu, 29 Jun 2006 13:56:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32350-01 for ; Thu, 29 Jun 2006 13:56:12 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id B6A873B027E for ; Thu, 29 Jun 2006 13:56:11 -0400 (EDT) Received: (qmail 2526 invoked by uid 0); 29 Jun 2006 17:56:10 -0000 Received: from 89.57.94.28 by www018.gmx.net with HTTP; Thu, 29 Jun 2006 19:56:10 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Thu, 29 Jun 2006 19:56:10 +0200 From: "Robert Main" Message-ID: <20060629175610.156930@gmx.net> MIME-Version: 1.0 Subject: Problem with compiling To: gtk-list@gnome.org X-Authenticated: #31472207 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.465 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.465 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:56:14 -0000 Hi, need to compile GTK+ 1.2 to use it with MPlayer. The problem is: I'm on windows, I need a makefile, but how/where is one? There is makefile.am|in, but cant use that. I also cant run configure, windows and so... friend said i should download this library and that and all that and maybe it would work, but thats so much for just this purpose! ... is there a simple and easy way? I know there are binaries in the latest GTK+, but I dont know if i can use that... the same problem is with glib, also cant compile because i cant run configure hope you can help me :-) -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f黵 Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From yeti@physics.muni.cz Thu Jun 29 14:26:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC7EE3B016C for ; Thu, 29 Jun 2006 14:26:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01572-02 for ; Thu, 29 Jun 2006 14:26:40 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 4E5DC3B00AE for ; Thu, 29 Jun 2006 14:26:39 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5TIQb1N025861 for ; Thu, 29 Jun 2006 20:26:38 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 50CC323D59; Thu, 29 Jun 2006 20:26:37 +0200 (CEST) Date: Thu, 29 Jun 2006 20:26:41 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Newbie question about GTKs object model... Message-ID: <20060629182641.GA2296@potato.chello.upc.cz> References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 18:26:45 -0000 On Thu, Jun 29, 2006 at 07:48:49PM +0200, Clemens Eisserer wrote: > Sorry for such a stupid question ... shame on myself for asking it :-/ > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow" You could easily find it using ctags: Run `ctags *' in gdk/ and then press ^] when you have cursor on GdkWindow -- assuming you use vim. > instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? GdkWindow is defined in gdktypes.h: typedef struct _GdkDrawable GdkWindow; and GdkWindowObject has GdkDrawable as a *parent*. The net result is that GdkWindowObject is a GdkWindow which is the same as GdkDrawable. Yeti -- Anonyms eat their boogers. From christianseberino@yahoo.com Thu Jun 29 15:04:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5EC873B00AE for ; Thu, 29 Jun 2006 15:04:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03543-07 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: from web37611.mail.mud.yahoo.com (web37611.mail.mud.yahoo.com [209.191.87.94]) by menubar.gnome.org (Postfix) with SMTP id 446233B0120 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: (qmail 96171 invoked by uid 60001); 29 Jun 2006 19:03:59 -0000 Message-ID: <20060629190359.96169.qmail@web37611.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37611.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:03:59 PDT Date: Thu, 29 Jun 2006 12:03:59 -0700 (PDT) From: Christian Seberino Subject: What does *gnome integration" mean for a GTK app? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1939649571-1151607839=:91636" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.273 tagged_above=-999 required=2 tests=[AWL=-1.288, BAYES_50=0.001, BE_BOSS=1.539, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: 2.273 X-Spam-Level: ** X-Spam-Flag: YES X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:04:01 -0000 --0-1939649571-1151607839=:91636 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME? and... What does "GNOME integration" buy you? Please give examples? Is there some extra work one must do to get this "integration" in their GTK app? (I'm wondering if wxGTK apps will work with GNOME) Chris --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME?

and...

What does "GNOME integration" buy you?  Please give examples?


Is there some extra work one must do to get this "integration"
in their GTK app?

(I'm wondering if wxGTK apps will work with GNOME)

Chris


Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636-- From christianseberino@yahoo.com Thu Jun 29 15:05:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B45013B0003 for ; Thu, 29 Jun 2006 15:05:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03609-10 for ; Thu, 29 Jun 2006 15:05:54 -0400 (EDT) Received: from web37610.mail.mud.yahoo.com (web37610.mail.mud.yahoo.com [209.191.87.93]) by menubar.gnome.org (Postfix) with SMTP id CEAD03B00A4 for ; Thu, 29 Jun 2006 15:05:53 -0400 (EDT) Received: (qmail 42338 invoked by uid 60001); 29 Jun 2006 19:05:53 -0000 Message-ID: <20060629190553.42336.qmail@web37610.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37610.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:05:53 PDT Date: Thu, 29 Jun 2006 12:05:53 -0700 (PDT) From: Christian Seberino Subject: Do wx apps lose any (GNOME) integration abilitlies of "pure" GTK apps? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2050439885-1151607953=:41127" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.742 tagged_above=-999 required=2 tests=[AWL=-0.907, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_MESSAGE=0.001] X-Spam-Score: 0.742 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:05:55 -0000 --0-2050439885-1151607953=:41127 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps? e.g. with GNOME and with other GTK apps? (I sent another email about what benefits there are to integration as I'm not sure.) I don't know if there any bad things about using wx with GTK under the hood. Chris --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps?
e.g. with GNOME and with other GTK apps?

(I sent another email about what benefits there are to integration
as I'm not sure.)

I don't know if there any bad things about using wx with GTK under the
hood.

Chris


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127-- From christianseberino@yahoo.com Thu Jun 29 15:09:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 777823B00AE for ; Thu, 29 Jun 2006 15:09:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03693-08 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: from web37603.mail.mud.yahoo.com (web37603.mail.mud.yahoo.com [209.191.87.86]) by menubar.gnome.org (Postfix) with SMTP id 9717A3B00A4 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: (qmail 26717 invoked by uid 60001); 29 Jun 2006 19:08:59 -0000 Message-ID: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37603.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:08:59 PDT Date: Thu, 29 Jun 2006 12:08:59 -0700 (PDT) From: Christian Seberino Subject: Any reason to worry about using wx? (but it uses GTK!?! :) To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1343824353-1151608139=:24277" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.122 tagged_above=-999 required=2 tests=[AWL=-2.190, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514] X-Spam-Score: 1.122 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:09:01 -0000 --0-1343824353-1151608139=:24277 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux. Can anyone see any problems //down the road// with using wx as far as losing benefits a pure GTK app would have? Thanks Chris --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux.

Can anyone see any problems //down the road// with using wx as far
as losing benefits a pure GTK app would have?

Thanks

Chris


Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277-- From einKI.ml@gmx.net Thu Jun 29 17:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A16FC3B0285 for ; Thu, 29 Jun 2006 17:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09269-06 for ; Thu, 29 Jun 2006 17:14:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 7577E3B018F for ; Thu, 29 Jun 2006 17:14:15 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:14:14 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp019) with SMTP; 29 Jun 2006 23:14:14 +0200 X-Authenticated: #31874521 Subject: Draw directly to the screen From: "einKI.ml" To: gtk-list Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:14:12 +0200 Message-Id: <1151615652.5113.18.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.456 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.456 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:14:17 -0000 Hi My goal is to draw a line directly to the screen using gdk. "To the screen" means that it should be visible for the user over any other window. I thin i have to use the root window to accomplish this int main( int argc,char *argv[] ) { gtk_init (&argc, &argv); GdkWindow* rw = gdk_get_default_root_window(); GdkGC* gc = gdk_gc_new(rw); gdk_draw_line(rw,gc,10,10,500,500); gdk_flush(); gtk_main (); return 0; } However i dont see anything. I only can see the line if i shut down the x-server. So I believe i only draw to the background even behind nautilus. This seems logically but I cant find any other method to draw directly to the screen. If anyone has done this before or know how to do it I appreciate any help by einKI From paul@linuxaudiosystems.com Thu Jun 29 17:22:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EBB533B007B for ; Thu, 29 Jun 2006 17:22:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09674-01 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id C875B3B0198 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1N00CZL4PFXGPC@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 29 Jun 2006 16:22:28 -0500 (CDT) Date: Thu, 29 Jun 2006 17:22:58 -0400 From: Paul Davis Subject: Re: Draw directly to the screen In-reply-to: <1151615652.5113.18.camel@localhost> To: einKI.ml@gmx.net Message-id: <1151616178.28727.116.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1151615652.5113.18.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.55 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599] X-Spam-Score: -2.55 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:22:34 -0000 On Thu, 2006-06-29 at 23:14 +0200, einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. i suggest you look for the little app called "gromit" for ideas. From king@eiffel.com Thu Jun 29 17:26:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC5C53B0273 for ; Thu, 29 Jun 2006 17:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09893-02 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from smtp.eiffel.com (smtp.eiffel.com [65.170.180.5]) by menubar.gnome.org (Postfix) with ESMTP id A79583B0198 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from ise171.ise ([10.0.10.171]) by smtp.eiffel.com with esmtp (Exim 4.01) id 1Fw42B-0004qX-00; Thu, 29 Jun 2006 14:26:47 -0700 Message-ID: <44A44597.9030902@eiffel.com> Date: Thu, 29 Jun 2006 14:26:47 -0700 From: Ian King User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: einKI.ml@gmx.net Subject: Re: Draw directly to the screen References: <1151615652.5113.18.camel@localhost> In-Reply-To: <1151615652.5113.18.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[AWL=0.053, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.469 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:26:50 -0000 If you add the line gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); after you create the gc, then it should draw over all child windows. Regards, Ian King Eiffel Software einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. > > I thin i have to use the root window to accomplish this > > int main( int argc,char *argv[] ) > { > gtk_init (&argc, &argv); > > GdkWindow* rw = gdk_get_default_root_window(); > GdkGC* gc = gdk_gc_new(rw); > gdk_draw_line(rw,gc,10,10,500,500); > > gdk_flush(); > > gtk_main (); > return 0; > } > > However i dont see anything. I only can see the line if i shut down the > x-server. So I believe i only draw to the background even behind > nautilus. This seems logically but I cant find any other method to draw > directly to the screen. > > If anyone has done this before or know how to do it I appreciate any > help > by > einKI > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From einKI.ml@gmx.net Thu Jun 29 17:40:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C2FF3B013E for ; Thu, 29 Jun 2006 17:40:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10413-05 for ; Thu, 29 Jun 2006 17:40:31 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id BE9303B0120 for ; Thu, 29 Jun 2006 17:40:30 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:40:29 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp035) with SMTP; 29 Jun 2006 23:40:29 +0200 X-Authenticated: #31874521 Subject: Re: Re: Draw directly to the screen From: "einKI.ml" To: gtk-list In-Reply-To: <44A44597.9030902@eiffel.com> References: <1151615652.5113.18.camel@localhost> <44A44597.9030902@eiffel.com> Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:40:28 +0200 Message-Id: <1151617228.5113.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.5 tagged_above=-999 required=2 tests=[AWL=0.100, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.5 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:40:32 -0000 Hi > If you add the line > gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); > after you create the gc, then it should draw over all child windows. thx works perfect! I think i never figured this out alone from the reference but now its clear. > i suggest you look for the little app called "gromit" for ideas. seems a good starting point thy you too by From esodan@gmail.com Thu Jun 29 18:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 70A2A3B00AC for ; Thu, 29 Jun 2006 18:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13109-09 for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 2822F3B000D for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so628092uge for ; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.224.19 with SMTP id w19mr727175ugg; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.233.12 with HTTP; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Message-ID: <144160610606291553u37f4a830l7012f094d4db4cb3@mail.gmail.com> Date: Thu, 29 Jun 2006 17:53:31 -0500 From: "Daniel Espinosa" To: "Clemens Eisserer" Subject: Re: Newbie question about GTKs object model... In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9631_30011709.1151621611867" References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=-0.174, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.122 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 22:53:34 -0000 ------=_Part_9631_30011709.1151621611867 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2006/6/29, Clemens Eisserer : > > Sorry for such a stupid question ... shame on myself for asking it :-/ > > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow", instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? btw. yes I did read some docs > about Glib's object model ;) > > Thank you in advance, lg Clemens > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Why do you need GdkWindow? If you only need to create a window, don't worry about GdkWindow, is internaly managed by a GtkWindow object. --=20 Trabajar, la mejor arma para tu superaci=F3n "de grano en grano, se hace la arena" (R) (entr=E1mite, pero para los cuate= s: LIBRE) ------=_Part_9631_30011709.1151621611867 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

2006/6/29, Clemens Eisserer <linuxhippy@gmail.com>:<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Sorry for such a stupid question ... shame on myself for asking it :-/
<= br>I looked arround GdkWindow.h/c  bit and actually did not find = the
definition of the type "GdkWindow", instead I only found t= he
definition of _GdkWindowObject which looks quite like I imagine
GdkWindo= w could look like.
So where/how does a GdkWindowObject become to an GdkW= indow or do I
understand some things completly wrong? btw. yes I did rea= d some docs
about Glib's object model ;)

Thank you in advance, lg Clemens_______________________________________________
gtk-list mailing listgtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
<= br>Why do you need GdkWindow?

If you only need to create a window, d= on't worry about GdkWindow, is internaly managed by a GtkWindow object.

--
Trabajar, la mejor arma para tu superaci=F3n"de grano en grano, se hace la arena" (R) (entr=E1mite, pero pa= ra los cuates: LIBRE) ------=_Part_9631_30011709.1151621611867-- From sylvia.lopez@obs.u-bordeaux1.fr Fri Jun 30 04:10:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDF3B3B0219 for ; Fri, 30 Jun 2006 04:10:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03249-10 for ; Fri, 30 Jun 2006 04:10:34 -0400 (EDT) Received: from alienor.obs.u-bordeaux1.fr (alienor.obs.u-bordeaux1.fr [147.210.44.5]) by menubar.gnome.org (Postfix) with ESMTP id 3307D3B0108 for ; Fri, 30 Jun 2006 04:10:33 -0400 (EDT) Received: from [147.210.44.54] (pclopez.obs.u-bordeaux1.fr [147.210.44.54]) by alienor.obs.u-bordeaux1.fr (8.13.6/alienor) with ESMTP id k5U8ATeb002417 for ; Fri, 30 Jun 2006 10:10:29 +0200 Message-ID: <44A4DC4F.6050103@obs.u-bordeaux1.fr> Date: Fri, 30 Jun 2006 10:09:51 +0200 From: Sylvia Lopez User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk image drawing Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at alienor.obs.u-bordeaux1.fr with ID 44A4DC75.000 by Joe's j-chkmail (17-05-06)! X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.74 tagged_above=-999 required=2 tests=[BAYES_20=-0.74] X-Spam-Score: -0.74 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 08:10:38 -0000 Hello, first, sorry for my english. my answer : i have to create an gtk+ interface who can display an image, zoom, get the x y and value of the pixel (on mouse over), and select a region (rectangle). For the image i had used GtkImage but whe can't draw (?) I had tryed to use GtkDrawingArea, I'm reading docs since days and days, I think there is something that I don't understand for instance (maybe it's so simple ? ;-) ) Can you tell me witch widget I have to use and how can I do that. Thank you for your help syl From mekstran@scl.ameslab.gov Fri Jun 30 09:24:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A16B93B028E for ; Fri, 30 Jun 2006 09:24:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21926-05 for ; Fri, 30 Jun 2006 09:24:52 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id 87F563B0108 for ; Fri, 30 Jun 2006 09:24:52 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 30 Jun 2006 08:24:51 -0500 id 000538B0.44A52623.00004980 In-Reply-To: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> References: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <39eea0d52365fbbe332ff511a3629c34@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Subject: Re: Any reason to worry about using wx? (but it uses GTK!?! :) Date: Fri, 30 Jun 2006 08:24:20 -0500 To: Christian Seberino X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.87 tagged_above=-999 required=2 tests=[AWL=-0.560, BAYES_00=-2.599, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514] X-Spam-Score: -1.87 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 13:24:53 -0000 Chris: I'll try to address all three of your mails from yesterday here. On Jun 29, 2006, at 2:08 PM, Christian Seberino wrote: > wx uses GTK under the hood...at least on Unix and Linux. > > Can anyone see any problems //down the road// with using wx as far > as losing benefits a pure GTK app would have? There are two sides to this question, really. One reflected by your previous questions, the issue of integration, and then the other of toolkit niceness. On the integration, I'm not 100% sure. GNOME integration, to me, means providing the appropriate .desktop files so the app shows up in GNOME's menus, using GNOME-style icons, following the HIG (Human Interface Guidelines) as much as possible, potentially using gconf for storing preferences, respecting GNOME's setting for the default web browser and email program, etc. In general, plain GTK apps come close enough that it doesn't matter whether they were specifically for GNOME. Also, lot of that can be accomplished with wx, but not necessarily as easily. And if you're following GNOME HIG, then you aren't following the Windows or Apple UI guidelines very closely (some elements of that wx will handle, but there's a lot that it can't). The other side is toolkit niceness. The benefit a pure GTK+ app has that wxWidgets doesn't is GTK+. GTK+ provides a good selection of expressive, high-level widgets that are capable of fairly incredible behavior out of the box. wxWidgets goes to a lowest-common-denominator, and makes you program these excellent widgets through an API that reeks of Win32 and MFC. I realize this probably isn't what you're asking, but it is a quite pertinent point when it comes to programmer sanity. Where I work, I'm working on a GUI with GTKmm, and some colleagues are working on another program using wx. Their frustration level with getting the widgets to work and do what they want is much higher. Also, wx forces GTK to abandon its native container-based widget layout model (one of GTK+'s huge benefits) in favor of a Windows-like position-and-size model, controlled with size managers. So there's a lost benefit immediately. Down the road? That one still applies as you have to maintain your code. Also, since wxWidgets has a design that makes some assumptions from the Win3.1/Win95 era (in my somewhat limited experience with it through wxPython), it feels like it won't let you easily take advantage of further UI developments as the come very easily. Just my $0.02... - Michael From kyndig@gmail.com Fri Jun 30 13:51:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A36463B00C4 for ; Fri, 30 Jun 2006 13:51:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03635-07 for ; Fri, 30 Jun 2006 13:51:16 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by menubar.gnome.org (Postfix) with ESMTP id 937673B007B for ; Fri, 30 Jun 2006 13:51:15 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so147158uge for ; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr3329250ugm; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Received: by 10.66.244.6 with HTTP; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Message-ID: Date: Fri, 30 Jun 2006 13:51:14 -0400 From: "Calvin Ellis" To: gtk-list@gnome.org Subject: midi, wave, mp3 cross platform? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14161_15395746.1151689874340" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.921 tagged_above=-999 required=2 tests=[AWL=-0.806, BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.921 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 17:51:16 -0000 ------=_Part_14161_15395746.1151689874340 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello list, I'm looking for a cross platform library to incorporate into my software application. The application currently takes the commands required to play midi, wave, and mp3 files. Is there a cross platform library which I can bundle with my application? The application currently works on Linux, Windows, and MAC OS X ( with X11 install - can't wait for the native MAC completion! ) Thank you, Calvin ------=_Part_14161_15395746.1151689874340 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello list,

I'm looking for a cross platform library to incorporate into my software application. The application currently takes the commands required to play midi, wave, and mp3 files. Is there a cross platform library which I can bundle with my application? The application currently works on Linux, Windows, and MAC OS X ( with X11 install - can't wait for the native MAC completion! )

Thank you,
Calvin

------=_Part_14161_15395746.1151689874340-- From c_gilbert@verizon.net Sun Jun 25 15:48:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2BF6F3B0018 for ; Sun, 25 Jun 2006 15:48:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27892-08 for ; Sun, 25 Jun 2006 15:48:10 -0400 (EDT) Received: from smtp101.vzn.mail.dcn.yahoo.com (smtp101.vzn.mail.dcn.yahoo.com [209.73.179.139]) by menubar.gnome.org (Postfix) with SMTP id 3A6383B000C for ; Sun, 25 Jun 2006 15:48:10 -0400 (EDT) Received: (qmail 44476 invoked from network); 25 Jun 2006 19:47:41 -0000 Received: from unknown (HELO ?192.168.1.101?) (c?gilbert@verizon.net@71.160.54.146 with login) by smtp101.vzn.mail.dcn.yahoo.com with SMTP; 25 Jun 2006 19:47:40 -0000 Subject: GtkTextBuffer "destroying" From: chuck gilbert To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 25 Jun 2006 12:49:33 -0700 Message-Id: <1151264973.3223.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.944 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: 1.944 X-Spam-Level: * X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 19:48:13 -0000 I can not seem to destroy a GtkTextBuffer created by calling gtk_text_buffer_new. To test my problem I used a function like below: somefunction() { GtkTextTagTable *tt = gtk_text_tag_table_new(); GtkTextBuffer *buffer = gtk_text_buffer_new(tt); gint n = gtk_text_buffer_get_line_count(buffer); gtk_widget_destroy(GTK_WIDGET(buffer)); } I have tried to cast "buffer" to G_OBJECT,GTK_TEXT_BUFFER,and GTK_OBJECT with no joy. At runtime I receive: gtk CRITICAL gtk_widget_destroy assumtion GTK_IS_WIDGET(widget) failed. The Buffer is created ie. the line count returns '1'. Thanks in advance for any help. From ibr@radix50.net Thu Jun 22 19:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ABA3B055E for ; Thu, 22 Jun 2006 19:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-06 for ; Thu, 22 Jun 2006 19:47:37 -0400 (EDT) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by menubar.gnome.org (Postfix) with ESMTP id AA8643B0288 for ; Thu, 22 Jun 2006 19:47:37 -0400 (EDT) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 0FA7CEAE70 for ; Fri, 23 Jun 2006 01:47:36 +0200 (CEST) Received: from mail-in-03.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id 013C417769D for ; Fri, 23 Jun 2006 01:47:36 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id BF3B21557B7 for ; Fri, 23 Jun 2006 01:47:35 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNlHdY020742 for ; Fri, 23 Jun 2006 01:47:18 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNlHtg020741 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:47:17 +0200 Date: Fri, 23 Jun 2006 01:47:17 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622234717.GB30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:48:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From MAILER-DAEMON Thu Jun 22 21:01:12 2006 Return-Path: <> X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3559E3B0413 for ; Thu, 22 Jun 2006 21:01:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04772-01 for ; Thu, 22 Jun 2006 21:01:07 -0400 (EDT) Received: from 6677.com (unknown [211.140.139.39]) by menubar.gnome.org (Postfix) with ESMTP id B68ED3B0658 for ; Thu, 22 Jun 2006 21:01:06 -0400 (EDT) Received: from 6677.com [127.0.0.1] by 6677.com [127.0.0.1] (with RAW) (MDaemon.PRO.v6.8.5.R) for ; Fri, 23 Jun 2006 09:11:56 +0800 Date: Fri, 23 Jun 2006 09:11:56 +0800 From: Postmaster@6677.com Subject: MDaemon Notification -- Attachment Removed To: gtk-list@gnome.org X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: Mime-Version: 1.0 X-Actual-From: Postmaster@6677.com X-MDSend-Notifications-To: [trash] Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.039 tagged_above=-999 required=2 tests=[BAYES_50=0.001, NO_REAL_NAME=0.961, TW_GT=0.077] X-Spam-Score: 1.039 X-Spam-Level: * X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Postmaster@6677.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 01:01:12 -0000 下列邮件包含被限制的附件,已被移除: 发信人 : gtk-list@gnome.org 收信人 : jf@6677.com 主题 : Mail Delivery (failure jf@6677.com) 邮件 ID : 已移除的附件: ----------------------------------------- message.scr From prashanthkm22@gmail.com Fri Jun 23 05:24:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 21EE33B041F for ; Fri, 23 Jun 2006 05:24:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31011-09 for ; Fri, 23 Jun 2006 05:24:18 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 4E20A3B0397 for ; Fri, 23 Jun 2006 05:24:18 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so4808wxc for ; Fri, 23 Jun 2006 02:24:17 -0700 (PDT) Received: by 10.70.108.14 with SMTP id g14mr4318104wxc; Fri, 23 Jun 2006 02:24:17 -0700 (PDT) Received: by 10.70.77.6 with HTTP; Fri, 23 Jun 2006 02:24:16 -0700 (PDT) Message-ID: Date: Fri, 23 Jun 2006 14:54:16 +0530 From: "prashanth km22" To: gtk-list@gnome.org Subject: How to set colors to Widgets MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 09:24:21 -0000 Hi all.. I am beginer to GTK, i created window and butons, but i dont know how to set colors to buttons. i saw gtk examples, i did not understand . Tell me how to do that.. Thank you. Prashanth From jalaganapathy@tataelxsi.co.in Thu Jun 29 02:25:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 03A973B011E for ; Thu, 29 Jun 2006 02:25:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22815-01 for ; Thu, 29 Jun 2006 02:25:54 -0400 (EDT) Received: from mail.tataelxsi.co.in (mail.tataelxsi.co.in [203.200.1.48]) by menubar.gnome.org (Postfix) with ESMTP id 26A103B000B for ; Thu, 29 Jun 2006 02:25:52 -0400 (EDT) Received: (from mail.tataelxsi.co.in [203.197.169.20]) by mail.tataelxsi.co.in (MOS 3.7.4b-GA) with HTTP/1.1 id BRM06226 (AUTH jalaganapathy); Thu, 29 Jun 2006 11:56:32 +0530 (IST) From: Jalagandeswari G Subject: Installing GTK+2.9.1 in Fedora core2 To: gtk-list@gnome.org X-Mailer: Mirapoint Webmail Direct 3.7.4b-GA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20060629115632.BRM06226@mail.tataelxsi.co.in> Date: Thu, 29 Jun 2006 11:56:32 +0530 (IST) X-Junkmail: Blacklisted X-Mirapoint-Sig: mail.tataelxsi.co.in X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:25:57 -0000 Hello All, Iam trying to install gtk+2.9.1 in fedora core2. my configure options are ./configure --prefix=/exp/ffox Confugure works fine. While running make i am getting the following errors. gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/exp/ffox/lib\" -DGTK_DATADIR=\"/exp/ffox/share\" -DGTK_DATA_PREFIX=\"/exp/ffox\" -DGTK_SYSCONFDIR=\"/exp/ffox/etc\" -DGTK_VERSION=\"2.9.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"pdf,cups\" -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_ENABLE_DEBUG -pthread -I/exp/ffox//include/glib-2.0 -I/exp/ffox//lib/glib-2.0/include -I/exp/ffox//include/pango-1.0 -I/exp/ffox//include/cairo -I/exp/ffox//include/atk-1.0 -I/exp/ffox/include -I/usr/X11R6/include -DG_DISABLE_DEPRECATED -g -O2 -g -Wall -MT gtkrecentmanager.lo -MD -MP -MF .deps/gtkrecentmanager.Tpo -c gtkrecentmanager.c -fPIC -DPIC -o .libs/gtkrecentmanager.o gtkrecentmanager.c:109: error: syntax error before "GBookmarkFile" gtkrecentmanager.c:109: warning: no semicolon at end of struct or union gtkrecentmanager.c:113: error: syntax error before '}' token gtkrecentmanager.c: In function `gtk_recent_manager_class_init': gtkrecentmanager.c:274: error: invalid application of `sizeof' to an incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_init': gtkrecentmanager.c:286: error: dereferencing pointer to incomplete type gtkrecentmanager.c:290: error: dereferencing pointer to incomplete type gtkrecentmanager.c:291: error: dereferencing pointer to incomplete type gtkrecentmanager.c:293: error: dereferencing pointer to incomplete type gtkrecentmanager.c:294: error: dereferencing pointer to incomplete type gtkrecentmanager.c:295: error: dereferencing pointer to incomplete type gtkrecentmanager.c:296: error: dereferencing pointer to incomplete type gtkrecentmanager.c:298: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_get_property': gtkrecentmanager.c:336: error: dereferencing pointer to incomplete type gtkrecentmanager.c:339: error: dereferencing pointer to incomplete type gtkrecentmanager.c:342: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_finalize': gtkrecentmanager.c:357: error: dereferencing pointer to incomplete type gtkrecentmanager.c:358: error: dereferencing pointer to incomplete type gtkrecentmanager.c:360: error: dereferencing pointer to incomplete type gtkrecentmanager.c:361: error: dereferencing pointer to incomplete type gtkrecentmanager.c:363: error: dereferencing pointer to incomplete type gtkrecentmanager.c:364: warning: implicit declaration of function `g_bookmark_file_free' gtkrecentmanager.c:364: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_real_changed': gtkrecentmanager.c:377: error: dereferencing pointer to incomplete type gtkrecentmanager.c:385: error: dereferencing pointer to incomplete type gtkrecentmanager.c:387: error: dereferencing pointer to incomplete type gtkrecentmanager.c:392: error: dereferencing pointer to incomplete type gtkrecentmanager.c:394: error: dereferencing pointer to incomplete type gtkrecentmanager.c:394: warning: implicit declaration of function `g_bookmark_file_new' gtkrecentmanager.c:395: error: dereferencing pointer to incomplete type gtkrecentmanager.c:399: warning: implicit declaration of function `g_bookmark_file_to_file' gtkrecentmanager.c:399: error: dereferencing pointer to incomplete type gtkrecentmanager.c:400: error: dereferencing pointer to incomplete type gtkrecentmanager.c:406: error: dereferencing pointer to incomplete type gtkrecentmanager.c:415: error: dereferencing pointer to incomplete type gtkrecentmanager.c:419: error: dereferencing pointer to incomplete type gtkrecentmanager.c:422: error: dereferencing pointer to incomplete type gtkrecentmanager.c:429: error: dereferencing pointer to incomplete type gtkrecentmanager.c:432: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_poll_timeout': gtkrecentmanager.c:458: error: dereferencing pointer to incomplete type gtkrecentmanager.c:458: error: dereferencing pointer to incomplete type gtkrecentmanager.c:461: error: dereferencing pointer to incomplete type gtkrecentmanager.c:470: error: dereferencing pointer to incomplete type gtkrecentmanager.c:477: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_set_filename': gtkrecentmanager.c:498: error: dereferencing pointer to incomplete type gtkrecentmanager.c:500: error: dereferencing pointer to incomplete type gtkrecentmanager.c:502: error: dereferencing pointer to incomplete type gtkrecentmanager.c:503: error: dereferencing pointer to incomplete type gtkrecentmanager.c:506: error: dereferencing pointer to incomplete type gtkrecentmanager.c:507: error: dereferencing pointer to incomplete type gtkrecentmanager.c:514: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `build_recent_items_list': gtkrecentmanager.c:534: error: dereferencing pointer to incomplete type gtkrecentmanager.c:536: error: dereferencing pointer to incomplete type gtkrecentmanager.c:538: error: dereferencing pointer to incomplete type gtkrecentmanager.c:539: error: dereferencing pointer to incomplete type gtkrecentmanager.c:542: error: dereferencing pointer to incomplete type gtkrecentmanager.c:555: error: dereferencing pointer to incomplete type gtkrecentmanager.c:563: error: dereferencing pointer to incomplete type gtkrecentmanager.c:565: error: dereferencing pointer to incomplete type gtkrecentmanager.c:571: warning: implicit declaration of function `g_bookmark_file_load_from_file' gtkrecentmanager.c:571: error: dereferencing pointer to incomplete type gtkrecentmanager.c:572: error: dereferencing pointer to incomplete type gtkrecentmanager.c:578: error: dereferencing pointer to incomplete type gtkrecentmanager.c:581: error: dereferencing pointer to incomplete type gtkrecentmanager.c:582: error: dereferencing pointer to incomplete type gtkrecentmanager.c:587: warning: implicit declaration of function `g_bookmark_file_get_size' gtkrecentmanager.c:587: error: dereferencing pointer to incomplete type gtkrecentmanager.c:588: error: dereferencing pointer to incomplete type gtkrecentmanager.c:590: error: dereferencing pointer to incomplete type gtkrecentmanager.c:595: error: dereferencing pointer to incomplete type gtkrecentmanager.c:596: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_for_screen': gtkrecentmanager.c:683: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `display_closed': gtkrecentmanager.c:697: error: dereferencing pointer to incomplete type gtkrecentmanager.c:698: error: dereferencing pointer to incomplete type gtkrecentmanager.c:703: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `unset_screen': gtkrecentmanager.c:718: error: dereferencing pointer to incomplete type gtkrecentmanager.c:720: error: dereferencing pointer to incomplete type gtkrecentmanager.c:726: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_set_screen': gtkrecentmanager.c:759: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_set_limit': gtkrecentmanager.c:786: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_limit': gtkrecentmanager.c:808: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_add_full': gtkrecentmanager.c:977: error: dereferencing pointer to incomplete type gtkrecentmanager.c:979: error: dereferencing pointer to incomplete type gtkrecentmanager.c:980: error: dereferencing pointer to incomplete type gtkrecentmanager.c:984: warning: implicit declaration of function `g_bookmark_file_set_title' gtkrecentmanager.c:984: error: dereferencing pointer to incomplete type gtkrecentmanager.c:987: warning: implicit declaration of function `g_bookmark_file_set_description' gtkrecentmanager.c:987: error: dereferencing pointer to incomplete type gtkrecentmanager.c:989: warning: implicit declaration of function `g_bookmark_file_set_mime_type' gtkrecentmanager.c:989: error: dereferencing pointer to incomplete type gtkrecentmanager.c:996: warning: implicit declaration of function `g_bookmark_file_add_group' gtkrecentmanager.c:996: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1003: warning: implicit declaration of function `g_bookmark_file_add_application' gtkrecentmanager.c:1003: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1007: warning: implicit declaration of function `g_bookmark_file_set_is_private' gtkrecentmanager.c:1007: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1013: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_remove_item': gtkrecentmanager.c:1048: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1050: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1051: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1061: warning: implicit declaration of function `g_bookmark_file_remove_item' gtkrecentmanager.c:1061: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1069: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_has_item': gtkrecentmanager.c:1098: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1100: warning: implicit declaration of function `g_bookmark_file_has_item' gtkrecentmanager.c:1100: error: dereferencing pointer to incomplete type gtkrecentmanager.c: At top level: gtkrecentmanager.c:1104: error: syntax error before '*' token gtkrecentmanager.c: In function `build_recent_info': gtkrecentmanager.c:1110: error: `bookmarks' undeclared (first use in this function) gtkrecentmanager.c:1110: error: (Each undeclared identifier is reported only once gtkrecentmanager.c:1110: error: for each function it appears in.) gtkrecentmanager.c:1111: error: `info' undeclared (first use in this function) gtkrecentmanager.c:1113: warning: implicit declaration of function `g_bookmark_file_get_title' gtkrecentmanager.c:1114: warning: implicit declaration of function `g_bookmark_file_get_description' gtkrecentmanager.c:1115: warning: implicit declaration of function `g_bookmark_file_get_mime_type' gtkrecentmanager.c:1117: warning: implicit declaration of function `g_bookmark_file_get_is_private' gtkrecentmanager.c:1119: warning: implicit declaration of function `g_bookmark_file_get_added' gtkrecentmanager.c:1120: warning: implicit declaration of function `g_bookmark_file_get_modified' gtkrecentmanager.c:1121: warning: implicit declaration of function `g_bookmark_file_get_visited' gtkrecentmanager.c:1123: warning: implicit declaration of function `g_bookmark_file_get_groups' gtkrecentmanager.c:1123: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1133: warning: implicit declaration of function `g_bookmark_file_get_applications' gtkrecentmanager.c:1133: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1144: warning: implicit declaration of function `g_bookmark_file_get_app_info' gtkrecentmanager.c: In function `IA__gtk_recent_manager_lookup_item': gtkrecentmanager.c:1196: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1198: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1199: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1209: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1224: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_move_item': gtkrecentmanager.c:1268: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1278: warning: implicit declaration of function `g_bookmark_file_move_item' gtkrecentmanager.c:1278: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1287: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_items': gtkrecentmanager.c:1317: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1320: warning: implicit declaration of function `g_bookmark_file_get_uris' gtkrecentmanager.c:1320: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1320: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1327: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1344: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1345: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1349: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `purge_recent_items_list': gtkrecentmanager.c:1370: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1373: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1374: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1376: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1377: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1378: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_purge_items': gtkrecentmanager.c:1406: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1409: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1415: error: dereferencing pointer to incomplete type make[4]: *** [gtkrecentmanager.lo] Error 1 make[4]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/exp/ffox/gtk+-2.9.1' make: *** [all] Error 2 Pls help me out to find a solution. regards, Jala The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@tataelxsi.co.in From jose.francisco.hevia@gmail.com Thu Jun 29 16:57:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 405123B00CC for ; Thu, 29 Jun 2006 16:57:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08622-01 for ; Thu, 29 Jun 2006 16:57:11 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by menubar.gnome.org (Postfix) with ESMTP id EF19B3B00BD for ; Thu, 29 Jun 2006 16:57:10 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c29so144243nfb for ; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Received: by 10.49.28.2 with SMTP id f2mr5801nfj; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Message-ID: Date: Thu, 29 Jun 2006 22:57:09 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Any reason to worry about using wx? (but it uses GTK!?! :) In-Reply-To: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.543 tagged_above=-999 required=2 tests=[AWL=-0.432, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514, SPF_PASS=-0.001] X-Spam-Score: -1.543 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 20:57:13 -0000 2006/6/29, Christian Seberino : > wx uses GTK under the hood...at least on Unix and Linux. > > Can anyone see any problems //down the road// with using wx as far > as losing benefits a pure GTK app would have? wx->- Another layer of stuff. - A subset of GTK, so it could be compatible with others.(you lost control) - GTK works on windows, Unix(X11) and native MacOS is in process. -Look at audacity-> wx , amsn... They are ugly on Linux (seems they use GTK 1.2 or GTK 2.0 without themes)(amsn added themes recently, but I remember a lot of people complaining how bad it was(they judged only by its appearance)) -IMHO win32 is dead, Microsoft needs to sell its new .Net related widgets, wx uses win32. -I have never used wx, so I could be mistaken. Cheers Jose Hevia From c_gilbert@verizon.net Thu Jun 29 23:46:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8428B3B00C7 for ; Thu, 29 Jun 2006 23:46:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23400-08 for ; Thu, 29 Jun 2006 23:46:07 -0400 (EDT) Received: from smtp102.vzn.mail.dcn.yahoo.com (smtp102.vzn.mail.dcn.yahoo.com [209.73.179.140]) by menubar.gnome.org (Postfix) with SMTP id 8387D3B000E for ; Thu, 29 Jun 2006 23:46:07 -0400 (EDT) Received: (qmail 10047 invoked from network); 30 Jun 2006 03:46:06 -0000 Received: from unknown (HELO ?192.168.1.101?) (c?gilbert@verizon.net@71.160.54.146 with login) by smtp102.vzn.mail.dcn.yahoo.com with SMTP; 30 Jun 2006 03:46:06 -0000 Subject: How to save GtkTextBuffers with formatting From: chuck gilbert To: gtk-list@gnome.org Content-Type: text/plain Date: Thu, 29 Jun 2006 20:48:08 -0700 Message-Id: <1151639288.29469.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.091 tagged_above=-999 required=2 tests=[AWL=-0.147, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_NEUTRAL=1.069] X-Spam-Score: 2.091 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 03:46:08 -0000 Is there a way to save and restore GtkTextBuffers with their associated TagTables and markers to files? From AFARRAG@eg.ibm.com Tue Jun 13 11:35:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4E7723B008F for ; Tue, 13 Jun 2006 11:35:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28376-08 for ; Tue, 13 Jun 2006 11:35:21 -0400 (EDT) Received: from mtagate6.uk.ibm.com (mtagate6.uk.ibm.com [195.212.29.139]) by menubar.gnome.org (Postfix) with ESMTP id 7AC3D3B000C for ; Tue, 13 Jun 2006 11:35:13 -0400 (EDT) Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate6.uk.ibm.com (8.13.6/8.13.6) with ESMTP id k5DFYN56121848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Jun 2006 15:34:23 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.6/NCO/VER7.0) with ESMTP id k5DFZbfW134912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Jun 2006 16:35:37 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5DFYNXn008997 for ; Tue, 13 Jun 2006 16:34:23 +0100 Received: from d06ml201.portsmouth.uk.ibm.com (d06ml201.portsmouth.uk.ibm.com [9.149.39.66]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5DFYNZo008994 for ; Tue, 13 Jun 2006 16:34:23 +0100 To: gtk-list@gnome.org Subject: Unable to install gtk2.8 MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 From: Ahmed Farrag Message-ID: X-MIMETrack: Serialize by Router on D06ML201/06/M/IBM(Release 6.5.5HF268 | April 6, 2006) at 13/06/2006 18:34:22 Content-Type: multipart/mixed; boundary="=_mixed 00558CBEC225718C_=" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.171 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.171 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 13 Jun 2006 15:35:26 -0000 X-Original-Date: Tue, 13 Jun 2006 18:34:22 +0300 X-List-Received-Date: Tue, 13 Jun 2006 15:35:26 -0000 --=_mixed 00558CBEC225718C_= Content-Type: multipart/alternative; boundary="=_alternative 00558CBEC225718C_=" --=_alternative 00558CBEC225718C_= Content-Type: text/plain; charset="US-ASCII" Hi, I have RHEL 4 installed on my machine, and I want to update the installed gtk to version 2.8.1 . However each time I try to start the configure script, I got a configuration error stating that I have to install glib, atk, cairo and pango libraries with newer versions than the ones currently installed (see the attached txt file). I have installed glib2.8, atk1.8, cairo 1.0.4 and pango 1.9.1 but it seems that the configure script of gtk can't find them. it finds only the older versions of these libraries. I have found that the version number of glib, atk, cairo and pango lib is hard coded in the configure script , and I think this might be the problem. Would you please advise if there is any workarounds I can make to install gtk. Thanks in advance Best Regards Ahmed Farrag Associate Software Engineer iSeries/Rational NLS Team Globalization - Cairo Technology Development Center (CTDC) - IBM EGYPT Branch Pyramids Heights Office Park, Building C10 Cairo - Alexandria Desert Road, KM 22. Giza, Egypt P.O. Box 166 El-Ahram, Giza ,Egypt Tel: Direct : (+202) 536 1422 Ext: 1422 e-mail: afarrag@eg.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------------------------------ "Nothing so conclusively proves a man's ability to lead others as what he does from day to day to lead himself." >>Thomas J. Watson --=_alternative 00558CBEC225718C_= Content-Type: text/html; charset="US-ASCII"
Hi,

I have RHEL 4 installed on my machine, and I want to update the installed gtk to version 2.8.1 . However each time I try to start the configure script, I got a configuration error stating that I have to install glib, atk, cairo and pango libraries with newer versions than the ones currently installed (see the attached txt file).  I have installed glib2.8, atk1.8, cairo 1.0.4 and pango 1.9.1 but it seems that the configure script of gtk can't find them. it finds only the older versions of these libraries. I have found that the version number of glib, atk, cairo and pango lib is hard coded in the configure script , and I think this might be the problem. Would you please advise if there is any workarounds I can make to install gtk.



Thanks in advance

Best Regards
Ahmed Farrag
Associate Software Engineer
iSeries/Rational NLS Team
Globalization -  Cairo Technology Development Center (CTDC) - IBM EGYPT Branch
Pyramids Heights Office Park, Building C10
Cairo - Alexandria Desert Road, KM 22.
Giza,  Egypt
P.O. Box  166 El-Ahram, Giza ,Egypt
Tel: Direct : (+202) 536 1422
Ext: 1422
e-mail:   afarrag@eg.ibm.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------
"Nothing so conclusively proves a man's ability to lead others as what he does from day to day to lead himself."

>>Thomas J. Watson
--=_alternative 00558CBEC225718C_=-- --=_mixed 00558CBEC225718C_= Content-Type: text/plain; name="fileconf.txt" Content-Disposition: attachment; filename="fileconf.txt" Content-Transfer-Encoding: quoted-printable [root@localhost gtk+-2.8.1]# ./configure --prefix=3D/usr=0Achecking for a B= SD-compatible install... /usr/bin//install -c=0Achecking whether build envi= ronment is sane... yes=0Achecking for gawk... gawk=0Achecking whether make = sets $(MAKE)... yes=0Achecking build system type... i686-pc-linux-gnu=0Ache= cking host system type... i686-pc-linux-gnu=0Achecking for native Win32... = no=0Achecking for gcc... gcc=0Achecking for C compiler default output file = name... a.out=0Achecking whether the C compiler works... yes=0Achecking whe= ther we are cross compiling... no=0Achecking for suffix of executables...= =0Achecking for suffix of object files... o=0Achecking whether we are using= the GNU C compiler... yes=0Achecking whether gcc accepts -g... yes=0Acheck= ing for gcc option to accept ANSI C... none needed=0Achecking for style of = include used by make... GNU=0Achecking dependency style of gcc... gcc3=0Ach= ecking for a sed that does not truncate output... /bin/sed=0Achecking for e= grep... grep -E=0Achecking for ld used by gcc... /usr/bin//ld=0Achecking if= the linker (/usr/bin//ld) is GNU ld... yes=0Achecking for /usr/bin//ld opt= ion to reload object files... -r=0Achecking for BSD-compatible nm... /usr/b= in//nm -B=0Achecking whether ln -s works... yes=0Achecking how to recognise= dependent libraries... pass=5Fall=0Achecking how to run the C preprocessor= ... gcc -E=0Achecking for ANSI C header files... yes=0Achecking for sys/typ= es.h... yes=0Achecking for sys/stat.h... yes=0Achecking for stdlib.h... yes= =0Achecking for string.h... yes=0Achecking for memory.h... yes=0Achecking f= or strings.h... yes=0Achecking for inttypes.h... yes=0Achecking for stdint.= h... yes=0Achecking for unistd.h... yes=0Achecking dlfcn.h usability... yes= =0Achecking dlfcn.h presence... yes=0Achecking for dlfcn.h... yes=0Acheckin= g for g++... g++=0Achecking whether we are using the GNU C++ compiler... ye= s=0Achecking whether g++ accepts -g... yes=0Achecking dependency style of g= ++... gcc3=0Achecking how to run the C++ preprocessor... g++ -E=0Achecking = for g77... g77=0Achecking whether we are using the GNU Fortran 77 compiler.= .. yes=0Achecking whether g77 accepts -g... yes=0Achecking the maximum leng= th of command line arguments... 32768=0Achecking command to parse /usr/bin/= /nm -B output from gcc object... ok=0Achecking for objdir... .libs=0Achecki= ng for ar... ar=0Achecking for ranlib... ranlib=0Achecking for strip... str= ip=0Achecking if gcc static flag works... yes=0Achecking if gcc supports -= fno-rtti -fno-exceptions... no=0Achecking for gcc option to produce PIC... = -fPIC=0Achecking if gcc PIC flag -fPIC works... yes=0Achecking if gcc suppo= rts -c -o file.o... yes=0Achecking whether the gcc linker (/usr/bin//ld) su= pports shared libraries... yes=0Achecking whether -lc should be explicitly = linked in... no=0Achecking dynamic linker characteristics... GNU/Linux ld.s= o=0Achecking how to hardcode library paths into programs... immediate=0Ache= cking whether stripping libraries is possible... yes=0Achecking if libtool = supports shared libraries... yes=0Achecking whether to build shared librari= es... yes=0Achecking whether to build static libraries... no=0Aconfigure: c= reating libtool=0Aappending configuration tag "CXX" to libtool=0Achecking f= or ld used by g++... /usr/bin//ld=0Achecking if the linker (/usr/bin//ld) i= s GNU ld... yes=0Achecking whether the g++ linker (/usr/bin//ld) supports s= hared libraries... yes=0Achecking for g++ option to produce PIC... -fPIC=0A= checking if g++ PIC flag -fPIC works... yes=0Achecking if g++ supports -c -= o file.o... yes=0Achecking whether the g++ linker (/usr/bin//ld) supports s= hared libraries... yes=0Achecking dynamic linker characteristics... GNU/Lin= ux ld.so=0Achecking how to hardcode library paths into programs... immediat= e=0Achecking whether stripping libraries is possible... yes=0Aappending con= figuration tag "F77" to libtool=0Achecking if libtool supports shared libra= ries... yes=0Achecking whether to build shared libraries... yes=0Achecking = whether to build static libraries... no=0Achecking for g77 option to produc= e PIC... -fPIC=0Achecking if g77 PIC flag -fPIC works... yes=0Achecking if = g77 supports -c -o file.o... yes=0Achecking whether the g77 linker (/usr/bi= n//ld) supports shared libraries... yes=0Achecking dynamic linker character= istics... GNU/Linux ld.so=0Achecking how to hardcode library paths into pro= grams... immediate=0Achecking whether stripping libraries is possible... ye= s=0Achecking for special C compiler options needed for large files... no=0A= checking for =5FFILE=5FOFFSET=5FBITS value needed for large files... 64=0Ac= hecking for =5FLARGE=5FFILES value needed for large files... no=0Achecking = for nm... /usr/bin//nm -B=0Achecking whether to enable maintainer-specific = portions of Makefiles... no=0Achecking for some Win32 platform... no=0Achec= king whether build environment is sane... yes=0Achecking for strerror in -l= cposix... no=0Achecking for gcc option to accept ANSI C... none needed=0Ach= ecking for a BSD-compatible install... /usr/bin//install -c=0Achecking whet= her make sets $(MAKE)... (cached) yes=0Achecking for pkg-config... /usr/bin= //pkg-config=0Achecking pkg-config is at least version 0.9.0... yes=0Acheck= ing for BASE=5FDEPENDENCIES=5FCFLAGS...=0Achecking for BASE=5FDEPENDENCIES= =5FLIBS...=0Aconfigure: error: Package requirements (glib-2.0 >=3D 2.7.1 = atk >=3D 1.0.1 pango >=3D 1.9.0 cairo >=3D 0.9.2) were not met.=0ACo= nsider adjusting the PKG=5FCONFIG=5FPATH environment variable if you=0Ainst= alled software in a non-standard prefix.=0A=0AAlternatively you may set the= BASE=5FDEPENDENCIES=5FCFLAGS and BASE=5FDEPENDENCIES=5FLIBS environment va= riables=0Ato avoid the need to call pkg-config. See the pkg-config man pag= e for=0Amore details.=0A= --=_mixed 00558CBEC225718C_=-- From M.Kahn@Astronautics.com Tue Jun 13 21:49:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 031683B00C8 for ; Tue, 13 Jun 2006 21:49:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13055-01 for ; Tue, 13 Jun 2006 21:49:35 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 2BD423B00A5 for ; Tue, 13 Jun 2006 21:49:35 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68F54.A6C559FA" Subject: Button background colors Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FCB1D@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.203 tagged_above=-999 required=2 tests=[AWL=1.318, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -1.203 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 14 Jun 2006 01:49:37 -0000 X-Original-Date: Tue, 13 Jun 2006 20:48:39 -0500 X-List-Received-Date: Wed, 14 Jun 2006 01:49:37 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68F54.A6C559FA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C68F54.A6C559FA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to the = latest military and commercial aircraft control panels.  Thus I am = expected to be able to emulate this with the buttons on my GUI.  So far, I have = failed utterly with GTK.

 

My web searches led me to try some of these processes = – in particular, Havoc Pennington’s “GTK colors = mini-FAQ” is what led me to try using the gtk_widget_get_parent to get the container = widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned = NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which = means I managed to set the background of the Main Window but nothing else, = despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C68F54.A6C559FA-- From suryakiran.gullapalli@gmail.com Thu Jun 1 00:10:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24B3A3B00BB for ; Thu, 1 Jun 2006 00:10:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04016-08 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by menubar.gnome.org (Postfix) with ESMTP id 9B3453B00B8 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so260553nzo for ; Wed, 31 May 2006 21:10:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=N+wbMTsUS0m6ybIQQ6WBzXon9fU/EEzIVq5El3whjJyUR4SAxxBUxIEOsBfVXkeL2YbImX2jAbHiSNiVELVdbozPa3i6O5WTSb6jawRIjg1MW1JZlhMea6gfJPV+YUdgdJ2gGLM2E/7KnKs55/7qEZslYRDyBuFifgtqtukaPXo= Received: by 10.36.160.15 with SMTP id i15mr231979nze; Wed, 31 May 2006 21:10:50 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Wed, 31 May 2006 21:10:50 -0700 (PDT) Message-ID: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Date: Thu, 1 Jun 2006 09:40:50 +0530 From: "Surya Kiran Gullapalli" To: "Tor Lillqvist" In-Reply-To: <17533.16487.144000.523256@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1980_31614517.1149135050887" References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.185, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.28 X-Spam-Level: Cc: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 04:10:54 -0000 ------=_Part_1980_31614517.1149135050887 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > > That's what supposed to happen when one uses the ms-windows theme. > I've got it. The stock icons are coming with other themes. Thanks, Surya ------=_Part_1980_31614517.1149135050887 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
That's what supposed to happen when one uses the ms-windows theme.

I've got it. The stock icons are coming with other themes.
Thanks,
Surya
------=_Part_1980_31614517.1149135050887-- From kaminaga@sm.sony.co.jp Thu Jun 1 02:40:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 71ACE3B00EB for ; Thu, 1 Jun 2006 02:40:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10435-03 for ; Thu, 1 Jun 2006 02:40:55 -0400 (EDT) Received: from ns4.sony.co.jp (NS4.Sony.CO.JP [137.153.0.44]) by menubar.gnome.org (Postfix) with ESMTP id 2A5ED3B00CB for ; Thu, 1 Jun 2006 02:40:54 -0400 (EDT) Received: from mail7.sony.co.jp ([43.0.1.209]) Received: from mail7.sony.co.jp (localhost [127.0.0.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516eqQM024123 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516epjT024108 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k516epY19677 for ; Thu, 1 Jun 2006 15:40:51 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k516fCXh017466 for ; Thu, 1 Jun 2006 15:41:12 +0900 (JST) Date: Thu, 01 Jun 2006 15:37:37 +0900 (JST) Message-Id: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> To: gtk-list@gnome.org From: Hiroki Kaminaga X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.184 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.184 X-Spam-Level: Subject: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 06:40:57 -0000 Hi, I'm trying to build GTK+ for ARM architecture, my target board is TI OMAP Starter Kit 5912 (OSK5912). >From the GTK+ FAQ, I built below package: pkg-config GNU make JPEG, PNG, TIFF libraries FreeType2 fontconfig (iconv was in glibc) gettext Glib Pango ATK and when I tryed to build GTK+, configure gave me below message: * * * checking for X... no configure: error: X development libraries not found * * * Is X required package? ARM has a limited resource, so if it is not necessary, I would like to avoid installing it. Thanks in Advance. (Hiroki Kaminaga) t -- From carlo-ag@libero.it Thu Jun 1 03:15:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CA9B63B0C35 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11982-05 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from relay-pt1.poste.it (relay-pt1.poste.it [62.241.4.164]) by menubar.gnome.org (Postfix) with ESMTP id C4C5A3B0109 for ; Thu, 1 Jun 2006 03:15:39 -0400 (EDT) Received: from [192.168.1.52] (151.37.218.171) by relay-pt1.poste.it (7.2.063) (authenticated as carlo.agrusti@poste.it) id 44119E620017FBFA for gtk-list@gnome.org; Thu, 1 Jun 2006 09:15:38 +0200 Message-ID: <447E9418.5010106@libero.it> Date: Thu, 01 Jun 2006 09:15:36 +0200 From: Carlo Agrusti User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> In-Reply-To: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> X-Enigmail-Version: 0.93.0.0 OpenPGP: id=9C055DBF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.476 tagged_above=-999 required=2 tests=[AWL=-0.785, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.476 X-Spam-Level: Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:15:41 -0000 Hiroki Kaminaga ha scritto lo scorso 01/06/2006 08:37: > Hi, > > I'm trying to build GTK+ for ARM architecture, my target board is > TI OMAP Starter Kit 5912 (OSK5912). > >>From the GTK+ FAQ, I built below package: > pkg-config > GNU make > JPEG, PNG, TIFF libraries > FreeType2 > fontconfig > (iconv was in glibc) > gettext > Glib > Pango > ATK > > and when I tryed to build GTK+, configure gave me below message: > * * * > checking for X... no > configure: error: X development libraries not found > * * * > > Is X required package? Yes, it is (unless you are using the old and unmaintained framebuffer back end). > ARM has a limited resource, so if it is not > necessary, I would like to avoid installing it. > Don't use full X server; if you enable KDrive, you will have a fully featured "tiny" X server for less than 1 MiB (compare it with a modern glibc environment and you will discover where your resources are used). From kaminaga@sm.sony.co.jp Thu Jun 1 03:46:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 793603B0C4E for ; Thu, 1 Jun 2006 03:46:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13720-10 for ; Thu, 1 Jun 2006 03:46:31 -0400 (EDT) Received: from ns6.sony.co.jp (NS6.Sony.CO.JP [137.153.0.32]) by menubar.gnome.org (Postfix) with ESMTP id 0334C3B0110 for ; Thu, 1 Jun 2006 03:46:29 -0400 (EDT) Received: from mail6.sony.co.jp ([43.0.1.208]) Received: from mail6.sony.co.jp (localhost [127.0.0.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRjJ023935; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRRt023922; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k517kQY24496; Thu, 1 Jun 2006 16:46:26 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k517kk68014618; Thu, 1 Jun 2006 16:46:47 +0900 (JST) Date: Thu, 01 Jun 2006 16:43:12 +0900 (JST) Message-Id: <20060601.164312.41633181.kaminaga@sm.sony.co.jp> To: carlo-ag@libero.it From: Hiroki Kaminaga In-Reply-To: <447E9418.5010106@libero.it> References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> <447E9418.5010106@libero.it> X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:46:32 -0000 From: Carlo Agrusti > Don't use full X server; if you enable KDrive, you will have a fully > featured "tiny" X server for less than 1 MiB (compare it with a modern > glibc environment and you will discover where your resources are used). Thank you! (Hiroki Kaminaga) t -- From kereoz@yahoo.fr Thu Jun 1 04:42:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F0E363B00DE for ; Thu, 1 Jun 2006 04:42:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17618-03 for ; Thu, 1 Jun 2006 04:42:36 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id C57323B00CD for ; Thu, 1 Jun 2006 04:42:35 -0400 (EDT) Received: (qmail 90880 invoked by uid 60001); 1 Jun 2006 08:42:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SOSnkJ16bagATwum4KefozXDgJ6fNTELp2hlhxrZ18sFApRnFZ2uY4nD+XvPhLcAJLolKMxgKsoCZk2C0xq2bxeC1M45xM6rsDN3nmiDPbam+/dTLt9nVK8hBL/wJXkIJI+1e1bGiFduHMquH1OHHZO/CZysGRmiQOduxm7a+bw= ; Message-ID: <20060601084234.90878.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 01 Jun 2006 10:42:34 CEST Date: Thu, 1 Jun 2006 10:42:34 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.36 tagged_above=-999 required=2 tests=[AWL=-0.319, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.36 X-Spam-Level: Subject: Re: Widgets overlap X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 08:42:39 -0000 Hi, First, thanks for your answers :) But I didn't ask the good question : in fact, I'd like to overlap a video output widget and a Mozilla gecko widget. I want to put the browser on top of the video output, so you can see the video through the brower. In a word, the browser should be transparent. I know this is possible to do such things when the video widget works with framebuffer. Some poeple did such things with DirectX already, and I'm looking for a way to do it with GTK. Christophe HAUSER http://kereoz.sup.fr ___________________________________________________________________________ Yahoo! Mail r閕nvente le mail ! D閏ouvrez le nouveau Yahoo! Mail et son interface r関olutionnaire. http://fr.mail.yahoo.com From katsuo_harada_evil_does@hotmail.com Thu Jun 1 11:17:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C53B13B0DB9 for ; Thu, 1 Jun 2006 11:17:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15140-10 for ; Thu, 1 Jun 2006 11:17:02 -0400 (EDT) Received: from hotmail.com (bay105-f37.bay105.hotmail.com [65.54.224.47]) by menubar.gnome.org (Postfix) with ESMTP id BC3F83B0DA9 for ; Thu, 1 Jun 2006 11:16:58 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Jun 2006 08:16:57 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 01 Jun 2006 15:16:55 GMT X-Originating-IP: [86.200.250.161] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Thu, 01 Jun 2006 17:16:55 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 01 Jun 2006 15:16:57.0804 (UTC) FILETIME=[6C7428C0:01C6858E] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.275 tagged_above=-999 required=2 tests=[AWL=0.891, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BG=0.077] X-Spam-Score: 0.275 X-Spam-Level: Subject: GLib 2.11.1 FreeBSD make fails X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 15:17:07 -0000 Hello, All! I've already posted a make issue here not so long time ago. Here we come again. For a history i'm building a desktop station based on FreeBSD 4.11-RELEASE (GENERIC) kernel. while building GLib-2.11.1 i've got the following errors : http://pages-perso.esil.univ-mrs.fr/~vdoljiko/pub/make.log +++++++ HERE COMES AN EXTRAIT ++++++++ [SNIP] Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r [COMMENT] Notice the presence of -lc_r option [/COMMENT] gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib [COMMENT] Notice the absence of the -lc_r option [/COMMENT] gcc: unrecognized option `-pthreads' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_signal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getspecific' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_exit' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_equal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setscope' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_broadcast' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_key_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setstacksize' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_unlock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_self' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_lock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_wait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_trylock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setdetachstate' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_join' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_timedwait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setspecific' *** Error code 1 Stop in /home/libs/glib-2.11.1/tests/refcount. *** Error code 1 Stop in /home/libs/glib-2.11.1/tests. *** Error code 1 Stop in /home/libs/glib-2.11.1. *** Error code 1 Stop in /home/libs/glib-2.11.1. ++++++++++++++ END +++++++++++++++++++++++++++ as you can see the problem comes IMHO from badly compiled libgthread because it was compiled without -lc_r option. libc_r.a is the implementation of threads on FreeBSD system. During configure of GLib-2.11.1 i've specified LIBS=-lc_r and even LDFLAGS=-lc_r (!!! :-) ) but libgthread IMHO wasn't properly compiled. It seems that libtool and compagny line invoked from Makefile preserves -lc_r option but the effective command doesn't include -lc_r option as you can see in the example above. BUT libgthread don't reference pthread functions as result we get the above errors. 2. as you can see the line Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r specifies -lc_r option BUT when executing the effective command this option is not present! WHY! i'm using GNU make latest specially build for freetype build. i've solved the problem by manually writing gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib -lc_r in Makefile in tests/refcount directory for each target (closures properties signals) and it worked, but i'm wondering if there won't be any problems on run-time ??? i should also say that the exactly the same problem occurs in test directory whiile compiling error-mutex-something.c what can you say about this ??? how should i proceed in order to build "proper" glib-2.11.1 ??? p.s while compiling pkg-config early i've got the same problems but in gthread subdirectory. was solved in the same manner by mannualy adding -lc_r option but not in make file but on the command line. as make checks for newer versions and dependencies it was sufficent. but in GLib-2.11.1 compiling mannually don't work because of rm -f before building each target. -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From dkasak@nusconsulting.com.au Thu Jun 1 22:11:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 095BB3B0196 for ; Thu, 1 Jun 2006 22:11:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23630-03 for ; Thu, 1 Jun 2006 22:11:15 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 9D4E63B010C for ; Thu, 1 Jun 2006 22:11:14 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k522CNvG022220; Fri, 2 Jun 2006 12:12:23 +1000 Message-ID: <447F9E48.6090304@nusconsulting.com.au> Date: Fri, 02 Jun 2006 12:11:20 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Surya Kiran Gullapalli , gtk-list@gnome.org References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> In-Reply-To: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 451465 - be5dc1df8278 X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=451465&m=be5dc1df8278 X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=451465&m=be5dc1df8278 X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=451465&m=be5dc1df8278 X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.428 tagged_above=-999 required=2 tests=[AWL=0.171, BAYES_00=-2.599] X-Spam-Score: -2.428 X-Spam-Level: Cc: Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 02:11:17 -0000 Surya Kiran Gullapalli wrote: > > That's what supposed to happen when one uses the ms-windows theme. > > > I've got it. The stock icons are coming with other themes. > Thanks, > Surya How are you installing / changing themes under Windows? I've been using a utility from http://members.lycos.co.uk/alexv6/ but if there are others, I'd like to know. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From lists@nabble.com Fri Jun 2 01:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A34C53B030A for ; Fri, 2 Jun 2006 01:41:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32639-07 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 15A363B0341 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm2Pf-0007IZ-7Z for gtk-list@gnome.org; Thu, 01 Jun 2006 22:41:35 -0700 Message-ID: <4674575.post@talk.nabble.com> Date: Thu, 1 Jun 2006 22:41:35 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <43ACACCA.70309@micahcarrick.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <43ACACCA.70309@micahcarrick.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 05:41:37 -0000 Maybe I am having the same question as you do. I am trying to display a 24bit image with size 2048X2048 pixels, and following is my code: //create a GdkPixbuf GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer GDK_COLORSPACE_RGB, //COLORSPACE FALSE, // has_alpha, 8, // int bits_per_sample, 2048, // int width, 2048, // int height, 2048*3, // sizeX*3; //int rowstride, NULL, //GdkPixbufDestroyNotify destroy_fn, NULL //gpointer destroy_fn_data); ); //display img GtkWidget* img = lookup_widget(MainWnd, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(img), //GtkImage *image, pb// GdkPixbuf *pixbuf ); the results i got is that: the image did appear, but the sizes are shrinked as 684 X 684 , and there are THREE same images tile in the viewport, the first and last ones are clipped. Can anyone tell me how to fix this? thanks!! -- View this message in context: http://www.nabble.com/Help-with-GdkPIxbuf-and-GtkImage...-t800118.html#a4674575 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Fri Jun 2 03:28:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 436273B08CC for ; Fri, 2 Jun 2006 03:28:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06135-06 for ; Fri, 2 Jun 2006 03:28:26 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1BD913B1044 for ; Fri, 2 Jun 2006 03:28:21 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm44x-0003Cd-RJ for gtk-list@gnome.org; Fri, 02 Jun 2006 00:28:19 -0700 Message-ID: <4675519.post@talk.nabble.com> Date: Fri, 2 Jun 2006 00:28:19 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <20060314073947.e7cba872.lists@elehack.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.527 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.527 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:28:29 -0000 Hi Michael, I am a beginner in Linux programming, and your suggestion works! But I am still having some problem that the CPU usage is always 100% after the program starts. Could you please look at my code below and give me some suggestion? Thanks a lot!!! Following is some of my code: // idle handler of the main loop gboolean OnIdle(int msgQid) { if(thread_signal) { RefreshImage(); } return TRUE; } int main (int argc, char *argv[]) { gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); //register an idle handler to update the image when the background thread emits a signal gdk_threads_enter(); g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a * PyGTK/GTKmm guy, so the C stuff * isn't my forte */ gdk_threads_leave(); MainWnd = create_MainWnd (); gtk_widget_show (MainWnd); gtk_main (); return 0; } -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Fri Jun 2 03:45:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F5423B1055 for ; Fri, 2 Jun 2006 03:45:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07057-07 for ; Fri, 2 Jun 2006 03:45:02 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id F1BFC3B104E for ; Fri, 2 Jun 2006 03:45:01 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp1-g19.free.fr (Postfix) with ESMTP id 9B0EE9A3E2; Fri, 2 Jun 2006 09:45:00 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4675519.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 09:47:58 +0200 Message-Id: <1149234479.10209.10.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.848 tagged_above=-999 required=2 tests=[AWL=-0.395, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.848 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:45:03 -0000 Le vendredi 02 juin 2006 脿 00:28 -0700, heavenscape a 茅crit : > Hi Michael, > > I am a beginner in Linux programming, and your suggestion works! But I am > still having some problem that the CPU usage is always 100% after the > program starts. Could you please look at my code below and give me some > suggestion? > > Thanks a lot!!! > > Following is some of my code: > > // idle handler of the main loop > gboolean OnIdle(int msgQid) > { > if(thread_signal) > { > RefreshImage(); > } > return TRUE; > } Do you need to reexecute indefinitely this idle handler? If not use: return FALSE; > int main (int argc, char *argv[]) > { > gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, > argc, argv, > GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, > NULL); > > //register an idle handler to update the image when the background thread > emits a signal > gdk_threads_enter(); > g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a > * PyGTK/GTKmm guy, so the C stuff > * isn't my forte */ > gdk_threads_leave(); > > MainWnd = create_MainWnd (); > gtk_widget_show (MainWnd); > > gtk_main (); > return 0; > } > > -- > View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From lists@nabble.com Fri Jun 2 06:33:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D3563B03E4 for ; Fri, 2 Jun 2006 06:33:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18136-04 for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 6ACDD3B030A for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm6y0-0004Vq-NT for gtk-list@gnome.org; Fri, 02 Jun 2006 03:33:20 -0700 Message-ID: <4677462.post@talk.nabble.com> Date: Fri, 2 Jun 2006 03:33:20 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <1149234479.10209.10.camel@athlon.brefort.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 10:33:27 -0000 Yes! My background thread will send a message when it has finished something, so I do need the check the message status frequently. If my OnIdle function return false, it will never be called again, and therefore cannot monitor the message status any more. Is there any alternate solution? Thanks a lot!! -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4677462 Sent from the Gtk+ - General forum at Nabble.com. From george@clipper.ens.fr Fri Jun 2 09:36:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CE273B0401 for ; Fri, 2 Jun 2006 09:36:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29496-08 for ; Fri, 2 Jun 2006 09:36:35 -0400 (EDT) Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by menubar.gnome.org (Postfix) with ESMTP id 0462C3B03FE for ; Fri, 2 Jun 2006 09:36:34 -0400 (EDT) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id k52DaXPt088553 for ; Fri, 2 Jun 2006 15:36:33 +0200 (CEST) X-Envelope-To: Received: from (george@localhost) by clipper.ens.fr (8.13.1/jb-1.1) Date: Fri, 2 Jun 2006 15:36:33 +0200 From: Nicolas George To: gtk-list@gnome.org Message-ID: <20060602133633.GA9572@clipper.ens.fr> References: <1149104973.27709.4.camel@localhost.localdomain> <7bf6f2dc0606010816q15d512aejc30a6c93bc165e6@mail.gmail.com> <1149253312.4847.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <1149253312.4847.21.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.10 (nef2.ens.fr [129.199.96.32]); Fri, 02 Jun 2006 15:36:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[AWL=0.054, BAYES_00=-2.599] X-Spam-Score: -2.545 X-Spam-Level: Subject: Re: Color space transformations in GTK X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 13:36:38 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le quartidi 14 prairial, an CCXIV, Carlos Eduardo Rodrigues Diogenes a =E9c= rit=A0: > I think that it will help who want to play with colors in a quick way. I > don't find this in any other library, and I thinked that GTK+ could be a > good place for this, because it will become easiest to work with other > colors representations in GTK+ applications. Did you try lcms ? Despite being quite complete, it is also simple for simple tasks. --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (SunOS) iD8DBQFEgD7hsGPZlzblTJMRAh3AAJ4y7eJCapcSqGa0p/kKpw5km+O+2QCfR5Xv BafttugMjFnieL87fO646B4= =R3g0 -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From Valdis.Kletnieks@vt.edu Fri Jun 2 10:32:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B6FA03B0272 for ; Fri, 2 Jun 2006 10:32:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32747-03 for ; Fri, 2 Jun 2006 10:32:00 -0400 (EDT) Received: from turing-police.cc.vt.edu (pool-72-66-198-190.ronkva.east.verizon.net [72.66.198.190]) by menubar.gnome.org (Postfix) with ESMTP id B51C63B0238 for ; Fri, 2 Jun 2006 10:31:59 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k52EVr54003265; Fri, 2 Jun 2006 10:31:53 -0400 Message-Id: <200606021431.k52EVr54003265@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: heavenscape In-Reply-To: Your message of "Thu, 01 Jun 2006 22:41:35 PDT." <4674575.post@talk.nabble.com> From: Valdis.Kletnieks@vt.edu References: <43ACACCA.70309@micahcarrick.com> <4674575.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1149258713_2700P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 02 Jun 2006 10:31:53 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.827 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961, RCVD_IN_NJABL_DUL=1.946, SPF_SOFTFAIL=1.384] X-Spam-Score: 1.827 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:32:02 -0000 --==_Exmh_1149258713_2700P Content-Type: text/plain; charset=us-ascii On Thu, 01 Jun 2006 22:41:35 PDT, heavenscape said: > //create a GdkPixbuf > GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer > GDK_COLORSPACE_RGB, //COLORSPACE > FALSE, // has_alpha, > 8, // int bits_per_sample, > 2048, // int width, > 2048, // int height, > 2048*3, // sizeX*3; //int rowstride, > NULL, //GdkPixbufDestroyNotify destroy_fn, > NULL //gpointer destroy_fn_data); > ); > the results i got is that: the image did appear, but the sizes are shrinked > as 684 X 684 , and there are THREE same images tile in the viewport, the > first and last ones are clipped. 684 is 2048/3, plus rounding. Are you sure that when you *loaded* the image into your pDisplayBuf, you correctly calculated where the various bytes go? Assuming pixel values r, g, and b, storing them into your pDisplayBuf for a given x,y (0-based coordinates 0..2047) is like this: pDisplayBuf[x*3+y] = r; pDisplayBuf[x*3+y+1] = g; pDisplayBuf[x*3+y+2] = b; Hmm... using x+y instead of x*3+y will produce a 1/3 width image and 2/3 trash. Other possibility is you're using 3*y+x instead (confusion of x/y between your code and what Gdk expects). --==_Exmh_1149258713_2700P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEgEvZcC3lWbTT17ARAhTUAJ4zzY8i6PbLXYW709arggnJGSHTEgCg6YNz WALAkmi+KDAQus4gx/9nsnc= =/pC/ -----END PGP SIGNATURE----- --==_Exmh_1149258713_2700P-- From jean.brefort@normalesup.org Fri Jun 2 10:58:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 708E23B1174 for ; Fri, 2 Jun 2006 10:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01643-02 for ; Fri, 2 Jun 2006 10:58:23 -0400 (EDT) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id 73B6A3B1194 for ; Fri, 2 Jun 2006 10:58:18 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id CA2F254B3D; Fri, 2 Jun 2006 16:58:16 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 17:01:16 +0200 Message-Id: <1149260476.8914.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.89 tagged_above=-999 required=2 tests=[AWL=-0.360, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.89 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:58:41 -0000 Le vendredi 02 juin 2006 脿 03:33 -0700, heavenscape a 茅crit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? You can use a timer, or display the message from your thread, or ... from the thread, you might use something as: gdk_threads_enter(); RefreshImage(); gdk_threads_leave(); From patrick.jacquotf@free.fr Fri Jun 2 14:47:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C93393B01E0 for ; Fri, 2 Jun 2006 14:47:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15276-10 for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 6763B3B01BA for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp6-g19.free.fr (Postfix) with ESMTP id 62746226CC; Fri, 2 Jun 2006 20:47:48 +0200 (CEST) From: Patrick Jacquot To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 20:47:40 +0200 Message-Id: <1149274060.8687.52.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 18:47:54 -0000 Le vendredi 02 juin 2006 脿 03:33 -0700, heavenscape a 茅crit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? Usually, one establishes a callback function to to be called when a message is due to be serviced. I'm not fluent in GTK programming (nor in English), but all GUI systems work so. -- Patrick From gnome-gtk-list@m.gmane.org Sun Jun 4 19:35:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4EAE3B0429 for ; Sun, 4 Jun 2006 19:35:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18939-10 for ; Sun, 4 Jun 2006 19:35:11 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 0D3193B0409 for ; Sun, 4 Jun 2006 19:35:10 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fn27a-0002sx-IN for gtk-list@gnome.org; Mon, 05 Jun 2006 01:35:02 +0200 Received: from cpe-72-130-182-162.san.res.rr.com ([72.130.182.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 Received: from swbrown by cpe-72-130-182-162.san.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Steven Brown Date: Sun, 04 Jun 2006 16:27:05 -0700 Lines: 9 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe-72-130-182-162.san.res.rr.com User-Agent: Thunderbird 1.5.0.2 (X11/20060516) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.524 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.524 X-Spam-Level: Subject: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2006 23:35:12 -0000 I've been going through the glib docs trying to find a simple way to get my fd polled by glib's main loop and call me back, but I've not found anything near simple. Is there such a way? E.g., something like gdk_input_add (which says it's deprecated but doesn't say by what). I see that it could be implemented by a custom g_source_new and such, but doing so is a pretty huge amount of code for what should be a one-liner. I must be missing something obvious. From tristan.van.berkom@gmail.com Sun Jun 4 20:22:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7D323B0531 for ; Sun, 4 Jun 2006 20:22:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21420-01 for ; Sun, 4 Jun 2006 20:22:16 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id ABF0A3B05C2 for ; Sun, 4 Jun 2006 20:22:09 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i3so885889wra for ; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=rGr3/uC/YjBwRnO7oTslcMuIA9XLNEuzYxfx1mSmalOpfI5DfMvRkAHrJm5Uu4mO4fRWnEh4XiD/dS6k78RZC8DI+4xudasUUhtMNMAELaVGjCd2ZwBoZwXs7im6w9gxcnx+XmxCfeSUgDeWR1qP4mLIJ8IYyx0sU8kTo2Z5nKA= Received: by 10.54.111.13 with SMTP id j13mr4300960wrc; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) Received: from ?66.48.170.25? ( [66.48.170.25]) by mx.gmail.com with ESMTP id 33sm2256255wra.2006.06.04.17.22.06; Sun, 04 Jun 2006 17:22:08 -0700 (PDT) Message-ID: <44837CEA.9020604@gnome.org> Date: Sun, 04 Jun 2006 20:38:02 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Brown References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.196 tagged_above=-999 required=2 tests=[AWL=0.404, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.196 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 00:22:20 -0000 Steven Brown wrote: >I've been going through the glib docs trying to find a simple way to get >my fd polled by glib's main loop and call me back, but I've not found >anything near simple. Is there such a way? E.g., something like >gdk_input_add (which says it's deprecated but doesn't say by what). > >I see that it could be implemented by a custom g_source_new and such, >but doing so is a pretty huge amount of code for what should be a >one-liner. I must be missing something obvious. > > > Well its not a one-liner... but something close to a one-liner: ================================== GIOChannel *channel = g_io_channel_unix_new (fd_to_poll); guint source_id = g_io_add_watch (channel, /* args of add_watch... */); /* For convenience... pass ownership of the channel to the attached GIOWatchSource */ g_object_unref (channel); /* .... */ At this point your callback will be called under the conditions you specified... when you are finished with the polling... you should call g_source_remove(source_id); and this will get rid of the io channel object as well as your poll function. ================================== Cheers, -Tristan From mclasen@redhat.com Mon Jun 5 14:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 744343B09D3; Mon, 5 Jun 2006 14:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20278-06; Mon, 5 Jun 2006 14:15:01 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id D637E3B0988; Mon, 5 Jun 2006 14:15:00 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF08I024331; Mon, 5 Jun 2006 14:15:00 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF0I9021827; Mon, 5 Jun 2006 14:15:00 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55IExAV012588; Mon, 5 Jun 2006 14:14:59 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Mon, 05 Jun 2006 14:14:59 -0400 Message-Id: <1149531299.4071.35.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: Cc: Subject: GLib 2.11.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 18:15:03 -0000 GLib 2.11.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.2.tar.bz2 md5sum: 18464b85bfd589f83897623c637a1553 glib-2.11.2.tar.gz md5sum: f728cd295ac98d4b95d850fe91c05fd5 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.1 to GLib 2.11.2 =================================================== * Add g_ascii_stroll to parse signed 64bit integers * GMarkup: add a flag to treat CDATA as text * GHashTable: add functions to remove all entries * GMainLoop: add functions to find the currently running source, and determine if it is destroyed * Bug fixes: 342563 g_atomic_thread_init() needs to be called before other _g_*_thread_init() functions 343548 Potential use after free in callers of g_string_free() 168538 Wish: Clearing contents of GHashTables 321886 GTK+ cannot be reliably used in multi-threaded applications 341826 goption.c: 'strtoll' is C99's function 343899 g_ascii_formatd dosn't work as expected for all format strings 317793 Make GEnumValue strings const 337129 Compile warnings in G_IMPLEMENT_INTERFACE 303622 What is G_TYPE_CHAR? * Updated translations (bg,dz,eu,gl,ja,nl,th,vi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=341826,342563,343548,168538,168538,321886,343899,321886,317793,337129,303622 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Peter Kjellerstedt, Kazuki Iwamoto Leonard den Ottolander, Chris Wilson, Behdad Esfahbod, Matt Barnes, 脴ystein Johansen, Tim Janik Morten Welinder Matthias Clasen June 5, 2006 From mclasen@redhat.com Mon Jun 5 16:21:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 09B113B0543; Mon, 5 Jun 2006 16:21:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28553-01; Mon, 5 Jun 2006 16:21:32 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 0F8903B0012; Mon, 5 Jun 2006 16:21:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLVn7006951; Mon, 5 Jun 2006 16:21:31 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLUBq020469; Mon, 5 Jun 2006 16:21:31 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55KLUAV025318; Mon, 5 Jun 2006 16:21:30 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 05 Jun 2006 16:21:30 -0400 Message-Id: <1149538890.4071.40.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_XI=0.077] X-Spam-Score: -2.429 X-Spam-Level: Cc: Subject: GTK+ 2.9.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 20:21:34 -0000 GTK+ 2.9.2 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.2.tar.gz md5sum: c63e7d0cf7c4e983206c3088a0fb8862 gtk+-2.9.2.tar.bz2 md5sum: 17629437af44fce03485101371c8f041 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.1 to 2.9.2 ============================================ * GtkPrintOperation - Support asynchronous pagination with the ::paginate signal - Add gtk_print_operation_cancel - Support application-specific widgets - Allow disabling features based on application capabilities - Optionally show progress - Change some function names in GtkPrintContext to be longer and better - Support preview, the default implementation spawns evince, but the api allows for an internal preview implementation * GtkCellView - Add a model property * GtkStatusIcon - Allow to obtain screen geometry * GtkTreeView - Many bug fixes, in particular for RTL handling - Separate sensitive and selectable properties of rows - Optionally allow rubberband selection * GtkButton - Add image-spacing style property - Add image-position property * GtkToolButton - Add icon-spacing style property * Make GTK+ work as an untrused X client * Bugs fixed: 343838 gtkprintoperationpreview.h guards 305530 Crashes while creating source code w/GtkFontSelection 341327 Memory corruption inside glib 341734 cursor blocked to dnd mode after using shift and dnd on a GtkCalendar 343453 G_DEFINE_TYPE messes up internal typenames of GdkWindow and GdkPixmap 136571 Problems running as untrusted client 168105 the right edge tab does not appear when switching tab 172535 Add support for UI builders in gtk+ 302556 GtkTreeView widget signals are badly documented 324480 Selecting first item with keyboard is difficult 340428 small cleanup 340444 don't run the custom page size dialogue 340839 Critical warnings in GtkTreeModelFilter 341898 gtk_tree_view_insert_column_with_attributes doesn't work with fixed_height_mode 342003 DnD: Conditional jump or move depends on uninitialised value 342072 Wrong drop location in GtkEntry 342096 GtkImage animation CRITICALS on switching themes 342513 widget class style property with type module 342529 gdk should set resolution on PangoCairoFontmap, not PangoCairoContext 342535 Add documentation for new GtkWidget style properties (including Since tags) 342543 can't compile gtk+ on opensolaris using sun cc 342569 Typo in decl of gdk_color_parse 342752 Need a way to specify custom tab label for custom page in Print dialog 342754 print-editor: font button dialog doesn't get focus if main window has a window group 342781 GtkPrintUnixDialog: Collate should be insensitive unless Copies is > 1 342783 GtkPrintUnixDialog: Range textinput area should be insensitive unless range radiobutton is selected 342894 Use after free inside gtk_text_view_set_buffer 342930 GtkButton should offer a way to position the image relative to the text 343088 Some typos in the PO file 343425 "grab-notify"-signal is not correctly propagated for internal children 343438 gtk_color_button_set_color() doesn't emit "color-set" signal 343475 page setup unix dialog confusion 343625 allow to get only some info from gtk_status_icon_get_geometry 343677 GtkWindow chains key-release to key-press 320431 Text too close when using East/West in a GtkToolButton 321523 GtkTreeView's test_expand_row signal emitting impractical on row expand all 342007 Warning in gtk_paned_compute_position 343233 gdk_rectangle_intersect doc 333284 expander animation not working in RTL mode 343444 change color of gtk-demo source-buffer comment color from red to DodgerBlue 343630 Small inconsistence in migration documentation 80127 Rubberbanding for GtkTreeView 341450 status icon + libnotify 341679 Allow absolute filenames in the options entries * Updated translations (bg,cy,de,el,es,et,eu,gl,gu,it,ja, nb,nl,pt_BR,th,vi) Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Alexander Larsson, Behdad Esfahbod, Benjamin Berg, Caolan McNamara, Carlos Garnacho Parro, Carol Spears, Christian Persch, Chris Wilson, Claudio Saavedra, Clytie Siddall, Damon Chaplin, Daniel Lindenaar, Dan Winship, Diana Fong, Ed Catmur, Emmanuele Bassi, Havoc Pennington, Henrique Romano, Hiroyuki Ikezoe, James Moger, Johan Dahlin, Kouhei Sutou, Kristian Rietveld, Markku Vire, Mart Raudsepp, Masatake Yamato, Michael Emmel, Michael Natterer, Murray Cumming, Olexiy Avramchenko, Paolo Borelli, Patrick Monnerat, Richard Hult, Sampo Savolainen, Sebastien Bacher, Srirama Sharma, Stefan Kost, Tim Janik, Tommi Komulainen, Tor Lillqvist, Yevgen Muntyan A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=342072,342096,342003,341734,305530,168105,342007,342529,342535,342543,342569,341679,342752,172535,342513,342781,342783,342754,136571,341450,333284,340428,340839,341898,321523,343088,343233,324480,342894,320431,342930,343453,343425,343438,343444,340444,343475,302556,343677,343625,80127,343838,341327,168105,343630 Matthias Clasen June 5, 2006 From katsuo_harada_evil_does@hotmail.com Mon Jun 5 17:23:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 859933B03A0 for ; Mon, 5 Jun 2006 17:23:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01136-07 for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from hotmail.com (bay105-f27.bay105.hotmail.com [65.54.224.37]) by menubar.gnome.org (Postfix) with ESMTP id 80FF43B086B for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 14:23:24 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 21:23:22 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Mon, 05 Jun 2006 23:23:22 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 21:23:24.0257 (UTC) FILETIME=[470DA510:01C688E6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.332 tagged_above=-999 required=2 tests=[AWL=-0.716, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.332 X-Spam-Level: Subject: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:23:28 -0000 Hello, i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 when running gtk-demo -> UI Manger demo i've got the following output http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log when trying File menu. is it a bug or not ??? -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Windows Live Messenger : venez tester la version b阾a ! http://www.ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73 From tomasek@ebed.etf.cuni.cz Mon Jun 5 17:57:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 048853B0963 for ; Mon, 5 Jun 2006 17:57:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03329-04 for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (ebed.etf.cuni.cz [195.113.5.3]) by menubar.gnome.org (Postfix) with ESMTP id 1BFA13B086C for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (localhost.localdomain [127.0.0.1]) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11) with ESMTP id k55LkIq0015361 for ; Mon, 5 Jun 2006 23:46:18 +0200 Received: (from tomasek@localhost) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11/Submit) id k55LkIAG015359 for gtk-list@gnome.org; Mon, 5 Jun 2006 23:46:18 +0200 Date: Mon, 5 Jun 2006 23:46:18 +0200 From: Petr Tomasek To: gtk-list@gnome.org Message-ID: <20060605214618.GA14951@ebed.etf.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Homepage: http://www.etf.cuni.cz/~tomasek/ X-Echelon: bomb Arafat Intifada bus kach drugs mafia boss heroin spy Semtex Saddam Al-Qaida Usama bin Ladin Bush Sharon X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.494 X-Spam-Level: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:57:53 -0000 On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > Hello, > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > when running gtk-demo -> UI Manger demo i've got the following output > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > when trying File menu. is it a bug or not ??? Did you also update the gtk2-engines? -- Petr Tomasek From katsuo_harada_evil_does@hotmail.com Mon Jun 5 18:13:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A06E33B08BD for ; Mon, 5 Jun 2006 18:13:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04035-10 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from hotmail.com (bay105-f10.bay105.hotmail.com [65.54.224.20]) by menubar.gnome.org (Postfix) with ESMTP id 1E6233B0929 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 15:13:06 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 22:13:05 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com In-Reply-To: <20060605214618.GA14951@ebed.etf.cuni.cz> From: "Vitaly D" To: tomasek@etf.cuni.cz, gtk-list@gnome.org Date: Tue, 06 Jun 2006 00:13:05 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 22:13:06.0099 (UTC) FILETIME=[385EA030:01C688ED] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.375 tagged_above=-999 required=2 tests=[AWL=-0.759, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.375 X-Spam-Level: Cc: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 22:13:11 -0000 >From: Petr Tomasek >To: gtk-list@gnome.org >Subject: Re: gtk+-2.9.2 bug or not ??? >Date: Mon, 5 Jun 2006 23:46:18 +0200 > >On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > > Hello, > > > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > > > when running gtk-demo -> UI Manger demo i've got the following output > > > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > > > when trying File menu. is it a bug or not ??? > >Did you also update the gtk2-engines? what is gtk2-engines ? i'm using FreeBSD 4.11 with XFree86 4.6.0 with latest pango (1.13.1) atk (1.10.3) cairo (1.1.6) freetype (2.2.1) if this helps. otherwise i don't know what is gtk2-engines Cheers _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From BillS@techsi.com Tue Jun 6 10:26:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 863103B0182 for ; Tue, 6 Jun 2006 10:26:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28454-01 for ; Tue, 6 Jun 2006 10:26:32 -0400 (EDT) Received: from mail.techsi.com (wsip-68-15-225-156.om.om.cox.net [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id B57E73B01B5 for ; Tue, 6 Jun 2006 10:26:31 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56EASAZ022954 for ; Tue, 6 Jun 2006 09:10:31 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 09:26:15 -0500 Message-ID: <00e901c68975$2e2455f0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EA_01C6894B.454E4DF0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.365 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.365 X-Spam-Level: Subject: Treeview - simulating / faking keyboard events to change selection / view X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 14:26:36 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I would like to simulate the functionality of the up and down, page up and down, and home and end keyboard keys to the treeview widget. So instead of writing all the scrolling functions myself, I would just like to use the existing ones within the treeview widget that are activated by keyboard events. So I would like to "trigger" the treeview widget into sensing that one of the keyboard buttons have been pressed that would scroll the treeview by line, page, or beginning or end of list. Thanks, Bill ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I would like to simulate the functionality of the up and down, page = up and down, and home and end keyboard keys to the treeview widget.  So = instead of writing all the scrolling functions myself, I would just like to use = the existing ones within the treeview widget that are activated by keyboard events.  So I would like to “trigger” the treeview = widget into sensing that one of the keyboard buttons have been pressed that would = scroll the treeview by line, page, or beginning or end of = list.

 

Thanks,

Bill

 

------=_NextPart_000_00EA_01C6894B.454E4DF0-- From johannes_vuori@web.de Mon Jun 5 12:46:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 916763B026A for ; Mon, 5 Jun 2006 12:46:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15064-06 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by menubar.gnome.org (Postfix) with ESMTP id 5D9E53B0429 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Reveived: from web.de by fmmailgate04.web.de (Postfix) with SMTP id 044A745BA for ; Mon, 5 Jun 2006 18:46:39 +0200 (CEST) Received: from [85.156.186.148] by freemailng1803.web.de with HTTP; Mon, 05 Jun 2006 18:46:38 +0200 Date: Mon, 05 Jun 2006 18:46:38 +0200 Message-Id: <814204608@web.de> MIME-Version: 1.0 From: johannes_vuori@web.de To: gtk-list@gnome.org Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.221 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, NO_REAL_NAME=0.961] X-Spam-Score: 0.221 X-Spam-Level: X-Mailman-Approved-At: Tue, 06 Jun 2006 11:17:41 -0400 Subject: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 16:46:51 -0000 Hi, I am developing a project with a friend. We are on the search for a good 2d graphics library, and I saw Your's. I would like to ask if the library for Windows and Linux use the same function names. So, if I would write this programm on a Linux system, would it be possible to simply install the Windows library on the Windows system, and without changing the names of the functions (of the library) in my programm, to compile it? Or are there slight/major changes we would have to do first? Is there also a c++ version for Windows? Yours sincerely, Johannes _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From tml@iki.fi Tue Jun 6 11:30:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7D50D3B0151 for ; Tue, 6 Jun 2006 11:30:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00836-04 for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 6E6E93B028A for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from pettson.tml.iki.fi (MMMDCCLXVIII.tun.saunalahti.fi [213.169.6.168]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 8AB222166B5; Tue, 6 Jun 2006 18:30:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17541.40860.218000.127270@gargle.gargle.HOWL> Date: Tue, 6 Jun 2006 18:30:36 +0300 To: johannes_vuori@web.de In-Reply-To: <814204608@web.de> References: <814204608@web.de> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.328 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.328 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 15:30:57 -0000 johannes_vuori@web.de writes: > I am developing a project with a friend. We are on the search for a > good 2d graphics library, Well, GTK+ isn't really a "2D graphics library". Maybe you are using the term loosely, or should you look on cairo instead? > I would like to ask if the library for Windows and Linux use the > same function names. Of course, it wouldn't make any sense otherwise, would it? (There are a few platform-specific functions that have x11 or win32 in their names, but they are very special-case.) > So, if I would write this programm on a Linux system, would it be > possible to simply install the Windows library on the Windows > system, and without changing the names of the functions (of the > library) in my programm, to compile it? If you program otherwise is portable, and if you take into consideration some relatively straightforward rules of thumb to follow, sure. (See http://www.iki.fi/tml/fosdem-2006.pdf ) It's best to build and test on both platforms continuously while developing the software, not just as a last-night effort, only to notice that you have made some fundamental nonportable design choice right at the start... > Is there also a c++ version for Windows? With C++ "version" I guess you mean gtkmm, which really isn't a "version", but a C++ binding on top of GTK+. Anyway, as far as I know, yes. Have never used it myself, though. --tml From BillS@techsi.com Tue Jun 6 18:09:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45303B02E8 for ; Tue, 6 Jun 2006 18:09:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25029-01 for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from mail.techsi.com (techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 7D7373B00BC for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56LrZAZ026420 for ; Tue, 6 Jun 2006 16:53:37 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 17:09:16 -0500 Message-ID: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01A0_01C6898B.F3EC31C0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.499 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.499 X-Spam-Level: Subject: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 22:09:28 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I need to indicate to the treeview widget how many rows to scroll up or down. Any suggestions on how to do this? I know I can position the cursor based on a path. However, that may be tricky in that the user may or may not have the sections within the tree expanded or not. Also, I would have to track how many rows are currently displayed within the current treeview. I other words, I need to emulate the user scrolling through the treeview by line, by page, or to the beginning or end. I think the begin or end would not be too bad. Thanks, Bill ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I need to indicate to the treeview widget how many rows to scroll = up or down.  Any suggestions on how to do this?  I know I can = position the cursor based on a path.  However, that may be tricky in that the = user may or may not have the sections within the tree expanded or not.  = Also, I would have to track how many rows are currently displayed within the = current treeview.

 

I other words, I need to = emulate the user scrolling through the treeview by line, by page, or to the = beginning or end.  I think the begin or end would not be too bad. =

 

Thanks,

Bill

 

------=_NextPart_000_01A0_01C6898B.F3EC31C0-- From tristan.van.berkom@gmail.com Tue Jun 6 22:03:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 713AF3B0B0A for ; Tue, 6 Jun 2006 22:03:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04432-05 for ; Tue, 6 Jun 2006 22:03:23 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by menubar.gnome.org (Postfix) with ESMTP id D29193B02D7 for ; Tue, 6 Jun 2006 22:03:22 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i12so280761wra for ; Tue, 06 Jun 2006 19:03:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MCzN6WRNDUHNO5h5KKbkczD+CTM0HLmY/6bgqc0T4C5mS7d+oONlRu0YSriqgEJ1voJGKRTu20Czmb2mSN30XDamoLYVDbg3g5mxYAC1GHnZo5g3K1n17wf+PRwcZ4om3AB//Xibs2oJvnB7udTlg8kvLvt40i+QFCqUYBhsAzA= Received: by 10.54.116.7 with SMTP id o7mr9068wrc; Tue, 06 Jun 2006 19:03:17 -0700 (PDT) Received: from ?66.48.170.73? ( [66.48.170.73]) by mx.gmail.com with ESMTP id g2sm1167040wra.2006.06.06.19.03.17; Tue, 06 Jun 2006 19:03:18 -0700 (PDT) Message-ID: <448637A8.7040007@gnome.org> Date: Tue, 06 Jun 2006 22:19:20 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Sousan References: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> In-Reply-To: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.222 tagged_above=-999 required=2 tests=[AWL=0.378, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.222 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 02:03:25 -0000 Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From kereoz@yahoo.fr Wed Jun 7 04:20:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C11D3B0343 for ; Wed, 7 Jun 2006 04:20:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26466-05 for ; Wed, 7 Jun 2006 04:20:04 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id 01BE63B0217 for ; Wed, 7 Jun 2006 04:20:03 -0400 (EDT) Received: (qmail 35942 invoked by uid 60001); 7 Jun 2006 08:19:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=niZGyLE9Dw8mE00kfBFaSxDwB15y4KEkapVjfVMgSDMdAH1E/ZhaTeKOFuupaoYqxWtRPTUPUlGIB6Pv5xb7h7lX7E/wWCvHddhgrZ0RjJuwK/ZA8ZfGsDS3z7jKxNXIw9umiOI3oZWHTQjPQ6Vs2r+d4icV0Uwk9rpN2O0dCHY= ; Message-ID: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 07 Jun 2006 10:19:59 CEST Date: Wed, 7 Jun 2006 10:19:59 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.011 tagged_above=-999 required=2 tests=[AWL=-0.425, BAYES_20=-0.74, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.011 X-Spam-Level: Subject: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 08:20:07 -0000 Hi, I've got questions about building the gtkmozembed widget. Do I need to build mozilla or firefox from sources ? Mozilla or firefox ? Is there a way t build only the widget ? I would like to compile a gtk app using gtkmozembed (gtk mozilla widget) for ARM, so I need to have light libs. Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tonikitoo@gmail.com Wed Jun 7 08:39:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BF753B0D02 for ; Wed, 7 Jun 2006 08:39:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12108-03 for ; Wed, 7 Jun 2006 08:39:22 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id A14753B0CE7 for ; Wed, 7 Jun 2006 08:39:21 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167152wri for ; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pmn1n8Xl2f8npFFsBp5bWT5cMk8+QQwzmdfNwjtEPx4SzHfhwJ2Vo3DTFuksX7t+yf65LUhdLJSQ+Z3yRqc+xL/yhH8A/VtCZ+LLevuZhjds3Id1CFNC0DntHXlO4aR7kNGKNFvCOi5kvYaGMNA2hgO3T68tEVs7PhWvlYsne48= Received: by 10.65.98.11 with SMTP id a11mr307127qbm; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:39:20 -0700 (PDT) Message-ID: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> Date: Wed, 7 Jun 2006 08:39:20 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.18 tagged_above=-999 required=2 tests=[AWL=0.189, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.18 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:39:23 -0000 you could try building xulrunner with the --with-gecko-profile=minimal set, from the branch MOZILLA_1_8_BRANCH [pulling] export MOZ_CO_TAG=MOZILLA_1_8_BRANCH cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk # type the password anonymous cd mozilla make -f client.mk checkout MOZ_CO_PROJECT=xulrunner [building] cd cp xulrunner/config/mozconfig . [add the following 4 line into your mozconfig] ac_add_options --prefix= ac_add_options --disable-javaxpcom ac_add_options --disable-js-static-build ac_add_options --with-embedding-profile=minimal make -f client.mk build_all make -s install this would provide you the minimal 'gecko' build for embedding purposes. Link against the .so libs created at yout/prefix/lib/mozilla/.so (according with the .pc files). regards On 6/7/06, Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? > Mozilla or firefox ? > Is there a way t build only the widget ? > > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. > -- --Antonio Gomes Nokia Technology Institute From tonikitoo@gmail.com Wed Jun 7 08:41:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96E843B0D2A for ; Wed, 7 Jun 2006 08:41:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12377-03 for ; Wed, 7 Jun 2006 08:41:35 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 83A903B0D01 for ; Wed, 7 Jun 2006 08:40:45 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167408wri for ; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SXNYjX2suiXxjuMwK8zSL9VKJKjxgoH1rxni5wMIOa8sVn7/yZ15daEQX7VbhIemOstEvrSzyN4C6DOFgZHTSAZzklftx7v19uSUOB9L5jCPvU/L+a6tLNymZj8HshTIVEJ4HGqu17GXcUUQ0zrzMdNEfFxbA3DceTBHSka6v48= Received: by 10.65.237.20 with SMTP id o20mr305181qbr; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:40:44 -0700 (PDT) Message-ID: <7eb9ad710606070540k31b59afci2e52d298787a6200@mail.gmail.com> Date: Wed, 7 Jun 2006 08:40:44 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.2 tagged_above=-999 required=2 tests=[AWL=0.169, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.2 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:41:51 -0000 you can follow their official website at http://developer.mozilla.org/en/docs/Configuring_Build_Options#Using_a_.mozconfig_Configuration_File On 6/7/06, Antonio Gomes wrote: > you could try building xulrunner with the --with-gecko-profile=minimal > set, from the branch MOZILLA_1_8_BRANCH > > [pulling] > export MOZ_CO_TAG=MOZILLA_1_8_BRANCH > > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk > # type the password anonymous > cd mozilla > make -f client.mk checkout MOZ_CO_PROJECT=xulrunner > > [building] > cd > cp xulrunner/config/mozconfig . > [add the following 4 line into your mozconfig] > ac_add_options --prefix= > ac_add_options --disable-javaxpcom > ac_add_options --disable-js-static-build > ac_add_options --with-embedding-profile=minimal > make -f client.mk build_all > make -s install > > this would provide you the minimal 'gecko' build for embedding > purposes. Link against the .so libs created at > yout/prefix/lib/mozilla/.so (according with the .pc files). > > regards > > On 6/7/06, Christophe HAUSER wrote: > > Hi, > > > > I've got questions about building the gtkmozembed > > widget. > > Do I need to build mozilla or firefox from sources ? > > Mozilla or firefox ? > > Is there a way t build only the widget ? > > > > I would like to compile a gtk app using gtkmozembed > > (gtk mozilla widget) for ARM, so I need to have light > > libs. > > > > -- > --Antonio Gomes > Nokia Technology Institute > -- --Antonio Gomes From tvb@gnome.org Wed Jun 7 09:07:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 69DD73B0CE0 for ; Wed, 7 Jun 2006 09:07:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14222-07 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id B8F923B0CB4 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id E61EA15A5E; Wed, 7 Jun 2006 09:07:23 -0400 (EDT) Message-ID: <4486D1CD.8070408@gnome.org> Date: Wed, 07 Jun 2006 09:17:01 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.48 tagged_above=-999 required=2 tests=[AWL=-0.034, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.48 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:07:28 -0000 Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? Heavens no ! the headers and gtkmozembed library is distributed with the system gecko, save yourself the trouble and use them. See the gnome 'devhelp' module's autofoo setup for an example of how to detect the correct gecko and get the right compile flags etc. Cheers, -Tristan From tvb@gnome.org Wed Jun 7 09:14:22 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0F433B0CDC for ; Wed, 7 Jun 2006 09:14:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14864-08 for ; Wed, 7 Jun 2006 09:14:20 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 258CD3B0D28 for ; Wed, 7 Jun 2006 09:14:18 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 34CE315A5E; Wed, 7 Jun 2006 09:14:14 -0400 (EDT) Message-ID: <4486D367.8070608@gnome.org> Date: Wed, 07 Jun 2006 09:23:51 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XF=0.077] X-Spam-Score: -2.441 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:14:22 -0000 Christophe HAUSER wrote: [...] > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. Sorry I missed this part... if you dont already have a gecko compiled and installed for your ARM machine... then you should look into compiling it, I havent heard of any "tiny gecko" in existence, although you can taylor your compile options I suppose and add stuff like --strip-all from your libs... If you do compile the gecko, follow the instructions at mozilla.org and find the right options to begin with: type "about:buildconfig" in the url window of any firefox to know the compile options, you want to use the compile options that suit your site (i.e. are you rendering fonts with xft ? are you using cairo backends ? what did the vendors compile with when compiling against a similar library suite to your ARM system). Cheers, -Tristan From bharat.gusain@st.com Wed Jun 7 06:05:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 56E0F3B0BCF for ; Wed, 7 Jun 2006 06:05:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01274-09 for ; Wed, 7 Jun 2006 06:05:22 -0400 (EDT) Received: from fra-del-03.spheriq.net (fra-del-03.spheriq.net [195.46.51.99]) by menubar.gnome.org (Postfix) with ESMTP id DE4263B0BA2 for ; Wed, 7 Jun 2006 06:05:21 -0400 (EDT) Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-03.spheriq.net with ESMTP id k57A5B4T000894 for ; Wed, 7 Jun 2006 10:05:11 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-02.spheriq.net with ESMTP id k57A575Q009985 for ; Wed, 7 Jun 2006 10:05:08 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id k57A567i024086 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 7 Jun 2006 10:05:07 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BFB19DA46 for ; Wed, 7 Jun 2006 10:05:05 +0000 (GMT) Received: from mail1.dlh.st.com (mail1.dlh.st.com [10.199.8.21]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 16D8C4741C for ; Wed, 7 Jun 2006 10:05:04 +0000 (GMT) Received: from dlhgn13dhcp15.dlh.st.com (dlhgn13dhcp15.dlh.st.com [10.199.13.15]) by mail1.dlh.st.com (MOS 3.5.8-GR) with ESMTP id CKW69700 (AUTH "bharat gusain"); Wed, 7 Jun 2006 15:35:02 +0530 (IST) From: Bharat Singh GUSAIN Organization: st To: gtk-list@gnome.org Date: Wed, 7 Jun 2006 15:32:26 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606071532.26772.bharat.gusain@st.com> X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.005 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DATE_IN_FUTURE_06_12=1.668, TW_GT=0.077] X-Spam-Score: 1.005 X-Spam-Level: * X-Mailman-Approved-At: Wed, 07 Jun 2006 09:14:49 -0400 Subject: YUV image display X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 10:05:23 -0000 hi all, i am new to GTK and is currently working on a webcam application developed in GTK for which i need some nice gui frontend and need to display the yuyv image formats also. but gtk only display images in rgb format. can anybody tell me that whether there is any calls in GTK which can display the yuv images. Thanx in advance Bharat From gnome-gtk-list@m.gmane.org Wed Jun 7 19:05:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CDEC93B04FF for ; Wed, 7 Jun 2006 19:05:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21300-02 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 83E5C3B0339 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fo75C-0003yi-Gn for gtk-list@gnome.org; Thu, 08 Jun 2006 01:05:04 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Wed, 7 Jun 2006 23:02:39 +0000 (UTC) Lines: 81 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_DP=0.077, TW_GT=0.077] X-Spam-Score: -1.998 X-Spam-Level: Subject: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:05:11 -0000 I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). After doing so, I get the following error messages when I run gtk applications: ~ [1] gedit gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control ~ [2] evince evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control I've done Web searches and I have tried a number of things, but none of them fix this problem. Is this the right list on which to ask this question? It seems Gtk related. Does anyone have a suggestion? I've attached some notes on some of the things that I have tried, just in case they offer a clue. Thanks for help. Dave Some additional notes follow: ========================================================= When running gtk applications, for example gedit, I get the following message:: gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control This means, apparently, that every gtk application on my system is broken. Examples: gedit, firefox, realplay, epiphany, evince, SciTE, This symbol seems to be defined in libgobject-2.0.a. I ran:: $ nm -A --defined-only lib* | grep g_object_compat_control | less and saw the following:: libgobject-2.0.a:gobject.o:000036fe T g_object_compat_control the "T" means "The symbol is in the text (code) section." Then, to find out what package libgobject-2.0.a is in, I did the following:: $ dpkg -S libgobject-2.0.a which displayed:: libglib2.0-dev: /usr/lib/libgobject-2.0.a So, I did:: $ sudo apt-get --reinstall install libglib2.0-dev But, for example, gedit still does not work. Next, I did the following: 1. Retrieved a new, fresh /etc/apt/sources.list from http://www.ubuntuforums.org/showpost.php?p=1090438 2. Did another update/upgrade:: $ sudo apt-get update $ sudo apt-get upgrade But, gedit, for example, still produces the same error message. From yeti@physics.muni.cz Wed Jun 7 19:24:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C49E93B036A for ; Wed, 7 Jun 2006 19:24:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22273-07 for ; Wed, 7 Jun 2006 19:24:27 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id F030C3B02BE for ; Wed, 7 Jun 2006 19:24:26 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k57NOOFK029666 for ; Thu, 8 Jun 2006 01:24:25 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 953C823D62; Thu, 8 Jun 2006 01:24:24 +0200 (CEST) Date: Thu, 8 Jun 2006 01:24:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060607232429.GD30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:24:28 -0000 On Wed, Jun 07, 2006 at 11:02:39PM +0000, Dave Kuhlman wrote: > I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. > I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). > After doing so, I get the following error messages when I run gtk applications: > > ~ [1] gedit > gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > ~ [2] evince > evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > > Does anyone have a suggestion? What ldd some-gtk-app prints? Namely the libgobject-2.0 is interesting. > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > $ nm -A --defined-only lib* | grep g_object_compat_control | less You cannot get symbols from shared libs with nm. Try something like eu-readelf --symbols libgobject-2.0.so.0.1000.3 instead to get symbol info from the dynamic lib. Static libs (.a) are not used for dynamic linking and thus irrelevant here. What libgobject-2.0* files you have there anyway? > ... > So, I did:: > > $ sudo apt-get --reinstall install libglib2.0-dev The NON-dev package is important for run-time, -dev is only important for compilation. So what libglib2.0 do you have installed? Is it at least 2.10.0? Yeti -- Anonyms eat their boogers. From gnome-gtk-list@m.gmane.org Wed Jun 7 20:08:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA87F3B04ED for ; Wed, 7 Jun 2006 20:08:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24955-07 for ; Wed, 7 Jun 2006 20:08:47 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id E38E63B0E52 for ; Wed, 7 Jun 2006 20:08:46 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fo84m-00068B-52 for gtk-list@gnome.org; Thu, 08 Jun 2006 02:08:40 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Thu, 8 Jun 2006 00:08:23 +0000 (UTC) Lines: 65 Message-ID: References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.242 tagged_above=-999 required=2 tests=[AWL=-0.167, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_GT=0.077] X-Spam-Score: -2.242 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 00:08:48 -0000 David Ne膷as (Yeti physics.muni.cz> writes: > > What > > ldd some-gtk-app > > prints? Namely the libgobject-2.0 is interesting. > David (Yeti) - Wow. I am really glad that I asked this question. Your reply was very educational. After posting my original message, I continued working on this problem. I remembered that, some time ago, I had compiled gtk+ on my machine. So I did $ make uninstall for each of pango, cairo, glib, and gtk+. Now, when I do (as you suggested): $ ldd gedit I do not see references to the libraries that I built in /usr/local/lib. I guess my problem was that these libraries were old and not up-to-date. > > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > > > $ nm -A --defined-only lib* | grep g_object_compat_control | less > > You cannot get symbols from shared libs with nm. Try > something like > > eu-readelf --symbols libgobject-2.0.so.0.1000.3 I do not have eu-readelf on my machine. I will have to go looking for it. > > instead to get symbol info from the dynamic lib. Static libs > (.a) are not used for dynamic linking and thus irrelevant > here. > > What libgobject-2.0* files you have there anyway? > I believe that the problem was that the version in /usr/local/lib was built from old source. When I removed it, my system started finding the more up-to- date version in /usr/lib. That fixed my problem. I do not need to build gtk+ from source right now, but will likely need to do so in the future. I will have to try to remember this problem, and the suggestions you (Yeti) gave me to track it down. I've saved your message where I will have it next time. Thanks again. Dave From yeti@physics.muni.cz Thu Jun 8 04:25:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF193B0DFE for ; Thu, 8 Jun 2006 04:25:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19030-01 for ; Thu, 8 Jun 2006 04:25:36 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 5B5A23B05CC for ; Thu, 8 Jun 2006 04:25:35 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k588PSGn010077 for ; Thu, 8 Jun 2006 10:25:29 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id BC2F123D63; Thu, 8 Jun 2006 10:25:28 +0200 (CEST) Date: Thu, 8 Jun 2006 10:25:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608082529.GH2166@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 08:25:37 -0000 On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > I do not have eu-readelf on my machine. I will have to go looking for it. It seems Debian does not contain elfutils. Granted, it used to have an idiosyncratic license, but now it is GNU GPL so hopefully it will get to Debian too. > I do not need to build gtk+ from source right now, but will likely need to do > so in the future. I will have to try to remember this problem I wrote this a hundered times but I will repeat it again and again... Do not install libraries to /usr/local while you have another version of the library installed by your distro, it is a reciepe for troubles. Use the packaging system. Take advantage of the packaging system. It is not so hard to build a package of a newer version if you have the source package of the current one. Also look at backports, the version you need can be already there. Yeti -- Anonyms eat their boogers. From kereoz@yahoo.fr Thu Jun 8 05:06:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E914A3B05CA for ; Thu, 8 Jun 2006 05:06:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21502-05 for ; Thu, 8 Jun 2006 05:06:33 -0400 (EDT) Received: from web25906.mail.ukl.yahoo.com (web25906.mail.ukl.yahoo.com [217.12.10.204]) by menubar.gnome.org (Postfix) with SMTP id C371F3B0427 for ; Thu, 8 Jun 2006 05:06:32 -0400 (EDT) Received: (qmail 11551 invoked by uid 60001); 8 Jun 2006 09:06:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yMPVnzoUVlcHS8vnCG1q+69Nrkmr9PvstPvpkyp4VhjDcDD/NUaosQ+ctN8+TRCwM3yVcymuVv2BKEkz+78Taqh16m4tmcP6P6EHx26vPh5se7LkU46jb+BLQFhgFwJllRnFnYQJWfWE0rfEI2wjtRHHGIy+synl5rqR7tQBaj8= ; Message-ID: <20060608090631.11549.qmail@web25906.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25906.mail.ukl.yahoo.com via HTTP; Thu, 08 Jun 2006 11:06:31 CEST Date: Thu, 8 Jun 2006 11:06:31 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org In-Reply-To: <4486D367.8070608@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.079 tagged_above=-999 required=2 tests=[AWL=0.443, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.079 X-Spam-Level: Subject: RE : Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 09:06:35 -0000 Thanks a lot :) Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From murrayc@murrayc.com Thu Jun 8 13:20:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C3163B07EB for ; Thu, 8 Jun 2006 13:20:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24076-02 for ; Thu, 8 Jun 2006 13:20:40 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (sd-green-bigip-98.dreamhost.com [208.97.132.98]) by menubar.gnome.org (Postfix) with ESMTP id 225883B0EFD for ; Thu, 8 Jun 2006 13:20:38 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id EE142129A8C for ; Thu, 8 Jun 2006 10:20:31 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-vTkKqJNWDGQR4LW1VhLx" Date: Thu, 08 Jun 2006 19:20:28 +0200 Message-Id: <1149787228.5749.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.444 tagged_above=-999 required=2 tests=[AWL=0.078, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.444 X-Spam-Level: Subject: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:20:44 -0000 --=-vTkKqJNWDGQR4LW1VhLx Content-Type: text/plain Content-Transfer-Encoding: 7bit Could someone point out what I'm doing wrong in the attached test case? It's meant to read a value from the rc file, to determine how a widget would be drawn, making the widget themed. I get this output: example button gtype name=ExampleButton example_button_class_init(): Registering example_thing style property. example_button_init(): example_thing from rc file=0 -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=custom_gtkrc Content-Type: text/plain; name=custom_gtkrc; charset=UTF-8 Content-Transfer-Encoding: 7bit style "example-style" { ExampleButton::example_thing = 10 } class "ExampleButton" style "example-style" --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=testrcfull.c Content-Type: text/x-csrc; name=testrcfull.c; charset=UTF-8 Content-Transfer-Encoding: 7bit #include typedef struct _ExampleButton ExampleButton; typedef struct _ExampleButtonClass ExampleButtonClass; struct _ExampleButton { GtkButton parent; /* private */ }; struct _ExampleButtonClass { GtkButtonClass parent_class; }; static void example_button_init (ExampleButton *object) { int example_thing = 0; gtk_widget_style_get(GTK_WIDGET(object), "example_thing", &example_thing, NULL); printf("example_button_init(): example_thing from rc file=%d\n", example_thing); } static void example_button_class_init (ExampleButtonClass *klass) { GtkWidgetClass *widget_klass = 0; widget_klass = GTK_WIDGET_CLASS (klass); printf("example_button_class_init(): Registering example_thing style property.\n"); gtk_widget_class_install_style_property(widget_klass, g_param_spec_int("example_thing", "Example Thing", "This is just a silly example.", G_MININT, G_MAXINT, 0, G_PARAM_READABLE) ); } G_DEFINE_TYPE (ExampleButton, example_button, GTK_TYPE_BUTTON); #define EXAMPLE_TYPE_BUTTON (example_button_get_type ()) #define EXAMPLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_TYPE_BUTTON, ExampleButton)) #define EXAMPLE_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EXAMPLE_BUTTON, ExampleButtonClass)) #define EXAMPLE_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_IS_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_BUTTON_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_BUTTON, ExampleButtonClass)) GtkWidget * example_button_new (void) { return g_object_new (EXAMPLE_TYPE_BUTTON, NULL); } int main( int argc, char *argv[] ) { GtkWidget *window = 0; GtkWidget *button = 0; gtk_init (&argc, &argv); GType gtype = example_button_get_type(); //Make sure that it is initialized. printf("example button gtype name=%s\n", g_type_name(gtype)); /* Without the gtk_window_new(), the RC file is never parsed. */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 200, 200); button = example_button_new(); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_rc_parse("custom_gtkrc"); gtk_main (); return 0; } --=-vTkKqJNWDGQR4LW1VhLx-- From tkomulai@gmail.com Thu Jun 8 13:55:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C39FF3B0670 for ; Thu, 8 Jun 2006 13:55:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26215-06 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by menubar.gnome.org (Postfix) with ESMTP id 1C0663B0718 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id m2so969661uge for ; Thu, 08 Jun 2006 10:55:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N/uF80Ph918v7qMbZwwC4m8meKdr58vk9243wbszTySV3jyA0b8R3dTqgp4Hn4dkDgd5RdsId8kyvevrz2CNZbJMYCVLeEEaV7C/KHshARrLSrba0urdFRwNtxLhTucxnKtW1uYecUM5neZXyU5rjMIqdi/rmdbnXiRSBseYAmY= Received: by 10.78.18.1 with SMTP id 1mr592938hur; Thu, 08 Jun 2006 10:55:38 -0700 (PDT) Received: by 10.78.41.17 with HTTP; Thu, 8 Jun 2006 10:55:38 -0700 (PDT) Message-ID: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> Date: Thu, 8 Jun 2006 20:55:38 +0300 From: "Tommi Komulainen" Sender: tkomulai@gmail.com To: gtk-list@gnome.org In-Reply-To: <1149787228.5749.5.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1149787228.5749.5.camel@localhost.localdomain> X-Google-Sender-Auth: 220f190103d8c34d X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=0.162, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.438 X-Spam-Level: Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:55:43 -0000 On 6/8/06, Murray Cumming wrote: > Could someone point out what I'm doing wrong in the attached test case? > It's meant to read a value from the rc file, to determine how a widget > would be drawn, making the widget themed. > > I get this output: > > example button gtype name=ExampleButton > example_button_class_init(): Registering example_thing style property. > example_button_init(): example_thing from rc file=0 Instance init is too early to get style properties (though I suppose you could call gtk_widget_ensure_style there), you need to wait until 'style-set' is called. You should implement the style-set default handler anyway to work with theme changes. Unless you change widget hierarchies based on the style property it should be enough to access the property in size-request, size-allocate and expose. -- Tommi Komulainen tommi.komulainen@iki.fi From paul@linuxaudiosystems.com Thu Jun 8 14:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28F3F3B0F8F for ; Thu, 8 Jun 2006 14:26:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27909-07 for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 5CC3C3B0F4E for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from dholak ([151.197.23.127]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0K00IO20K3LGR1@vms040.mailsrvcs.net> for gtk-list@gnome.org; Thu, 08 Jun 2006 13:26:28 -0500 (CDT) Date: Thu, 08 Jun 2006 14:26:45 -0400 From: Paul Davis In-reply-to: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> To: Tommi Komulainen Message-id: <1149791205.5323.0.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 18:26:35 -0000 On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > On 6/8/06, Murray Cumming wrote: > > Could someone point out what I'm doing wrong in the attached test case? > > It's meant to read a value from the rc file, to determine how a widget > > would be drawn, making the widget themed. > > > > I get this output: > > > > example button gtype name=ExampleButton > > example_button_class_init(): Registering example_thing style property. > > example_button_init(): example_thing from rc file=0 > > Instance init is too early to get style properties (though I suppose > you could call gtk_widget_ensure_style there), you need to wait until > 'style-set' is called. You should implement the style-set default > handler anyway to work with theme changes. > > Unless you change widget hierarchies based on the style property it > should be enough to access the property in size-request, size-allocate > and expose. or call widget::ensure_style() From adam@ajtee.plus.com Thu Jun 8 15:45:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0B4A3B0FBE for ; Thu, 8 Jun 2006 15:45:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00491-09 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by menubar.gnome.org (Postfix) with ESMTP id 69ECB3B0766 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from [212.159.108.21] (helo=[192.168.0.3]) by pih-relay04.plus.net with esmtp (Exim) id 1FoQRs-0000el-NZ for gtk-list@gnome.org; Thu, 08 Jun 2006 20:45:44 +0100 Message-ID: <44887E68.8030004@ajtee.plus.com> Date: Thu, 08 Jun 2006 20:45:44 +0100 From: Adam Tee User-Agent: Thunderbird 1.5.0.4 (X11/20060606) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.399 X-Spam-Level: Subject: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 19:45:48 -0000 Hi all, I have a couple of questions regarding keybindings in my application. Is there anyway of overriding a window managers keybindings in an application ? The second concerns menued items which have been configured using an array of GtkActionEntries. Can I changed the associated keybindings on the fly, i.e. after loading a keymap file ? The menus are defined in a xml file. Thanks Adam Maintainer GNU Denemo, a GTK+ Front-End to GNU Lilypond From murrayc@murrayc.com Thu Jun 8 16:07:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A46153B021A for ; Thu, 8 Jun 2006 16:07:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02092-04 for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by menubar.gnome.org (Postfix) with ESMTP id 529653B000E for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id 5B020129A8D; Thu, 8 Jun 2006 13:07:47 -0700 (PDT) From: Murray Cumming To: paul@linuxaudiosystems.com In-Reply-To: <1149791205.5323.0.camel@localhost.localdomain> References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> <1149791205.5323.0.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 08 Jun 2006 22:07:43 +0200 Message-Id: <1149797263.5749.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.482 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599] X-Spam-Score: -2.482 X-Spam-Level: Cc: Tommi Komulainen , gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:07:50 -0000 On Thu, 2006-06-08 at 14:26 -0400, Paul Davis wrote: > On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > > On 6/8/06, Murray Cumming wrote: > > > Could someone point out what I'm doing wrong in the attached test case? > > > It's meant to read a value from the rc file, to determine how a widget > > > would be drawn, making the widget themed. > > > > > > I get this output: > > > > > > example button gtype name=ExampleButton > > > example_button_class_init(): Registering example_thing style property. > > > example_button_init(): example_thing from rc file=0 > > > > Instance init is too early to get style properties (though I suppose > > you could call gtk_widget_ensure_style there), you need to wait until > > 'style-set' is called. You should implement the style-set default > > handler anyway to work with theme changes. > > > > Unless you change widget hierarchies based on the style property it > > should be enough to access the property in size-request, size-allocate > > and expose. > > or call widget::ensure_style() Thanks. gtk_widget_ensure_style() doesn't make any difference for me, but I can successfully read the value in the realize handler. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From ben@benjohnson.net Thu Jun 8 16:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C31863B1008 for ; Thu, 8 Jun 2006 16:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03294-10 for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: from server018.dfw.nationwide.net (unknown [206.123.129.81]) by menubar.gnome.org (Postfix) with SMTP id 7FA0B3B021A for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: (qmail 21060 invoked from network); 8 Jun 2006 20:30:05 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 08 Jun 2006 20:30:05 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id B3A5BE4067 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02308-05 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id 9152AE4068; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Date: Thu, 8 Jun 2006 13:30:04 -0700 From: Anna To: gtk-list@gnome.org Message-ID: <20060608203003.GG6681@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608082529.GH2166@potato.chello.upc.cz> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:30:22 -0000 On Thu, Jun 08, 2006 at 10:25:29AM +0200, David Ne?as (Yeti) wrote: > On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > > > I do not have eu-readelf on my machine. I will have to go looking for it. > > It seems Debian does not contain elfutils. Granted, it used > to have an idiosyncratic license, but now it is GNU GPL so > hopefully it will get to Debian too. darling:~# cat /etc/debian_version 3.1 darling:~# dpkg -S /usr/bin/readelf binutils: /usr/bin/readelf maybe 'readelf' on Debian the same as eu-readelf? - Anna From yeti@physics.muni.cz Thu Jun 8 16:38:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 160683B1008 for ; Thu, 8 Jun 2006 16:38:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03782-07 for ; Thu, 8 Jun 2006 16:38:03 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 852DA3B036E for ; Thu, 8 Jun 2006 16:38:01 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Kbt6q023889 for ; Thu, 8 Jun 2006 22:37:56 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 53BF923D9A; Thu, 8 Jun 2006 22:37:55 +0200 (CEST) Date: Thu, 8 Jun 2006 22:38:00 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608203800.GI30886@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> <20060608203003.GG6681@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608203003.GG6681@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:38:08 -0000 On Thu, Jun 08, 2006 at 01:30:04PM -0700, Anna wrote: > > darling:~# cat /etc/debian_version > 3.1 > darling:~# dpkg -S /usr/bin/readelf > binutils: /usr/bin/readelf > > maybe 'readelf' on Debian the same as eu-readelf? This is binutils' readelf. They are different but both should work for the discussed purpose. Yeti -- Anonyms eat their boogers. From BillS@techsi.com Thu Jun 8 17:36:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA1DA3B000E for ; Thu, 8 Jun 2006 17:36:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07163-08 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 38CAB3B0194 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k58LKsAZ017367; Thu, 8 Jun 2006 16:20:57 -0500 From: "Bill Sousan" To: "'Tristan Van Berkom'" Date: Thu, 8 Jun 2006 16:36:03 -0500 Message-ID: <003601c68b43$8dcba100$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJ1Fpwdt0TDWdPQL6ky+QryalI6ABbv/jQ In-Reply-To: <448637A8.7040007@gnome.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.109 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_05=-1.11, TW_GT=0.077] X-Spam-Score: -1.109 X-Spam-Level: Cc: gtk-list@gnome.org Subject: RE: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:36:14 -0000 Thanks! One question, however, how can you change the column header font? I was able to make the rows nice and fat. However, I can't figure out how to change the column title size (its font type). Thanks, Bill -----Original Message----- From: Tristan Van Berkom [mailto:tristan.van.berkom@gmail.com] Sent: Tuesday, June 06, 2006 9:19 PM To: Bill Sousan Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From yeti@physics.muni.cz Thu Jun 8 17:39:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 94A863B0408 for ; Thu, 8 Jun 2006 17:39:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07377-08 for ; Thu, 8 Jun 2006 17:39:10 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9387F3B0105 for ; Thu, 8 Jun 2006 17:39:09 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Ld71R001243 for ; Thu, 8 Jun 2006 23:39:08 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 8BFE723D9A; Thu, 8 Jun 2006 23:39:07 +0200 (CEST) Date: Thu, 8 Jun 2006 23:39:12 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608213912.GK30886@potato.chello.upc.cz> References: <448637A8.7040007@gnome.org> <003601c68b43$8dcba100$db00a8c0@techsi.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003601c68b43$8dcba100$db00a8c0@techsi.local> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:39:13 -0000 On Thu, Jun 08, 2006 at 04:36:03PM -0500, Bill Sousan wrote: > Thanks! One question, however, how can you change the column header font? > I was able to make the rows nice and fat. However, I can't figure out how > to change the column title size (its font type). The default column header widget is inaccessible, but gtk_tree_view_column_set_widget() can put any widget you wish there. Yeti -- Anonyms eat their boogers. From mekstran@scl.ameslab.gov Fri Jun 9 10:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CD183B1106 for ; Fri, 9 Jun 2006 10:26:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30922-04 for ; Fri, 9 Jun 2006 10:26:31 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id AE19D3B02F7 for ; Fri, 9 Jun 2006 10:26:23 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 09 Jun 2006 09:26:22 -0500 id 0005389C.4489850E.00007C9B In-Reply-To: <44887E68.8030004@ajtee.plus.com> References: <44887E68.8030004@ajtee.plus.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6ec3650a2d223d4ab126ac1b931be9f0@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Date: Fri, 9 Jun 2006 09:25:52 -0500 To: Adam Tee X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, TW_KB=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 14:26:35 -0000 On Jun 8, 2006, at 2:45 PM, Adam Tee wrote: > Is there anyway of overriding a window managers keybindings in an > application ? AFAIK, no. I could be wrong here, but I believe the window manager sees the keys before they ever get to the application, and eats them. Some window managers may potentially support a "pass-through" mode, but I don't know (I don't know that I've ever seen such a features, except I seem to remember one in an older version of wmii that was user-activated, not program-activated). Besides, overriding the WM's keybindings would be detrimental to users - they expect the WM keybindings to work the same in all applications. Especially those of us using highly kbd-driven WM's. > The second concerns menued items which have been configured using an > array of GtkActionEntries. Can I changed the associated keybindings on > the fly, i.e. after loading a keymap file ? The menus are defined in a > xml file. Can't help you there. I'm a bit fuzzy on the details of managing accellerator myself. - Michael From mattias.nissler@gmx.de Fri Jun 9 09:07:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA523B01CA for ; Fri, 9 Jun 2006 09:07:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25743-04 for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 5D6DE3B031E for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: (qmail invoked by alias); 09 Jun 2006 13:06:59 -0000 Received: from T56c9.t.pppool.de (EHLO [192.168.2.32]) [89.55.86.201] by mail.gmx.net (mp027) with SMTP; 09 Jun 2006 15:06:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Jun 2006 15:06:56 +0200 Message-Id: <1149858416.14903.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Jun 2006 11:58:55 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 13:07:02 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, I think its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From r.floret@laposte.net Sat Jun 10 12:21:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 807953B01CB for ; Sat, 10 Jun 2006 12:21:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14072-01 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from mx.laposte.net (mx.laposte.net [81.255.54.11]) by menubar.gnome.org (Postfix) with ESMTP id 67CF63B0158 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from [192.168.0.3] (81.248.212.147) by mx.laposte.net (7.2.060.1) (authenticated as r.floret) id 448702A20026ED87 for gtk-list@gnome.org; Sat, 10 Jun 2006 18:19:51 +0200 From: regis To: gtk-list@gnome.org In-Reply-To: <1149858416.14903.2.camel@localhost> References: <1149858416.14903.2.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Sat, 10 Jun 2006 20:19:40 +0400 Message-Id: <1149956380.11938.1.camel@Regis> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.264 tagged_above=-999 required=2 tests=[AWL=0.101, BAYES_00=-2.599, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: -0.264 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 16:21:03 -0000 Le vendredi 09 juin 2006 脿 15:06 +0200, Mattias Nissler a 茅crit : > Hallo, > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > standard gtk+ file chooser dialog, I think its default size is really > too small. Is there some style option I can put into a rc file or some > other way to make the default size larger? Why don't you try gtk_widget_set_size_request(dialog,width,height) ? R茅gis From murrayc@murrayc.com Sat Jun 10 17:12:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E24673B0007 for ; Sat, 10 Jun 2006 17:12:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28035-01 for ; Sat, 10 Jun 2006 17:12:33 -0400 (EDT) Received: from swarthymail-a1.dreamhost.com (sd-green-bigip-176.dreamhost.com [208.97.132.176]) by menubar.gnome.org (Postfix) with ESMTP id F34183B0494 for ; Sat, 10 Jun 2006 17:12:31 -0400 (EDT) Received: from noname (p5497E4C3.dip.t-dialin.net [84.151.228.195]) by swarthymail-a1.dreamhost.com (Postfix) with ESMTP id 1835F90ED6 for ; Sat, 10 Jun 2006 14:12:29 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Jun 2006 23:12:24 +0200 Message-Id: <1149973944.5715.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599] X-Spam-Score: -2.481 X-Spam-Level: Subject: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 21:12:36 -0000 Is there any particular reason why GtkClipboardRichTextReceivedFunc provides the text as const guint8*: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc instead of the const gchar* that GtkClipboardTextReceivedFunc provides: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardTextReceivedFunc ? -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From mattias.nissler@gmx.de Sun Jun 11 07:03:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D1743B00F2 for ; Sun, 11 Jun 2006 07:03:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05206-10 for ; Sun, 11 Jun 2006 07:03:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 9BCA03B057C for ; Sun, 11 Jun 2006 07:03:15 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 11:02:40 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp039) with SMTP; 11 Jun 2006 13:02:40 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Sun, 11 Jun 2006 13:02:32 +0200 Message-Id: <1150023752.27952.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.492 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.492 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 11:03:17 -0000 > Le vendredi 09 juin 2006 锟5:06 +0200, Mattias Nissler a 锟絠t : > > Hallo, > > > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > > standard gtk+ file chooser dialog, I think its default size is really > > too small. Is there some style option I can put into a rc file or some > > other way to make the default size larger? > > Why don't you try gtk_widget_set_size_request(dialog,width,height) ? > Well, I am not writing a GTK program, but I'm using programs that (my guess) don't resize the file dialog boxes, so they stay at their default size. So I'd like to change the default size to something more usable. Mattias From chris@cvine.freeserve.co.uk Sun Jun 11 08:32:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C364D3B010F for ; Sun, 11 Jun 2006 08:32:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09209-04 for ; Sun, 11 Jun 2006 08:32:54 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id DACC13B0091 for ; Sun, 11 Jun 2006 08:32:53 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3107 [172.22.158.37]) by mwinf3110.me.freeserve.com (SMTP Server) with ESMTP id ED6444800A4E for ; Sun, 11 Jun 2006 14:31:29 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id DEB8D4800089; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) Received: from boulder.homenet (user-3382.l6.c5.dsl.pol.co.uk [84.65.109.54]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id ADB754800087; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) X-ME-UUID: 20060611123119711.ADB754800087@mwinf3107.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5BCVI7p002398; Sun, 11 Jun 2006 13:31:18 +0100 From: Chris Vine To: gtk-list@gnome.org Date: Sun, 11 Jun 2006 13:31:17 +0100 User-Agent: KMail/1.9.1 References: <1149973944.5715.10.camel@localhost.localdomain> In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606111331.18048.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.293 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.293 X-Spam-Level: Cc: Murray Cumming Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 12:32:55 -0000 On Saturday 10 June 2006 22:12, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >RichTextReceivedFunc > > instead of the const gchar* that GtkClipboardTextReceivedFunc provides: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >TextReceivedFunc ? Probably the use of guint8 has something to do with the rich text specification, although if so it would appear to be no more than a statement of intention as I did not think that glib supports anything but systems with 8-bit char types. At any rate there could only be a difference if the gchar (or guchar) type is formed other than by an octet. It seems inconceivable that modern systems would have char types smaller than an octet, but conceivable that they could be larger (sizeof(char), sizeof(wchar_t) and sizeof(long) can all be the same, for example). Chris From michael@zolnott.de Sun Jun 11 14:29:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D9A243B028A for ; Sun, 11 Jun 2006 14:29:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27506-08 for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 40D703B023D for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (mwinf3002 [172.22.159.24]) by mwinf3010.me.freeserve.com (SMTP Server) with ESMTP id A1EF85C0336E for ; Sun, 11 Jun 2006 20:28:38 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 951E11C00146 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 583001C00142 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) X-ME-UUID: 20060611182828361.583001C00142@mwinf3002.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id CC22B2355F; Fri, 9 Jun 2006 23:55:26 +0100 (BST) Date: Fri, 9 Jun 2006 23:55:26 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060609225524.GC726@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.16 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.507 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.507 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:29:14 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEifxcXDV4oK/n3xIRAjSiAJ4mNyWu+1/oCesRm39Hu+coAoTjgACg2iQW Ba0/mrxfPfoc07kenuGRSV4= =JYWo -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- From michael@zolnott.de Sun Jun 11 14:53:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36F563B02CD for ; Sun, 11 Jun 2006 14:53:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28561-02 for ; Sun, 11 Jun 2006 14:53:19 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id F36443B02A7 for ; Sun, 11 Jun 2006 14:53:17 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3113 [172.22.158.41]) by mwinf3105.me.freeserve.com (SMTP Server) with ESMTP id EDF821C01BEE for ; Sun, 11 Jun 2006 20:28:36 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id A35105C00087 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id 4868F5C00084 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) X-ME-UUID: 20060611182826296.4868F5C00084@mwinf3113.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 0EA072356B; Sat, 10 Jun 2006 23:59:06 +0100 (BST) Date: Sat, 10 Jun 2006 23:59:06 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060610225904.GA6852@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.324 tagged_above=-999 required=2 tests=[AWL=-0.183, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.324 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:53:23 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEi064XDV4oK/n3xIRAnh3AJ9IxGDAYCsDMbrCeB5MUQmb+k2jqACgz7qH 0flJ2aY7euqfiqe2jXibZRs= =ChBT -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- From yeti@physics.muni.cz Sun Jun 11 18:08:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 211243B0697 for ; Sun, 11 Jun 2006 18:08:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05325-01 for ; Sun, 11 Jun 2006 18:08:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9C4F63B0350 for ; Sun, 11 Jun 2006 18:08:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5BKghIY010616 for ; Sun, 11 Jun 2006 22:42:44 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0B40B23D59; Sun, 11 Jun 2006 22:42:43 +0200 (CEST) Date: Sun, 11 Jun 2006 22:42:47 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060611204247.GD30886@potato.chello.upc.cz> References: <20060609225524.GC726@zolnott06.zolnott> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060609225524.GC726@zolnott06.zolnott> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 22:08:21 -0000 On Fri, Jun 09, 2006 at 11:55:26PM +0100, Michael Ott wrote: > I try to compile an application under winxp. Under Linux i work with > some gnome lib (for printing) and this i cannot do under win32. > > But i got an error before: > I use only libglade-2.0 and gtk+-2.0 under win32. > > When i try to compile i get on the following line: > > sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); Do not use sprintf(), use g_snprintf() or g_strdup_printf() (and see below). > i got the following error: > > 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passing arg 2 of `sprintf' makes pointer from integer without a cast The error probably comes from implicitly declared _(). When a C function is not declared, the compiler invents an implicit declaration with int return value -- and you definitely want to tell it to make a lot noise instead, for gcc it's -Werror-implicit-function-declaration and for MSVC it's #pragma warning(error:4013) _() is a common convenience macro defined #define _(x) gettext(x) but it's up to you to define it. Why you mark "%02d.%02d.%d" as translatable anyway? Either the format is fixed and then it must not be translated, or you want it translatable for some reason, but then you never know how c_str needs to be long, so use g_strdup_printf(). Yeti -- Anonyms eat their boogers. From mclasen@redhat.com Mon Jun 12 12:04:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41C3B3B000C; Mon, 12 Jun 2006 12:04:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09149-04; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 7270D3B009D; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc9030255; Mon, 12 Jun 2006 12:03:37 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc3007778; Mon, 12 Jun 2006 12:03:37 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CG3blQ018463; Mon, 12 Jun 2006 12:03:37 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 12:03:36 -0400 Message-Id: <1150128216.15532.14.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_LQ=0.077, TW_RX=0.077, TW_TR=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GLib 2.11.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 16:04:32 -0000 GLib 2.11.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.3.tar.bz2 md5sum: 41931c4965f7e1848f81b800914905cd glib-2.11.3.tar.gz md5sum: cd78ebc535e29cdef0fed9487aa21dac This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.2 to GLib 2.11.3 =================================================== * GBookmarkFile: - g_bookmark_file_move_item: Return TRUE in case of an empty target * Bugs fixed: 343919 gunicollate.c: strxfrm bug on VC8 * Updated translations (fi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343919 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Kazuki Iwamoto, Tor Lillqvist Matthias Clasen June 12, 2006 From mitch@gimp.org Mon Jun 12 14:02:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888803B0461 for ; Mon, 12 Jun 2006 14:02:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21914-06 for ; Mon, 12 Jun 2006 14:02:17 -0400 (EDT) Received: from mitch.gimp.org (unknown [88.134.1.244]) by menubar.gnome.org (Postfix) with ESMTP id 0C81D3B0132 for ; Mon, 12 Jun 2006 12:07:15 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FpMpr-0003Vw-00; Sun, 11 Jun 2006 12:06:23 +0200 From: Michael Natterer To: Murray Cumming In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> References: <1149973944.5715.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 11 Jun 2006 12:06:16 +0200 Message-Id: <1150020377.3010.29.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.572 tagged_above=-999 required=2 tests=[AWL=-0.919, BAYES_00=-2.599, RCVD_IN_NJABL_DUL=1.946] X-Spam-Score: -1.572 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 18:02:20 -0000 On Sat, 2006-06-10 at 23:12 +0200, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc Because the format of the serialized rich text data is arbitrary. Basically it's a blob of binary data of size "length", and not text. ciao, --mitch From mclasen@redhat.com Mon Jun 12 15:43:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 851123B00E5; Mon, 12 Jun 2006 15:43:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-06; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 5B16F3B0010; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWav007572; Mon, 12 Jun 2006 15:35:32 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWUd001833; Mon, 12 Jun 2006 15:35:32 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CJZWlQ009694; Mon, 12 Jun 2006 15:35:32 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 15:35:31 -0400 Message-Id: <1150140931.15532.18.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.541 X-Spam-Level: Cc: Subject: GTK+ 2.8.19 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 19:43:04 -0000 GTK+ 2.8.19 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.19.tar.bz2 md5sum: 1a03dbed4b794194a610e9d7eb175b06 gtk+-2.8.19.tar.gz md5sum: 604d3263498994c58af378f0ec076e6f This is a bugfix release in the 2.8.x series. It fixes a rare memory corruption issue when using the deprecated GdkFont API. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.18 to GTK+ 2.8.19 =================================================== Bugs fixed: 341327 Memory corruption inside glib 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 343425 "grab-notify"-signal is not correctly propagated for internal children 344244 Window resizing not working when keeping the aspect fixed 344496 CRLF converting via Clipboard Updated translations (ne) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343425,341327,344244,337491,344496 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Markku Vire, Sampo Savolainen, Tim Janik, Tor Lillqvist, Chris Wilson June 12, 2006 Matthias Clasen From mclasen@redhat.com Tue Jun 13 02:09:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 72FE93B00AF; Tue, 13 Jun 2006 02:09:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12183-04; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id B2F773B000C; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D681s3022181; Tue, 13 Jun 2006 02:08:01 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D67uRP017686; Tue, 13 Jun 2006 02:07:56 -0400 Received: from [172.16.83.145] (vpn83-145.boston.redhat.com [172.16.83.145]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5D67tQC015619; Tue, 13 Jun 2006 02:07:56 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Organization: Red Hat Date: Tue, 13 Jun 2006 02:09:42 -0400 Message-Id: <1150178982.4081.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.2.1 (2.7.2.1-4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_KB=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GTK+ 2.9.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:09:16 -0000 GTK+ 2.9.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.3.tar.bz2 md5sum: d73039a3b5847c352f5740ac908be7d2 gtk+-2.9.3.tar.gz md5sum: 0156eef91d2bbb23f1b6ccb49335fae5 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.2 to 2.9.3 ============================================ * GtkPrintOperation: - Introduce an allow-async property - Introduce a GtkPrintOperationAction enumeration - Rename pdf_target to export_filename - Allow to hide "Print to PDF" in the low-level API * GtkNotebook: - Add a destroy notify to gtk_notebook_set_window_creation_hook. * GtkTreeView: - Support grid lines * GtkRange: - Add a number of new stle properties which allow more fexible stepper theming * Bugs fixed: 153212 Have the Paste kbd shortcut jump to the location in the buffer 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 339739 gtk/gtkprintoperation-win32.c: 3 compile error 342339 GtkRange::stepper-spacing style property not implemented correctly 343945 Buttons of a GtkAssistant are not accessible 344148 Wrong reqs for ATK 344209 gtk_notebook_set_window_creation_hook() has no destroy func. 344232 GtkEntry's "Delete" context menu item is sensitive on a non-editable GtkEntry 344244 Window resizing not working when keeping the aspect fixed 344288 gtk_print_operation_preview_is_selected must return a value 344386 gdk-2.0-uninstalled.pc.in and gdkconfig.h 344496 CRLF converting via Clipboard 344504 GtkPrintCapabilities not in gtktypebuiltins.h 344505 Wrong signal registration for create_custom_widget 344512 cvs build issue 344513 pdf print module's print_stream not calling destroy notify 344518 NULL unref in page setup dialogue 344543 gtk_progress_bar_pulse calls gtk_progress_bar_paint directly 344560 gtk_print_settings_[sg]et_scale shouldn't be in percent 344607 memory leaks in gtkrecentchooserdefault.c and gtkrecentchoosermenu.c 344624 Memory leak in gtk_tree_model_filter_finalize: User data not freed 337603 Possible off-by-one in gdk_pango_layout_line_get_clip_region 344239 Wrong filename for gtk-find stock item. 344528 comma at end of GtkPrintOperationAction enum causes mozilla compilation error 344290 horizontal-padding not take into account when placing submenus 344558 document print dialogue response codes 339592 Add print-to-postscript 342249 Allow to draw upper and lower sides of GtkRange's trough differently 344530 gtk_recent_chooser_widget_new_for_manager and gtk_recent_chooser_menu_new_for_manager should allow NULL manager arg * Updated translations (es,fi,gu,ko,th,wa) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=153212,337491,339739,342339,343945,344148,344209,344232,344244,344288,344386,344496,344504,344505,344512,344513,344518,344543,344560,344607,344624,337603,344239,344528,344290,344558,339592,342249,344530 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Behdad Esfahbod, Bastian Nocera, Alexander Larsson, J眉rg Billeter, Murray Cumming, Milosz Derezynski, Tor Lillqvist, Kazuki Iwamoto, Chris Wilson, Michael Natterer, Benjamin Berg, Marko Anastasov, Christian Persch, Masatake Yamamoto, Elijah Newren, John Finlay, Emmanuele Bassi, David Malcolm, John Darrington, Christian Weiske, Yvgen Muntyan, Martyn Russell, Kristian Rietveld June 13, 2006 Matthias Clasen From suryakiran.gullapalli@gmail.com Tue Jun 13 02:17:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ECF3B015D for ; Tue, 13 Jun 2006 02:17:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12730-02 for ; Tue, 13 Jun 2006 02:17:09 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 1E5ED3B00AF for ; Tue, 13 Jun 2006 02:17:08 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2351869nzo for ; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AjdeG/my9aZKptVxVu2SIogubCWxKAr3HX1opiXSepv2WV/xdlS7lqfXrYoQlSpChmZcBUDN5LhZopltI7Ei+MXADb5GyUs2yol7NRqVgmzN3F04gW/KosoogyTrCbFXpCbVoZwCa32PIFzGvURU4zgEsm1eSsPmN/+VaRtR7AM= Received: by 10.36.56.4 with SMTP id e4mr5918423nza; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Message-ID: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> Date: Tue, 13 Jun 2006 11:46:23 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9016_20460533.1150179383165" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.859 tagged_above=-999 required=2 tests=[AWL=-0.132, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.859 X-Spam-Level: Subject: Font Path X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:17:15 -0000 ------=_Part_9016_20460533.1150179383165 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_9016_20460533.1150179383165 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_9016_20460533.1150179383165-- From suryakiran.gullapalli@gmail.com Tue Jun 13 06:52:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5924B3B000A for ; Tue, 13 Jun 2006 06:52:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20305-10 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 78A063B00C9 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2460005nzo for ; Tue, 13 Jun 2006 03:50:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UcWT8tNT7p4SbjxzYU7oPici9Ro4C0nxkQ0RGHY/Ox9lpXzzZIEYgNNa4PMdAJvSOypndwVY9RDFl5b+ipj4/a3Fo9hblR+xxl8x2fO7IQqHgwcFB5ScMUIHWv7eSQXZ4OML/pwhL6o75U8+bodUFhK/ChF1yUImiQujKV861Uc= Received: by 10.36.8.4 with SMTP id 4mr10540719nzh; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Message-ID: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> Date: Tue, 13 Jun 2006 16:20:52 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_559_15776072.1150195852962" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.114 tagged_above=-999 required=2 tests=[AWL=-0.876, BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.114 X-Spam-Level: Subject: Theme engine tutorial. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 10:52:23 -0000 ------=_Part_559_15776072.1150195852962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_559_15776072.1150195852962 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_559_15776072.1150195852962-- From andi_sz_2000@yahoo.com Mon Jun 12 11:51:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C6323B00D4 for ; Mon, 12 Jun 2006 11:51:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08963-02 for ; Mon, 12 Jun 2006 11:51:53 -0400 (EDT) Received: from web51612.mail.yahoo.com (web51612.mail.yahoo.com [68.142.224.85]) by menubar.gnome.org (Postfix) with SMTP id 8A69F3B00D8 for ; Mon, 12 Jun 2006 11:51:52 -0400 (EDT) Received: (qmail 98982 invoked by uid 60001); 12 Jun 2006 15:51:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=twFPqLknw7rC+J3lu/TUPVojwbQkB+djl+EvcOmiR4QyNT69l3nofSk9rPpvx7m2zLc/2k70C+kP5pQqlLOHFuJGzNgOWOW1XOfn0p/woPoIAGZx4v0s0di6G84r+aCvTf57YEqin+6hSK+/3QOTRp1Y6dxXdhIifQLJExfDXAA= ; Message-ID: <20060612155104.98980.qmail@web51612.mail.yahoo.com> Received: from [85.204.36.18] by web51612.mail.yahoo.com via HTTP; Mon, 12 Jun 2006 08:51:04 PDT Date: Mon, 12 Jun 2006 08:51:04 -0700 (PDT) From: Andrea Szenasi To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, FROM_HAS_ULINE_NUMS=0.291, HOT_NASTY=0.157] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:25 -0400 Subject: question: connecting to mysql X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrea Szenasi List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 15:51:57 -0000 Hi all, i am a beginner in GTK PHP and i have problem connecting to MySQL 5.0.18. I am using GTK-PHP2 with PHP5. I use @mysql_connect, so i cant see the error message. But if I use just mysql_connect, then i got the following error message: Fatal:error: Call to undefined function mysql_connect() in XXX on line XXX . With PHP5 (classic, no GTK), the connection is working, so I have no idea what's the problem. Thanks in advance, Andi From mattias.nissler@gmx.de Sun Jun 11 06:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1F53B0095 for ; Sun, 11 Jun 2006 06:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05002-04 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 4B79D3B00D3 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 10:13:59 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp020) with SMTP; 11 Jun 2006 12:13:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Jun 2006 12:13:52 +0200 Message-Id: <1150020832.27952.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.494 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 10:43:38 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From behdad.esfahbod@gmail.com Mon Jun 12 18:10:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C1AE3B00A5 for ; Mon, 12 Jun 2006 18:10:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00834-05 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 337843B00F5 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h26so959411wxd for ; Mon, 12 Jun 2006 15:09:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:sender; b=HkVpdki0/g3XkGcHUm613LiH99RNWp83QpOiB04twtI9/oyY5QJs7xgUW9ugXUYWTW0FQESua3SiFes9GpwcHFnulMB+jmu6Frg1gjSTz94Z0WNKazKYJCx/0yCrKVvi+sIhO9793kd+R7hBbKFWLBqlIyo5yetvED1gx6HIjnc= Received: by 10.70.36.1 with SMTP id j1mr6891335wxj; Mon, 12 Jun 2006 14:44:52 -0700 (PDT) Received: from to-dhcp26.toronto.redhat.com ( [63.250.163.171]) by mx.gmail.com with ESMTP id h18sm3879342wxd.2006.06.12.14.44.50; Mon, 12 Jun 2006 14:44:51 -0700 (PDT) From: Behdad Esfahbod To: Pango Release Lists , gtk-app-devel-list@gnome.org, gtk-devel-list@gnome.org, gtk-i18n-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HZBsNn3KdPR3jVVwB9gO" Date: Mon, 12 Jun 2006 17:44:37 -0400 Message-Id: <1150148678.10765.8.camel@home> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Sender: Behdad Esfahbod X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Cc: Subject: Pango-1.13.2 released [unstable] X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 22:10:14 -0000 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pango-1.13.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ or http://download.gnome.org/sources/pango/1.13/ 28a6ea9d43c4cd398e7352032f775401 pango-1.13.2.tar.bz2 17d78473c05fece044c6a3b44519b61f pango-1.13.2.tar.gz This is a development release leading up to Pango-1.14.0, which will be released just in time for GNOME-2.16. Notes: * This is unstable development release. While it has had fairly extensive testing, there are likely bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of Pango-1.12. If you have problems, you'll need to reinstall Pango-1.12.x * Bugs should be reported to http://bugzilla.gnome.org. About Pango =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x. Pango is designed to be modular; the core Pango layout engine can be used with different font backends. There are three basic backends, with multiple options for rendering with each. - Client side fonts using the FreeType and fontconfig libraries. Rendering can be with with Cairo or Xft libraries, or directly to an in-memory buffer with no additional libraries. - Native fonts on Microsoft Windows. (Optionally using Uniscribe for complex-text handling). Rendering can be done via Cairo or directly using the native Win32 API. - Native fonts on MacOS X, rendering via Cairo. The integration of Pango with Cairo (http://cairographics.org) provides a complete solution with high quality text handling and graphics rendering. Dynamically loaded modules then handle text layout for particular combinations of script and font backend. Pango ships with a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported. As well as the low level layout rendering routines, Pango includes PangoLayout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text. More information about Pango is available from http://www.pango.org/. Pango 1.13.2 depends on version 2.10.0 or newer of the GLib library and version 1.1.2 or newer of the cairo library (if the cairo backend is desired); more information about GLib and cairo can be found at http://www.gtk.org/ and http://cairographics.org/ respectively. Overview of changes between 1.13.1 and 1.13.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * Improved hexbox drawing, and font metrics calculations. * Synthesize italic variants on win32 [Hans Breuer] * New public API: - pango_cairo_show_error_underline - pango_cairo_error_underline_path - pango_font_describe_with_absolute_size * Misc fixes. * Bugs fixed in this release: Bug 326960 =E2=80=93 hex box drawing for win32 and atsui backends of cairo Bug 343717 =E2=80=93 License information in unclear. Bug 343355 =E2=80=93 Add pango_cairo_show_error_underline & pango_cairo_error_underline_path Bug 343966 =E2=80=93 pango Cygwin build fixes Patch from Cygwin Ports maintainer. Bug 343796 =E2=80=93 Italic Chinese character can't be show correctly in Win32. Bug 314114 =E2=80=93 max_x_advance not appropriate for approximate_(char|digit)_width Bug 341138 =E2=80=93 Using TTC font, Gtk2 programs begin to eating big mem= ory and have many cpu usage. Patch from Yong Li. Bug 336153 =E2=80=93 Mark to mark positioning (Lookup Type 6) isn't correc= t when using MarkAttchmentType Patch from Tin Myo Htet. Bug 333984 =E2=80=93 pango_language_from_string improvements Bug 125378 =E2=80=93 Better underline thickness handling Bug 339730 =E2=80=93 Pango needlessly falls back away from a Type 1 font i= nto a TTF font Bug 342562 =E2=80=93 Support absolute sizes in pango_font_description_to/from_string Bug 341922 =E2=80=93 pango should handle more characters as zero width Patch from Roozbeh Pournader Bug 342525 =E2=80=93 With PangoFc and PangoWin32, approximate digit width = is not what it says Bug 342079 =E2=80=93 pangoatsui-private.h missing from release Behdad Esfahbod 12 June 2006 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEjeBFn+4E5dNTERURApTwAJ9OvqbaG1xnQYzGPC9u0WPi30b6ggCfXNvZ oFfMwctzkAaKRETc/0aDRj0= =Wl7j -----END PGP SIGNATURE----- --=-HZBsNn3KdPR3jVVwB9gO-- From ibaldo@adinet.com.uy Tue Jun 13 14:57:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 16B3A3B03F2 for ; Tue, 13 Jun 2006 14:57:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02939-02 for ; Tue, 13 Jun 2006 14:57:02 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 2FFFE3B00C4 for ; Tue, 13 Jun 2006 14:57:01 -0400 (EDT) Received: from [201.217.132.210] (201.217.132.210) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009A5526 for gtk-list@gnome.org; Tue, 13 Jun 2006 15:56:17 -0300 Message-ID: <448F0A43.8030606@adinet.com.uy> Date: Tue, 13 Jun 2006 15:56:03 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.182 tagged_above=-999 required=2 tests=[AWL=-0.645, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.182 X-Spam-Level: Subject: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 18:57:07 -0000 Hello. I must be doing something wrong but I don't know what is it, I can't believe that it is a bug in libglade since it should hit a lot of applications and people and I am not very experienced with GTK2 (I used GTK1 some long time ago though). It seems that libglade is not connecting the realize event of the drawing area but I can't believe it. Can someone tell what I am doing wrong or what I am missing? I googled for this, read a lot of documentation, invested like 4 hours and still don't get it. I know I can do some workarounds to what I am trying to do, but I think that it is better to learn. Your toughts are very appreciated. Here is my testglade.c file: /* Compile with: gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags --libs) -export-dynamic */ #include #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GladeXML *gxml; gtk_init(&argc, &argv); gxml = glade_xml_new("test.glade", NULL, NULL); glade_xml_signal_autoconnect(gxml); gtk_main(); return 0; } Here is my test.glade file: True window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True I made a testgtk.c file too to see if I can get the realize event and this works (I used a notebook because thats what I am doing in my real application which uses libglade): /* Compile with: gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) */ #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GtkWidget *window, *nb, *lbl, *da; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); da = gtk_drawing_area_new (); gtk_widget_set_size_request (da, 100, 100); g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); lbl = gtk_label_new ("A notebook with a Drawing Area"); nb = gtk_notebook_new (); gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), GTK_WIDGET(lbl)); gtk_container_add (GTK_CONTAINER (window), nb); gtk_widget_show_all (window); gtk_main(); return 0; } Goodbye. P.s.: I posted this email to gtk-app-devel-list yesterday but it didn't show up... -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From ibaldo@adinet.com.uy Tue Jun 13 21:16:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EA96E3B00D4; Tue, 13 Jun 2006 21:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12110-07; Tue, 13 Jun 2006 21:16:26 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 6CF0B3B0147; Tue, 13 Jun 2006 21:16:25 -0400 (EDT) Received: from [201.217.133.125] (201.217.133.125) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009C939E; Tue, 13 Jun 2006 22:15:32 -0300 Message-ID: <448F404C.4020209@adinet.com.uy> Date: Tue, 13 Jun 2006 19:46:36 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org References: <448DEC68.9000706@adinet.com.uy> In-Reply-To: <448DEC68.9000706@adinet.com.uy> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.142 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.142 X-Spam-Level: Cc: Subject: Re: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 01:16:32 -0000 Hello. Sorry for the crosspost, I tought that gtk-app-devel-list wasn't working but what isn't working is my ISP, for some reason I don't receive the emails of this mailing lists so I have to watch the archives :-(, and since I sent this email to gtk-list too I think that it is apropiate to close this thread there as well since maybe someone answers it without knowing that I already discovered my problem. I will not disturb on gtk-list anymore. Well, now I get it! libglade first creates all widgets and *shows* them because that is what is told on the XML file, after that it autoconnects all the events, but it is already too late for the realize event since the widgets are already realized :-). Silly me... I couldn't figure it before. Solution: don't enable the visible attribute on widgets that you want to catch the realize event and show this widgets manually with your own code after all signals are autoconnected. Thank you and goodbye. P.s.: now I need to figure out why the unrealize signal isn't emitted, but maybe because I use gtk_main_quit instead of destroying the main window... El 12/06/06 19:36, Ivan Baldo escribi: > Hello. > I must be doing something wrong but I don't know what is it, I > can't believe that it is a bug in libglade since it should hit a lot > of applications and people and I am not very experienced with GTK2 (I > used GTK1 some long time ago though). > It seems that libglade is not connecting the realize event of the > drawing area but I can't believe it. > Can someone tell what I am doing wrong or what I am missing? I > googled for this, read a lot of documentation, invested like 4 hours > and still don't get it. I know I can do some workarounds to what I am > trying to do, but I think that it is better to learn. Your toughts are > very appreciated. > Here is my testglade.c file: > > /* > Compile with: > gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags > --libs) -export-dynamic > */ > > #include > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GladeXML *gxml; > gtk_init(&argc, &argv); > gxml = glade_xml_new("test.glade", NULL, NULL); > glade_xml_signal_autoconnect(gxml); > gtk_main(); > return 0; > } > > > Here is my test.glade file: > > > > > > > > True > window1 > GTK_WINDOW_TOPLEVEL > GTK_WIN_POS_NONE > False > True > False > True > False > False > GDK_WINDOW_TYPE_HINT_NORMAL > GDK_GRAVITY_NORTH_WEST > True > False > > > > True > last_modification_time="Mon, 12 Jun 2006 22:21:03 GMT"/> > > > > > > > > I made a testgtk.c file too to see if I can get the realize event > and this works (I used a notebook because thats what I am doing in my > real application which uses libglade): > /* > Compile with: > gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) > */ > > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GtkWidget *window, *nb, *lbl, *da; > gtk_init(&argc, &argv); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > da = gtk_drawing_area_new (); > gtk_widget_set_size_request (da, 100, 100); > g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); > lbl = gtk_label_new ("A notebook with a Drawing Area"); > nb = gtk_notebook_new (); > gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), > GTK_WIDGET(lbl)); > gtk_container_add (GTK_CONTAINER (window), nb); > gtk_widget_show_all (window); > gtk_main(); > return 0; > } > > Goodbye. > P.s.: I still don't know where to post this, I think the correct place > is here iin gtk-app-devel-list but maybe it should be gtk-list? > > -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From kereoz@yahoo.fr Wed Jun 14 11:41:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525F23B029F for ; Wed, 14 Jun 2006 11:41:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01059-03 for ; Wed, 14 Jun 2006 11:41:52 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id E2C1F3B01CF for ; Wed, 14 Jun 2006 11:41:51 -0400 (EDT) Received: (qmail 57560 invoked by uid 60001); 14 Jun 2006 15:41:09 -0000 Message-ID: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 14 Jun 2006 17:41:09 CEST Date: Wed, 14 Jun 2006 17:41:09 +0200 (CEST) From: Christophe HAUSER Subject: GtkFixed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.215 tagged_above=-999 required=2 tests=[AWL=0.384, BAYES_00=-2.599] X-Spam-Score: -2.215 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 15:41:54 -0000 Hello, I've got a problem using GtkFixed. Using the following code, the window is empty when I launch the app. fixed = gtk_fixed_new(); Moz = gtk_moz_embed_new(); gtk_container_add (GTK_CONTAINER (window), fixed); gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); gtk_widget_show_all(window); Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tvb@gnome.org Wed Jun 14 13:52:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36FAE3B0081 for ; Wed, 14 Jun 2006 13:52:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17448-10 for ; Wed, 14 Jun 2006 13:52:53 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id DB2C83B000E for ; Wed, 14 Jun 2006 13:52:52 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 4948015A7F; Wed, 14 Jun 2006 13:51:46 -0400 (EDT) Message-ID: <44904EFB.2060907@gnome.org> Date: Wed, 14 Jun 2006 14:01:31 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER Subject: Re: GtkFixed References: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_HELO_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 17:52:54 -0000 Christophe HAUSER wrote: > Hello, > > I've got a problem using GtkFixed. > Using the following code, the window is empty when I > launch the app. > > fixed = gtk_fixed_new(); > Moz = gtk_moz_embed_new(); > > gtk_container_add (GTK_CONTAINER (window), fixed); > gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); > > gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); > gtk_widget_show_all(window); Hmmm, looks like you have a fixed child with width/height = 0; try setting the size-request, since fixed doesnt allocate any size that you dont request. Cheers, -Tristan From M.Kahn@Astronautics.com Wed Jun 14 16:31:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03783B013D for ; Wed, 14 Jun 2006 16:31:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15984-10 for ; Wed, 14 Jun 2006 16:31:23 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 7DC8E3B0135 for ; Wed, 14 Jun 2006 16:31:22 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68FF1.5E830686" Subject: Button background colors Date: Wed, 14 Jun 2006 15:30:29 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaP8WA158meoUl2QFmwJ7Wu6VRUvQ== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.082 tagged_above=-999 required=2 tests=[AWL=0.439, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.082 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 20:31:25 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 =20 ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

 

------_=_NextPart_001_01C68FF1.5E830686-- From paul@linuxaudiosystems.com Wed Jun 14 17:26:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CF6E3B02DC for ; Wed, 14 Jun 2006 17:26:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23464-07 for ; Wed, 14 Jun 2006 17:26:36 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id AC98D3B0388 for ; Wed, 14 Jun 2006 17:26:35 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0V00LGSCVCHRK9@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Jun 2006 16:26:01 -0500 (CDT) Date: Wed, 14 Jun 2006 17:26:22 -0400 From: Paul Davis Subject: Re: Button background colors In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150320382.1765.96.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 21:26:42 -0000 On Wed, 2006-06-14 at 15:30 -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file > because I am programming to requirements that specify different > background colors for different buttons. gtk_widget_set_name (buttonwidget, "myNameForThisSpecialButton"); then use "myNameForThisSpecialButton" in an RC file. From ben@benjohnson.net Wed Jun 14 22:09:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B08C13B00F3 for ; Wed, 14 Jun 2006 22:09:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05224-06 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: from server019.dfw.nationwide.net (server019.dfw.nationwide.net [206.123.129.82]) by menubar.gnome.org (Postfix) with SMTP id 604B53B0018 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: (qmail 20394 invoked from network); 15 Jun 2006 02:08:31 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 15 Jun 2006 02:08:31 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 0AA77E4067 for ; Wed, 14 Jun 2006 19:08:32 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21661-10 for ; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id A3C6BE4071; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Date: Wed, 14 Jun 2006 19:08:31 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615020831.GP11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.551 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599] X-Spam-Score: -2.551 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 02:09:12 -0000 On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file because I am > programming to requirements that specify different background colors for > different buttons. > > I have tried using gtk_widget_modify_bg the button, using all combinations > of creating the button with and without a label. I use gtk_widget_modify_bg() without trouble. piece of a function: struct somethingorother pagestate_colors = { blah, blah, blah }; static void update_examples_from_state( GtkWidget * toggle ) { GdkColor color = pagestate_colors.scheme_bg_normal; gtk_widget_modify_bg( toggle, GTK_STATE_NORMAL, &color); gtk_widget_modify_bg( toggle, GTK_STATE_ACTIVE, &color); gtk_widget_modify_bg( toggle, GTK_STATE_PRELIGHT, &color); gtk_widget_modify_bg( toggle, GTK_STATE_SELECTED, &color); gtk_widget_modify_bg( toggle, GTK_STATE_INSENSITIVE, &color); } after running that you have to let the main event processing loop run a little to let your changes take effect. I am using using 2.6.8-1 but I can't imagine this functionality would have changed. - Anna From laowenbo@gmail.com Thu Jun 15 02:38:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EC5B3B02E7 for ; Thu, 15 Jun 2006 02:38:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17015-01 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id B09DC3B0118 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so183376pyd for ; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr2447571pyi; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.109.19 with HTTP; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 14:37:56 +0800 From: "lao wb" To: gtk-list@gnome.org Subject: Where to get more information about GDK MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1639_31450020.1150353476125" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -0.659 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 06:38:34 -0000 ------=_Part_1639_31450020.1150353476125 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, i am a newcomer The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk, but look like there is no www.gdk.org, another site i can find is developer.gnome.org, while lack of enough examples. I really need examples to know how to use the tricky gdk_XXX APIs. Thanks in advance! laowenbo ------=_Part_1639_31450020.1150353476125 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,
i am a newcomer
The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk,  but look like there is no www.gdk.org , another site i can find is developer.gnome.org, while lack of enough examples.  I  really  need examples  to  know how to use the tricky gdk_XXX APIs. Thanks  in advance!

laowenbo
------=_Part_1639_31450020.1150353476125-- From yeti@physics.muni.cz Thu Jun 15 04:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 407AC3B03BB for ; Thu, 15 Jun 2006 04:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23572-06 for ; Thu, 15 Jun 2006 04:48:08 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 74E203B00F7 for ; Thu, 15 Jun 2006 04:48:07 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5F8laRp032159 for ; Thu, 15 Jun 2006 10:47:37 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id DBA3623D5E; Thu, 15 Jun 2006 10:47:36 +0200 (CEST) Date: Thu, 15 Jun 2006 10:47:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615084737.GM2858@potato.chello.upc.cz> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 08:48:10 -0000 On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > I use gtk_widget_modify_bg() without trouble. piece of a function: It works for people who use a decent Gtk+ theme. But themes and theme engines can easily make similar things stop working. Try just style "default" { bg_pixmap[NORMAL] = "someimage" } widget_class "*" style "default" in your gtkrc. I am afraid the requirement of particular colors goes directly against themeability. One cannot have both. Yeti -- Anonyms eat their boogers. From rvaughan@gmail.com Thu Jun 15 08:11:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F45E3B03E8 for ; Thu, 15 Jun 2006 08:11:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05367-05 for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 422B93B03BB for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so845715uge for ; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr1254247ugm; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.97.17 with HTTP; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 13:11:47 +0100 From: "Richard Vaughan" To: gtk-list@gnome.org Subject: Layered Drawing Areas MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.026 tagged_above=-999 required=2 tests=[AWL=1.068, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: 0.026 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:11:53 -0000 Hi, Has anyone managed to get multiple drawing areas to layer transparently ontop of eachother? I am trying to create an app that looks like it will need 3 or four layers of information drawn ontop of each other - but I want to be able to work with the layers independantly, and I want to be able to see down to the bottom layer. Using a fixed container I can have the layers (at least it seems to do what I think I want), but when I draw in a layer it seems to blank out the 'destroyed' area. Is there a way of setting the transparency, or linking the background image for the layer above to the layer beneath it? If it changes anything I am using GPE on an Ipaq... Thanks, Richard From paul@linuxaudiosystems.com Thu Jun 15 08:56:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA8FA3B05A7 for ; Thu, 15 Jun 2006 08:56:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10559-01 for ; Thu, 15 Jun 2006 08:56:36 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B95773B04A2 for ; Thu, 15 Jun 2006 08:56:11 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W00MXXJXDED5C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 07:56:02 -0500 (CDT) Date: Thu, 15 Jun 2006 08:56:23 -0400 From: Paul Davis Subject: Re: Layered Drawing Areas In-reply-to: To: Richard Vaughan Message-id: <1150376183.1765.118.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:56:47 -0000 On Thu, 2006-06-15 at 13:11 +0100, Richard Vaughan wrote: > Hi, > > Has anyone managed to get multiple drawing areas to layer > transparently ontop of eachother? > > I am trying to create an app that looks like it will need 3 or four > layers of information drawn ontop of each other - but I want to be > able to work with the layers independantly, and I want to be able to > see down to the bottom layer. > > Using a fixed container I can have the layers (at least it seems to do > what I think I want), but when I draw in a layer it seems to blank out > the 'destroyed' area. Is there a way of setting the transparency, or > linking the background image for the layer above to the layer beneath > it? > > If it changes anything I am using GPE on an Ipaq... GnomeCanvas widget. GTK widgets do not (currently) support any notion of alpha transparency or z-order (stacking). The Canvas does. It has no relationships with Gnome other than those shared with GTK. GnomeCanvas is no longer "supported", but as yet its successor has not emerged and there are several contenders. --p From kereoz@yahoo.fr Thu Jun 15 10:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A85B3B05A7 for ; Thu, 15 Jun 2006 10:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16151-02 for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id 36F783B05BC for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: (qmail 4610 invoked by uid 60001); 15 Jun 2006 14:17:18 -0000 Message-ID: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 16:17:17 CEST Date: Thu, 15 Jun 2006 16:17:17 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <44904EFB.2060907@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.274 tagged_above=-999 required=2 tests=[AWL=0.325, BAYES_00=-2.599] X-Spam-Score: -2.274 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 14:17:33 -0000 I tried setting the size-request, but the widget is still not shown...and I've got no error while compiling... I can run the app without any error, but I only see the main window... > Hmmm, looks like you have a fixed child with > width/height = 0; > try setting the size-request, since fixed doesnt > allocate any size > that you dont request. > > Cheers, > -Tristan > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:11:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDA413B0427 for ; Thu, 15 Jun 2006 11:11:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18523-06 for ; Thu, 15 Jun 2006 11:11:29 -0400 (EDT) Received: from web25909.mail.ukl.yahoo.com (web25909.mail.ukl.yahoo.com [217.12.10.207]) by menubar.gnome.org (Postfix) with SMTP id C78DB3B0261 for ; Thu, 15 Jun 2006 11:11:28 -0400 (EDT) Received: (qmail 17522 invoked by uid 60001); 15 Jun 2006 15:11:03 -0000 Message-ID: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25909.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:11:02 CEST Date: Thu, 15 Jun 2006 17:11:02 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615145020.HUVX16286.aamtaout03-winn.ispmail.ntl.com@smtp.ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.242, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:11:31 -0000 I think it will help :) But about the size request, I wonder if my code is right : GtkRequisition *req ; req->height = 300; req->width = 400; gtk_widget_size_request(GTK_WIDGET(Moz), req); Maybe I forget something ? It doesn't work better with a button or any other widget, but when it is something else than a mozilla widget, I can see it very small :) It is not resized... > This may help or may not? > Sometimes I have found with GtkContainer derived > widgets the requested position/layout is overridden. > Do a search for _gtk_widget_get_aux_info in the gtk > code. > > Calls to gtk_widget_set_uposition and > gtk_widget_set_usize create a GtkWidgetAuxInfo > structure which holds the location and positional > information from the fore mentioned calls. Once > created these values are used as default in size > requests. > > Could the moz widget be using > gtk_widget_set_uposition or gtk_widget_set_usize > internally? > > Regards > > ----------------------------------------- > Email sent from www.ntlworld.com > Virus-checked using McAfee(R) Software > Visit www.ntlworld.com/security for more information > > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:27:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E921A3B05D7 for ; Thu, 15 Jun 2006 11:27:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19172-08 for ; Thu, 15 Jun 2006 11:27:23 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id D9EB83B05DE for ; Thu, 15 Jun 2006 11:27:22 -0400 (EDT) Received: (qmail 6262 invoked by uid 60001); 15 Jun 2006 15:26:43 -0000 Message-ID: <20060615152643.6260.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:26:43 CEST Date: Thu, 15 Jun 2006 17:26:43 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.311 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.311 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:27:26 -0000 Ok, I found the problem : I called the function gtk_widget_size_request instead of gtk_widget_set_size_request There is something strange : I didn't find gtk_widget_set_size_request in GTK documentation, but I found gtk_widget_size_request --- Christophe HAUSER a 閏rit : > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > > > > Christophe HAUSER > http://kereoz.sup.fr > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la > meilleure protection possible contre les messages > non sollicit閟 > http://mail.yahoo.fr Yahoo! Mail > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From paul@linuxaudiosystems.com Thu Jun 15 11:54:59 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8F83D3B0623 for ; Thu, 15 Jun 2006 11:54:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21029-03 for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 5B6DC3B063D for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W0030XS358E42@vms042.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 10:52:17 -0500 (CDT) Date: Thu, 15 Jun 2006 11:52:39 -0400 From: Paul Davis Subject: Re: RE : Re: RE : Re: GtkFixed In-reply-to: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> To: Christophe HAUSER Message-id: <1150386759.22276.5.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:54:59 -0000 On Thu, 2006-06-15 at 17:11 +0200, Christophe HAUSER wrote: > I think it will help :) > But about the size request, I wonder if my code is > right : > > GtkRequisition *req ; > req->height = 300; > req->width = 400; > > gtk_widget_size_request(GTK_WIDGET(Moz), req); gtk_widget_set_size_request() From cole-anstey@ntlworld.com Thu Jun 15 13:44:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A2983B0314 for ; Thu, 15 Jun 2006 13:44:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25557-02 for ; Thu, 15 Jun 2006 13:44:03 -0400 (EDT) Received: from queue01-winn.ispmail.ntl.com (queue01-winn.ispmail.ntl.com [81.103.221.55]) by menubar.gnome.org (Postfix) with ESMTP id 62F8D3B0126 for ; Thu, 15 Jun 2006 13:44:02 -0400 (EDT) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20060615145316.CKIP28076.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 Received: from smtp.ntlworld.com ([81.103.221.25]) by aamtaout04-winn.ispmail.ntl.com with SMTP id <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 X-Mailer: Openwave WebEngine, version 2.8.17 (webedge20-101-1107-20041027) X-Originating-IP: [146.82.1.162] From: To: Subject: Re: RE : Re: GtkFixed Date: Thu, 15 Jun 2006 14:53:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.572 tagged_above=-999 required=2 tests=[AWL=-0.718, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -0.572 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 17:44:04 -0000 > > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > This may help or may not? Sometimes I have found with GtkContainer derived widgets the requested position/layout is overridden. Do a search for _gtk_widget_get_aux_info in the gtk code. Calls to gtk_widget_set_uposition and gtk_widget_set_usize create a GtkWidgetAuxInfo structure which holds the location and positional information from the fore mentioned calls. Once created these values are used as default in size requests. Could the moz widget be using gtk_widget_set_uposition or gtk_widget_set_usize internally? Regards ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From adc4444@hotmail.com Thu Jun 15 14:07:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9713A3B0397 for ; Thu, 15 Jun 2006 14:07:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26238-06 for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 7FBC63B007F for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 Jun 2006 11:07:10 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Thu, 15 Jun 2006 18:07:09 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com From: "DC A" To: gtk-list@gnome.org Subject: Problem in updating progress bar Date: Thu, 15 Jun 2006 18:07:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Jun 2006 18:07:10.0440 (UTC) FILETIME=[85713E80:01C690A6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.162 tagged_above=-999 required=2 tests=[AWL=-2.069, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 18:07:45 -0000 What could be the reason for using gtk_events_pending() and gtk_main_iteration() in the following code snippet: for( gflt=0; gflt<=1; ){ gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); //update while (gtk_events_pending ()) gtk_main_iteration (); gflt += 0.1; sleep(1); if ( gflt > 1 ) break; } why the code cannot update the progressbar without these two functions? I saw the API but still it is not clear to me. Thanks. --AD _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From yeti@physics.muni.cz Thu Jun 15 16:27:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 733223B01A1 for ; Thu, 15 Jun 2006 16:27:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31273-10 for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 575F33B006C for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5FJHlVX028614 for ; Thu, 15 Jun 2006 21:17:48 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 2DC7C23D5E; Thu, 15 Jun 2006 21:17:47 +0200 (CEST) Date: Thu, 15 Jun 2006 21:17:50 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Problem in updating progress bar Message-ID: <20060615191750.GO30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:27:57 -0000 On Thu, Jun 15, 2006 at 06:07:09PM +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. Have yor read the FAQ too? http://www.gtk.org/faq/#AEN602 Also, are you aware gtk_progress_bar_update() is deprecated? gtk_progress_bar_set_fraction() -- which is the function to use -- only queues the drawing. The drawing then actually occurs in Gtk+ main loop, which does not have a chance to run without gtk_main_iteration(). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Thu Jun 15 16:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F7FB3B01A1 for ; Thu, 15 Jun 2006 16:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00430-05 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id BFC843B0237 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0X009IA2VD7944@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 14:45:14 -0500 (CDT) Date: Thu, 15 Jun 2006 15:45:35 -0400 From: Paul Davis Subject: Re: Problem in updating progress bar In-reply-to: To: DC A Message-id: <1150400735.22276.22.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:53:34 -0000 On Thu, 2006-06-15 at 18:07 +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. google for "event based programming main loop" programming GUIs is very different in its basic control flow model than writing simple non-user-driven procedural software. From M.Kahn@Astronautics.com Thu Jun 15 16:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 740B13B03D2 for ; Thu, 15 Jun 2006 16:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00479-06 for ; Thu, 15 Jun 2006 16:54:44 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 79F013B0311 for ; Thu, 15 Jun 2006 16:54:43 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C690BD.DA53493A" Subject: RE: Button background colors Date: Thu, 15 Jun 2006 15:54:10 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019481FF@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSABaKA0g From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:54:47 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A coworker came to my rescue on this one. I am a Linux developer and this application had to work under Windows. It turns out that if your Windows desktop theme is set to "Windows XP" then you cannot change the background color of your buttons. If you change your desktop theme to "Windows Classic" then the gtk_widget_modify_style approach works. The gtk_widget_set_style and other approaches may also work, but I haven't tested them. We have a short deadline on this app - I'll test it later. =20 Thanks to everyone who gave it a look. What a surprise it turned out to be a Windows problem, not a GTK problem. =20 Michael Kahn =20 ________________________________ From: Michael Kahn=20 Sent: Tuesday, June 13, 2006 8:49 PM To: 'gtk-list@gnome.org' Subject: Button background colors =20 I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A coworker came to my rescue on = this one.  I am a Linux developer and this application had to work under Windows.  It turns out that if your Windows desktop theme is set to = “Windows XP” then you cannot change the background color of your = buttons.  If you change your desktop theme to “Windows Classic” then the = gtk_widget_modify_style approach works.  The gtk_widget_set_style  and other = approaches may also work, but I haven’t tested them.  We have a short = deadline on this app – I’ll test it later.

 

Thanks to everyone who gave it a look.  What a surprise it turned out to be a Windows problem, not a = GTK problem.

 

  Michael = Kahn

 


From: = Michael Kahn
Sent: Tuesday, June 13, = 2006 8:49 PM
To: = 'gtk-list@gnome.org'
Subject: Button = background colors

 

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C690BD.DA53493A-- From BillS@techsi.com Thu Jun 15 18:05:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348F23B01FF for ; Thu, 15 Jun 2006 18:05:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02711-10 for ; Thu, 15 Jun 2006 18:05:22 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 09F4F3B018C for ; Thu, 15 Jun 2006 18:05:21 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k5FLp1AZ024125 for ; Thu, 15 Jun 2006 16:51:06 -0500 From: "Bill Sousan" To: Subject: use of gtk rc files slows down display Date: Thu, 15 Jun 2006 17:04:18 -0500 Message-ID: <000601c690c7$aa62c850$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C6909D.C18CC050" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.603 tagged_above=-999 required=2 tests=[AWL=-0.682, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.603 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 22:05:25 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using some existing rc files for my gtk application that I pulled off of the web and noticed a considerable slow down in the display versus when not using an rc file (the one passed to gtk_rc_parse() function). Are there considerations that I need to be aware of if I want to use to rc files to have a nice "skin" without the slowdown? Thanks, Bill ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using some existing rc files for my gtk = application that I pulled off of the web and noticed a considerable slow down in the = display versus when not using an rc file (the one passed to gtk_rc_parse() function).  Are there considerations that I need to be aware of if = I want to use to rc files to have a nice “skin” without the = slowdown?

 

Thanks,

Bill

 

 

------=_NextPart_000_0007_01C6909D.C18CC050-- From diego@otello.alma.unibo.it Fri Jun 16 01:40:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C38C23B006C for ; Fri, 16 Jun 2006 01:40:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18193-03 for ; Fri, 16 Jun 2006 01:40:09 -0400 (EDT) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 852AC3B0011 for ; Fri, 16 Jun 2006 01:39:59 -0400 (EDT) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 44DB0122256; Fri, 16 Jun 2006 03:38:40 -0400 (EDT) Message-ID: <449243F6.6010901@otello.alma.unibo.it> Date: Fri, 16 Jun 2006 07:39:02 +0200 From: Diego Zuccato User-Agent: Thunderbird 1.5.0.2 (X11/20060422) MIME-Version: 1.0 To: DC A Subject: Re: Problem in updating progress bar References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.558 tagged_above=-999 required=2 tests=[AWL=0.041, BAYES_00=-2.599] X-Spam-Score: -2.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 05:40:28 -0000 DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. 'Cause you're blocking the main loop (which handles all the updating). But that sleep(1) still blocks for a whole second any action: your GUI will act quite strangely! Could be really better to handle a timeout/idle callback. If all you have to do is some lengthy operation, you could use a thread that does it and updates a "percentage indicator" (a shared variable). In the main program (the GUI manager) you set up a timeout callback (the timeout is up to you: from .1 to tenths of seconds) that reads the shared variable and updates the progress bar. This way you won't have to bother about locks: just DON'T do anything GUI-related in the calc thread. BYtE, Diego. From lists@nabble.com Fri Jun 16 07:14:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12D983B0007 for ; Fri, 16 Jun 2006 07:14:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26539-04 for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id C61543B002C for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FrCGc-0008HH-NC for gtk-list@gnome.org; Fri, 16 Jun 2006 04:13:34 -0700 Message-ID: <4898493.post@talk.nabble.com> Date: Fri, 16 Jun 2006 03:58:40 -0700 (PDT) From: prashu To: gtk-list@gnome.org Subject: Regarding GTK player MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: prashan@sasken.com X-Nabble-From: prashu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.316 tagged_above=-999 required=2 tests=[AWL=2.285, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.316 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 11:14:35 -0000 hi all... i am designing user inerface to mobiles for mobiles. For UI i selected GTK as framework. I am writting in C langauge. What actually i need is one playlist window which contains audio files from particular directory. on selecting file from playlist another window should open. which contains play and pause buttons. If any one have code of this thing , please mail to my id, prashan@sasken.com. with regards, Prashanth KM -- View this message in context: http://www.nabble.com/Regarding-GTK-player-t1797584.html#a4898493 Sent from the Gtk+ - General forum at Nabble.com. From adc4444@hotmail.com Fri Jun 16 14:07:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C2A253B026A for ; Fri, 16 Jun 2006 14:07:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11049-01 for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 5D7A93B030D for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 16 Jun 2006 11:05:35 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Fri, 16 Jun 2006 18:05:30 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com In-Reply-To: <449243F6.6010901@otello.alma.unibo.it> From: "DC A" To: diego@otello.alma.unibo.it, gtk-list@gnome.org Subject: Re: Problem in updating progress bar Date: Fri, 16 Jun 2006 18:05:30 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 16 Jun 2006 18:05:35.0606 (UTC) FILETIME=[77547960:01C6916F] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.156 tagged_above=-999 required=2 tests=[AWL=-2.063, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.156 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 18:07:54 -0000 Thank you all for explaining this problem. --DC _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From papel@free.fr Wed Jun 14 07:03:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB43B01B1 for ; Wed, 14 Jun 2006 07:03:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16109-06 for ; Wed, 14 Jun 2006 07:03:40 -0400 (EDT) Received: from swip.net (mailfe04.tele2.fr [212.247.154.108]) by menubar.gnome.org (Postfix) with ESMTP id 9DBBD3B0093 for ; Wed, 14 Jun 2006 07:03:39 -0400 (EDT) X-T2-Posting-ID: 4qjjVdH8TQlq0xUsIYMW3y8I4nzdJt8e7HSuCLByD9Y= X-Cloudmark-Score: 0.000000 [] Received: from [80.170.52.241] (HELO localhost) by mailfe04.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 212846123 for gtk-list@gnome.org; Wed, 14 Jun 2006 13:03:02 +0200 Message-ID: <448FEC06.9090600@free.fr> Date: Wed, 14 Jun 2006 12:59:18 +0200 From: Papel User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.12) Gecko/20050920 X-Accept-Language: fr, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk events ??? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.898 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -0.898 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 11:03:42 -0000 Hello, From a few days ago, i have a lot of problems with gtk events (MainLoop). I have created a GTK frame into a main widget and a box into this frame. I have reparent this widget (window) to a XWindow. I would like to send events (XEvents) to this widget. How I can do to send this XEvents to GtkEvents to the widget ??? I have tried : gtk_widget_event / gtk_main_iteration_do / gtk_main_do_event / etc... Thank you in advance MCB From root@gateshead-online.co.uk Thu Jun 15 03:57:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B35803B0155 for ; Thu, 15 Jun 2006 03:57:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20648-07 for ; Thu, 15 Jun 2006 03:57:12 -0400 (EDT) Received: from gateshead-online.co.uk (p15122568.pureserver.info [217.160.177.192]) by menubar.gnome.org (Postfix) with ESMTP id 1EC033B02FA for ; Thu, 15 Jun 2006 03:57:09 -0400 (EDT) Received: from root by gateshead-online.co.uk with local (Exim 4.30) id 1Fqmic-0008Bj-Jf for gtk-list@gnome.org; Thu, 15 Jun 2006 08:56:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17553.4798.584679.71190@p15122568.pureserver.info> Date: Thu, 15 Jun 2006 08:56:46 +0100 To: gtk-list@gnome.org From: dale_mellor@users.sourceforge.net Subject: Re: Button background colors In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> X-Mailer: VM 7.18 under Emacs 21.4.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.503 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961] X-Spam-Score: -1.503 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 07:57:14 -0000 I too use gtk_widget_modify_bg without trouble on a GtkButton object, using GTK version 2.9.2. Anna writes: > On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > > I am using Gtk 2.8.18. > > > > I would like to know how to set the background color in a GtkButton. > > > > I cannot set the background in a style, theme, or resource file because I am > > programming to requirements that specify different background colors for > > different buttons. > > > > I have tried using gtk_widget_modify_bg the button, using all combinations > > of creating the button with and without a label. > > I use gtk_widget_modify_bg() without trouble. piece of a function: > From jose.francisco.hevia@gmail.com Thu Jun 15 05:27:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B20D43B0270 for ; Thu, 15 Jun 2006 05:27:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25836-07 for ; Thu, 15 Jun 2006 05:27:38 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8A7003B0353 for ; Thu, 15 Jun 2006 05:27:37 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so51745nfe for ; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.47.10 with SMTP id u10mr360304nfu; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 15 Jun 2006 02:27:35 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 11:27:35 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Button background colors In-Reply-To: <20060615084737.GM2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.104 tagged_above=-999 required=2 tests=[AWL=0.195, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.104 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 09:27:39 -0000 MjAwNi82LzE1LCBEYXZpZCBOZehhcyAoWWV0aSkgPHlldGlAcGh5c2ljcy5tdW5pLmN6PjoKPiBP biBXZWQsIEp1biAxNCwgMjAwNiBhdCAwNzowODozMVBNIC0wNzAwLCBBbm5hIHdyb3RlOgo+ID4K PiA+IEkgdXNlIGd0a193aWRnZXRfbW9kaWZ5X2JnKCkgd2l0aG91dCB0cm91YmxlLiAgcGllY2Ug b2YgYSBmdW5jdGlvbjoKPgo+IEl0IHdvcmtzIGZvciBwZW9wbGUgd2hvIHVzZSBhIGRlY2VudCBH dGsrIHRoZW1lLiAgQnV0IHRoZW1lcwo+IGFuZCB0aGVtZSBlbmdpbmVzIGNhbiBlYXNpbHkgbWFr ZSBzaW1pbGFyIHRoaW5ncyBzdG9wIHdvcmtpbmcuCj4gVHJ5IGp1c3QKPgo+IHN0eWxlICJkZWZh dWx0IiB7Cj4gICAgYmdfcGl4bWFwW05PUk1BTF0gPSAic29tZWltYWdlIgo+IH0KPiB3aWRnZXRf Y2xhc3MgIioiIHN0eWxlICJkZWZhdWx0Igo+Cj4gaW4geW91ciBndGtyYy4KPgo+IEkgYW0gYWZy YWlkIHRoZSByZXF1aXJlbWVudCBvZiBwYXJ0aWN1bGFyIGNvbG9ycyBnb2VzCj4gZGlyZWN0bHkg YWdhaW5zdCB0aGVtZWFiaWxpdHkuICBPbmUgY2Fubm90IGhhdmUgYm90aC4KPgo+IFlldGkKCkF0 IGZpcnN0LCBJIGFncmVlZCB3aXRoIHRoaXMuIE5vdyBJIGtub3cgdGhhdCBpdCdzIHBvc3NpYmxl IHRvIG1ha2UgYW4KaW50ZWxsaWdlbnQgcHJvZ3JhbSB0aGF0IGtub3dzIHdpdGNoIGNvbG9ycyBh cmUgeW91IHVzaW5nIGFuZCB0YWtlCmFjdGlvbiBmcm9tIGl0LgoKODAgcGVyIGNlbnQgb2YgdGhl bWVzIGFyZSBhbG1vc3Qgd2hpdGUgZm9yIGJ1dHRvbnMsIEkgbGlrZSBkYXJrIG9uZXMuClRoaXMg Y291bGQgYmUgZGV0ZWN0ZWQgYnkgdGhlIHByb2dyYW0gYW5kIGRlY2lkZToKSWYgeW91IGFyZSB1 c2luZyBicmlnaHQgdGhlbWVzIHtzZWxlY3QgdGhpcyBjb2xvcnMufQplbHNlIHtzZWxlY3QgdGhl IG90aGVyIG9uZXMufQpiYXNlZCBpbiBjb250cmFzdCBiZXR3ZWVuIHRoZW0KClRoZW1lYWJpbGl0 eSBpcyB2ZXJ5IGltcG9ydGFudCBmb3IgR3RrLCBidXQgdXNpbmcgY29sb3JzIGxpa2Ugc2NhbGFi bGUKaWNvbnMgKGxvb2sgYXQgdGhlc2UgZmlsbXMgd2l0aCB0aGUgInJlZCBidXR0b24iKSB3aXRo b3V0IGhhdmluZyB0bwpib3RoZXIgd2l0aCBjb21wbGV4aXR5IGdpdmVzIGd0ayBhIGxvdCBvZiBw b3dlciB0byBnaXZlIGl0IGF3YXkuCgogICAgICAgICAgICBKb3NlIEhldmlhCg== From kstachowski@o2.pl Thu Jun 15 19:00:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1AB673B00D0 for ; Thu, 15 Jun 2006 19:00:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04700-08 for ; Thu, 15 Jun 2006 19:00:27 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 03CFC3B0080 for ; Thu, 15 Jun 2006 19:00:26 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2035C58014 for ; Fri, 16 Jun 2006 00:59:51 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: drawing a generated bitmap Date: Thu, 15 Jun 2006 22:59:50 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606152259.50433.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.102 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: 1.102 X-Spam-Level: * X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 23:00:28 -0000 hello :) i understand this is a basic question and am sorry for my ignorance. i really haven't managed to find an answer though i've searched quite a time. i've actually got two problems (using nemerle (mono, i.e. gtk#)): 1. i'd like to generate a terrain heightmap and draw it onto a widget. should i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), try to convert it to an xpm (how?) or what other method would be most appropriate? (please, read the second question before answering this one) 2. i'd like to be able to fluently change the colours while the heightmap is already generated. in the old days (i haven't written much for quite a time) it was possible to just draw a bitmap onto the screen and keep redefining the colours, which was pretty fast and looked nice in its way. is it still doable? i'd need it for altering the water level on the map. any help would be appreciated :) From zhaolj@gmail.com Fri Jun 16 03:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46A9B3B000B for ; Fri, 16 Jun 2006 03:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20725-04 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 76F973B0007 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so510575pyd for ; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.15.11 with SMTP id s11mr424956pyi; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Message-ID: <9f5a93cb0606160026o65c6bc68gdd9b2a4ad88f4264@mail.gmail.com> Date: Fri, 16 Jun 2006 15:26:41 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.818 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.818 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 07:27:56 -0000 RGVhciBBbGwsCgpJIGhhdmUgYSBwcm9ibGVtIHdoZW4gSSBjcmVhdGUgYSBuZXcgR1NvdXJjZSBz dHJ1Y3R1cmUuCgpJbiBmYWN0LCBJIHdvdWxkIHNlbmQgc29tZSBldmVudHMgdG8gdGhlIG1haW4g bG9vcCBvZiBteSBhcHAgZnJvbQpvdGhlciB0aHJlYWRzIG9ubHkgd2l0aCB0aGUgZ2xpYiBBUElz LiBJIGNyZWF0ZSBteSBvd24gR1NvdXJjZQpzdHJ1Y3R1cmUgYW5kIGF0dGFjaCBpdCB3aXRoIHRo ZSBkZWZhdWx0IG1haW4gY29udGV4dC4gQnV0IEkgYWx3YXlzCmdldCBhIHNlZ21lbnQgZmF1bHQg d2hlbiB0aGUgb3RoZXIgdGhyZWFkIHNlbmQgc29tZSB0aGluZyB0byB0aGUgbWFpbgpsb29wLiBJ IGZpbmQgZXZlcnkgZmV3IGluZm9ybWF0aW9uIGFib3V0IHVzaW5nIEdTb3VyY2UuCgpXaGVyZSBj YW4gSSBmaW5kIGFuIGV4YW1wbGUgb2YgdXNpbmcgR1NvdXJjZSAobm90IHVzaW5nCmdfaWRsZV9z b3VyY2VfbmV3LCBub3IgZ190aW1lb3V0X3NvdXJjZV9uZXcpID8gb3IgQ2FuIHlvdSBndXlzIHN1 Z2dlc3QKbWUgYmV0dGVyIHNvbHV0aW9uIGFib3V0IHNlbmQgZXZlbnQgd2l0aCBteSBvd24gZGF0 YSB0byBtYWluIGxvb3AKKG1haW4gbG9vcCBjYW4gbm90IGJlIHN0b3BlZCBvciBibG9ja2VkKSBv bmx5IHVzaW5nIGdsaWIgQVBJcz8KClRoYW5rcyBpbiBhZHZhbmNlIQoKLS0gClJlZ2FyZHOjoQoK TGlhbmdqaW5nCg== From andyggill@gmail.com Fri Jun 16 09:51:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF0263B0011 for ; Fri, 16 Jun 2006 09:51:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30311-07 for ; Fri, 16 Jun 2006 09:51:39 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by menubar.gnome.org (Postfix) with ESMTP id BC4D33B0007 for ; Fri, 16 Jun 2006 09:51:38 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so487632nfe for ; Fri, 16 Jun 2006 06:50:41 -0700 (PDT) Received: by 10.48.43.7 with SMTP id q7mr1735277nfq; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Received: by 10.49.58.15 with HTTP; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Message-ID: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> Date: Fri, 16 Jun 2006 14:50:40 +0100 From: "andy gill" To: gtk-list@gnome.org Subject: opengl and gtk MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_113283_13878838.1150465840774" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.161 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -0.161 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 13:51:42 -0000 ------=_Part_113283_13878838.1150465840774 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree. what's the best (i.e. documented and supported) way of getting opengl and gtk to work together? cheers. ------=_Part_113283_13878838.1150465840774 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree.
what's the best (i.e. documented and supported) way of getting opengl and gtk to work together?

cheers.
------=_Part_113283_13878838.1150465840774-- From zhaolj@gmail.com Sat Jun 17 12:32:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 872CF3B0139 for ; Sat, 17 Jun 2006 12:32:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27157-09 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id 3DAF43B00E6 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so865244pyd for ; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr6012908pyi; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Message-ID: <9f5a93cb0606170932i455c53c0ved3aa0c501215662@mail.gmail.com> Date: Sun, 18 Jun 2006 00:32:02 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.597 tagged_above=-999 required=2 tests=[AWL=0.779, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -1.597 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 16:32:47 -0000 RGVhciBBbGwsCgpTb3JyeSwgSSBhbSBub3Qgc3VyZSBpZiBJIHBvc3QgdGhpcyBxdWVzdGlvbiB0 d2ljZSBpbiB0aGlzIGxpc3QuIEJ1dAppdCBzZWVtcyB0aGUgZmlyc3QgdGltZSB3YXMgZmFpbGVk LgoKSSBoYXZlIGEgcHJvYmxlbSB3aGVuIEkgY3JlYXRlIGEgbmV3IEdTb3VyY2Ugc3RydWN0dXJl LgoKSW4gZmFjdCwgSSB3b3VsZCBzZW5kIHNvbWUgZXZlbnRzIHRvIHRoZSBtYWluIGxvb3Agb2Yg bXkgYXBwIGZyb20Kb3RoZXIgdGhyZWFkcyBvbmx5IHdpdGggdGhlIGdsaWIgQVBJcy4gSSBjcmVh dGUgbXkgb3duIEdTb3VyY2UKc3RydWN0dXJlIGFuZCBhdHRhY2ggaXQgd2l0aCB0aGUgZGVmYXVs dCBtYWluIGNvbnRleHQuIEJ1dCBJIGFsd2F5cwpnZXQgYSBzZWdtZW50IGZhdWx0IHdoZW4gdGhl IG90aGVyIHRocmVhZCBzZW5kIHNvbWUgdGhpbmcgdG8gdGhlIG1haW4KbG9vcC4gSSBmaW5kIGV2 ZXJ5IGZldyBpbmZvcm1hdGlvbiBhYm91dCB1c2luZyBHU291cmNlLgoKV2hlcmUgY2FuIEkgZmlu ZCBhbiBleGFtcGxlIG9mIHVzaW5nIEdTb3VyY2UgKG5vdCB1c2luZwpnX2lkbGVfc291cmNlX25l dywgbm9yIGdfdGltZW91dF9zb3VyY2VfbmV3KSA/IG9yIENhbiB5b3UgZ3V5cyBzdWdnZXN0Cm1l IGJldHRlciBzb2x1dGlvbiBhYm91dCBzZW5kIGV2ZW50IHdpdGggbXkgb3duIGRhdGEgdG8gbWFp biBsb29wCihtYWluIGxvb3AgY2FuIG5vdCBiZSBzdG9wZWQgb3IgYmxvY2tlZCkgb25seSB1c2lu ZyBnbGliIEFQSXM/CgpUaGFua3MgaW4gYWR2YW5jZSEKCi0tIApSZWdhcmRzo6EKCkxpYW5namlu Zwo= From ben@benjohnson.net Sat Jun 17 16:19:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6D3B02A9 for ; Sat, 17 Jun 2006 16:19:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06354-09 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: from server016.dfw.nationwide.net (server016.dfw.nationwide.net [206.123.129.79]) by menubar.gnome.org (Postfix) with SMTP id C8CD93B00D2 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: (qmail 15137 invoked from network); 17 Jun 2006 20:17:13 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Sat, 17 Jun 2006 20:17:13 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 2E560E4067 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00589-06 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id E181DE4071; Sat, 17 Jun 2006 13:17:12 -0700 (PDT) Date: Sat, 17 Jun 2006 13:17:12 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617201712.GF11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.515 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.515 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:19:46 -0000 On Thu, Jun 15, 2006 at 11:27:35AM +0200, Jose Hevia wrote: > 2006/6/15, David Ne?as (Yeti) : > > On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > > > > > I use gtk_widget_modify_bg() without trouble. piece of a function: > > > > It works for people who use a decent Gtk+ theme. But themes > > and theme engines can easily make similar things stop working. > > Try just > > > > style "default" { > > bg_pixmap[NORMAL] = "someimage" > > } > > widget_class "*" style "default" > > > > in your gtkrc. > > > > I am afraid the requirement of particular colors goes > > directly against themeability. One cannot have both. > > > > Yeti > > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them > > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I have a "widget" (actually, a dialog with database interface) that allows users to create button background colors, and apply that "theme" to a "class" of buttons in the application. This was an important element to have in my app because the buttons, from the GTK+ point of view, are all more or less the same, and are created on-the-fly at the user's bequest. The user is allowed to group the buttons in any way they see fit. It works quite well with two great benefits: it gets around inflexabilities in themes and makes button color selection accessible to users who don't know how to use a text editor... much less use a syntax to create a complex theme. - Anna From yeti@physics.muni.cz Sat Jun 17 16:45:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F38AC3B07E3 for ; Sat, 17 Jun 2006 16:45:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09232-08 for ; Sat, 17 Jun 2006 16:45:26 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 7746F3B0805 for ; Sat, 17 Jun 2006 16:45:25 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HHKKwI018732 for ; Sat, 17 Jun 2006 19:20:21 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0804923CE9; Sat, 17 Jun 2006 19:20:20 +0200 (CEST) Date: Sat, 17 Jun 2006 19:20:23 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060617172023.GS30886@potato.chello.upc.cz> References: <200606152259.50433.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606152259.50433.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:45:29 -0000 On Thu, Jun 15, 2006 at 10:59:50PM +0000, kamil stachowski wrote: > i understand this is a basic question and am sorry for my ignorance. i really > haven't managed to find an answer though i've searched quite a time. > > i've actually got two problems (using nemerle (mono, i.e. gtk#)): > > 1. i'd like to generate a terrain heightmap and draw it onto a widget. should > i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), > try to convert it to an xpm (how?) or what other method would be most > appropriate? (please, read the second question before answering this one) Don't draw pixel by pixel, it would be awfully slow. Use GdkPixbufs and gdk_draw_pixbuf(). > 2. i'd like to be able to fluently change the colours while the heightmap is > already generated. in the old days (i haven't written much for quite a time) > it was possible to just draw a bitmap onto the screen and keep redefining the > colours, which was pretty fast and looked nice in its way. is it still > doable? Something along these lines should be doable *if* you can get a indexed color visual, which you cannot count on. So I would just redraw it (incidentally I develop a program which uses false-color maps a lot and redrawing works good enough). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Sat Jun 17 17:36:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2443E3B0139 for ; Sat, 17 Jun 2006 17:36:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11011-09 for ; Sat, 17 Jun 2006 17:36:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 0D2693B0104 for ; Sat, 17 Jun 2006 17:36:32 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1000D5OX9ZC3Q3@vms040.mailsrvcs.net> for gtk-list@gnome.org; Sat, 17 Jun 2006 16:34:48 -0500 (CDT) Date: Sat, 17 Jun 2006 17:35:12 -0400 From: Paul Davis Subject: Re: Gtk events ??? In-reply-to: <448FEC06.9090600@free.fr> To: Papel Message-id: <1150580112.8703.55.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <448FEC06.9090600@free.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 21:36:36 -0000 On Wed, 2006-06-14 at 12:59 +0200, Papel wrote: > Hello, > > From a few days ago, i have a lot of problems with gtk events (MainLoop). > I have created a GTK frame into a main widget and a box into this frame. > I have reparent this widget (window) to a XWindow. > I would like to send events (XEvents) to this widget. How I can do to > send this XEvents to GtkEvents to the widget ??? > > I have tried : gtk_widget_event / gtk_main_iteration_do / > gtk_main_do_event / etc... you're not thinking clearly. GTK is a multiplatform GUI toolkit. its backend is not just X Window, but includes the DirectFB (framebuffer) system on Linux, the GDI API (and others on win32) and recently Quartz/Aqua on OS X. sending GTK events doesn't mean sending events that are translated all the way down to the backend's notion of an "event". if you send a GTK "Button Press" event to a widget, GTK will do that entirely within its own event system, without any reference to the backend you are using. back to basics: why have you reparented the window inside a non-GTK XWindow? --p From yeti@trific.ath.cx Sat Jun 17 19:05:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F32E3B00DC for ; Sat, 17 Jun 2006 19:05:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13816-04 for ; Sat, 17 Jun 2006 19:05:33 -0400 (EDT) Received: from trific.ath.cx (rb5bf232.chello.upc.cz [89.176.185.232]) by menubar.gnome.org (Postfix) with ESMTP id 026623B00AA for ; Sat, 17 Jun 2006 19:05:32 -0400 (EDT) Received: by trific.ath.cx (Postfix, from userid 16809) id 34EC4156127; Sun, 18 Jun 2006 00:09:49 +0200 (CEST) Date: Sun, 18 Jun 2006 00:09:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617220938.GW30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 23:05:34 -0000 On Thu Jun 15 05:27:35 2006, Jose Hevia wrote: > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them How this makes the look consistent with Bumblebee [the theme]? Colors are not the only part of look and feel and they are the easiest part. When the theme uses pixmap backgrounds you should [in most cases] take the pixmap, give it a tint and use it instead of a solid color. Etc. Hackish theme engines like the qt one do not make it easier either. > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I agree with the importance, but I don't agree with the statement it is solved. The only real solution would be taking your app specific widgets into account in the theme itself and drawing themed icons for it if necessary. Not very realistic. Instead we are left with a bunch of heuristics, workarounds and hacks that do something not too awful in some common cases. Yeti -- Anonyms eat their boogers. From lists@nabble.com Sat Jun 17 22:11:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D2483B00EC for ; Sat, 17 Jun 2006 22:11:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20102-07 for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id AFE163B000B for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Frmk9-00052t-CL for gtk-list@gnome.org; Sat, 17 Jun 2006 19:10:29 -0700 Message-ID: <4920028.post@talk.nabble.com> Date: Sat, 17 Jun 2006 19:10:29 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to draw a rectangle on a GtkImage widget? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 02:11:42 -0000 Hi All, I am displaying an image in the main window with a thumbnail of the same image on one side. The thumbnail always shows the entire image while the main window shows just a part of the image because of zoom. Now I want to draw a rectange in the thumbnail to indicate which part of the image is currently displayed in the main window. How can I achieve this? Thanks!! -- View this message in context: http://www.nabble.com/How-to-draw-a-rectangle-on-a-GtkImage-widget--t1805314.html#a4920028 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Sun Jun 18 02:56:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6C5B3B008A for ; Sun, 18 Jun 2006 02:56:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28242-09 for ; Sun, 18 Jun 2006 02:55:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8DBF53B014D for ; Sun, 18 Jun 2006 02:55:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HMJ3jN031835 for ; Sun, 18 Jun 2006 00:19:04 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 19A4223D5D; Sun, 18 Jun 2006 00:19:03 +0200 (CEST) Date: Sun, 18 Jun 2006 00:19:08 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Mailing list problems? Message-ID: <20060617221907.GX30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 06:56:00 -0000 Hello, a couple of days ago my e-mails took almost a day to deliver (and it still takes a long time). But that was a small problem, now when I look at the archives, e.g. http://mail.gnome.org/archives/gtk-list/ I see only ========================================================================== The gtk-list Archives You can get more information about this list. Archive View by: Downloadable version June 2006: [ Thread ] [ Subject ] [ Author ] [ Date ] [ Gzip'd Text 7 KB ] ========================================================================== IOW there is only June 2006 -- and even that is incomplete. Other Gtk+ lists look similarly empty. Did something bad happen to them? Yeti -- Anonyms eat their boogers. From dov.grobgeld@gmail.com Sun Jun 18 04:10:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7A56F3B01BA for ; Sun, 18 Jun 2006 04:10:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31006-02 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 840143B01B4 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so1633845nzo for ; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.14.31 with SMTP id r31mr2636632nzi; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.21.57 with HTTP; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Message-ID: Date: Sun, 18 Jun 2006 11:08:28 +0300 From: "Dov Grobgeld" To: "andy gill" Subject: Re: opengl and gtk In-Reply-To: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 08:10:00 -0000 As far as I understand gtkglext is currently the prefered method of using GL within gtk. I have recently used it in a cross platform application that works fine both on Linux and on Win32. Regards, Dov On 6/16/06, andy gill wrote: > is there any officially supported way of integrating opengl into a > gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to > have varying levels of support for different platforms/language bindings, > and i don't quite understand why there isn't opengl support in the main > tree. > what's the best (i.e. documented and supported) way of getting opengl and > gtk to work together? > > cheers. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From kstachowski@o2.pl Sun Jun 18 07:29:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C2BB3B03F5 for ; Sun, 18 Jun 2006 07:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20622-07 for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 44C653B02EF for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2B8285807B for ; Sun, 18 Jun 2006 13:28:32 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 11:28:31 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200606181128.31582.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.444 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -1.444 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 11:29:39 -0000 thank you for the answer :) > Don't draw pixel by pixel, it would be awfully slow. > Use GdkPixbufs and gdk_draw_pixbuf(). you mean "don't draw pixel by pixel using drawpoint", is that it? > Something along these lines should be doable *if* you can > get a indexed color visual, which you cannot count on. So > I would just redraw it (incidentally I develop a program > which uses false-color maps a lot and redrawing works good > enough). that's a pity but i'll have to cope with that if there's no other way. however, i ran into a problem with colourmaps. i was using gdk.image (has the putpixel method which treats the colours in a more traditional way, and seems to be fast enough for my needs) but didn't manage to change the colours it uses. i keep getting a blue gradient which is not precisely what i want. here's the code: def img=Image(ImageType.Fastest,Visual.System,500,500); for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) img.PutPixel(x,y,(x+y):>UInt32); def gc=GC(args.Event.Window); mutable col=Color(0xff,0,0); gc.Colormap.AllocColor(ref col,true,true); img.Colormap=gc.Colormap; args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); i don't seem to be able to spot anything red in the result. could you please tell me what i am doing wrong? From yeti@physics.muni.cz Sun Jun 18 09:43:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8AFFD3B0BF1 for ; Sun, 18 Jun 2006 09:43:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28794-01 for ; Sun, 18 Jun 2006 09:43:29 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 128E23B0C68 for ; Sun, 18 Jun 2006 09:41:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5ICGX47030918 for ; Sun, 18 Jun 2006 14:16:34 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 5E0A123D5F; Sun, 18 Jun 2006 14:16:33 +0200 (CEST) Date: Sun, 18 Jun 2006 14:16:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060618121635.GZ30886@potato.chello.upc.cz> References: <200606181128.31582.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606181128.31582.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_XF=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 13:43:45 -0000 On Sun, Jun 18, 2006 at 11:28:31AM +0000, kamil stachowski wrote: > > Don't draw pixel by pixel, it would be awfully slow. > > Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? Yes, I do -- and I still mean it. > however, i ran into a problem with colourmaps. i was using gdk.image (has the > putpixel method which treats the colours in a more traditional way, and seems > to be fast enough for my needs) but didn't manage to change the colours it > uses. i keep getting a blue gradient which is not precisely what i want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could you please > tell me what i am doing wrong? Well, I can't speak Nemerle, but as far as I understand it, you first fill the image with arbitrary values no one knows which color they correspond to in the colormap, then allocate one very dark red color (full red is 0xffff in Gdk) but never use it -- the `pixel' field filled by AllocColor is the value to use with PutPixel -- and after all that you set the image's colormap. To draw you have to allocate the colors *first* -- and note if the display is not direct/true-color, it has a limited number of colors and you will not be able to allocate a new color for each unique (x+y):>UInt32 value. So, please save yourself all the hassle and just use GdkPixbuf. Yeti -- Anonyms eat their boogers. From riboaz@xs4all.nl Sun Jun 18 10:04:43 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBDDB3B0B99 for ; Sun, 18 Jun 2006 10:04:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29603-07 for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by menubar.gnome.org (Postfix) with ESMTP id 569E53B0BAA for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from [192.168.1.101] (dpc6744211093.direcpc.com [67.44.211.93]) by smtp-vbr7.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5IDtEGv072056 for ; Sun, 18 Jun 2006 15:55:17 +0200 (CEST) (envelope-from riboaz@xs4all.nl) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <200606181128.31582.kstachowski@o2.pl> References: <200606181128.31582.kstachowski@o2.pl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <14003C28-5DE0-4295-9EC8-E2D3D0A8F9A0@xs4all.nl> Content-Transfer-Encoding: 7bit From: Richard Boaz Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 17:55:07 +0200 To: gtk-list@gnome.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -2.445 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:04:44 -0000 hi, i do something like this in an application to draw probability density function plots. what i do is render the image to an internal RGB buffer, followed by gdk_draw_rgb_image() to render it to the internal pixmap (this pixmap subsequently rendered to the screen): width = DrawingArea->allocation.width; height = DrawingArea->allocation.height; rgbbuf = malloc(width * height * 3); memset(rgbbuf, 240, width * height * 3); // set the background to GREY=(240, 240, 240) DrawBufferImage(rgbbuf, width, height, data); gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); free(rgbbuf); inside the DrawBufferImage() routine, i examine the data, point by point, and assign each pixel to be the RGB combination corresponding to the colour defined/assigned for each data value. my input data also dictates an absolute starting size, so inside the DrawBufferImage() routine, i also magnify the image using a bi-cubic spline interpolation algorithm. the speed achieved in ultimately rendering the image is as fast as possible, and there is no real discernable delay between receiving the data to plot and rendering the image to the screen, i.e., it's instantaneous. plotting pixel by pixel (and magnifying to boot) can result in a quickly drawn image (depending on the number of data points, of course), if gone about in the right manner. cheers, richard On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > thank you for the answer :) > >> Don't draw pixel by pixel, it would be awfully slow. >> Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? > >> Something along these lines should be doable *if* you can >> get a indexed color visual, which you cannot count on. So >> I would just redraw it (incidentally I develop a program >> which uses false-color maps a lot and redrawing works good >> enough). > > that's a pity but i'll have to cope with that if there's no other way. > > however, i ran into a problem with colourmaps. i was using > gdk.image (has the > putpixel method which treats the colours in a more traditional way, > and seems > to be fast enough for my needs) but didn't manage to change the > colours it > uses. i keep getting a blue gradient which is not precisely what i > want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could > you please > tell me what i am doing wrong? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From gaal@forum2.org Sun Jun 18 10:06:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 435323B0BB8 for ; Sun, 18 Jun 2006 10:06:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29678-04 for ; Sun, 18 Jun 2006 10:06:01 -0400 (EDT) Received: from smtp2.actcom.co.il (smtp2.actcom.co.il [192.114.47.35]) by menubar.gnome.org (Postfix) with ESMTP id 650563B0BCC for ; Sun, 18 Jun 2006 10:06:00 -0400 (EDT) Received: from sike (line25-249.adsl.actcom.co.il [192.115.25.249]) by smtp2.actcom.co.il (8.13.3/8.13.3) with ESMTP id k5IDMLPC010326 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jun 2006 16:22:28 +0300 Received: from roo by sike with local (Exim 4.62) (envelope-from ) id 1FrxCy-0004RL-3X for gtk-list@gnome.org; Sun, 18 Jun 2006 16:22:14 +0300 Received: by sike (hashcash-sendmail, from uid 1000); Sun, 18 Jun 2006 16:20:55 +0300 Date: Sun, 18 Jun 2006 16:20:54 +0300 From: Gaal Yahas To: gtk-list@gnome.org Subject: Interrupt signal, GLib, threads Message-ID: <20060618132054.GL9396@sike.forum2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 X-Hashcash: 1:26:060618:gtk-list@gnome.org::gDKzIiB7k7Eeir0+:0000000000000000000 000000000000000000000007LSqZ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.509 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599] X-Spam-Score: -2.509 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:06:04 -0000 I have a GLib/GThread console application that runs fine on Linux and Solaris. But ever since I added threading, when the user hits ^C in the shell the signal is ignored. Does using GThread automatically mask signals? What do I do to get them back? When running my app under gdb, incidentally, ^C works as expected (that is, it drops me in a gdb prompt wherever I was). -- Gaal Yahas http://gaal.livejournal.com/ From kstachowski@o2.pl Sun Jun 18 10:36:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C9DB3B0BEE for ; Sun, 18 Jun 2006 10:36:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30842-02 for ; Sun, 18 Jun 2006 10:36:26 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id B38393B0B9E for ; Sun, 18 Jun 2006 10:36:25 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id AF99258082 for ; Sun, 18 Jun 2006 16:35:40 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:35:39 +0000 User-Agent: KMail/1.9.1 References: <200606181128.31582.kstachowski@o2.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200606181435.39660.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.392 tagged_above=-999 required=2 tests=[AWL=-0.789, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -1.392 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:36:28 -0000 hello :) thank you very much for your answer :) but i'm afraid i won't be able to use it. the access to the rgb class seems= to=20 be either very much limited in gtk sharp (mono) compared to the original an= d=20 other bindings, or at least quite a way beyond my programming skills. i think i'm supposed to be using a gdk.pixbuf instead but than again i can'= t=20 or don't know how to access the memory directly. anyways, in the meantime i've received another answer which made me finally= =20 grab the concept behind colour allocation and colour.pixel value. it seems= =20 that i eventually got an idea of what i'm actually writing :) still, thanks a lot for the answer once again:) Dnia niedziela, 18 czerwca 2006 15:27, napisa=B3e=B6: > hi, > > i do something like this in an application used to draw probability > density function plots. what i do is render the image to an internal > RGB buffer followed by gdk_draw_rgb_image() to render it to the > internal pixmap (this pixmap subsequently rendered to the screen): > > width =3D DrawingArea->allocation.width; > height =3D DrawingArea->allocation.height; > rgbbuf =3D malloc(width * height * 3); > memset(rgbbuf, 240, width * height * 3); // set the background to > GREY=3D(240, 240, 240) > DrawBufferImage(rgbbuf, width, height, data); > gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], > 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); > free(rgbbuf); > > my input data dictates an absolute starting size, so inside my > DrawBufferImage() routine, i also magnify the image using a bi-cubic > spline interpolation algorithm. the speed achieved in ultimately > rendering the image is as fast as possible, and there is no real > discernable delay between receiving the data to plot and rendering > the image to the screen, i.e., it's instantaneous. > > plotting pixel by pixel (and magnifying to boot) can result in a > quickly drawn image (depending on the number of data points, of > course), if gone about in the right manner. > > cheers, > > richard > > On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > > thank you for the answer :) > > > >> Don't draw pixel by pixel, it would be awfully slow. > >> Use GdkPixbufs and gdk_draw_pixbuf(). > > > > you mean "don't draw pixel by pixel using drawpoint", is that it? > > > >> Something along these lines should be doable *if* you can > >> get a indexed color visual, which you cannot count on. So > >> I would just redraw it (incidentally I develop a program > >> which uses false-color maps a lot and redrawing works good > >> enough). > > > > that's a pity but i'll have to cope with that if there's no other way. > > > > however, i ran into a problem with colourmaps. i was using > > gdk.image (has the > > putpixel method which treats the colours in a more traditional way, > > and seems > > to be fast enough for my needs) but didn't manage to change the > > colours it > > uses. i keep getting a blue gradient which is not precisely what i > > want. > > here's the code: > > > > def img=3DImage(ImageType.Fastest,Visual.System,500,500); > > for (mutable x=3D0, x<500; x++) for (mutable y=3D0; y<500; y++) > > img.PutPixel(x,y,(x+y):>UInt32); > > > > def gc=3DGC(args.Event.Window); > > mutable col=3DColor(0xff,0,0); > > gc.Colormap.AllocColor(ref col,true,true); > > img.Colormap=3Dgc.Colormap; > > > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > > > i don't seem to be able to spot anything red in the result. could > > you please > > tell me what i am doing wrong? > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list From tomee@kadu.net Sun Jun 18 10:55:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C71413B0100 for ; Sun, 18 Jun 2006 10:55:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31378-02 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from mail.chilan.com (mail.chilan.com [82.160.212.9]) by menubar.gnome.org (Postfix) with ESMTP id 3229A3B0077 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from aereo (aaso91.neoplus.adsl.tpnet.pl [83.5.226.91]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by mail.chilan.com (Postfix) with ESMTP id 4713723F60 for ; Sun, 18 Jun 2006 16:54:00 +0200 (CEST) From: Tomek Jarzynka To: gtk-list@gnome.org Subject: No icons in Open File dialog Date: Sun, 18 Jun 2006 16:53:58 +0200 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181653.59412.tomee@kadu.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:55:15 -0000 Hello, after playing around with unstable packages I messed up GTK - i.e. it doesn't display folder and file icons in the Open File dialog, only text. I've downgraded to the latest stable versions available for Mandriva 2006 (2.8.3) but still no icons appear. I can change the theme with gtk-chtheme (I am using KDE), but still there are no icons. I get no errors in the console. How do I fix that? Where to look for the icon configuration files that may be missing or corrupted? -- tomasz k. jarzynka / 601 706 601 / tomee(a-t)kadu(d-o-t)net "You laugh because I'm different. I laugh beacuse you're all the same." From nf2@scheinwelt.at Sun Jun 18 18:55:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 462013B00AF; Sun, 18 Jun 2006 18:55:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12908-03; Sun, 18 Jun 2006 18:55:31 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 208EC3B00B2; Sun, 18 Jun 2006 18:55:30 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1Fs69X-0004Oc-Kv; Mon, 19 Jun 2006 00:54:01 +0200 Message-ID: <4495D984.5090705@scheinwelt.at> Date: Mon, 19 Jun 2006 00:53:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gtk-list@gnome.org, gnome vfs list Subject: libxdg-vfs and Gtk-Filechooser Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 9d02a3267670e8bb77f537b38fda5a39 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.012, BAYES_00=-2.599, TW_XD=0.077] X-Spam-Score: -2.51 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 22:55:34 -0000 Hi, The experimental "libxdg-vfs" provides a generic interface to VFS libraries. It tries to autodetect the current desktop and then connects to Gnome-VFS or KIO by launching the backend executables xdg_vfs_gnome or xdg_vfs_kde. http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html The target of "libxdg-vfs" would be giving applications access to ftp/smb shares etc... Of course this also involves bringing VFS access to filechoosers. AFAIK Gtk-Filechooser has pluggable backends (GtkFilesystem). It would be interesting if it could also run on top of "libxdg-vfs". The problem is, that i couldn't find any documentation how to implement a GtkFilesystem module. Could you please give me an introduction and maybe tell me about the specific requirements for a GtkFilesystem? Perhaps i need to provide more functions through "libxdg-vfs": listing and mounting Volumes, obtaining icon-paths,... Regards, Norbert From kstachowski@o2.pl Mon Jun 19 01:31:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03CC3B02D0 for ; Mon, 19 Jun 2006 01:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26079-03 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 501B13B0CE7 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 541273A0414 for ; Mon, 19 Jun 2006 00:05:44 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 88F8C58010 for ; Mon, 19 Jun 2006 00:05:13 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Date: Sun, 18 Jun 2006 22:05:08 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200606182205.09332.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.108, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 05:31:54 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm very sorry about the mess with my posts... this is the first time i'm using a mailing list... From kstachowski@o2.pl Mon Jun 19 02:29:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3900E3B0D4C for ; Mon, 19 Jun 2006 02:29:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28331-03 for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 6FC8A3B0D5D for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 0FEDB2A42D9 for ; Sun, 18 Jun 2006 16:16:06 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id B93C9748099 for ; Sun, 18 Jun 2006 16:15:35 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:15:34 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181415.34985.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.446 tagged_above=-999 required=2 tests=[AWL=-0.766, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -1.446 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 06:29:17 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm sorry if this post appears as a new thread. it's my first time using a mailing list... From kstachowski@o2.pl Mon Jun 19 03:12:18 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 049243B0469 for ; Mon, 19 Jun 2006 03:12:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29499-07 for ; Mon, 19 Jun 2006 03:12:17 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 344293B0198 for ; Mon, 19 Jun 2006 03:12:02 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id A33D22A7E30 for ; Mon, 19 Jun 2006 02:07:22 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 829CB748066 for ; Mon, 19 Jun 2006 02:06:52 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: re: drawing a generated bitmap Date: Mon, 19 Jun 2006 00:06:51 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606190006.52079.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.402 tagged_above=-999 required=2 tests=[AWL=-0.799, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077, TW_XF=0.077] X-Spam-Score: -1.402 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 07:12:18 -0000 hello :) sorry for writing to you at your private address instead of the gtk list but it seems that using a mailing list exceeds my computer skills :/ anyway, i'd like to thank you very much for your answer. it made me finally understand how stuff works. here's the answer i think i failed to post on the list: >> Well, I can't speak Nemerle, but as far as I understand it, >> you first fill the image with arbitrary values no one knows >> which color they correspond to in the colormap, then >> allocate one very dark red color (full red is 0xffff in >> Gdk) but never use it -- the `pixel' field filled by >> AllocColor is the value to use with PutPixel -- and after >> all that you set the image's colormap. >> To draw you have to allocate the colors *first* -- and note >> if the display is not direct/true-color, it has a limited >> number of colors and you will not be able to allocate a new >> color for each unique (x+y):>UInt32 value. > so that's the way it works! oh dear, thank you very much! you've saved me > headache for at least a week :) > the thing is that i got completely lost about the concept of colour > allocation and colour.pixel value. i've utterly failed to understand the > meaning of "hardware pixel" as it is put in the docs. > actually, this also why i sticked to image instead of pixbuf - i thought > image.putpixel's colour parameter was the traditional way, and was afraid to > use pixbuf.drawpoint's gc.foreground because i couldn't understand it. > but now the penny dropped, thank you a great lot :) i definitely owe you a > beer or two in case we ever met :) thanks again, kamil stachowski From lists@nabble.com Mon Jun 19 05:10:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5E0723B008F for ; Mon, 19 Jun 2006 05:10:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-05 for ; Mon, 19 Jun 2006 05:10:31 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E4EB73B0014 for ; Mon, 19 Jun 2006 05:10:30 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFlX-0004aX-HJ for gtk-list@gnome.org; Mon, 19 Jun 2006 02:09:51 -0700 Message-ID: <4932993.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:09:51 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Is there any widget on which I can plot my own primitives? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:10:32 -0000 I have explored some widgets such as GtkImage and GnomeCanvas, but none of them provide the functions I need. Does anyone got any idea? Thanks! -- View this message in context: http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Mon Jun 19 05:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3EC43B0004 for ; Mon, 19 Jun 2006 05:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01908-01 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 72F253B00A4 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFsB-0004kJ-Do for gtk-list@gnome.org; Mon, 19 Jun 2006 02:16:43 -0700 Message-ID: <4933077.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:16:43 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the mouse move and double click event? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:17:33 -0000 I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, I need to capture the coordination of the cursor. In VC++, this can be easily achieved by using the OnMouseMove() function. But in Gtk, I cannot find any similar signal to map. Does anyone got any idea? Thanks!! -- View this message in context: http://www.nabble.com/How-to-capture-the-mouse-move-and-double-click-event--t1810142.html#a4933077 Sent from the Gtk+ - General forum at Nabble.com. From z_b_r@poczta.fm Mon Jun 19 05:36:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 633A53B00A4 for ; Mon, 19 Jun 2006 05:36:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01950-04 for ; Mon, 19 Jun 2006 05:36:03 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id C12ED3B0004 for ; Mon, 19 Jun 2006 05:36:02 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id 66C9F373E63; Mon, 19 Jun 2006 11:35:15 +0200 (CEST) Received: from poczta.interia.pl (f27.poczta.interia.pl [10.217.2.27]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 09FB9373E29 for ; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 0B5532E5C9D; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id DC2132E5C98 for ; Mon, 19 Jun 2006 11:35:09 +0200 (CEST) Date: 19 Jun 2006 11:35:09 +0200 From: hm Subject: Drawing images ( with transparency ) one on another To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060619093509.DC2132E5C98@poczta.interia.pl> X-EMID: 1aa40acc X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.455 tagged_above=-999 required=2 tests=[AWL=-0.971, BAYES_40=-0.185, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:36:05 -0000 =0AHi, =0A=0A I`ve got a problem. I`ve got two separate images. One is bac= kground for the secondone. Secondone is partially transparent. There is al= so table. Question is : how to draw in one of the table`s cells the backgra= ound, and on this background ( as a second layer ) second image (transparen= t) ? I know ( of course ) how to create images, tables.=0A=0Athanks ---------------------------------------------------------------------- Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 From jean.brefort@normalesup.org Mon Jun 19 06:43:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A42C3B00C8 for ; Mon, 19 Jun 2006 06:43:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05026-01 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 7BF243B0091 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5E409225FA; Mon, 19 Jun 2006 12:43:01 +0200 (CEST) Subject: Re: Is there any widget on which I can plot my own primitives? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:46:15 +0200 Message-Id: <1150713975.8915.1.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.892 tagged_above=-999 required=2 tests=[AWL=-0.362, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.892 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:43:49 -0000 Le lundi 19 juin 2006 脿 02:09 -0700, heavenscape a 茅crit : > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. Which functions do you need? > Does anyone got any idea? Thanks! May be GtkDrawingArea? Regards, Jean From jean.brefort@normalesup.org Mon Jun 19 06:47:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A8DF3B015D for ; Mon, 19 Jun 2006 06:47:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05099-08 for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by menubar.gnome.org (Postfix) with ESMTP id 5B4743B008F for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp3-g19.free.fr (Postfix) with ESMTP id 4AF08444E6; Mon, 19 Jun 2006 12:46:28 +0200 (CEST) Subject: Re: How to capture the mouse move and double click event? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4933077.post@talk.nabble.com> References: <4933077.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:49:42 +0200 Message-Id: <1150714182.8915.6.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.891 tagged_above=-999 required=2 tests=[AWL=-0.361, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.891 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:47:09 -0000 Le lundi 19 juin 2006 脿 02:16 -0700, heavenscape a 茅crit : > I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, > I need to capture the coordination of the cursor. In VC++, this can be > easily achieved by using the OnMouseMove() function. But in Gtk, I cannot > find any similar signal to map. > > Does anyone got any idea? Thanks!! The "motion-notify-event" signal is most probably what you need. Regards, Jean From lieven@quasar3d.nl Mon Jun 19 07:28:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A099F3B00A5 for ; Mon, 19 Jun 2006 07:28:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06013-07 for ; Mon, 19 Jun 2006 07:28:08 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 0257C3B000F for ; Mon, 19 Jun 2006 07:28:07 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JBQgWa009810 for ; Mon, 19 Jun 2006 13:26:45 +0200 To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? References: <4932993.post@talk.nabble.com> Message-ID: From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 19 Jun 2006 13:26:42 +0200 In-Reply-To: <4932993.post@talk.nabble.com> User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 11:28:11 -0000 Hi, Use the GtkDrawingArea. You can draw to it using Gdk or maybe Cairo (not sure if that's already in the stable version). Google gave me this tutorial: http:// www.gtk.org/tutorial/x2491.html Greets, Lieven van der Heide. On Mon, 19 Jun 2006 11:09:51 +0200, heavenscape wrote: > > I have explored some widgets such as GtkImage and GnomeCanvas, but none > of > them provide the functions I need. > > Does anyone got any idea? Thanks! > -- > View this message in context: > http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lieven@quasar3d.nl Mon Jun 19 08:15:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 540D53B0AAF for ; Mon, 19 Jun 2006 08:15:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09991-10 for ; Mon, 19 Jun 2006 08:15:06 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 75A0A3B0444 for ; Mon, 19 Jun 2006 08:15:05 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JCDXWa008938 for ; Mon, 19 Jun 2006 14:13:33 +0200 Date: Mon, 19 Jun 2006 14:13:33 +0200 To: gtk-list@gnome.org Subject: Different thickness depending on widget properties. From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=0.109, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.356 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:15:08 -0000 Hi, I am currently working on the wimp theme engine, and I would like to have different thickness property values depending on whether the edge type is etched, or sunken. What would be the best approach on doing so? Also, I'm wondering why the GtkFrame is used for both visually grouping widgets together (like the windows groupbox), aswell as adding edges to widgets (like the drop down list in the combobox seems to be doing). They may have the same functionality (which is none, afaik ;)), and in the default theme they may look the same, but imho there really is a difference between a grouping frame and an edge, and when you're theming, it may be very likely that you want to theme them differently. So I think it would be easier if it were different widgets. Greets, Lieven van der Heide. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From yeti@physics.muni.cz Mon Jun 19 09:03:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B68713B0387 for ; Mon, 19 Jun 2006 09:03:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12359-02 for ; Mon, 19 Jun 2006 09:03:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id CE0ED3B0246 for ; Mon, 19 Jun 2006 09:03:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JAfVKW028290 for ; Mon, 19 Jun 2006 12:41:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4E12123CE6; Mon, 19 Jun 2006 12:41:31 +0200 (CEST) Date: Mon, 19 Jun 2006 12:41:32 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Drawing images ( with transparency ) one on another Message-ID: <20060619104132.GW2858@potato.chello.upc.cz> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:03:16 -0000 On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. Either use gdk_draw_pixbuf() if the correct order (first base, then the one with alpha channel) in expose event handler, or use gdk_pixbuf_composite() and draw the final image. Yeti -- Anonyms eat their boogers. From jmad@maerskdata.dk Mon Jun 19 09:04:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DAE2B3B0312 for ; Mon, 19 Jun 2006 09:04:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12532-05 for ; Mon, 19 Jun 2006 09:04:52 -0400 (EDT) Received: from smddisadksgd001.mdd.local (mail.maerskdata.dk [85.89.224.39]) by menubar.gnome.org (Postfix) with ESMTP id 810BC3B006A for ; Mon, 19 Jun 2006 09:04:51 -0400 (EDT) Received: from smdgldodksgd005.mdd.local ([172.29.201.20]) by smddisadksgd001.mdd.local with InterScan VirusWall; Mon, 19 Jun 2006 14:33:26 +0200 Subject: xevent ? To: gtk-list@gnome.org Cc: X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 From: Jens Madsen Date: 19-Jun-2006 14:33:25 CEDT Message-ID: X-MIMETrack: Serialize by Router on SDRMAIL01/MDG(Release 6.5.3|September 14, 2004) at 19-06-2006 14:33:27 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.519 tagged_above=-999 required=2 tests=[AWL=-0.699, BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, INVALID_DATE=2.193] X-Spam-Score: 0.519 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:04:55 -0000 Hi, I am converting some old x-windows software to GTK. It contains a handler for receiving xevents from other applications. What sort of GTK api should I use for receiving/sending the x-events ? Best regards Jens Madsen From simon@thegestalt.org Mon Jun 19 10:43:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CFD73B0123 for ; Mon, 19 Jun 2006 10:43:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15901-01 for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from mail.thegestalt.org (kanga.astray.com [195.82.114.48]) by menubar.gnome.org (Postfix) with ESMTP id 6C54F3B017E for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from simon by mail.thegestalt.org with local (Exim 4.12) id 1FsKwK-00071M-00 for gtk-list@gnome.org; Mon, 19 Jun 2006 15:41:20 +0100 Date: Mon, 19 Jun 2006 15:41:20 +0100 From: Simon Wistow To: gtk-list@gnome.org Subject: Problems using GTK in Maya Message-ID: <20060619144120.GJ7044@thegestalt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.455 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_RG=0.077] X-Spam-Score: -2.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 14:43:40 -0000 I've attempted to write a dialog for Maya using GTK but it consistently causes segfaults. The dialog will launch and return successfully but the next button I press will causes a Maya crash with the message The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 62194 error_code 8 request_code 42 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) And so far I've been unable to geta back trace out of GDB or Totalview. I've narrowed it down to a test case string create_dialog { int argc = 0; char** argv = 0; // Initialize the widget set if (!gtk_init_check (&argc, &argv)) { return ""; } // drain the event loop while (gtk_events_pending ()) { gtk_main_iteration (); } return ""; } either with or without the event loop draining. Am I doing something fundamentally wrong? Do I need to do somethign with XEmbed? Is GTK just not suited to this? Do I need to sacrifice a different breed of chicken? I'm using GTK 2.69 for what it's worth. Simon -- X-Gleitschirmfliegen: macht Spaaaasss! From paul@linuxaudiosystems.com Mon Jun 19 12:36:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E4033B03A5 for ; Mon, 19 Jun 2006 12:36:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20590-07 for ; Mon, 19 Jun 2006 12:36:08 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 14F6B3B01C6 for ; Mon, 19 Jun 2006 12:36:07 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1400EA98NCJ2C6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Mon, 19 Jun 2006 11:33:12 -0500 (CDT) Date: Mon, 19 Jun 2006 12:33:38 -0400 From: Paul Davis Subject: Re: xevent ? In-reply-to: <1150734280.8703.98.camel@localhost.localdomain> To: Jens Madsen Message-id: <1150734818.8703.101.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1150734280.8703.98.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GD=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 16:36:11 -0000 On Mon, 2006-06-19 at 14:33 +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? basically, you can't. GTK is a cross platform toolkit, so it doesn't have an API that exposes backend details like XEvent. if you root around in the sources of gdk, especially the gdk-x11 directory, you will find some stuff that could be useful. but its not GTK and not even really GDK, since these APIs are designed to work on a variety of backends, including several that are not X Window related. --p From jose.francisco.hevia@gmail.com Mon Jun 19 06:50:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B57E3B007B for ; Mon, 19 Jun 2006 06:50:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05221-03 for ; Mon, 19 Jun 2006 06:50:53 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id DDACA3B013E for ; Mon, 19 Jun 2006 06:50:52 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so538227hue for ; Mon, 19 Jun 2006 03:49:46 -0700 (PDT) Received: by 10.49.72.7 with SMTP id z7mr4462656nfk; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2006 12:49:45 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4932993.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Mon, 19 Jun 2006 14:33:36 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:50:56 -0000 2006/6/19, heavenscape : > > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. > Does anyone got any idea? Thanks! Oh, yes, I'm looking my crystal ball, but I can't manage to get to know what kind of functions you need :-) But I'm sure you know, so please, give more info. Jose Hevia From lists@nabble.com Mon Jun 19 21:48:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9193B09BA for ; Mon, 19 Jun 2006 21:48:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15436-06 for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 142DA3B059B for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsVLU-0004uW-Mp for gtk-list@gnome.org; Mon, 19 Jun 2006 18:48:00 -0700 Message-ID: <4947880.post@talk.nabble.com> Date: Mon, 19 Jun 2006 18:48:00 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Trouble with GtkImage on button press event! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 01:48:41 -0000 I need to capture the button press event on a GtkImage widget, and I use the following code: w = lookup_widget(MainWnd,"image1"); gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); and I mapped the "Button press event" using glade, but it never worked. Anyone knows why? -- View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Mon Jun 19 23:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DA3403B022F for ; Mon, 19 Jun 2006 23:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19691-10 for ; Mon, 19 Jun 2006 23:15:01 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9BAA53B036C for ; Mon, 19 Jun 2006 23:15:00 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JI2VFE002259 for ; Mon, 19 Jun 2006 20:02:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4559923D5E; Mon, 19 Jun 2006 20:02:31 +0200 (CEST) Date: Mon, 19 Jun 2006 20:02:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: xevent ? Message-ID: <20060619180234.GF30886@potato.chello.upc.cz> References: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:15:04 -0000 On Mon, Jun 19, 2006 at 04:22:25PM +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? See gdk_add_client_message_filter() and related funcs. At least I think they are intended for this situation, fortunately I have never needed them. Yeti -- Anonyms eat their boogers. From lists@nabble.com Mon Jun 19 23:37:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 155253B032C for ; Mon, 19 Jun 2006 23:37:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20664-03 for ; Mon, 19 Jun 2006 23:37:49 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 0B8933B03A6 for ; Mon, 19 Jun 2006 23:37:48 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsX2j-0006su-9z for gtk-list@gnome.org; Mon, 19 Jun 2006 20:36:45 -0700 Message-ID: <4948583.post@talk.nabble.com> Date: Mon, 19 Jun 2006 20:36:45 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: trouble getting the current size of GtkViewport MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:37:52 -0000 I am displaying an image inside a GtkViewport (which is in a scrolled window), my main window resizes frequently (and so the viewport), and i want the image to rescale to fit the current size of the viewport. Anybody has any idea how to get the current size of the viewport? Thanks a lot!!!! -- View this message in context: http://www.nabble.com/trouble-getting-the-current-size-of-GtkViewport-t1815369.html#a4948583 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Tue Jun 20 01:47:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC0303B05AF for ; Tue, 20 Jun 2006 01:47:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26815-06 for ; Tue, 20 Jun 2006 01:47:47 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 08FEA3B031E for ; Tue, 20 Jun 2006 01:47:41 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id C710471130; Tue, 20 Jun 2006 07:46:38 +0200 (CEST) Subject: Re: Trouble with GtkImage on button press event! From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 07:49:52 +0200 Message-Id: <1150782592.14978.0.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.853 tagged_above=-999 required=2 tests=[AWL=-0.400, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.853 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 05:47:48 -0000 Le lundi 19 juin 2006 脿 18:48 -0700, heavenscape a 茅crit : > I need to capture the button press event on a GtkImage widget, and I use the > following code: > > w = lookup_widget(MainWnd,"image1"); > gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); > > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? do you call glade_xml_signal_autoconnect in your code? > View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From andrew@operationaldynamics.com Tue Jun 20 02:16:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC8873B0F1C for ; Tue, 20 Jun 2006 02:16:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28283-07 for ; Tue, 20 Jun 2006 02:16:40 -0400 (EDT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by menubar.gnome.org (Postfix) with SMTP id 8BF9B3B0EBA for ; Tue, 20 Jun 2006 02:16:39 -0400 (EDT) Received: (qmail 57818 invoked by uid 0); 20 Jun 2006 05:49:08 -0000 Received: from unknown (HELO procyon) (unknown) by unknown with SMTP; 20 Jun 2006 05:49:08 -0000 X-pair-Authenticated: 150.101.122.233 Subject: Re: Trouble with GtkImage on button press event! From: Andrew Cowie To: gtk-list@gnome.org In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain Organization: Operational Dynamics Date: Tue, 20 Jun 2006 15:48:53 +1000 Message-Id: <1150782533.17295.4.camel@procyon.operationaldynamics.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.384 tagged_above=-999 required=2 tests=[AWL=0.215, BAYES_00=-2.599] X-Spam-Score: -2.384 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:16:42 -0000 On Mon, 2006-06-19 at 18:48 -0700, heavenscape wrote: > I need to capture the button press event on a GtkImage widget... > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? [gtk] Images themselves don't have [gdk] Windows underneath them, and only such Windows receive events. There is thus a "helper" class called GtkEventBox. You have to nest the Image inside an EventBox to which you can then hook up mouse button press events. http://developer.gnome.org/doc/API/2.0/gtk/GtkEventBox.html or http://java-gnome.sourceforge.net/docs/javadoc/org/gnu/gtk/EventBox.html AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Website: http://www.operationaldynamics.com/ Blog: http://research.operationaldynamics.com/blogs/andrew/ GPG key: 0945 9282 449C 0058 1FF5 2852 2D51 130C 57F6 E7BD From lists@nabble.com Tue Jun 20 02:46:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA183B038D for ; Tue, 20 Jun 2006 02:46:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30258-08 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 873AB3B0085 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsZzm-00022R-Mg for gtk-list@gnome.org; Mon, 19 Jun 2006 23:45:54 -0700 Message-ID: <4950061.post@talk.nabble.com> Date: Mon, 19 Jun 2006 23:45:54 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the scroll event of the scrolled window? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:46:56 -0000 I need to track the scroll events of the GtkScrolledWindow, and i use following code: GtkWidget* w = lookup_widget(MainWnd,"scrolledwindow1"); gtk_widget_add_events (w, GDK_SCROLL_MASK); and I mapped the scroll child event with glade, but it does not work. Anyone knows why? -- View this message in context: http://www.nabble.com/How-to-capture-the-scroll-event-of-the-scrolled-window--t1815899.html#a4950061 Sent from the Gtk+ - General forum at Nabble.com. From prashan@sasken.com Tue Jun 20 04:48:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC4BB3B0E25 for ; Tue, 20 Jun 2006 04:48:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03632-08 for ; Tue, 20 Jun 2006 04:47:55 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id 1A6C73B0F64 for ; Tue, 20 Jun 2006 04:47:53 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8jlRJ007178 for ; Tue, 20 Jun 2006 14:15:47 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8ji59007156for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5K8jiKm016268for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Message-ID: <4497B5B8.1080000@sasken.com> Date: Tue, 20 Jun 2006 14:15:44 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: proggressbar.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:75.63018 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.072 tagged_above=-999 required=2 tests=[AWL=-0.074, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.072 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 08:48:03 -0000 how to design a progressbar, and add to my application window? with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From prashan@sasken.com Tue Jun 20 07:07:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D06E33B032F for ; Tue, 20 Jun 2006 07:07:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10540-04 for ; Tue, 20 Jun 2006 07:07:04 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id B9BA63B03AD for ; Tue, 20 Jun 2006 07:07:03 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6ERJ012845 for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6E59012842for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5KB6EKm016317for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Message-ID: <4497D6A6.20505@sasken.com> Date: Tue, 20 Jun 2006 16:36:14 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Please help me.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:25.28121 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.3 tagged_above=-999 required=2 tests=[AWL=0.298, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:07:06 -0000 hi all... I am doing GUI for audio players using *GTK* as framework. i have to design a *playlist* which contains files from one* directory*, on selecting file from playlist another window should open,which contains play,* pause and stop buttons and one progress bar*. i have to write *events* for those play & all buttons. if anybody have idea of this please help me. or tell me where i get source code of this. with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From paul@linuxaudiosystems.com Tue Jun 20 07:52:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 318133B044D for ; Tue, 20 Jun 2006 07:52:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-01 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B16773B03B8 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J15007F0Q8GB21C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Tue, 20 Jun 2006 06:50:40 -0500 (CDT) Date: Tue, 20 Jun 2006 07:51:07 -0400 From: Paul Davis Subject: Re: proggressbar.. In-reply-to: <4497B5B8.1080000@sasken.com> To: Kalli Math Message-id: <1150804267.8703.134.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <4497B5B8.1080000@sasken.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.547 tagged_above=-999 required=2 tests=[AWL=0.052, BAYES_00=-2.599] X-Spam-Score: -2.547 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:52:07 -0000 On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? it is customary to show some indication that you've attempted to find an answer to such simple, basic questions before asking a mailing list. www.gtk.org has lots of documentation on the GTK API, and links to lots of example source code which you are expected to make use of to find useful, real world, working examples. if you don't understand even the basic idea behind using GTK (or any GUI toolkit), mailing lists are not the right place to begin. From linuxhippy@gmail.com Tue Jun 20 09:27:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 520BE3B02A4 for ; Tue, 20 Jun 2006 09:27:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17603-06 for ; Tue, 20 Jun 2006 09:27:34 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 14A793B01A8 for ; Tue, 20 Jun 2006 09:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so742257hue for ; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.40.10 with SMTP id n10mr2592344hun; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Message-ID: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Date: Tue, 20 Jun 2006 15:26:51 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Scrolling performance MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 13:27:36 -0000 Hi there, I recently updated to OpenSuSE 10.1 since some people suggested that Eclipse/GTK's performance is better with gtk 2.8. My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with latest NVidia binary drivers, renderaccel enabled. GTK applications tend to be very unresponsive compared to other toolkits: - Slow expose reaction. If I move a window above e.g. gtk-demo I see a repaint-lag of about 2-3cm. - Slow scrolling. Even fast scrolling inside of the filechooser is not smooth. I can see scrolling srtifacts which look like caused by asynchronous repainting of the scrolled area. - Slow layouting, especially for Text composnents: Moving e.g. the vertical splitters of gftp (one pane a table as content, other table is empty) is done with about 5fps. Even my old P233 with Windows2000 can do compareable GUI operations without any problems. Also reslayouting/repainting windows after window-size change is slow. - Sluggish Menu-behaviour. In gftp I can feel a ~400ms lag, therefor it takes about 400ms for the menu to catch up to my mouse-pointer if I move with about 500pixel/s. - Eclipse in general is just _very_ slow at all. If large popup menus go away you see the background about 300-500ms repainting itself. Netbeans (Swing based) is way faster, only after start its slow (till the java JIT compiled the hot spots). I know this is an opensource project, I know if something bothers me I can grab the code and enhance it or dontate some money to make someone else fix my problems. However I still go to school and currently have to do my diploma -> no money, no time. I know its unpolite to post such problems to the list, but bad performance has been discussed since ... I guess the 2.0 release. I still remember many projects refusing to upgarde with tables of micro-benchmarks. Till a long time improvements are promiesed, fast paths in pango, enhanced speed of cairo, better repaint handling and whatsoever. If I start a application which links against GTK-2.8 _feels_ exactly as good damn slow as GTK-2.0. The I start a GTK-1.2 based problem and can't trust my eyes ... what happend to GTK. At times of GTK-1.2 I preffered GTK since it felt a bit faster than QT-2.x but now QT is lightening fast compared to GTK-2.x not talking about high-performance libraries like FOX or FLTK. I used Mozilla/GTK1.2 builds as long as they were available, since even mozilla slowed down by only using GDK(2). I just don't get it why I need a 3ghz PC to not see repaint lags or 5fps layout updates. These things worked years ago ten times better than now (and no, this are not themes. GTK-1/QT-2 were themed too with tons of pixmaps). What has happend? I guess performance regression testing is something never here has heard of :-/ And where to start getting my hands on? I just can't work with this crap anymore, but since GTK is on the way to be used as the default toolkit ... it seems there's no way arround it. Which profiling tools do you recommend? Do you think using the intel compiler is worth a try? Where does all the time go to? I've done some sysprof-profiling and its shows than pango is not the evil. Are maybe the repaint algorythmns not optimal, repainting too often too large areas/hidden components? Sorry for wasting your time and your energy, a frustrated Clemens From mclasen@redhat.com Tue Jun 20 11:22:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B32C3B043F; Tue, 20 Jun 2006 11:22:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-09; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 71CF13B00E7; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLnL004523; Tue, 20 Jun 2006 11:21:21 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLNA016479; Tue, 20 Jun 2006 11:21:21 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5KFLKdH032719; Tue, 20 Jun 2006 11:21:20 -0400 Subject: GLib 2.11.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Date: Tue, 20 Jun 2006 11:21:20 -0400 Message-Id: <1150816880.15532.58.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 15:22:11 -0000 GLib 2.11.4 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.4.tar.bz2 md5sum: 9d3a94baa4bfcd9a579b45eea6de3a8c glib-2.11.4.tar.gz md5sum: f7768bc7ed524c6b40cb87daccb6c2b2 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.3 to GLib 2.11.4 =================================================== * GBookmarkFile: - g_bookmark_file_remove_item returns a boolean * g_mkstemp accepts the XXXXXX in the middle of the template * Bugs fixed: 344868 g_key_file_to_data should separate groups * Updated translations (de,es,fr,gu,hi,ko,th) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=344868 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Christian Persch, Federico Mena Quintero Matthias Clasen June 20, 2006 From torriem@chem.byu.edu Tue Jun 20 14:00:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AAD953B04F0 for ; Tue, 20 Jun 2006 14:00:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02250-08 for ; Tue, 20 Jun 2006 14:00:13 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 8D0CF3B0302 for ; Tue, 20 Jun 2006 14:00:02 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5KFR9lG010025 for ; Tue, 20 Jun 2006 09:27:10 -0600 Subject: Re: Please help me.. From: Michael L Torrie To: gtk-list@gnome.org In-Reply-To: <4497D6A6.20505@sasken.com> References: <4497D6A6.20505@sasken.com> Content-Type: text/plain Date: Tue, 20 Jun 2006 09:27:09 -0600 Message-Id: <1150817229.26278.4.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Tue, 20 Jun 2006 09:27:10 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.514 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.514 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:00:23 -0000 On Tue, 2006-06-20 at 16:36 +0530, Kalli Math wrote: > hi all... > > I am doing GUI for audio players using *GTK* as framework. i have to > design a *playlist* which contains files from one* directory*, on > selecting file from playlist another window should open,which contains > play,* pause and stop buttons and one progress bar*. i have to write > *events* for those play & all buttons. if anybody have idea of this > please help me. or tell me where i get source code of this. Do you have a specific question? I doubt anyone here will write your program for you. > > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mitch@gimp.org Tue Jun 20 14:16:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C5693B03C5 for ; Tue, 20 Jun 2006 14:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03488-03 for ; Tue, 20 Jun 2006 14:16:26 -0400 (EDT) Received: from mitch.gimp.org (fuckup.club.berlin.ccc.de [195.160.172.2]) by menubar.gnome.org (Postfix) with ESMTP id 86EB33B0341 for ; Tue, 20 Jun 2006 14:16:25 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FsknV-0007g7-00; Tue, 20 Jun 2006 20:17:58 +0200 Subject: Re: proggressbar.. From: Michael Natterer To: Kalli Math In-Reply-To: <4497B5B8.1080000@sasken.com> References: <4497B5B8.1080000@sasken.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 20:17:57 +0200 Message-Id: <1150827477.31698.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:16:27 -0000 I think it would help a bit if you a) asked specific questions b) didn't have 3 times as much advertizing as content in your mail c) didn't have this idiotic disclaimer On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Tue Jun 20 14:20:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D25DE3B03E3 for ; Tue, 20 Jun 2006 14:20:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03798-03 for ; Tue, 20 Jun 2006 14:20:52 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 120A73B0401 for ; Tue, 20 Jun 2006 14:20:51 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id i30so402545wxd for ; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.19.6 with SMTP id 6mr10823687wxs; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Message-ID: <522c6460606201120g780d763dvf18c90f7fb461681@mail.gmail.com> Date: Tue, 20 Jun 2006 19:20:51 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:20:54 -0000 On 6/20/06, Clemens Eisserer wrote: > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Hi Clemens, I've not tried suse 10.1, but older suses used to install a theme engine for gtk which tried to copy the current KDE theme. It always caused me problems: it was slow, very ugly, and had repaint errors. Maybe it's better than it used to be, but if you have not disabled it, I think it's worth trying without. I forget what the package you have to remove is called, maybe try something like rpm -q a | grep -i gtk | grep -i engine (untested) and see if it lists any theme engines. GTK on the default theme should be fast. John From patrick.jacquotf@free.fr Tue Jun 20 15:18:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A6EB3B046A for ; Tue, 20 Jun 2006 15:18:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07752-07 for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 9EC583B047F for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp2-g19.free.fr (Postfix) with ESMTP id C6C8F73297; Tue, 20 Jun 2006 21:18:10 +0200 (CEST) Subject: Re: Drawing images ( with transparency ) one on another From: Patrick Jacquot To: hm In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 21:17:43 +0200 Message-Id: <1150831063.12639.2.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.582 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599] X-Spam-Score: -2.582 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:18:15 -0000 Le lundi 19 juin 2006 脿 11:35 +0200, hm a 茅crit : > Hi, > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. > > thanks > > ---------------------------------------------------------------------- > Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 > One solution could be to prepare the composite image with the imagemagick library, then to display that composite image HTH -- Patrick From Valdis.Kletnieks@vt.edu Tue Jun 20 15:31:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 908813B04C0 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08815-08 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 9C8D13B04A5 for ; Tue, 20 Jun 2006 15:31:30 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KJVPU2012082; Tue, 20 Jun 2006 15:31:25 -0400 Message-Id: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 15:26:51 +0200." <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150831885_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 15:31:25 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.596 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.596 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:31:31 -0000 --==_Exmh_1150831885_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 15:26:51 +0200, Clemens Eisserer said: > Where does all the time go to? I've done some sysprof-profiling and > its shows than pango is not the evil. Are maybe the repaint > algorythmns not optimal, repainting too often too large areas/hidden > components? So where *does* the time go to, if not pango? The more detail you can provide, the easier it is to track down. For what it's worth, I'm using an older Dell C840 laptop (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer, and it's able to keep up just fine. (Although I admit that if I grab one 700x1000 window and start using the mouse to move it back and forth as fast as I can move the mouse, in front of 2 other 700x1000 windows, and the window manager is doing the moving window in translucent mode as well, that *will* spike the processor up to about 100% and only 8 or 10 redraws per second. I'm not saying it's *not* an issue for you, but simply pointing out that not everybody is seeing the problem - on my machine, GTK2 *is* a bit heavier than GTK1, but not to the point where it's a major issue. And in general, it's really hard to chase down performance regressions in an open-source project without somebody actually seeing the problem and willing to work in some detail to chase it down (been there myself - there's been more than a few times when I've been literally the only person who was both seeing a given bug in the Linux kernel and in a position to help debug it...) --==_Exmh_1150831885_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmE0NcC3lWbTT17ARAu6DAKCFrdWzrt6jGOyh69x5OyWXCTOWfQCfdYba DBRnnX3k5h5Y8BId+X2kJlo= =y5ZG -----END PGP SIGNATURE----- --==_Exmh_1150831885_3210P-- From linuxhippy@gmail.com Tue Jun 20 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A25C13B037B for ; Tue, 20 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11895-05 for ; Tue, 20 Jun 2006 16:21:18 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id C470F3B0270 for ; Tue, 20 Jun 2006 16:21:17 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so710136hud for ; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.69.7 with SMTP id r7mr2961683hua; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Message-ID: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Date: Tue, 20 Jun 2006 22:21:16 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.561 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 20:21:19 -0000 Hi again, Maybe GTK is using X in a way it does not like? > of 2 other 700x1000 windows, and the window manager is doing the moving window > in translucent mode as well, that *will* spike the processor up to about 100% > and only 8 or 10 redraws per second. Well but then a composition manager is installed (as far as I know this is needed for transculesent windows), the window-content is cached in a pixmap and just this pixmap is drawn overe and over and the application does not receive a single expose event by X - So it has in fact nothing to do with GTK. Thanks for the tip with the theme, the only theme I've installed is called "Raleigh". > (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer Well but it should be enough to handle these simple tasks very fast. If QT can do it fast, GTK should be able too. I just wonder why QT performs that well (and many other toolkits I've used too like FOX or FLTK) but everytime it comes down to bad performance of GTK the following things happen: 1.) Not even one comment from a developer. Maybe there are not enough, maybe nobody cares, ore maybe they can't cope with critic? I don't know. 2.) Some fans respond that on their machines its working fast enough. Fighting against that one that brought up the topic to show him that their favourite Gui toolkit is not as weak as it looks. 3.) The discussion dies with or without a flame. -> no result, nothing changes. I see/saw quite frequently complaints about GTK's performance, I saw tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away from GTK-2 because they were concerned loosing users when switching to this toolkit. > So where *does* the time go to, if not pango? The more detail you can > provide, the easier it is to track down. I did some sysprof testing back when I tried to analyze why the Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default theme). It was almost a flat profile, but X spiked quite a lot. Doing the same test (invalidating eclispe's main window) shows about half (!!!) of the time is spent in X. The test with gftp (moving splitters) shows X using 67.1% of CPU whereas gftp itself only consumes 31%. I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). lg Clemens From myeates@jpl.nasa.gov Tue Jun 20 17:24:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B67933B090F for ; Tue, 20 Jun 2006 17:24:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14950-08 for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from nmta3.jpl.nasa.gov (nmta.jpl.nasa.gov [137.78.160.108]) by menubar.gnome.org (Postfix) with ESMTP id 9336B3B082C for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from xmta3.jpl.nasa.gov (xmta3.jpl.nasa.gov [137.78.160.111]) by nmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlIa004610 for ; Tue, 20 Jun 2006 14:24:47 -0700 Received: from [137.78.28.25] (matslab.jpl.nasa.gov [137.78.28.25]) by xmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlK8000301 for ; Tue, 20 Jun 2006 14:24:47 -0700 Message-ID: <4498679B.7000508@jpl.nasa.gov> Date: Tue, 20 Jun 2006 14:24:43 -0700 From: Mathew Yeates User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: matslab.jpl.nasa.gov [137.78.28.25] X-Source-Sender: myeates@jpl.nasa.gov X-AUTH: Internal IP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.568 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599] X-Spam-Score: -2.568 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:24:49 -0000 Hi When I try and compile I get the error in my subject line. This is with a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Mathew From Valdis.Kletnieks@vt.edu Tue Jun 20 17:30:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4628D3B082C for ; Tue, 20 Jun 2006 17:30:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15364-10 for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 4B7023B05CA for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KLUJKk016876; Tue, 20 Jun 2006 17:30:19 -0400 Message-Id: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 22:21:16 +0200." <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150839019_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 17:30:19 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.558 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:23 -0000 --==_Exmh_1150839019_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 22:21:16 +0200, Clemens Eisserer said: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. Maybe none of the developers are seeing your issue, and none of the usual bleeding-edge testers see it either. This makes it hard for them to fix it. > 2.) Some fans respond that on their machines its working fast enough. I'm suspecting you're addressing me with that comment. ;) My point was that it *isn't* the case where every single GTK2 system is seeing horrid performance, and that it always sucks in every case. You seem to be encountering an issue that is *not* present on every system. (On the other hand, if computers and users didn't keep finding new ways to trip over obscure corner cases, I'd be unemployed, so I'm not complaining ;) > I see/saw quite frequently complaints about GTK's performance, I saw > tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away > from GTK-2 because they were concerned loosing users when switching to > this toolkit. Because usually the person complaining disappears before providing useful info like this: > > So where *does* the time go to, if not pango? The more detail you can > > provide, the easier it is to track down. > I did some sysprof testing back when I tried to analyze why the > Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default > theme). It was almost a flat profile, but X spiked quite a lot. Doing > the same test (invalidating eclispe's main window) shows about half > (!!!) of the time is spent in X. The test with gftp (moving splitters) > shows X using 67.1% of CPU whereas gftp itself only consumes 31%. > I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). OK, *now* we have something that we can start looking into - we now know that at least part of the problem is that gftp is generating some very sub-optimal X requests. And we have a test case that reproduces easily (although on my box moving the main horizontal splitter in the gftp gui up and down result in about 70% gftp-gtk and 25% in the X server). I'll take a closer look at this later tonight - the kernel I have booted at the moment doesn't have oprofile support. (And no, I don't pretend to know the GTK innards well enough to fix this, but I've been doing systems debugging and tuning for enough decades that I certainly should be able to get a clear and coherent bugzilla out of it so that somebody else can run with it from there...) --==_Exmh_1150839019_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmGjrcC3lWbTT17ARAipXAJ0VwdLBfSxH0117D7jSuyfn23bE9gCgudlr 1k0WTieYG9P86q3XX2RzYns= =rDWz -----END PGP SIGNATURE----- --==_Exmh_1150839019_3210P-- From mleisher@crl.nmsu.edu Tue Jun 20 17:30:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC5483B0ACC for ; Tue, 20 Jun 2006 17:30:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-02 for ; Tue, 20 Jun 2006 17:30:38 -0400 (EDT) Received: from crl.nmsu.edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id A09343B0BBE for ; Tue, 20 Jun 2006 17:30:36 -0400 (EDT) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.nmsu.edu (8.13.6/8.13.6) with ESMTP id k5KLUYPh018088; Tue, 20 Jun 2006 15:30:34 -0600 Message-ID: <44986900.7080407@crl.nmsu.edu> Date: Tue, 20 Jun 2006 15:30:40 -0600 From: Mark Leisher User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Clemens Eisserer Subject: Re: Scrolling performance References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.2/1551/Tue Jun 20 07:37:21 2006 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.494 tagged_above=-999 required=2 tests=[AWL=-0.840, BAYES_00=-2.599, DNS_FROM_RFC_BOGUSMX=1.945] X-Spam-Score: -1.494 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:44 -0000 Clemens Eisserer wrote: > >> (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer > Well but it should be enough to handle these simple tasks very fast. > If QT can do it fast, GTK should be able too. > > I just wonder why QT performs that well (and many other toolkits I've > used too like FOX or FLTK) but everytime it comes down to bad > performance of GTK the following things happen: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. > 2.) Some fans respond that on their machines its working fast enough. > Fighting against that one that brought up the topic to show him that > their favourite Gui toolkit is not as weak as it looks. > 3.) The discussion dies with or without a flame. > -> no result, nothing changes. I run GTK+ 2.8 on a 400MHz Pentium II box (512MB, Slackware 9) every day without any noticeable performance problems. At one time or another I have used pretty much all versions of GTK+ on this machine without any performance problems. In fact I just installed all the latest libraries last night and didn't experience any performance problems with any programs I linked to the new libraries. Your performance problem is most likely configuration or distribution-specific. Thus the lack of response from the developers. The discussion founders because nothing needs changing except perhaps your system, which your fellow travelers can only help with up to a point because most of us don't have your specific setup. I will say that it not a good sign that problems like yours can't be diagnosed easily. The accretion of mass and complexity in the OS and GUI is making it increasingly difficult to determine where to start troubleshooting. -- ------------------------------------------------------------------------ Mark Leisher Computing Research Lab They never open their mouths New Mexico State University without subtracting from the Box 30001, MSC 3CRL sum of human knowledge. Las Cruces, NM 88003 -- Thomas Bracket Reed (1839-1902) From tml@iki.fi Tue Jun 20 17:49:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33B5C3B0954 for ; Tue, 20 Jun 2006 17:49:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16362-09 for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 3898C3B028D for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 349E1151226; Wed, 21 Jun 2006 00:49:32 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17560.28006.652000.134571@gargle.gargle.HOWL> Date: Wed, 21 Jun 2006 00:49:26 +0300 To: Mathew Yeates Subject: Re: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix In-Reply-To: <4498679B.7000508@jpl.nasa.gov> References: <4498679B.7000508@jpl.nasa.gov> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.329 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.329 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:49:40 -0000 Mathew Yeates writes: > When I try and compile I get the error in my subject line. This is with > a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Presumably you get the error when running your code, not compiling? Anyway, you probably have an older version of the GNU iconv Dll, iconv.dll, in your Windows System32 folder. (Or something totally unrelated that just happens to also be called iconv.dll.) Hide that other iconv.dll. If you later then notice that some 3rd-party app that has installed it in the system32 folder starts complaining about it missing, copy it to that app's executable's folder, where it should have been in the first place. --tml From jcupitt@gmail.com Tue Jun 20 17:57:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D481A3B026F for ; Tue, 20 Jun 2006 17:57:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17120-07 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.203]) by menubar.gnome.org (Postfix) with ESMTP id 9A3F33B0244 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h30so11009wxd for ; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.92.17 with SMTP id p17mr11155104wxb; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Message-ID: <522c6460606201457k7a194a19n956616ccdaeb85da@mail.gmail.com> Date: Tue, 20 Jun 2006 22:57:34 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:57:43 -0000 On 6/20/06, Clemens Eisserer wrote: > Thanks for the tip with the theme, the only theme I've installed is > called "Raleigh". I found the package: http://www.novell.com/products/linuxpackages/suselinux/gtk-qt-engine.html it is installed by default, so unless you've removed it, you are probably using it. Worth checking anyway. I used to use gtk2.4 apps under suse on a very old 450MHz PII machine and performance was not obviously worse than Qt (for me). John From linuxhippy@gmail.com Tue Jun 20 18:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4FC13B0170 for ; Tue, 20 Jun 2006 18:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20290-07 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 2388D3B08F1 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so720860hud for ; Tue, 20 Jun 2006 15:41:32 -0700 (PDT) Received: by 10.78.17.4 with SMTP id 4mr3049235huq; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Message-ID: <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Date: Wed, 21 Jun 2006 00:41:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.37 tagged_above=-999 required=2 tests=[AWL=-0.155, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -2.37 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 22:41:37 -0000 Hi again, > I'm suspecting you're addressing me with that comment. ;) Well, maybe ;) When I wrote the original post I was quite frustrated since I was unhappy about GTKs performance since a long time (I used FC3 (2.4) and FC4(2.6) and now OpenSuSE 10.1 (2.8), my laptop died (2.6ghz) and now I've to work on an Athlon-1000 where all gtk programs are the same oder of magnitude slower than on my laptop, I just can feel it much more because of the slowness of the machine itself. > Because usually the person complaining disappears before providing useful > info like this: Well I understand that this leads to frustration over the time. I am too one of those guys crying very loud, however I am a java-programmer working with Eclipse since about 2 years. I can choose between a slow GTK2 interface or an unuseable but fast Motif based, and that for the tool I work most of the time with :-/ So ... yes I am interested in investing time to at least help abit with informations ;) For now my timeframe is *very* limmited (my current project has its deadline about 2-3 weeks), but I am of course I am willed to help. I would also be willed to get my hands on code ... if someone would be patient enough to help me at the beginning ;) I did some oprofiling, however I don't have a vmlinz-file handy so its quite a bit useless: 5558 39.2930 no-vmlinux 2116 14.9593 libfb.so 1319 9.3248 nvidia_drv.so 1031 7.2888 Xorg 603 4.2630 libqt-mt.so.3.3.5 550 3.8883 libc-2.4.so 470 3.3227 libgobject-2.0.so.0.800.5 416 2.9410 libcairo.so.2.2.3 337 2.3825 libglib-2.0.so.0.800.5 304 2.1492 libgdk-x11-2.0.so.0.800.10 272 1.9229 libpango-1.0.so.0.1001.1 201 1.4210 libX11.so.6.2 177 1.2513 libpthread-2.4.so 155 1.0958 libgtk-x11-2.0.so.0.800.10 > I'll take a closer look at this later tonight - the kernel I have booted at the > moment doesn't have oprofile support. Thanks for looking into this. lg Clemens From Valdis.Kletnieks@vt.edu Tue Jun 20 19:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1109D3B0357 for ; Tue, 20 Jun 2006 19:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24750-03 for ; Tue, 20 Jun 2006 19:43:33 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id C354B3B02B8 for ; Tue, 20 Jun 2006 19:43:32 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KNhQN3004405; Tue, 20 Jun 2006 19:43:26 -0400 Message-Id: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Wed, 21 Jun 2006 00:41:31 +0200." <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150847006_3852P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 19:43:26 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.404 tagged_above=-999 required=2 tests=[AWL=-0.150, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_IB=0.077] X-Spam-Score: -1.404 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 23:43:38 -0000 --==_Exmh_1150847006_3852P Content-Type: text/plain; charset=us-ascii On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > I did some oprofiling, however I don't have a vmlinz-file handy so its > quite a bit useless: > 5558 39.2930 no-vmlinux Bummer. With a system time *that* high, I'm wondering if there's something odd going on here... a vmlinux to help split that out would certainly help a lot in debugging here.. > 2116 14.9593 libfb.so > 1319 9.3248 nvidia_drv.so > 1031 7.2888 Xorg > 603 4.2630 libqt-mt.so.3.3.5 > 550 3.8883 libc-2.4.so > 470 3.3227 libgobject-2.0.so.0.800.5 Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a generic GTK issue, not gftp, unless the 3 other apps I tested did the same wrong thing with it.. ;) samples % image name app name symbol name 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process 5232 6.7536 libfb.so libfb.so (no symbols) 4834 6.2398 Xorg Xorg (no symbols) 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy 2172 2.8037 vmlinux vmlinux get_page_from_freelist 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock 1359 1.7542 nvidia nvidia (no symbols) 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup (or, done by shared library: 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 10538 13.6027 vmlinux 5594 7.2209 libc-2.4.90.so 5377 6.9408 libgobject-2.0.so.0.1102.1 5232 6.7536 libfb.so 4953 6.3934 Xorg 4784 6.1753 nvidia_drv.so 3933 5.0768 libpthread-2.4.90.so At least in my case, the top hog appears to be too much work done scaling theme pixmaps over and over, when they're likely to be invalidated by another resize before the scaling is completed.... You probably mentioned it before, but what GTK2 theme are you using? --==_Exmh_1150847006_3852P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmIgecC3lWbTT17ARAvXtAKDYfozX87Bk7LwUKWF75kNiCuBY2gCgp136 iJcjpeJlIWrhq/fYvfTtwEc= =x8rS -----END PGP SIGNATURE----- --==_Exmh_1150847006_3852P-- From nick.soffe@bioch.ox.ac.uk Wed Jun 21 04:41:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 68FAD3B0A36 for ; Wed, 21 Jun 2006 04:41:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-02 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from relay0.mail.ox.ac.uk (relay0.mail.ox.ac.uk [129.67.1.161]) by menubar.gnome.org (Postfix) with ESMTP id 910DE3B07B7 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from smtp1.herald.ox.ac.uk ([163.1.0.247]) by relay0.mail.ox.ac.uk with esmtp (Exim 4.62) (envelope-from ) id 1FsyHA-0005TT-2r for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Received: from nmrpc.bioch.ox.ac.uk ([129.67.77.14]) by smtp1.herald.ox.ac.uk with esmtp (Exim 3.36 #1) id 1FsyHA-0000gW-01 for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Date: Wed, 21 Jun 2006 09:39:16 +0100 (GMT Daylight Time) From: Nick Soffe To: Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Message-ID: X-X-Sender: bioc0391@imap228.herald.ox.ac.uk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 08:41:32 -0000 On Tue, 20 Jun 2006, Clemens Eisserer wrote: > Hi there, > > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Clemens, I don't know if this has any relevance now, but I experienced similar poor performance a while ago with a machine who's configuration was very similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the Nvidia binary driver current at the time (a couple of years ago). The driver worked well for 3d applications (glxgears gave much higher fps) but seemed to devastate the 2d performance particularly with GTK2 applications. Changing back to the open source 'nv' driver seemed to work much better. I never knew whether the problem was hardware or software related and eventually swapped the graphics card for an inexpensive radeon using the OS 'radeon' driver. This combination worked much better for me so I never investigated further. Nick From linuxhippy@gmail.com Wed Jun 21 07:44:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 173903B0F80 for ; Wed, 21 Jun 2006 07:44:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01010-04 for ; Wed, 21 Jun 2006 07:44:13 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id AFCBC3B0EEF for ; Wed, 21 Jun 2006 07:44:12 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so800375hud for ; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.51.9 with SMTP id y9mr3301492huy; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Message-ID: <194f62550606210444r79f41268xebc6eb2a75e46f20@mail.gmail.com> Date: Wed, 21 Jun 2006 13:44:10 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.735 tagged_above=-999 required=2 tests=[AWL=-0.693, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.735 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 11:44:14 -0000 Hello Nick, > I don't know if this has any relevance now, but I experienced similar poor > performance a while ago with a machine who's configuration was very > similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the > Nvidia binary driver current at the time (a couple of years ago). Definitivly could be ... all my systems are equiped with NVidia cards (GF488Go, FX5200, GF6600) and I am using the nvidia binary driver on all of my systems. However throwing their closed-source beast away is not an option for me, from time to time I play 3d games or enjoy opengl/shader development for fun. Many others also use the nvidia driver, maybe theres a way it could be solved? It really could be this combination, maybe it could be worked arround (if easy) or someone could file a bugreport at nvidia, however I guess they would like to see specific claims. Does anybody know a better way for profiling X/X requests than oprofile? Thanks a lot for reading, lg Clemens From linuxhippy@gmail.com Wed Jun 21 08:04:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D3E753B090F for ; Wed, 21 Jun 2006 08:04:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02496-05 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id 28A553B0992 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so855999hue for ; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.26.9 with SMTP id 9mr3210819huz; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Message-ID: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> Date: Wed, 21 Jun 2006 14:04:21 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.395 tagged_above=-999 required=2 tests=[AWL=-0.661, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_BF=0.077, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -1.395 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 12:04:27 -0000 Hello Valdis, Thanks again for taking all the time :-) You were right, novell installed by default a gtk-qt-engine package, that was also the reason why I was not able to get rid of "this one and only theme". Now I am using the default theme and its _way_ better, I see about twice as much refreshed when moving gftp's vertical splitter, the horizontal are still very slow. gtk-demo still shows a much higher expose-lag than even konqueror which its much more complex (and skinned) default interface. > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. Great, SuSe (unlike fedora) stores an compressed vmlinux directly in /boot. 4676 19.7391 libfb.so (no symbols) 3647 15.3953 vmlinux-copy default_idle 2445 10.3212 nvidia_drv.so _nv000805X 2031 8.5736 vmlinux-copy get_page_from_freelist 1817 7.6702 Xorg (no symbols) 1130 4.7701 libcairo.so.2.2.3 (no symbols) 888 3.7486 libgobject-2.0.so.0.800.5 (no symbols) 699 2.9507 libpango-1.0.so.0.1001.1 (no symbols) 659 2.7819 libgdk-x11-2.0.so.0.800.10 (no symbols) 638 2.6932 libglib-2.0.so.0.800.5 (no symbols) 482 2.0347 nvidia_drv.so _nv000194X 331 1.3973 libgtk-x11-2.0.so.0.800.10 (no symbols) 315 1.3297 libc-2.4.so _int_malloc 309 1.3044 nvidia (no symbols) This profile looks _very_ strange for me. For what is libfb good ... I am quite sure I am using the binary nvidia driver. A lot if time is "wasted" allocating memory and a lot of time goes to the nvidia drivers doing something. Is there a way to get something like call-graphs out of oprofile, maybe this would illustrate which functions call into _nv000805X or libfb. When moving gftps splitters I still see X (with the default theme) eating cpu-time at about 65% and gftp at about 33%. > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... Just because of interrest couldn't cairo be used for scaling with a fast path through XRender? Does XRender supports scaling of images? Thanks again, lg Clemens From jcupitt@gmail.com Wed Jun 21 09:07:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DF073B0F19 for ; Wed, 21 Jun 2006 09:07:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07105-09 for ; Wed, 21 Jun 2006 09:07:36 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id CE1593B0FD4 for ; Wed, 21 Jun 2006 09:07:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so128046wxc for ; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.78.5 with SMTP id a5mr1084728wxb; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Message-ID: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> Date: Wed, 21 Jun 2006 14:07:35 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.441 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:07:39 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From jcupitt@gmail.com Wed Jun 21 09:22:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941143B0FAC for ; Wed, 21 Jun 2006 09:22:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08193-05 for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 7AF683B0FCF for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so130171wxc for ; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.18.10 with SMTP id 10mr1106184wxr; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Message-ID: <522c6460606210621u56e6c915u4db618c4c3de2cc0@mail.gmail.com> Date: Wed, 21 Jun 2006 14:21:54 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.437 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.437 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:22:00 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From paul@linuxaudiosystems.com Wed Jun 21 09:30:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 524143B0FAC for ; Wed, 21 Jun 2006 09:30:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08899-09 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 6ED913B0FE0 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J17000M8PHWT1L4@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 08:29:57 -0500 (CDT) Date: Tue, 20 Jun 2006 21:00:15 -0400 From: Paul Davis Subject: Re: Scrolling performance In-reply-to: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> To: Valdis.Kletnieks@vt.edu Message-id: <1150851615.8703.171.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.931 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247] X-Spam-Score: -1.931 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:30:03 -0000 On Tue, 2006-06-20 at 19:43 -0400, Valdis.Kletnieks@vt.edu wrote: > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) i talked for a little while with tim janik at LAC2006 this year about this very issue. GTK1's pane widget used the standard draw-with-XOR to indicate the new position of the divider, and the resize didn't occur till mouse release. GTK2, for some unknown reason, abandoned that approach and instead keeps issuing resize events as the mouse moves. its completely and totally braindead as the default behaviour, although i would concede that there are situations where it would be nice to have this available. in ardour, dragging panes around like this causes a more or less complete redraw of our monster canvas widget, which causes absurdly slow and ugly visuals while doing it. i've looked at rewriting GtkPaned to use the old behaviour by default, but it was just too much work for me to get into at the time i was looking into it. --p From linuxhippy@gmail.com Wed Jun 21 10:12:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E2C53B0F79 for ; Wed, 21 Jun 2006 10:12:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11455-01 for ; Wed, 21 Jun 2006 10:12:43 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 024343B0954 for ; Wed, 21 Jun 2006 10:12:42 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so3546903uge for ; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.17.1 with SMTP id 1mr3355654huq; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Message-ID: <194f62550606210712n52adc4fbu66cc223ceec68c87@mail.gmail.com> Date: Wed, 21 Jun 2006 16:12:41 +0200 From: "Clemens Eisserer" To: paul@linuxaudiosystems.com, gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <1150851615.8703.171.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <1150851615.8703.171.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:12:47 -0000 Hello Paul, > GTK2, for some unknown reason, abandoned that > approach and instead keeps issuing resize events as the mouse moves. its > completely and totally braindead as the default behaviour, although i > would concede that there are situations where it would be nice to have > this available. Yes I know, older toolkits used to solve it this way. However most modern toolkits resize the content as soon as the slider is moved and are able to cope with it better than GTK (at least on my machine), e.g. moving the panes of k3b (a KDE based cdrecord frontend, qt: skinned, gtk: default theme) is smooth whereas gftp's panes always give an impression of beeing behind the cursor and showing visual ugliness. However this could also be caused by the nvidia driver, I don't know :-/ Maybe I can create a small video of both programs and upload it somewhere.... lg Clemens From M.Kahn@Astronautics.com Wed Jun 21 10:21:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EA683B106A for ; Wed, 21 Jun 2006 10:21:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11945-10 for ; Wed, 21 Jun 2006 10:21:48 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id D14463B1034 for ; Wed, 21 Jun 2006 10:21:47 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6953D.FE391C43" Subject: GTK Performance on Athlon Date: Wed, 21 Jun 2006 09:21:31 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: GTK Performance on Athlon Thread-Index: AcaVPf3m6pVD3d/ISkecaOL4KsmRdA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.3 tagged_above=-999 required=2 tests=[AWL=-1.116, BAYES_40=-0.185, HTML_MESSAGE=0.001] X-Spam-Score: -1.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:21:51 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. The system clock took off at warp speed (about three times normal speed). When I emailed SuSE, they told me that the BIOS does not provide a solid real-time clock interrupt. (One side-effect of the warp speed system clock was I could not "double click" on anything.) They felt that they may have a fix for this problem in SUSE 10.0. It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance. I really hope this isn't your problem. =20 BTW - I have since returned to using my old 1.7 GHz PC (assembled myself) to run Linux. I won't be taking any chances on the Athlon in the future; that's just too much money to spend on a machine that doesn't play nicely with my preferred flavor of Linux. =20 Michael Kahn =20 ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A few months ago, I bought an HP Athlon PC and = installed SuSE 9.2.  The system clock took off at warp speed (about three = times normal speed).  When I emailed SuSE, they told me that the BIOS = does not provide a solid real-time clock interrupt.  (One side-effect of the = warp speed system clock was I could not “double click” on = anything.)  They felt that they may have a fix for this problem in SUSE 10.0.  = It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance.  I really hope this isn’t your = problem.

 

BTW – I have since returned to using my old 1.7 = GHz PC (assembled myself) to run Linux.  I won’t be taking any = chances on the Athlon in the future; that’s just too much money to spend on a machine that doesn’t play nicely with my preferred flavor of = Linux.

 

  Michael Kahn

 

------_=_NextPart_001_01C6953D.FE391C43-- From paul@linuxaudiosystems.com Wed Jun 21 10:46:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4A2C3B1091 for ; Wed, 21 Jun 2006 10:46:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13938-01 for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 328253B105D for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1700ETJSZ4L7UG@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 09:45:05 -0500 (CDT) Date: Wed, 21 Jun 2006 10:45:33 -0400 From: Paul Davis Subject: Re: GTK Performance on Athlon In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150901133.10221.2.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:46:47 -0000 On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > The system clock took off at warp speed (about three times normal > speed). When I emailed SuSE, they told me that the BIOS does not > provide a solid real-time clock interrupt. (One side-effect of the > warp speed system clock was I could not 鈥渄ouble click鈥 on anything.) > They felt that they may have a fix for this problem in SUSE 10.0. It > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > your GTK performance. I really hope this isn鈥檛 your problem. it sounds quite likely that you have been the victim of some slightly uninformed customer support. was this a dual core Athlon? From Valdis.Kletnieks@vt.edu Wed Jun 21 11:42:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D6F313B0F95 for ; Wed, 21 Jun 2006 11:42:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17781-01 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 381A23B1012 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5LFgNYf004294; Wed, 21 Jun 2006 11:42:24 -0400 Message-Id: <200606211542.k5LFgNYf004294@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: paul@linuxaudiosystems.com Subject: Re: GTK Performance on Athlon In-Reply-To: Your message of "Wed, 21 Jun 2006 10:45:33 EDT." <1150901133.10221.2.camel@localhost.localdomain> From: Valdis.Kletnieks@vt.edu References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> <1150901133.10221.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150904543_3088P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 21 Jun 2006 11:42:23 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.583 tagged_above=-999 required=2 tests=[AWL=0.056, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.583 X-Spam-Level: Cc: gtk-list@gnome.org, Michael Kahn X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 15:42:31 -0000 --==_Exmh_1150904543_3088P Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 21 Jun 2006 10:45:33 EDT, Paul Davis said: > On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > > The system clock took off at warp speed (about three times normal > > speed). When I emailed SuSE, they told me that the BIOS does not > > provide a solid real-time clock interrupt. (One side-effect of the > > warp speed system clock was I could not =E2=80=9Cdouble click=E2=80= =9D on anything.) > > They felt that they may have a fix for this problem in SUSE 10.0. It= > > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > > your GTK performance. I really hope this isn=E2=80=99t your problem.= >=20 > it sounds quite likely that you have been the victim of some slightly > uninformed customer support. was this a dual core Athlon? No, the =22turbo clock ticks=22 problem is a very real issue on certain A= thlon motherboards. There's been several long threads about it on the linux-ke= rnel mailing list, and I believe it's fixed in 2.6.16 or 2.6.17 or so (althoug= h I'd have to go back and check, I wasn't paying much attention because I d= on't have an Athlon). SUSE may well have backported the fix into whatever ker= nel they're shipping with 10.0. And a screaming clock *can* bork double-clicks - imagine where you need t= o get in 2 clicks in under 250 milliseconds, but the system ticks off what it t= hinks is 250ms in only 75ms. And your mouse won't double-click faster than 80m= s. ;) --==_Exmh_1150904543_3088P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmWjfcC3lWbTT17ARAl0OAKCdWN5CkoY/7CUNUYAB9THaAsKlFgCbBk+e PUDaJiUXtpFfp14/cFuJQes= =hmFE -----END PGP SIGNATURE----- --==_Exmh_1150904543_3088P-- From chris@cvine.freeserve.co.uk Wed Jun 21 19:26:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525373B00CF for ; Wed, 21 Jun 2006 19:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12592-06 for ; Wed, 21 Jun 2006 19:26:48 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 2D0E93B009B for ; Wed, 21 Jun 2006 19:26:47 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id 004B21C00083; Thu, 22 Jun 2006 01:26:46 +0200 (CEST) Received: from boulder.homenet (user-2086.l1.c4.dsl.pol.co.uk [81.79.136.38]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id C5F531C00082; Thu, 22 Jun 2006 01:26:45 +0200 (CEST) X-ME-UUID: 20060621232645810.C5F531C00082@mwinf3106.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5LNRE68002592; Thu, 22 Jun 2006 00:27:14 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: proggressbar.. Date: Thu, 22 Jun 2006 00:27:13 +0100 User-Agent: KMail/1.9.1 References: <4497B5B8.1080000@sasken.com> In-Reply-To: <4497B5B8.1080000@sasken.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.989 tagged_above=-999 required=2 tests=[AWL=-1.325, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -0.989 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 23:26:49 -0000 On Tuesday 20 June 2006 09:45, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged > information. In case you are not the original intended Recipient of the > message, you must not, directly or indirectly, use, Disclose, distribute, > print, or copy any part of this message and you are requested to delete it > and inform the sender. Any views expressed in this message are those of the > individual sender unless otherwise stated. Nothing contained in this > message shall be construed as an offer or acceptance of any offer by Sasken > Communication Technologies Limited ("Sasken") unless sent with that express > intent and with due authority of Sasken. Sasken has taken enough > precautions to prevent the spread of viruses. However the company accepts > no liability for any damage caused by any virus transmitted by this email It is reasonably straightforward, but I think your disclaimer prevents me from answering your question. Chris From mclasen@redhat.com Wed Jun 21 23:10:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA4213B0172; Wed, 21 Jun 2006 23:10:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23030-07; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 63BA23B0008; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AclX021506; Wed, 21 Jun 2006 23:10:38 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AcnM019751; Wed, 21 Jun 2006 23:10:38 -0400 Received: from [172.16.83.158] (vpn83-158.boston.redhat.com [172.16.83.158]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5M3AciB004961; Wed, 21 Jun 2006 23:10:38 -0400 Subject: GTK+ 2.9.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Organization: Red Hat Date: Wed, 21 Jun 2006 23:12:41 -0400 Message-Id: <1150945961.4457.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.3 (2.7.3-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:10:42 -0000 GTK+ 2.9.4 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.4.tar.bz2 md5sum: c06cf2cfa66485600d90789c9e58f27c gtk+-2.9.4.tar.gz md5sum: e3fefedc7f1a89b66c71c9967168a857 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are finalized by now. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.3 to 2.9.4 ============================================ * GtkPrintOperation: - UI improvements in the print dialog - Make printing work without a display connection - Replace "Print to PDF" by "Print to file" that can generate PDF or PostScript - Add a function to the low-level API to enumerate all printers * GtkNotebook tab DND has been improved * GtkProgressbar supports text in activity mode * GtkLabel allows to set the wrap mode * GtkStatusIcon supports transparency * Bugs fixed: 344850 Dragging a GtkTreeViewColumn segfaults when using certain GtkTreeViewColumnDropFunc 342458 Stock menu items without icons are broken in recent GTK+ releases. 335873 notebook DND + popup windows 337882 gtk_progress_bar_set_text() does nothing in activity mode 339456 unix print dialogue help button bug 339702 Make sure printing works without a display 341571 tabs too easily reordered 344074 New Feature: get printer list, and get default print 344743 gtk_targets_include_text() should initialize atoms 344838 Allow func to be NULL in gtk_tree_view_set_search_position_func 344891 GtkPrintOperationPreview signal defs correction 345008 Need updated cairo req 345093 print preview temp file issues 345107 Memory leak in gtk_entry_completion_finalize: User data not freed 345194 gdk_window_set_functions() docs need to be updated 345456 grid-lines property is wrongly registered and get/set. 314278 strings in gtk-update-icon-cache are not marked for translation 344707 size group with widgets in hidden container 344897 Entry completion model NULL handling should be documented 345038 gtk_print_job_set_status' status 345106 dialog button box spacings 345176 GtkIconView doc about drag and drop 345275 doc imporovements for gtk_window_move 345320 Two very similiar strings should be made equal 345321 Add meaning of "shortcut" as translator comment 320034 transparency gtkstatusicon 339592 Add print-to-postscript 344867 custom paper file could use keyfile * Updated translations (cs,de,es,fr,gl,gu,hi,ko,ta,th) A list of all bugs fixed in this release can be found at http://bugzilla.gnome.org/buglist.cgi?bug_id=344838,344743,344867,344891,345008,341571,345038,337882,345093,344707,339456,345107,345275,339702,344074,345320,345321,344897,314278,320034,344850,345194,345176,345106,335873,342458,339592,345456 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Christian Persch, John Finlay, Federico Mena Quintero, Michael Emmel, Marko Anastasov, Bastien Nocera, Carlos Garnacho, Yevgen Muntyan, Tommi Komulainen, Tim Janik, Christian Weiske, Behdad Esfahbod, Alexander Larsson, Felipe Heidrich, Hendrik Richter, Claudio Saavedra, Dan Winship, Callum McKenzie, John Palmieri, Murray Cumming, Kristian Rietveld June 21, 2006 Matthias Clasen From lists@nabble.com Wed Jun 21 23:29:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CB3B03DC for ; Wed, 21 Jun 2006 23:29:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24140-01 for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1411D3B026B for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FtFsh-0000bD-BH for gtk-list@gnome.org; Wed, 21 Jun 2006 20:29:23 -0700 Message-ID: <4986548.post@talk.nabble.com> Date: Wed, 21 Jun 2006 20:29:23 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: cannot draw lines in a GtkDrawingArea widget MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.82 tagged_above=-999 required=2 tests=[AWL=-0.708, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.82 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:29:25 -0000 Hi all, I need to draw some lines in a GtkDrawingArea widget, and I use the following code: GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. 10,//the x coordinate of the start point 30,//the y coordinate of the start point 580,//the x coordinate of the end point 30 //the y coordinate of the start point ); it does not work! Anybody knows why? Thanks!! -- View this message in context: http://www.nabble.com/cannot-draw-lines-in-a-GtkDrawingArea-widget-t1827981.html#a4986548 Sent from the Gtk+ - General forum at Nabble.com. From yogesh.ar@gmail.com Thu Jun 22 01:09:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0E443B03C9 for ; Thu, 22 Jun 2006 01:09:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29017-09 for ; Thu, 22 Jun 2006 01:09:41 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id C40353B0098 for ; Thu, 22 Jun 2006 01:09:40 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so202391pyf for ; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.34.18 with SMTP id m18mr649285pyj; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:09:39 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 10:39:39 +0530 From: "Yogesh Arora" To: gtk-list@gnome.org Subject: auromatic scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.382 tagged_above=-999 required=2 tests=[AWL=0.218, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.382 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:09:48 -0000 I have a TextView inside a scroll window. I want to create an animation effect in which TextView scrolls automatically I know there is set_value function in Range class. But for calling that function i will always have to calculate the value. There should be some funtion such as step_increment page_increment can called for step or page_increment From yogesh.ar@gmail.com Thu Jun 22 01:38:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59EBA3B035E for ; Thu, 22 Jun 2006 01:38:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30733-08 for ; Thu, 22 Jun 2006 01:38:31 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id BFA423B0008 for ; Thu, 22 Jun 2006 01:38:30 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id t32so201085pyc for ; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.91.15 with SMTP id t15mr679056pyl; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:38:29 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 11:08:29 +0530 From: "Yogesh Arora" To: "Chris Vine" Subject: Re: proggressbar.. In-Reply-To: <200606220027.13878.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.391 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.391 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:38:32 -0000 is that just due to tall claims he is making...or has it got something to do with india On 6/22/06, Chris Vine wrote: > On Tuesday 20 June 2006 09:45, Kalli Math wrote: > > how to design a progressbar, and add to my application window? > > > > with regards, > > Prashanth km > > > > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > > > SASKEN BUSINESS DISCLAIMER > > This message may contain confidential, proprietary or legally Privileged > > information. In case you are not the original intended Recipient of the > > message, you must not, directly or indirectly, use, Disclose, distribute, > > print, or copy any part of this message and you are requested to delete it > > and inform the sender. Any views expressed in this message are those of the > > individual sender unless otherwise stated. Nothing contained in this > > message shall be construed as an offer or acceptance of any offer by Sasken > > Communication Technologies Limited ("Sasken") unless sent with that express > > intent and with due authority of Sasken. Sasken has taken enough > > precautions to prevent the spread of viruses. However the company accepts > > no liability for any damage caused by any virus transmitted by this email > > It is reasonably straightforward, but I think your disclaimer prevents me from > answering your question. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Thanks Yogesh Dont be intimidated by impossibillity.... be motivated by possibillity! From yeti@physics.muni.cz Thu Jun 22 02:37:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 938243B021B for ; Thu, 22 Jun 2006 02:37:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01472-04 for ; Thu, 22 Jun 2006 02:37:42 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 81A8C3B0234 for ; Thu, 22 Jun 2006 02:37:41 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5M6bdQI030282 for ; Thu, 22 Jun 2006 08:37:40 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 6499123CE9; Thu, 22 Jun 2006 08:37:39 +0200 (CEST) Date: Thu, 22 Jun 2006 08:37:39 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: cannot draw lines in a GtkDrawingArea widget Message-ID: <20060622063739.GM30886@potato.chello.upc.cz> References: <4986548.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4986548.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 06:37:44 -0000 On Wed, Jun 21, 2006 at 08:29:23PM -0700, heavenscape wrote: > > I need to draw some lines in a GtkDrawingArea widget, and I use the > following code: > > GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); > gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow > w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. > 10,//the x coordinate of the start point > 30,//the y coordinate of the start point > 580,//the x coordinate of the end point > 30 //the y coordinate of the start point > ); > > it does not work! Anybody knows why? .From the use of lookup_widget() I assume you don't draw in expose event handler (where you get the widget as function argument and do not have to look it up). Draw in the expose handler -- can you see the lines now? Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Thu Jun 22 07:55:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EB213B0086 for ; Thu, 22 Jun 2006 07:55:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21594-10 for ; Thu, 22 Jun 2006 07:55:40 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id 10CEC3B042E for ; Thu, 22 Jun 2006 07:55:39 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id EB5F427105B; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from poczta.interia.pl (f34.poczta.interia.pl [10.217.2.34]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 8C873271069 for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 8D01125049D; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 3F0DE25049A for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Date: 22 Jun 2006 13:55:30 +0200 From: hm Subject: Two buttons, two images and switching between them To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060622115530.3F0DE25049A@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.765 tagged_above=-999 required=2 tests=[AWL=0.223, BAYES_00=-2.599, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: -0.765 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 11:55:41 -0000 =0AHi !=0A=0A I`ve got a problem : I have window, with two buttons inside= . I`ve got two GtkImage`s, and on a beginning of the program, i`m ( setting= gtk_button_set_image () ) these images to be button`s "icons". =0AI want t= o make a signal function, that handles clicking on both of these buttons. O= n click it should switch images between the buttons. For example i`ve got i= con1, icon2, button1 and button2. =0Abutton1 -> icon1=0Abutton2 -> icon2 ( = icon2 is set to be an icon for button2 )=0A=0Anow.. i`ve got a signal, that= button1 is pressed. So i want now, to have situation :=0A=0Abutton1 -> ico= n2=0Abutton2 -> icon1=0A=0A When I try again to do gtk_button_set_image ( b= utton1, icon2 ) and gtk_button_set_image ( button2, icon1 ) it doesn`t work= propertly ( button1 has icon2 , but button2 has no icon ). I suppose it is= so because of button1 is now "parrent" ( or owner ) of both icons ???? I= `m not quiet sure. I would be appreciate for any clue how to do this. Maybe= there is any method to release icon from being button`s child ? Uhh.. it i= s little twisted :) From betsy.vyce@ctg.com Wed Jun 21 12:39:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 10E193B108D for ; Wed, 21 Jun 2006 12:39:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21747-06 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from smtp.ctg.com (smtp-out.ctg.com [206.201.124.158]) by menubar.gnome.org (Postfix) with ESMTP id 6BC553B1035 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from netmail.ctg.com (netmail.ctg.com [205.142.112.242]) by smtp.ctg.com (Symantec Mail Security) with ESMTP id 4762810CF for ; Wed, 21 Jun 2006 12:39:30 -0400 (EDT) Received: from BUF-EXC1.ctg.com ([205.142.112.13]) by netmail.ctg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 12:39:29 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C69551.44546463"; type="multipart/alternative" Subject: Linux Accessibility Project Date: Wed, 21 Jun 2006 12:39:28 -0400 Message-ID: <46A68DDC98C6464DBB54D968081874CF021EAFD2@BUF-EXC1.ctg.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: Linux Accessibility Project Thread-Index: AcaVUUPWid50p5tHQK+nedj3OL/r1A== From: "Betsy Vyce" To: X-OriginalArrivalTime: 21 Jun 2006 16:39:29.0956 (UTC) FILETIME=[446D9640:01C69551] X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.093 tagged_above=-999 required=2 tests=[BAYES_50=0.001, EXTRA_MPART_TYPE=1.091, HTML_MESSAGE=0.001] X-Spam-Score: 1.093 X-Spam-Level: * X-Mailman-Approved-At: Thu, 22 Jun 2006 11:45:55 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 16:39:38 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C69551.44546463 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C69551.44546463" ------_=_NextPart_002_01C69551.44546463 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Our client, IBM, currently has an immediate opening for candidates with=0D= =0A Internals knowledge of GTK and "GTK custom widget", "Bonobo", AT-SPI",=0D= =0A "ATK", and/or "Accessibility" skills. In general, we are seeking=0D=0A someone with deeper GTK knowledge. The project involves working on=0D=0A solving a set of bugs in the Gnome desktop which can be viewed at the=0D=0A following link:=0D=0A =0D=0A =0D=0A =0D=0A http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.html=0D=0A =0D=0A =0D=0A =0D=0A Candidates MUST have Linux experience. We are looking for someone who=0D= =0A can add new functionality after debugging an issue rather than just a=0D=0A debugger, so we need someone with significant development and/or design=0D= =0A skills.=0D=0A =0D=0A =0D=0A =0D=0A Candidates can work from any location in the U.S. as long as they can=0D=0A work at an IBM facility. If they can be in Austin, TX, then all the=0D=0A better.=0D=0A =0D=0A =0D=0A =0D=0A If anyone is interested in being considered for this opportunity, please=0D= =0A reply to this email with a copy of your resume at your earliest=0D=0A convenience.=0D=0A =0D=0A =0D=0A =0D=0A Regards,=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Betsy Vyce=0D=0A Senior Recruiter, Austin Team=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Tel: 877-222-0688 (Toll Free)=0D=0A =0D=0A Home Office: 303-339-0928=0D=0A =0D=0A Fax: 303-814-1735=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A ------_=_NextPart_002_01C69551.44546463 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0D=0A =0D=0A =0D=0A =0D=0A =0D= =0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A
=0D=0A =0D=0A

Our client, IBM, currently has an immediate opening fo= r=0D=0A candidates with Internals knowledge of GTK and “GTK custom widget&#= 8221;,=0D=0A “Bonobo”, AT-SPI”, “ATK”, and/or “Acc= essibility”=0D=0A skills.  In general, we are seeking someone with deeper GTK knowledg= e.  The=0D=0A project involves working on solving a set of bugs in the Gnome desktop wh= ich=0D=0A can be viewed at the following link:

=0D=0A =0D=0A

 

=0D=0A =0D=0A

http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.ht= ml

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates MUST have Linux experience.  We are lo= oking for=0D=0A someone who can add new functionality after debugging an issue rather tha= n just=0D=0A a debugger, so we need someone with significant development and/or design= =0D=0A skills.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates can work from any location in the U.S. = as long as=0D=0A they can work at an IBM facility.  If they can be in Austin, TX,=0D=0A then all the better.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

If anyone is interested in being considered for this=0D= =0A opportunity, please reply to this email with a copy of your resume at you= r=0D=0A earliest convenience.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Regards,

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A

Betsy Vyce
=0D=0A Senior Re= cruiter,=0D=0A Austin Team

=0D= =0A =0D=0A

=

=0D=0A =0D=0A

 = =

=0D=0A =0D=0A

= Tel: =0D=0A 877-222-0688 (Toll Free)

=0D=0A =0D=0A

= Home=0D=0A Office:  303-339-0928

=0D=0A =0D=0A

= Fax: =0D=0A 303-814-1735

=0D=0A =0D=0A
=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A =0D=0A =0D=0A ------_=_NextPart_002_01C69551.44546463-- ------_=_NextPart_001_01C69551.44546463 Content-Type: image/gif; name="image001.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Description: image001.gif Content-Location: image001.gif R0lGODlhvQBrAPcAAFqmjVmqk7XYzjqSdsHe1ZPFtdyhJMrc05TIukqegp/EtJW+rXG2o47Gtvbo yc3k3dXo4mOkja3VyUyji6TQxODu6un08cni2j2cgezLh9Ho4eCrPEKWem61obzVyuvHffv05C+P cOLw7DKWeua6X/nv2t7u6r3d1EZKizKRcsbi2rja0X29q6DOwVapkYfBse/TmHa5pmCtl3q7qUGe g4G/rd3t6WWwm7rc0mmznjU5gZ7NwJzMvlGmjpnLvEWghvj8+6vUyYnDsuS2VcTh2fT6+DaYfMPg 2Dqaf7LYzajTxpHHt4PArrba0C6Ud+OzTv///4C7p+z18qrRxT6XerLVylGih8Xg13i3otnq5fj7 +p/LvYvBr/v9/FWkiuTx7e/39PP597raz9zs5zuVeDeTdZfHt2WslVKcg5DDsoS9qsjJ3Gmul67U x9Dm36PNv1adhZrJutXj3Ie/rdfX5kKafUabf+jy73CynVldmHS0n12oj6bPwmxvpO3t9PT0+HSt mE6ghXmvm4Gyn/v8/LLOwr3c0mVon8/Q4eLi7Z+hwyyOb+729Hy4pfD39fT39bK0z11hmn+Br3t9 rObm797e6unp8aqsyu/39cLYzujw672/1lZalpGTuvv7/UtPj4W1ovDw9qbIufj4+66wzcTG2qvK vMDC2GGqkm2wmoaIs/L49u3z7+z187W30d3o46Olxvb6+czN3+3285G7qrm71PD08dvb6PT5+IqM tnCqlWFknU5SkZWXvVJWk+Tt6NPU4/H49tjr5UBEiNns5s/n4I2PuGhroXR2qHBypm2plJiav3yw nMLg1/z9/Xi6p/3+/vr8/NDn4f3682inkKPGttnm4EqYf/3+/aepyC+UeMnj3Oby7v79+3d5qpye wY24p6rTyIm3pYKEsbbRxeDq5cba0Pj6+fz471SnkOjz8K/Nv5vMvvf7+uXy7vDXot+pNt3u6eKw Rs/g2Mrk3Ds/hPTfteGuQvrx36/Wy4zEtEehiNjr5uKxSiuNbf///yH5BAEAAP8ALAAAAAC9AGsA AAj/AP8JHEiwoMGDCBMqXMiwocOHECNKnEjR4JSLGDNq3Mixo8cpWiqKHEmypMl//lKqXMmypcuX MP1JOUmzpk2aMXPq3Dnzps+fQBfuHEp0Zc+gSJP6LMqUp9KnUEs2nQrzaNSrWBtS3crSatavYAdy HSszrNmwZLl6PctWadqta9vK/fmWaty5eHHWbXo3r9+Re/n+HXwyMNO+hBM7NFwUseLHCRkTdQy5 MkHJQylbtozZaUMVOBIyenGDARGGAdIVRMJis9S0CzgIZtjBiROELGzrdoJLYRAnEwba3pbVGdi0 aP6hma1w90EETnqs+ucsnO2FLZx0+IfBCfGB0Xbb/25xsEEPhLV3BzG4aoTuGSGvpvWgnPlBEbZx TLht8DrBJE40sdAMuklQkCO2pZPOBPs0Y1AXtglzkG0TTNCDbRUUZIQTCFCw4WnyjQWKQMsdltAK tn3BHX8EIUheQU7kgJoTLxiEoBBhYJJQeiwS5N8/GjihAoxOCEDAF7FkldMi1AwiCijKLMKSOAOV 2BhC+tgWjyOz2GZBQcE4wUN/Mi4EgRPRsLcbAweFx8CZEhIpnnEEqSCeNFjBFIICtvzziByv/GML IP7AMY8mBL0iBy0phUCLHIRYI8eklBYyQFkTiqdbMUQW9FtoC9mp44FOsOCOCPEVRKBuI/TnBDs7 2P9WBEKxMFLMj1C9hEag/ywQQkoRPPIPICMe9Is/A8jxDyFwpJRJQbpgahAE9BxBwLW2NQNEQT44 gQEjAmXXY0Ki2ujEEl0AsQoj2w4EjW03yLAfpz7yh4sTLhgUAAvQ/APhuG61NAArAnnAkin/vBIC IOsQtMAgzdL3zwEqDTIQOeD8qtmKCDGhKTYNEeEEGGqKhwFBDDjRr0C4/vNjt/QOhIR4J+TZUiED KcCSIP8Y7A/PVaY0wECFqBTBQKCotHEFDyTkiA/PvICnQ10MeRARTQigtQBxCiQMMQS1ckRBxIA9 EAFfFmQBD88sMWqIKw1ASM4sLQLIpT8TVGJyAhX/DexApijt2uAHtXQ03TABTaLQRKtEzUALCE74 5AK1pPg/Oieut0rP/mNOxQI9IltKG1P+V0uAEJT5S5dbyUGgj+D9LCsRGAURLo5JkaqNJFMUSysI tRIMQowMf1AspS/FEhyqx8TM5inBkYktmtgihybW0IK35P3lQxABu2Fg/ECtbKhbzQRlqRsD7Tr0 m25LEJTDbkoQ9MxuDRB0wm40qKNkS79oHEzIAT00nKN2QqsKQs41kAfYpgEUuIFtbDCQL9hGCDgQ V4YE4gLgSCAJMnBCAB7SrXNRgAZOABWFKFDCGAjEPTTYgQ+0IUKBUGA8K6hBy57iEmUMRBNScoku /wpSomo8AhBwSKIS4fAr200IAcLpERh+ZBsIBIEBL1DB1P6xvwZogAkxSIIGZvEQdXhPIK1wgguz 5KCBpEwKEnBC/Qaiw6ZN0Acd8IEGTPC/ltBiINVoCQdEQYjOCYQZyCJYQjIxOmnBCIosG5cON6gp 28Sng5oSQEEqYIJOmsAGayFCd5ygox2Wyj39CcCtNMUmm/UQUf+Yx8MUUIgA/kIXiyjHQB4hClbM TSG2wNtdODQQHORHGPmYmXf+EQvb7GAgAnDCDwTyg+hQ8B9dcsJ0BMINTcmAIErQTY1Yto/+XMgI /fmBMZ2Avn9IMByudIndTCEHYf1DDqZQhkpS0P9LgWgCFIdTSOQc6SNICmQblSSjy8Y1M4HkBmQD aSYBHBJNJJgtigXBhBNakI5xAUGNjHACBWA0TbiRpYn++KNCfDZMg/6jAyrABbiCxKIsuRCN/tGC bUQwEAlywyE7/EcznHCDgdzrNvyQ5kD+BS7brGAgcdRHPN8iCEKI4iUW89sw4yeQfznBfE4IA0FC KJ5r/uNMtqGhdh5SyRkIRIdOUKsTNCCQEu5Gk8ysJESjEphrEIIQKYCJNQZ6FwRscCBB6M4InmkQ DXTUCQx420AaQEMatLMhOIgBAzbLgBxMVCAVCIBtntEOgoiArB1QKFRH6VK+7iV15YDJIljRLIL/ mo4ze7nGsho5pUxw77abMUzD5rG9Ri3gANtLHnDlYphFLOAcjygEOHQxiGpoQhQhQAMoBDEA5S6X LZIZwCBMYY4DmAIUeKMuNQDh3e+apTO6AgQzrtFe94IlCvjNr373y9/++ve/URCrfQdM4AIb+MAI TrCCF8zgBjv4wRCOsIQnTOGsgOADHyhBhSuCDhKQAASP6cYGMgCDDYB4wwaxRz9gkJB3GMAAG3iC jGdM4xrb+MY4zrGObyyPIQjkAzHesZCHTOQiG/nINn6xAdCBkBLAwwAOeMw0NuAAfNxDwyguyAcM QAKFdGMalXEACYZgjywfBMxmTrOa18zmNrv5/81wjrOc50xnrPihzre9xSfwDBVFUOIfpaDDP+iA iF7c+RSV+Acw6GCMUfyjFon4hywSPZBSqGIZf1DEJ0jxBz90QhWwWAalBeIKVSjC0bVQxSUEIotT wKIToSBFJyLNZ4RMAhL/QAEy/nHrY9RiFMNQxT+SsYlIyMIP9ejEPyKBiIEAgxdrUIQnNuELQR8i F2v4xCX+MJBNcGINsPjHJfpAh0nk4h+kQEEvJoECRahiHLVGCCTGQQdv+OIfn7CEIoyxBkn4whPD +EMvFOEKSURiFCjwxEAmsYyB3CIPAkGBLP6RB1wP5BirFsguTjHoYfyj4IDuwz/WAPF4G8QSnP9Q xCWQUQpODDoSndjELkpxCEknQxJr4MQmvEGQPmTD4SXfRB4OsQtuDyQPtRgItP/hBx38AeRrEDnJ TX4QThwiEeNWNr4PEYpl9OEb//DEJw6ei2OQ4h+UaHYujAF0gWTjGEb/RyUEjYxwC6QPZ0cECj4u iZFLveRUJ4gxePGPROhgDQKZRCT+gQgdAEMgyUjGP06hgz/n4t6V+EQnrm6JemTjD6c4RB6GkXRk 1FzvvTiEHxDBi0tEAtdQ/3vgCxIKWtNB4Uz/syduLxBLWOIfo7iFQELxe6aXwvabCIXI/wGJXTD9 zv+wxCn+jHZIUDoUf/5DpP8w6tkjhROTgAX/J8DufcUAgxTNLr/618/+9rv//fCPv/znT//62//+ +B+MBS7wgDtkpRkFAAENgQsQcAUVsDsMEQZm0AhqcAHt8AYMKAAFMAYkIQUPcAF3sFcUAQRvEAe9 4xPcoAdlkBIpcAZtADKr4AZ04hBScAHt4xB3kAKL4AUriBAXkABSEgKBUAAzAQ1f0DQJsQUq0QiN oBIjiAUiIQVRQAYkuAdT0AUVMQUpYQY/EQZeQIIj6A920A6MkACBsDINsQVl8IURcQcjuAc1aBAi QAUpkYX+4Ab/gAUpoAcKsQf+EAdicAFHaAhi4A+NUBFagAqNkoV14AgVUQUpsQU/0QYpgQd3/7AK hhAFFwANfegFX6AO0KAFzsAIWTAdUlA2aeMIeOAPCVABPaEOY2CIEWUDYyAFQCAFbgANhoAFVvMP 6qABXsEFi2AHblAEGsAFb2CLduAPehASzsANWUAMvSMFCeAPDxAGFyAlb7AKsYAF9PAPWiACReAM FWADpSUQ2CACWVABuAAEY7BBGpASbPAFq0AAavBZ/wAGWZCKAhELIgANjEAM3FABaYKN3MCOcRAF PQENFZAF3/gPnFgBYPgPX+AGGvAFaWgQaZASeuA/A5EFQeQPeMAIVoAFdRACb1AATLgIZaCIRagS UfAPXDCCdoBXYtCM/jCGTMgHqVAHcyAQYv8Yk1VAEKlAihCwkGegEl9QBQDwKyFABU91kimRkf6w BXVQAP+ACimQCgCwCClgBTylBWfwK4tQB4HgD3UgEFeQEqlgkQSRBcOohTuZAHNIBSSZAmIgEGmQ AnZQBXZABVfwD9yACr8SCDz1Bmy4CHtAgUUgh0v5hwphCEZ4BnGgIlLABmDZCBeADXXgDyHgBQLg D4sAAEyYAhYgAM1YBtbIBylhhylQASIQWGcAmVqoBm5gBX74D1LAhACQAtc4EHGwlFbQgDg5ggkQ C6EJACwZDVXAhqkwB40gJXugBhXgD1zwDwCgEmx4h/9gBv5ABY2QlqhAhf9gA0FUBtvJU7L/2Yx4 YIchMAZMaJmBcIVIGA3NiAUXkBJ5KYghUAdeAIlkOYx78A9C6A+oEAV2gIQK4QxYwBJUUDPxyQYC AQRW4AUVUFpxIICZuQhgEwX+YAUCUZl48A/D+AaZ6Zn/YIf7+Q9f+YekGQjRkAUFAQZXqBKLkAYC AZspSQBm0BsF4A8pIFZBmSEV8Cs7iQ3O+Q+QyYtSwIZUeIUT5Qa/wgfuYqErQQWa9AYaKRDDWACw 6aDtwAXXGQ1ukBIE0KXO+AApwQV34H+C6AX/MJb+QAwWGgJw+A+quBAC4JHSiQvxeQYLupsDoQV8 EAWQeZ7/UIQYqg6BtQcFwIaNgIghAAEc/3mh0OAMMhqH/qAGCMENahAIKGUI/wCbiOkGBRAFdlgG vRGUFDgGv9IG/wAEQQqZCrqp/kCFdvgGWrACUhIHBSEGdJoSZCAFauAPhnqoGhmp/6ACKfEAQlgH QKCmGiCl/vBZuMCECfCpKbEC1nmdWNAG2zSAxZkSzSCmeJqqVoCYXwCb+0SBgvoPqckSbGABXrAI VJCFwcig/pCSQcmdCAEEEGCHk+qqf6gGTCmq/xCUYEMMp5qqq+oPeNoFsAmV+SCDaWkHKmIQsSAG lekPYjAHLcEGnCoQ0fCVUSCIlKqs/ZmX/7AKbqgSVXAHLUqWEXGShtCl38qgiDmRXkAPuf8ZAhR0 roTqD1hwBVdwAQLYBilQBnvQCJ8lrympB0G6EASQEn8ooxCgjhqAsWUwKwL7DwTrD6iqqs8ZlAm7 sP+AC7BpB2yQBhGLEL3qD1WgpfDps/QgDBsrENZJBSGwCBcgVCmhASMrELjAhqigAj+LgQJBAHEQ nWXAtGogDFoABDbQjIsgAvE5ojIrEAVKhYqasxcqEM34rXD4BYHFBlMgANckr3+YmwAgVNn6D22w BbEQDcHgpMFYon2ottUZkyFxtVm7tQf7tf4AlUKYAgUwBVeQujbABRCwuCLQojaAiN/6D00Tt/9g qilhBVDYDMWqpmbgCHkJmQkgEI5AgRD/AIQiEAIpsBBXuAgJYAVZSKljYJlz0AZAEAiIqaV2YAZf 6Q8waqEpMAcnwKxzEJ0CsApp2ShRgA1dUKLo+rn7KhCMMIJ1YAUVGwjgcoV10LQXWgCVuQhTEJX+ oKIY6Q8bzLUBi7D+8pVQOQVMSQWaKhCkib7q67T/EAbNiAr/q7YIPBCC2LuDK59a8JU66A8XQKz+ wAZR8K4iYIeoUABDuhBpMMD+QAZpsC1dUKD+EAi44AUp+Q8VcL9XGZtukJap8A8FkIUA8ABgIAYF sAUFkMMT5QUhkMVp8CtUwKQCYQFFvE94IJ5VMIIQkLbXCZu2ygYpUKplkAJbGwIwmgohjqCgXeDG tjoGcRCSXACt8XEBgZCRUNwuaKkSAOAGbpzFAiG0ZaCiaZoCKZCXxNCiVgCHU1CxKRAFIqAG6fnE G8wQ4TiOvfETvboIZvAG0QnEEHHL5KgUUhBYjTAFaTCCVtCP4CiOw0wQwpzLDmYCeGAHdVsGXqCI iVEFVrAIdVsHbACEcxbNkEHO+cdnAQEAOw== ------_=_NextPart_001_01C69551.44546463-- From linuxhippy@gmail.com Thu Jun 22 13:08:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CBBF3B03E5 for ; Thu, 22 Jun 2006 13:08:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11990-05 for ; Thu, 22 Jun 2006 13:08:30 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id D7CA73B0603 for ; Thu, 22 Jun 2006 13:08:29 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so579907uge for ; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr612924hue; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Message-ID: <194f62550606221008p61ceb686s5402452b96c8c6bb@mail.gmail.com> Date: Thu, 22 Jun 2006 19:08:29 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=-0.080, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 17:08:33 -0000 Hello again, Thanks a lot for sending your results of the 6200. It seems that (on my system) 35% of total cpu time are spent in software rendering related stuff (I guess _nv000805X is some kind of vram readback or upload function). When running gftp with the open-source "nv" driver performance feels way better (but not as ligthening fast as qt) as log as not-AA'ed fonts are used. So by identifying these problematic areas someone could send nvidia an bug-report for the missing XRender hookups/implementations. But I don't have any clue howto identify these :-/ Does anybody know a good technique/tools for finding out which calls to X are slow? Does running gftp in sync mode with some x protocoll analyzer make sence? Thank you in advance, lg Clemens 2006/6/21, John Cupitt : > > Good, glad that helped. There are fast and attractive gtk2 themes as > well: I use clearlooks myself. > > For what it's worth, if I maximise gftp and wiggle the vertical > splitter I see rather similar numbers to you. I have an nvidia 6200 > with driver 1.0-8762 and gtk2.8.18. > > 379387 69.5894 Xorg > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 143932 37.9380 libfb.so > 101881 26.8541 no-vmlinux > 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) > 26745 7.0495 Xorg > 6181 1.6292 libc-2.3.6.so > 1685 0.4441 libextmod.so > 116 0.0306 mouse_drv.so > 42 0.0111 libramdac.so > 1 2.6e-04 libm-2.3.6.so > 125293 22.9820 gftp-gtk > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 20136 16.0711 libpangoft2-1.0.so.0.1201.2 > 16493 13.1635 libcairo.so.2.2.4 > 15452 12.3327 libgobject-2.0.so.0.1000.3 > 13860 11.0621 libpango-1.0.so.0.1201.2 > 12485 9.9646 libc-2.3.6.so > 12299 9.8162 libgdk-x11-2.0.so.0.800.18 > 11823 9.4363 libglib-2.0.so.0.1000.3 > 4191 3.3450 libgtk-x11-2.0.so.0.800.18 > 4190 3.3442 libX11.so.6.2.0 > 2946 2.3513 libpthread-2.3.6.so > 2517 2.0089 no-vmlinux > 2171 1.7327 libpangocairo-1.0.so.0.1201.2 > 2087 1.6657 libXrender.so.1.3.0 > 1887 1.5061 libm-2.3.6.so > 1084 0.8652 libfreetype.so.6.3.8 > 956 0.7630 libclearlooks.so > 352 0.2809 pango-basic-fc.so > 323 0.2578 libgthread-2.0.so.0.1000.3 > 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 > 8 0.0064 ld-2.3.6.so > 3 0.0024 gftp-gtk > > John > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From oystein@gnubg.org Thu Jun 22 15:00:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 66FFE3B006D for ; Thu, 22 Jun 2006 15:00:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19184-03 for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 6F8D03B00BC for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J19009W9ZGSS260@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1900LMZZGRKNH7@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Date: Thu, 22 Jun 2006 21:00:24 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Main Loop, IO Channels and my CLI To: gtk-list@gnome.org Message-id: <449AE8C8.9030709@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig4D0040E48100B18213443258 X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:00:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D0040E48100B18213443258 Content-Type: multipart/mixed; boundary="------------030705090007050505050704" This is a multi-part message in MIME format. --------------030705090007050505050704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I've just made a small glib code that read commands from from a command line interface prompt. It uses g_main_loop and a g_io_channel. I've attached the code. First: It nearly works as expected. The callback is called each time I enter a command, and it's parsed to the command handler. However, I want to expand this to system to use automatic string completion, (the system provided in glib), for all available commands. Now it only handles command as I press enter. I guess I need a extra callback for each keypress. This callback can check if I press and then call g_completion_complete(), but how do I attach such a signal to the main lo= op? Then: Can this be a bug? It work fine unless I use a special scandinavian letter in my commands. Do I have to convert my string at any time? How? (I'm using win32 command prompt window) Example: myprompt> hello You typed: hello myprompt> =C6sop ** (gnubg.exe:3128): WARNING **: Something went wrong Invalid byte sequence in conversion input -=D8ystein --------------030705090007050505050704 Content-Type: text/plain; name="commandsystem.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="commandsystem.c" #include #include static void prompt(){ g_printf("myprompt> "); } static void handlecommand( gchar *sz ){ g_printf( "You typed: %s", sz ); prompt(); } static gboolean mycallback( GIOChannel *channel, GIOCondition cond, gpointer data) { gchar *str_return; gsize length, terminator_pos; GError *error = NULL; if( g_io_channel_read_line( channel, &str_return, &length, &terminator_pos, &error) == G_IO_STATUS_ERROR ) g_warning("Something went wrong"); if ( error != NULL ) { g_printf(error->message); exit(1); } handlecommand( str_return ); g_free( str_return ); return TRUE; } int main(int argc, char* argv[]) { GMainLoop *mainloop = g_main_loop_new( NULL, FALSE); #ifdef G_OS_WIN32 GIOChannel *channel = g_io_channel_win32_new_fd( STDIN_FILENO ); #else GIOChannel *channel = g_io_channel_unix_new( STDIN_FILENO ); #endif prompt(); g_io_add_watch( channel, G_IO_IN, mycallback, NULL ); g_main_loop_run(mainloop); return 0; } --------------030705090007050505050704-- --------------enig4D0040E48100B18213443258 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmujL6kDTFPhwyqYRAmO8AJ90ccVLei/Y2LKl4OmNPvFmCxc48QCbBpkZ DBHxKFHZ30sS+FdQ1vWycnk= =B070 -----END PGP SIGNATURE----- --------------enig4D0040E48100B18213443258-- From tristan.van.berkom@gmail.com Thu Jun 22 15:25:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87E353B0137 for ; Thu, 22 Jun 2006 15:25:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20656-05 for ; Thu, 22 Jun 2006 15:25:06 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id 0E8183B04F4 for ; Thu, 22 Jun 2006 15:25:05 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so586701nzh for ; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: by 10.65.182.16 with SMTP id j16mr3112039qbp; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: from ?66.48.170.242? ( [66.48.170.242]) by mx.gmail.com with ESMTP id q18sm1306507qbq.2006.06.22.12.25.03; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Message-ID: <449AF297.6070003@gnome.org> Date: Thu, 22 Jun 2006 15:42:15 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI References: <449AE8C8.9030709@gnubg.org> In-Reply-To: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.229 tagged_above=-999 required=2 tests=[AWL=0.371, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.229 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:25:07 -0000 貀stein Johansen wrote: >Hi, > >I've just made a small glib code that read commands from from a command >line interface prompt. It uses g_main_loop and a g_io_channel. I've >attached the code. > >First: >It nearly works as expected. The callback is called each time I enter a >command, and it's parsed to the command handler. However, I want to >expand this to system to use automatic string completion, (the system >provided in glib), for all available commands. Now it only handles >command as I press enter. I guess I need a extra callback for each >keypress. This callback can check if I press and then call >g_completion_complete(), but how do I attach such a signal to the main loop? > > > You need to get raw keyboard input from your terminal, in unix you can use tcsetattr(). >Then: >Can this be a bug? It work fine unless I use a special scandinavian >letter in my commands. Do I have to convert my string at any time? How? >(I'm using win32 command prompt window) > >Example: >myprompt> hello >You typed: hello >myprompt> 苨op > >** (gnubg.exe:3128): WARNING **: Something went wrong >Invalid byte sequence in conversion input > > > You might want to change the encoding on the io channel.. if you set it to NULL then it should work. Cheers, -Tristan From tml@iki.fi Thu Jun 22 15:29:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34F8A3B05BF for ; Thu, 22 Jun 2006 15:29:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21008-07 for ; Thu, 22 Jun 2006 15:29:06 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id F38B13B04A4 for ; Thu, 22 Jun 2006 15:29:05 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 636F315138F; Thu, 22 Jun 2006 22:29:02 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.61302.590000.98041@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:28:54 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.33 tagged_above=-999 required=2 tests=[AWL=0.134, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.33 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:29:09 -0000 =D8ystein Johansen writes: > (I'm using win32 command prompt window) And GIOChannel watches work? Wow, I'm amazed. Or actually, in the case of watches for GIOChannels associated with C file descriptors on Win32, GLib uses a separate thread that sits most of the time blocked waiting to read() from the file descriptor, so I guess indeed there is no reason why it wouldn't work for terminal input. > Invalid byte sequence in conversion input > Can this be a bug? It work fine unless I use a special scandinavian > letter in my commands. Do I have to convert my string at any time? > How? I think the input you get from a console window is typically in the so-called OEM code page of your Windows installation. You need to call the GetConsoleCP() function to find out the codepage of the console, and then form the encoding name as a string like "CP437", and tell the GIOChannel to use that encoding. Something like: char codepage[10]; ... sprintf (codepage, "CP%d", GetConsoleCP ()); ... g_io_channel_set_encoding (channel, codepage, &error); (Totally untested, tell us if it works ;) Otherwise GLib assumes the data is in UTF-8, and reading *lines* from a GIOChannel indeed requires it to know the actual encoding of the data, so it will complain when the data isn't proper UTF-8. --tml From tml@iki.fi Thu Jun 22 15:41:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46DF13B022E for ; Thu, 22 Jun 2006 15:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21958-02 for ; Thu, 22 Jun 2006 15:41:35 -0400 (EDT) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 07D893B06CE for ; Thu, 22 Jun 2006 15:41:34 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 9443B1394B7; Thu, 22 Jun 2006 22:41:31 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.62051.621000.757828@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:41:23 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.331 tagged_above=-999 required=2 tests=[AWL=0.133, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.331 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:41:36 -0000 =D8ystein Johansen writes: > However, I want to expand this to system to use automatic string > completion, (the system provided in glib), for all available > commands. Now it only handles command as I press enter. I guess I > need a extra callback for each keypress. This callback can check if > I press and then call g_completion_complete(), but how do I > attach such a signal to the main loop? Ah, I forgot to answer this part. I am afraid you might run into difficulty in doing this on Win32. Or maybe it isn't that hard? There is an API SetConsoleMode(), and mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe it's actually quite similar to Unix, and you can do character-at-a-time input, and your own echo processing. Maybe all you need to do is something like GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); and it will Just Work?=20 --tml From bonefry@gmail.com Thu Jun 22 17:13:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 416803B0601 for ; Thu, 22 Jun 2006 17:13:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26826-10 for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 572B63B061C for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so606362nzh for ; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: by 10.65.95.12 with SMTP id x12mr3218683qbl; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: from ?86.34.237.177? ( [86.34.237.177]) by mx.gmail.com with ESMTP id a5sm1382428qbd.2006.06.22.14.13.35; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Message-ID: <449B07F9.9030500@gmail.com> Date: Fri, 23 Jun 2006 00:13:29 +0300 From: Alex Nedelcu User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: GTK performance on Windows Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.158 tagged_above=-999 required=2 tests=[AWL=0.442, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.158 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:39 -0000 Why is GTK's performance so bad on Windows ? Of all the gui tookits I use, it has the worse performance. I am interested in GTK on Windows because I want to make cross-platform applications. Isn't there a new version on the horizon that will fix this ? Or what can be done to tune the performance of GTK interfaces ? I am using GTK+ version 2.8, and Windows XP. The platform I use is Mono with the GTK# bindings, but I also made tests in Python with the PyGTK.bindings, and I've got the same results. Thank you, From chris@cvine.freeserve.co.uk Thu Jun 22 17:13:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96F463B02CA for ; Thu, 22 Jun 2006 17:13:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27147-02 for ; Thu, 22 Jun 2006 17:13:50 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 774DB3B0769 for ; Thu, 22 Jun 2006 17:13:44 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id A0287580008E; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) Received: from boulder.homenet (user-2802.lns6-c11.dsl.pol.co.uk [84.69.106.242]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id 5BE1E58001A9; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) X-ME-UUID: 20060622211342377.5BE1E58001A9@mwinf3114.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5MLDBgq004659; Thu, 22 Jun 2006 22:13:11 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Two buttons, two images and switching between them Date: Thu, 22 Jun 2006 22:13:11 +0100 User-Agent: KMail/1.9.1 References: <20060622115530.3F0DE25049A@poczta.interia.pl> In-Reply-To: <20060622115530.3F0DE25049A@poczta.interia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606222213.11197.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.306 tagged_above=-999 required=2 tests=[AWL=-0.042, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.306 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:53 -0000 On Thursday 22 June 2006 12:55, hm wrote: > Hi ! > > I`ve got a problem : I have window, with two buttons inside. I`ve got > two GtkImage`s, and on a beginning of the program, i`m ( setting > gtk_button_set_image () ) these images to be button`s "icons". I want to > make a signal function, that handles clicking on both of these buttons. On > click it should switch images between the buttons. For example i`ve got > icon1, icon2, button1 and button2. button1 -> icon1 > button2 -> icon2 ( icon2 is set to be an icon for button2 ) > > now.. i`ve got a signal, that button1 is pressed. So i want now, to have > situation : > > button1 -> icon2 > button2 -> icon1 > > When I try again to do gtk_button_set_image ( button1, icon2 ) and > gtk_button_set_image ( button2, icon1 ) it doesn`t work propertly ( button1 > has icon2 , but button2 has no icon ). I suppose it is so because of > button1 is now "parrent" ( or owner ) of both icons ???? I`m not quiet > sure. I would be appreciate for any clue how to do this. Maybe there is any > method to release icon from being button`s child ? Uhh.. it is little > twisted :) When you substitute an image in button1 the reference count to icon1 would have been decremented, and if you have not taken steps to stop button1 taking ownership of it it will have been destroyed. That may be your problem (although in that case it is surprising that it worked the first time). Chris From oystein@gnubg.org Thu Jun 22 17:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AC523B0242 for ; Thu, 22 Jun 2006 17:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28976-07 for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 18D9A3B022C for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A009X17J7S2C0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A00FW87J6QD35@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Date: Thu, 22 Jun 2006 23:54:39 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <449AF297.6070003@gnome.org> To: Tristan Van Berkom Message-id: <449B119F.1000203@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enigF4FE71D812066FD76946249B X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.563 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599] X-Spam-Score: -2.563 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:54:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF4FE71D812066FD76946249B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tristan Van Berkom wrote: > =D8ystein Johansen wrote: >=20 >> Hi, >> >> I've just made a small glib code that read commands from from a comman= d >> line interface prompt. It uses g_main_loop and a g_io_channel. I've >> attached the code. >> >> First: >> It nearly works as expected. The callback is called each time I enter = a >> command, and it's parsed to the command handler. However, I want to >> expand this to system to use automatic string completion, (the system >> provided in glib), for all available commands. Now it only handles >> command as I press enter. I guess I need a extra callback for each >> keypress. This callback can check if I press and then call >> g_completion_complete(), but how do I attach such a signal to the main= >> loop? >> >> =20 >> > You need to get raw keyboard input from your terminal, in unix > you can use tcsetattr(). >=20 >> Example: >> myprompt> hello >> You typed: hello >> myprompt> =C6sop >> >> ** (gnubg.exe:3128): WARNING **: Something went wrong >> Invalid byte sequence in conversion input > You might want to change the encoding on the io > channel.. if you set it to NULL then it should work. Thank you! Adding this line: g_io_channel_set_encoding (channel, NULL, &error); makes it work. Thank you! Now let me try finding the right codepage as Tor suggests. Hmmm.... gcc -o mycli commandsystem.o -LC:/GTK/lib -lglib-2.0 -lintl -liconv -lkernel32 commandsystem.o(.text+0x3f):commandsystem.c: undefined reference to `GetConsoleCP' It doesn't link? (Yes, I do add -lkernel32) -=D8ystein --------------enigF4FE71D812066FD76946249B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmxGi6kDTFPhwyqYRAm34AJsEdcDQXNEIGbhSJrl8V1Y0BqA7qgCfXAcm 5Ita9vLa8F8qptA4rEeUAHw= =nwVe -----END PGP SIGNATURE----- --------------enigF4FE71D812066FD76946249B-- From itsme_515@hotmail.com Thu Jun 22 18:00:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6F863B06F4 for ; Thu, 22 Jun 2006 18:00:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29478-01 for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from hotmail.com (bay109-f14.bay109.hotmail.com [64.4.19.24]) by menubar.gnome.org (Postfix) with ESMTP id 9A4DC3B067C for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 15:00:53 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Thu, 22 Jun 2006 22:00:50 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com From: "Aar Em" To: gtk-list@gnome.org Subject: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 17:00:50 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 22 Jun 2006 22:00:53.0042 (UTC) FILETIME=[5474C120:01C69647] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.907 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: 1.907 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 22:00:55 -0000 Dear peers, After struggling with this for over a day, I wanted to ask you for your help regarding usage for g_list_insert_sorted. Can someone please help. Here are the operative parts of my program: I have the following struct: typedef struct _message_info { char *from; char *subject; char *face; long *ctime; } MESSAGE_INFO; I have the following comparison function: static gint compare_ctime (gconstpointer a, gconstpointer b) { const MESSAGE_INFO *p1=a,*p2=b; return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); } and the following calling part: Glist *headers; ..... MESSAGE_INFO *m; m = g_new(MESSAGE_INFO,1); m->from = safe_strdup (from); m->subject = safe_strdup (subject); m->face = safe_strdup (xface); m->ctime = ctime; headers = g_list_insert_sorted (headers, m,compare_ctime); .... I get segmentation fault with this, and was wondering how I could fix it. I guess my question is how to use g_list_insert_sorted. I have Googled quite a bit on this, but have not been able to devise the fix. Any help would be very appreciated. Any suggestions? Many thanks and best wishes, Aarem _________________________________________________________________ Don抰 just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ibr@radix50.net Thu Jun 22 19:51:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 934D53B0320 for ; Thu, 22 Jun 2006 19:51:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01890-02 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 340233B0288 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-11-z2.arcor-so.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 12CA117689F for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-11-z2.arcor-so.net (Postfix) with ESMTP id 025AB1C71CE for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id BD69FEAE5C for ; Fri, 23 Jun 2006 01:51:07 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNongI020870 for ; Fri, 23 Jun 2006 01:50:49 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNon3l020869 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:50:49 +0200 Date: Fri, 23 Jun 2006 01:50:49 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622235049.GC30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:51:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From itsme_515@hotmail.com Thu Jun 22 20:01:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 764923B0295 for ; Thu, 22 Jun 2006 20:01:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02104-10 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from hotmail.com (bay109-f40.bay109.hotmail.com [64.4.19.50]) by menubar.gnome.org (Postfix) with ESMTP id 30A843B0176 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 17:01:08 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Fri, 23 Jun 2006 00:01:07 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <20060622235049.GC30610@radix50.net> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 19:01:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 23 Jun 2006 00:01:08.0504 (UTC) FILETIME=[2134E180:01C69658] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.407 tagged_above=-999 required=2 tests=[AWL=-0.714, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.407 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 00:01:10 -0000 Hi, Many thanks! I think I should let you know that g_list_append works fine, except that it does not give me a sorted list by ctime (creation time). org. The debugger crashes just after entering the function at the point of the "return statement". Program received signal SIGSEGV, Segmentation fault. 0x0804db2b in compare_ctime (a=0x8ef5ae0, b=0x0) at count.c:19 /usr/local/aarem/Desktop/gbuffy-0.2.6/count.c:19:339:beg:0x804db2b Btw, I am sorting by the ctime, the creation time of the messages in the mh folder. Many thanks, aarem > >Hello Aarem, > >On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > > Glist *headers; > > ..... > > headers = g_list_insert_sorted (headers, m,compare_ctime); > >Do you initialize headers with NULL? If not, this could be the reason. >Otherwise, use gdb to see where it crashes. > > > > typedef struct _message_info > > { > > char *from; > > char *subject; > > char *face; > > long *ctime; > > } MESSAGE_INFO; >... > > static gint compare_ctime (gconstpointer a, gconstpointer b) > > { > > const MESSAGE_INFO *p1=a,*p2=b; > > > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : >-1); > > } > >I don't know what long *ctime is, but sorting by pointer value looks >suspicious. This shouldn't segfault, but I'm not sure it does what you >want. > > >With kind regards, >Baurzhan. >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dkasak@nusconsulting.com.au Thu Jun 22 22:27:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1AA23B050E for ; Thu, 22 Jun 2006 22:27:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08034-02 for ; Thu, 22 Jun 2006 22:27:05 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 8B07A3B0139 for ; Thu, 22 Jun 2006 22:27:04 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k5N2SbNx017452; Fri, 23 Jun 2006 12:28:38 +1000 Message-ID: <449B5170.6050609@nusconsulting.com.au> Date: Fri, 23 Jun 2006 12:26:56 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Alex Nedelcu , gtk-list@gnome.org Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> In-Reply-To: <449B07F9.9030500@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 462445 - f5bdb0dffa1b X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=462445&m=f5bdb0dffa1b X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.124, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.398 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 02:27:07 -0000 Alex Nedelcu wrote: > Why is GTK's performance so bad on Windows ? > Of all the gui tookits I use, it has the worse performance. > > I am interested in GTK on Windows because I want to make cross-platform > applications. > > Isn't there a new version on the horizon that will fix this ? > Or what can be done to tune the performance of GTK interfaces ? > > I am using GTK+ version 2.8, and Windows XP. > The platform I use is Mono with the GTK# bindings, > but I also made tests in Python with the PyGTK.bindings, and I've got > the same results. > I don't think it's so bad. I'm developing gtk2-perl applications and deploying on a mix of Linux and Windows ( 2000 ) clients, and the performance is actually quite impressive. It even runs inside vmware on my Linux desktop quite well, though obviously not at full speed. As per previous posts re: performance problems, have you tried changing themes? Also, what exactly is slow? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From tml@iki.fi Fri Jun 23 02:23:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C97C3B0567 for ; Fri, 23 Jun 2006 02:23:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18933-03 for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 542053B00ED for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CFBA5151223; Fri, 23 Jun 2006 09:23:38 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17563.35042.590000.373902@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:23:30 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449B119F.1000203@gnubg.org> References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> <449B119F.1000203@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.332 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.332 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:23:44 -0000 =D8ystein Johansen writes: > It doesn't link? (Yes, I do add -lkernel32) Did you #include ?=20 --tml From tml@iki.fi Fri Jun 23 02:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A0813B04C0 for ; Fri, 23 Jun 2006 02:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18926-08 for ; Fri, 23 Jun 2006 02:27:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 0A0133B041F for ; Fri, 23 Jun 2006 02:27:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CEEBD1511A1; Fri, 23 Jun 2006 09:27:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.35295.574000.601419@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:27:43 +0300 To: Alex Nedelcu Subject: Re: GTK performance on Windows In-Reply-To: <449B07F9.9030500@gmail.com> References: <449B07F9.9030500@gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.333 tagged_above=-999 required=2 tests=[AWL=0.131, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.333 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:27:56 -0000 Alex Nedelcu writes: > Why is GTK's performance so bad on Windows ? Because you haven't profiled it and contributed performance improvements? > Of all the gui tookits I use, it has the worse performance. Well, d'oh, you should ask for your money back then! --tml From hdnews@gawab.com Fri Jun 23 02:52:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 596D63B0218 for ; Fri, 23 Jun 2006 02:52:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20492-03 for ; Fri, 23 Jun 2006 02:52:31 -0400 (EDT) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by menubar.gnome.org (Postfix) with ESMTP id D54F03B00ED for ; Fri, 23 Jun 2006 02:52:30 -0400 (EDT) Received: from pegasus.strader.xs4all.nl (strader.xs4all.nl [80.127.15.33]) by smtp-vbr4.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5N6qT2W054997; Fri, 23 Jun 2006 08:52:29 +0200 (CEST) (envelope-from hdnews@gawab.com) Received: from [10.8.0.2] (vpnclient [10.8.0.2] (may be forged)) (authenticated bits=0) by pegasus.strader.xs4all.nl (8.12.10/8.12.10) with ESMTP id k5N6qMbh029399; Fri, 23 Jun 2006 08:52:29 +0200 Message-ID: <449B8FA2.3050501@gawab.com> Date: Fri, 23 Jun 2006 08:52:18 +0200 From: Hans Oesterholt-Dijkema User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tor Lillqvist Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.656 tagged_above=-999 required=2 tests=[AWL=-1.303, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, SPF_SOFTFAIL=1.384, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -0.656 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:52:32 -0000 He must have been adding sleeps in his code. Tor Lillqvist schreef: > Alex Nedelcu writes: > > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! > > --tml > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From nf2@scheinwelt.at Fri Jun 23 04:25:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28DDE3B078E for ; Fri, 23 Jun 2006 04:25:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27712-01 for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 689883B011E for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1FtgyI-0008KO-1Y; Fri, 23 Jun 2006 10:25:02 +0200 Message-ID: <449BA558.7040303@scheinwelt.at> Date: Fri, 23 Jun 2006 10:24:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Sean Middleditch , gtk-list@gnome.org Subject: Re: libxdg-vfs and Gtk-Filechooser References: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> In-Reply-To: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 3eb4023d85beba22221bf02b5aa627a5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, TW_BX=0.077, TW_IB=0.077, TW_XD=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:25:04 -0000 Hi, Sean Middleditch wrote: > Making the GTK file chooser use libxdg is pretty shady. Letting an > application select a file on an FTP share is pointless if the application > itself cannot actually access the file returned by the file chooser. At > best you'd have to have the chooser download/copy the file locally and > return a temporary file path to the app. But then changes to the file > would be lost. Saving the file would be difficult since when saving, the > chooser just returns the URI to the app, which again has no way to write > to any file that isn't local. > http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html libxdg-vfs supports get/put functions for reading and writing files - the application just has to link libxdg-vfs. The libxdg-vfs backend for GTKFileChooser wouldn't be the default, but just for applications which use libxdg-vfs . > The xdg-vfs stuff is interesting, but until there is a complete library > that can be easily integrated into applications, there's little point in > having the file chooser support the xdg stuff. And if you have GTK apps > willing to use a VFS library, you might as well get them to go straight to > the GObject-based gnome-vfs rather than xdg-vfs. > AFAIK gnome-vfs doesn't use GObject in the API. The advantage of libxdg-vfs is, that it uses the VFS system (password storage, protocol handlers, network shares) of the current desktop (KIO *or* Gnome-VFS). Therefore your GTK application will integrate nicely into KDE without directly linking to KIO (or the other way round - a Qt application on Gnome using Gnome-VFS). Also - you don't have a whole desktop-system in the dependencies of your application - Just a little library. (If you want to use Gnome-VFS directly, you also have to link to libGnomeUI - same problem for KIO and the KDE desktop libraries). cheers, Norbert From sven@gimp.org Fri Jun 23 04:54:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1DCD3B038E for ; Fri, 23 Jun 2006 04:54:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29667-05 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from buzzloop.caiaq.de (buzzloop.caiaq.de [212.112.241.133]) by menubar.gnome.org (Postfix) with ESMTP id 667C63B0231 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 9A4CF7F4028; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23383-03; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from [192.168.1.124] (i577B660E.versanet.de [87.123.102.14]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTP id 251EB7F4022; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Subject: Re: Main Loop, IO Channels and my CLI From: Sven Neumann To: =?ISO-8859-1?Q?=D8ystein?= Johansen In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=utf-8 Date: Fri, 23 Jun 2006 10:54:01 +0200 Message-Id: <1151052841.13729.8.camel@bender> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[AWL=0.853, BAYES_00=-2.599] X-Spam-Score: -1.746 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:54:24 -0000 Hi, On Thu, 2006-06-22 at 21:00 +0200, 脴ystein Johansen wrote: > I've just made a small glib code that read commands from from a command > line interface prompt. It uses g_main_loop and a g_io_channel. I've > attached the code. > > First: > It nearly works as expected. The callback is called each time I enter a > command, and it's parsed to the command handler. However, I want to > expand this to system to use automatic string completion, (the system > provided in glib), for all available commands. That sounds like fun. When you have something ready and are willing to put it under the GPL, I think it would be interesting to add this code for the GIMP Script-Fu text console mode. The current code needs an overhaul anyway and it would be sweet to have command completion. Sven From linuxhippy@gmail.com Fri Jun 23 06:06:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FFCC3B0231 for ; Fri, 23 Jun 2006 06:06:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01577-01 for ; Fri, 23 Jun 2006 06:06:08 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.202]) by menubar.gnome.org (Postfix) with ESMTP id DB91E3B01D8 for ; Fri, 23 Jun 2006 06:06:07 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so316956hue for ; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.138.14 with SMTP id l14mr1205881hud; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Message-ID: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> Date: Fri, 23 Jun 2006 12:06:06 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.423 tagged_above=-999 required=2 tests=[AWL=-0.381, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.423 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:06:10 -0000 1.) Is this really nescessary? This guy has performance problems on windows asking for help (well, maybe a bit indirect) ... and this is what he gets. Go to QT's bugzilla and search for performance bugs .... 2.) How could he profile it. I asked two times for ways to find out which operations are done in software fallbacks (on X) on this list, no reply. For a non-profgessional profiling GTK and all the stuff it is surrounded by is not trivial and well without no help ... It seems there is not even interrest in speeding up GTK2. lg > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! From tml@iki.fi Fri Jun 23 06:22:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F0CC3B012A for ; Fri, 23 Jun 2006 06:22:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02739-05 for ; Fri, 23 Jun 2006 06:22:24 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 288523B045A for ; Fri, 23 Jun 2006 06:22:23 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id B4B61216477; Fri, 23 Jun 2006 13:22:19 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.49363.293000.582022@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 13:22:11 +0300 To: "Clemens Eisserer" Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.335 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.335 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:22:25 -0000 Clemens Eisserer writes: > 1.) Is this really nescessary? > This guy has performance problems on windows asking for help (well, > maybe a bit indirect) ... and this is what he gets. I am sorry for being a but rude, but I found his mail more of an accusation than a question. > Go to QT's bugzilla and search for performance bugs .... Why? Are the underlying assumptions and historical background of GTK+ and QT at all comparable? > For a non-profgessional profiling GTK and all the stuff it is > surrounded by is not trivial and well without no help ... If one would ask specific question like "I draw 100000 line segments with separate gdk_draw_line() calls, and it's too slow on Win32" one might get better help. --tml From linuxhippy@gmail.com Fri Jun 23 07:33:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 003FB3B03A7 for ; Fri, 23 Jun 2006 07:33:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06705-03 for ; Fri, 23 Jun 2006 07:33:14 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id C32AC3B0061 for ; Fri, 23 Jun 2006 07:33:13 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so327531hue for ; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.157.15 with SMTP id f15mr1224696hue; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Message-ID: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> Date: Fri, 23 Jun 2006 13:33:12 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.49363.293000.582022@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.313 tagged_above=-999 required=2 tests=[AWL=-0.348, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.313 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 11:33:15 -0000 First of all thanks a lot for doing that much work porting GTK to windows. I can't count how many apps I've used myself on windows-pcs which were able to run because of your work. > If one would ask specific question like "I draw 100000 line segments > with separate gdk_draw_line() calls, and it's too slow on Win32" one > might get better help. I installed gimp on some win-xp computers in the company I work for (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These are very much the issues I have on linux but more "visible". Its the UI, menus, window resizing, layout changes or repaint-events sent to the window because its content was invalidated. I can't say wether its really slow or just feels so, maybe the graphic card driver had an influence (nvidia gf4 mx4000) or some other circumstances were not optimal. I simply never did care that much simply because I don't use/like this planform. Its just hard to know whats going wrong, especially if someone is no gtk insider. lg Clemens From linuxhippy@gmail.com Sat Jun 24 06:27:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 803AF3B00EA for ; Sat, 24 Jun 2006 06:27:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06912-07 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 173283B0132 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so449148hue for ; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1550801hue; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Message-ID: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> Date: Sat, 24 Jun 2006 12:27:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.745 tagged_above=-999 required=2 tests=[AWL=0.193, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -1.745 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 10:27:37 -0000 Hello again, I did some further testing and found that even the gtk-demo part "paned widgets" show such low performance if the panes are as large as the whole screen. I further talked to an nvidia driver developer which also analysed the situation and got a profile very similar to mine. This is what he replied: [quote]So I guess I didn't reproduce your problem. In my case, the reason so much time is spent in software solid fills and copies is that GTK seems to create and destroy pixmaps at a fantastic rate. In fact, it creates and destroys a pixmap every time it blinks the cursor. Pixmaps start out in system memory and are only migrated to video memory after they've been used for a while. This means that creating pixmaps, doing two or three rendering operations, and then destroying them is a sure-fire way to make your rendering fall back to software. Future drivers will have an InitialPixmapPlacement nvidia-settings attribute so people can try tweaking this behavior. If I use that to force pixmaps to start in video RAM, then profiling shows that most of the time is spent waiting for the GPU.[/quote] Does even the default theme uses pixmaps for all and everything? Any ideas where to look into this? Thank you in advance, lg Clemens 2006/6/21, Valdis.Kletnieks@vt.edu : > On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > > > I did some oprofiling, however I don't have a vmlinz-file handy so its > > quite a bit useless: > > 5558 39.2930 no-vmlinux > > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. > > > 2116 14.9593 libfb.so > > 1319 9.3248 nvidia_drv.so > > 1031 7.2888 Xorg > > 603 4.2630 libqt-mt.so.3.3.5 > > 550 3.8883 libc-2.4.so > > 470 3.3227 libgobject-2.0.so.0.800.5 > > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) > > samples % image name app name symbol name > 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line > 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process > 5232 6.7536 libfb.so libfb.so (no symbols) > 4834 6.2398 Xorg Xorg (no symbols) > 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop > 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X > 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy > 2172 2.8037 vmlinux vmlinux get_page_from_freelist > 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock > 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock > 1359 1.7542 nvidia nvidia (no symbols) > 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel > 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup > > (or, done by shared library: > > 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 > 10538 13.6027 vmlinux > 5594 7.2209 libc-2.4.90.so > 5377 6.9408 libgobject-2.0.so.0.1102.1 > 5232 6.7536 libfb.so > 4953 6.3934 Xorg > 4784 6.1753 nvidia_drv.so > 3933 5.0768 libpthread-2.4.90.so > > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... > > You probably mentioned it before, but what GTK2 theme are you using? > > > From itsme_515@hotmail.com Sat Jun 24 22:59:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D2E4A3B0165 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14000-06 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from hotmail.com (bay109-f20.bay109.hotmail.com [64.4.19.30]) by menubar.gnome.org (Postfix) with ESMTP id DDB273B00C4 for ; Sat, 24 Jun 2006 22:59:13 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 24 Jun 2006 19:57:12 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Sun, 25 Jun 2006 02:57:07 GMT X-Originating-IP: [63.175.166.181] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <449B14BA.4030509@gnubg.org> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Sat, 24 Jun 2006 21:57:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Jun 2006 02:57:12.0485 (UTC) FILETIME=[0EA7F550:01C69803] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.178 tagged_above=-999 required=2 tests=[AWL=-2.085, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.178 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 02:59:15 -0000 Folks, so I figured it out: turns out that there is what I believe a bug (or a feature) in g_list_insert_sorted -- if the list is null, even then it goes off to sort. This should not happen. If the list is NULL, it should just add to the list. Many thanks and best wishes, Aarem _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From torriem@chem.byu.edu Sun Jun 25 01:12:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 757323B0079 for ; Sun, 25 Jun 2006 01:12:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17632-03 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by menubar.gnome.org (Postfix) with ESMTP id 5E5773B00A6 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (sccrmhc13) with ESMTP id <2006062505113001300mgu3se>; Sun, 25 Jun 2006 05:11:31 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5P5BTrC002542 for ; Sat, 24 Jun 2006 23:11:30 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5P5BOTq002537 for gtk-list@gnome.org; Sat, 24 Jun 2006 23:11:24 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: proggressbar.. From: Michael Torrie To: gtk-list@gnome.org In-Reply-To: References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 24 Jun 2006 23:11:24 -0600 Message-Id: <1151212284.32440.16.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.416 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.416 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 05:12:17 -0000 On Thu, 2006-06-22 at 11:08 +0530, Yogesh Arora wrote: > is that just due to tall claims he is making...or has it got something > to do with india I doubt it has to do with India. I have recently noticed a number of posts from people for whom English is not their native language to this list, posts containing questions that are extremely unclear. It could very well be the language barrier, but several of these posts appear to be asking us to do the work for someone, rather than wanting to read the docs, tutorials, and example code. It is those posts that appear to be demanding that we do their work for them that draw reactions such as this one. Michael > > From yeti@physics.muni.cz Sun Jun 25 03:23:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628F93B0374 for ; Sun, 25 Jun 2006 03:23:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21579-03 for ; Sun, 25 Jun 2006 03:23:22 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8AEA53B030F for ; Sun, 25 Jun 2006 03:23:21 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P7MWuA020910 for ; Sun, 25 Jun 2006 09:22:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id A7E5223D5E; Sun, 25 Jun 2006 09:22:32 +0200 (CEST) Date: Sun, 25 Jun 2006 09:22:33 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060625072233.GK2296@potato.chello.upc.cz> References: <449B14BA.4030509@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 07:23:23 -0000 On Sat, Jun 24, 2006 at 09:57:07PM -0500, Aar Em wrote: > Folks, so I figured it out: turns out that there is what I believe a bug (or > a feature) in g_list_insert_sorted -- if the list is null, even then it goes > off to sort. It does no such thing and never did: http://cvs.gnome.org/viewcvs/glib/glib/glist.c?rev=1.35&view=log > If the list is NULL, it should just add > to the list. And that's exactly what it does since ever. Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Sun Jun 25 05:16:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32E853B01D0 for ; Sun, 25 Jun 2006 05:16:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07093-07 for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: from smtp.poczta.interia.pl (unknown [80.48.65.7]) by menubar.gnome.org (Postfix) with ESMTP id A627E3B013D for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id CEE8237485A; Sun, 25 Jun 2006 11:15:17 +0200 (CEST) Received: from poczta.interia.pl (f30.poczta.interia.pl [10.217.2.30]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 544FC3747D7 for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 4773210C018; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 2006310C00F for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Date: 25 Jun 2006 11:15:12 +0200 From: hm Subject: GtkImage simple question, please help To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060625091512.2006310C00F@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.137 tagged_above=-999 required=2 tests=[AWL=-0.734, BAYES_20=-0.74, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.137 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 09:16:14 -0000 =0AHi !=0A=0A I`ve got a question. Let`s have this piece of code :=0A=0A= =0A...=0A=0A GtkWidget * image1;=0A GtkWidget * button;=0A ...=0A butto= n =3D gtk_button_new ();=0A image =3D gtk_image_new_from_file ( PATH );=0A= gtk_button_set_image ( GTK_BUTTON ( button), image1 );=0A =0Aquestions a= re :=0A=0A* if i`ll call gtk_image_clear (image) .. will it dispose memory = reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap= ? =0A=0A* if answer for previous question is no, it will not dispose the m= emory, then how it is possible to change image inside button ? From yeti@physics.muni.cz Sun Jun 25 06:03:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 047A73B00C9 for ; Sun, 25 Jun 2006 06:03:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08827-02 for ; Sun, 25 Jun 2006 06:03:06 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D10853B008F for ; Sun, 25 Jun 2006 06:03:05 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P9kCR0012281 for ; Sun, 25 Jun 2006 11:46:13 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 840F923D5E; Sun, 25 Jun 2006 11:46:12 +0200 (CEST) Date: Sun, 25 Jun 2006 11:46:14 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: GtkImage simple question, please help Message-ID: <20060625094614.GN2296@potato.chello.upc.cz> References: <20060625091512.2006310C00F@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060625091512.2006310C00F@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 10:03:08 -0000 On Sun, Jun 25, 2006 at 11:15:12AM +0200, hm wrote: > > * if i`ll call gtk_image_clear (image) .. will it dispose memory reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap ? gtk_image_clear() clears the image, therefore the image releases the reference the image holds to the displayed pixbuf (or other objects). But the image will still *exist*, it will be just empty. > * if answer for previous question is no, it will not dispose the memory, then how it is possible to change image inside button ? By setting another image. The button then releases the reference it holds to the old image -- and in the described scenario nothing else holds a reference to it, therefore it will be finalized. Please read the refcounting parts in GObject API docs and GObject tutorial -- and of GtkObject too as although the methods are superseded by GObject methods the intro is more comprehensible (IMO). Yeti -- Anonyms eat their boogers. From suryakiran.gullapalli@gmail.com Sun Jun 25 11:51:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E43F33B008C for ; Sun, 25 Jun 2006 11:51:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19785-07 for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 389173B008F for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id m22so1138082nzf for ; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.36.252.42 with SMTP id z42mr6653491nzh; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Message-ID: <3462bcdb0606250851v35bce67mf725816429f52603@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:09 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Theme engine tutorial. In-Reply-To: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4916_21889957.1151250669841" References: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.729, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:51:36 -0000 ------=_Part_4916_21889957.1151250669841 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_4916_21889957.1151250669841 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_4916_21889957.1151250669841-- From suryakiran.gullapalli@gmail.com Sun Jun 25 11:52:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24C333B008C for ; Sun, 25 Jun 2006 11:52:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20036-02 for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id AB5653B008F for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 40so1027430nzk for ; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.2.65 with SMTP id e65mr6484642nzi; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Message-ID: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:49 +0530 From: "Surya Kiran Gullapalli" To: gtkmm-list@gnome.org, gtk-list@gnome.org Subject: Font Path In-Reply-To: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4920_12764368.1151250709216" References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.439 tagged_above=-999 required=2 tests=[AWL=-0.468, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.439 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:52:27 -0000 ------=_Part_4920_12764368.1151250709216 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_4920_12764368.1151250709216 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_4920_12764368.1151250709216-- From pocmatos@gmail.com Sun Jun 25 12:17:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D32D3B00BB for ; Sun, 25 Jun 2006 12:17:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20843-01 for ; Sun, 25 Jun 2006 12:17:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 04EF43B008C for ; Sun, 25 Jun 2006 12:17:50 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so1536173nzh for ; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.224.8 with SMTP id w8mr1383704nzg; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.66.9 with HTTP; Sun, 25 Jun 2006 09:17:35 -0700 (PDT) Message-ID: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> Date: Sun, 25 Jun 2006 17:17:35 +0100 From: "Paulo J. Matos" To: gtk-list@gnome.org Subject: Using GTK+ with C++ MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.404 tagged_above=-999 required=2 tests=[AWL=-0.158, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.404 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: pocm@sat.inesc-id.pt List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 16:17:53 -0000 Hi all, I know about gtkmm but if I wish to use GTK+ directly, can I do it through C++? Is anyone doing this? Are there any 'tricks' I should know about beyond having to extern "C" the includes of gtk header files? Cheers, -- Paulo Jorge Matos - pocm at sat inesc-id pt Web: http://sat.inesc-id.pt/~pocm Computer and Software Engineering INESC-ID - SAT Group From jcupitt@gmail.com Sun Jun 25 14:02:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A39383B0018 for ; Sun, 25 Jun 2006 14:02:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24527-04 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id 632163B0079 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so538377uge for ; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1804088hue; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.129.2 with HTTP; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Message-ID: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> Date: Sun, 25 Jun 2006 19:02:21 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 18:02:23 -0000 On 6/24/06, Clemens Eisserer wrote: > [quote]So I guess I didn't reproduce your problem. In my case, the > reason so much time is spent in software solid fills and copies is > that GTK seems to create and destroy pixmaps at a fantastic rate. In > fact, it creates and destroys a pixmap every time it blinks the > cursor. Pixmaps start out in system memory and are only migrated to > video memory after they've been used for a while. This means that > creating pixmaps, doing two or three rendering operations, and then > destroying them is a sure-fire way to make your rendering fall back to > software. Future drivers will have an InitialPixmapPlacement > nvidia-settings attribute so people can try tweaking this behavior. If > I use that to force pixmaps to start in video RAM, then profiling > shows that most of the time is spent waiting for the GPU.[/quote] > > Does even the default theme uses pixmaps for all and everything? That's interesting. gtk2 uses pixmaps for double buffering ... for each expose rectangle, it will create an off-screen pixmap, ask all relevant widgets to paint to that, then at the end of expose, paint the off-screen pixmap on the display. I think it can potentially create and destroy quite a lot of pixmaps in a single expose operation. You could try making a test program and turning off double buffering for some widgets: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 John From oystein@gnubg.org Sun Jun 25 16:42:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33D083B0119 for ; Sun, 25 Jun 2006 16:42:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00506-08 for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id A0BBC3B000C for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00KQ1O5QACC0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00I0YO5PEJ33@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Date: Sun, 25 Jun 2006 22:41:43 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <17562.62051.621000.757828@gargle.gargle.HOWL> To: Tor Lillqvist Message-id: <449EF507.2010707@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig87FEA3859F86E18D841D879D X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, TW_LQ=0.077] X-Spam-Score: -2.525 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:42:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig87FEA3859F86E18D841D879D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tor Lillqvist wrote: > =D8ystein Johansen writes: > > However, I want to expand this to system to use automatic string > > completion, (the system provided in glib), for all available > > commands. Now it only handles command as I press enter. I guess I > > need a extra callback for each keypress. This callback can check if > > I press and then call g_completion_complete(), but how do I > > attach such a signal to the main loop? >=20 > Ah, I forgot to answer this part. I am afraid you might run into > difficulty in doing this on Win32. >=20 > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > it's actually quite similar to Unix, and you can do > character-at-a-time input, and your own echo processing. Maybe all you > need to do is something like >=20 > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); >=20 > and it will Just Work?=20 Wow! I just tried this, and it does indeed Just Work! Thanks. I must handle all the characters like backspace and return and so on, but it works... But, it doesn't work on linux.... How can I get character-at-a-time input from a linux console? -=D8ystein --------------enig87FEA3859F86E18D841D879D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEnvUK6kDTFPhwyqYRAtpuAJsEnbvESOizT1xs0ast/iphrHPtpgCdEMi2 fxlkPGgv32vw8JOoa44jBiE= =Hnzr -----END PGP SIGNATURE----- --------------enig87FEA3859F86E18D841D879D-- From linuxhippy@gmail.com Sun Jun 25 16:54:58 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A65A53B00E7 for ; Sun, 25 Jun 2006 16:54:58 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01177-05 for ; Sun, 25 Jun 2006 16:54:56 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 718C23B0079 for ; Sun, 25 Jun 2006 16:54:55 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so595935hue for ; Sun, 25 Jun 2006 13:54:38 -0700 (PDT) Received: by 10.78.167.12 with SMTP id p12mr1824154hue; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Message-ID: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> Date: Sun, 25 Jun 2006 22:54:37 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.427, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:54:58 -0000 Hello John, Thanks a lot for answering. I created a sample program which contains two buttons in a (horizontally) paned window. When I maximize the window and resize the panes I get very slow resizing, however when setting all involved widgets unbuffered resizing is fast (but painting is done with artifacts). Also the profile looks very different: With doublebuffering enabled: 3298 36.0398 libfb.so (no symbols) 1710 18.6865 nvidia_drv.so _nv000805X Widthout doublebuffering: 1974 19.1632 libcairo.so.2.2.3 (no symbols) 1535 14.9015 Xorg (no symbols) 1083 10.5135 libfb.so (no symbols) So there's still some software rendering involved but its _way_ better. I am currently hitting a deadline in a java project, so I'll busy the next 1-2 weeks, however I would really like to get my hands on the buffer manager, do you think theres a chance to get it in (if its well written and stylish correct). I like tuning code, although I've to admit my C/Unix knowledge is rusty, however then its a good training. lg Clemens > That's interesting. gtk2 uses pixmaps for double buffering ... for > each expose rectangle, it will create an off-screen pixmap, ask all > relevant widgets to paint to that, then at the end of expose, paint > the off-screen pixmap on the display. I think it can potentially > create and destroy quite a lot of pixmaps in a single expose > operation. > > You could try making a test program and turning off double buffering > for some widgets: > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > John > From yeti@physics.muni.cz Sun Jun 25 17:09:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2201E3B00C7 for ; Sun, 25 Jun 2006 17:09:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01871-06 for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 3E1553B000C for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5PL9Wtb021542 for ; Sun, 25 Jun 2006 23:09:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1AF7F23D5E; Sun, 25 Jun 2006 23:09:32 +0200 (CEST) Date: Sun, 25 Jun 2006 23:09:36 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Message-ID: <20060625210936.GP2296@potato.chello.upc.cz> References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <449EF507.2010707@gnubg.org> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:09:40 -0000 On Sun, Jun 25, 2006 at 10:41:43PM +0200, ?ystein Johansen wrote: > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? Wouldn't it be better to use GNU readline, at least on Linux? It would give users all the editing operations they are used to and honour their settings. I admit the integration of readline to GLib main loop can be tricky (I think about a second thread which whould just feed complete lines to a pipe managed with GIOChannel on the receiving end), but it can be still more elegant than reimplementation of line editting from scratch. Yeti -- Anonyms eat their boogers. From chris@cvine.freeserve.co.uk Sun Jun 25 17:43:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E5443B0104 for ; Sun, 25 Jun 2006 17:43:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03755-03 for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 843BA3B000C for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 92D711C00089; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 6AFFA1C00088; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) X-ME-UUID: 20060625214312438.6AFFA1C00088@mwinf3012.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PLhBtx004287; Sun, 25 Jun 2006 22:43:11 +0100 From: Chris Vine To: gtk-list@gnome.org, pocm@sat.inesc-id.pt Subject: Re: Using GTK+ with C++ Date: Sun, 25 Jun 2006 22:43:10 +0100 User-Agent: KMail/1.9.1 References: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> In-Reply-To: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606252243.10889.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.323 tagged_above=-999 required=2 tests=[AWL=-1.072, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.323 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:43:15 -0000 On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > Hi all, > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > through C++? Is anyone doing this? Are there any 'tricks' I should > know about beyond having to extern "C" the includes of gtk header > files? They are already declared extern "C" if compiled for a C++ program. There is nothing you need to know - just use them. Chris From chris@cvine.freeserve.co.uk Sun Jun 25 18:28:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D960A3B0122 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05775-02 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id EB0203B013D for ; Sun, 25 Jun 2006 18:28:45 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 9E2E71C00083; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 711621C00082; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) X-ME-UUID: 20060625222840463.711621C00082@mwinf3011.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PMSdtx004517; Sun, 25 Jun 2006 23:28:39 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Date: Sun, 25 Jun 2006 23:28:39 +0100 User-Agent: KMail/1.9.1 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> In-Reply-To: <449EF507.2010707@gnubg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200606252328.39192.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.232 tagged_above=-999 required=2 tests=[AWL=-0.045, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_LQ=0.077] X-Spam-Score: -2.232 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 22:28:47 -0000 On Sunday 25 June 2006 21:41, 貀stein Johansen wrote: > Tor Lillqvist wrote: [snip] > > Ah, I forgot to answer this part. I am afraid you might run into > > difficulty in doing this on Win32. > > > > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > > it's actually quite similar to Unix, and you can do > > character-at-a-time input, and your own echo processing. Maybe all you > > need to do is something like > > > > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > > mode &= ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); > > > > and it will Just Work? > > Wow! I just tried this, and it does indeed Just Work! Thanks. I must > handle all the characters like backspace and return and so on, but it > works... > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? If you are not using an event based toolkit such as GDK/GTK+ for handling the keyboard, then you will have to code on a platform specific basis. If you want to code for a Linux/Unix console and you are using the glib main loop then the easiest thing is to use curses with non-blocking input (see the cbreak() and nodelay() calls) and poll it in a timer event you have set up with g_timeout_add(). If you are feeling adventurous you can dispense with curses and use the termios/tcgetattr()/tcsetattr() interface directly and set up the console that way. If you have no other reason to use the glib main loop (and there are plenty of reasons why you might want to use it), you can make your own program loop with select() and an appropriate timeout which polls the keyboard; or if all you are interested in is keyboard events, you can put curses in single extraction (cbreak) mode but with blocking input (or the equivalent with termios) and use that as your event loop. Chris From torriem@chem.byu.edu Sun Jun 25 20:45:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F2DA53B016F for ; Sun, 25 Jun 2006 20:45:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12049-09 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [216.148.227.153]) by menubar.gnome.org (Postfix) with ESMTP id 957B23B0199 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (rwcrmhc13) with ESMTP id <20060626003351m1300g4ie2e>; Mon, 26 Jun 2006 00:33:51 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5Q0XjV3017707; Sun, 25 Jun 2006 18:33:45 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5Q0XiQj017703; Sun, 25 Jun 2006 18:33:44 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: Font Path From: Michael Torrie To: Surya Kiran Gullapalli In-Reply-To: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 25 Jun 2006 18:33:44 -0600 Message-Id: <1151282024.32440.29.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.377 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.377 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 00:45:16 -0000 On Sun, 2006-06-25 at 21:21 +0530, Surya Kiran Gullapalli wrote: > Hi, > I'm trying to understand the gtk code. I've a question regarding font > path. > What is the font path, gtk application is looking into when one open a > font selection dialog. > > This question arose, due to the fact that garnome ships with bitstream > vera fonts, and when you install it, it goes into the installation > directory ($PREFIX/share... etc) > But when opened a font selection dialog, it shows all the available > fonts on the machine. > > Also if i'm shipping a new application with a new font, and say, i've > to ship this font also. where should i put that font. Also please let > me know if i need to set any environment variables. Fonts are not GTK specific. On Unix (X11) fonts should be installed to $HOME/.fonts If you install fonts to another place on the system, you need to modify the config file in /etc/fonts/fonts.conf and set up the path. For more information, see the specifications at freedesktop.org (fontconfig). Michael > > > Surya > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yeajchao@yahoo.com.cn Sun Jun 25 22:36:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79C833B00D9 for ; Sun, 25 Jun 2006 22:36:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16386-06 for ; Sun, 25 Jun 2006 22:36:52 -0400 (EDT) Received: from web15101.mail.cnb.yahoo.com (web15101.mail.cnb.yahoo.com [202.165.103.70]) by menubar.gnome.org (Postfix) with SMTP id 5BEF03B00A9 for ; Sun, 25 Jun 2006 22:36:50 -0400 (EDT) Received: (qmail 93283 invoked by uid 60001); 26 Jun 2006 02:36:39 -0000 Message-ID: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Received: from [221.8.12.141] by web15101.mail.cnb.yahoo.com via HTTP; Mon, 26 Jun 2006 10:36:39 CST Date: Mon, 26 Jun 2006 10:36:39 +0800 (CST) From: yeajchao Subject: =?gb2312?q?=BB=D8=B8=B4=A3=BA=20Re:=20Using=20GTK+=20with=20C++?= To: gtk-list@gnome.org In-Reply-To: <200606252243.10889.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.53 tagged_above=-999 required=2 tests=[AWL=-1.533, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: 0.53 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 02:36:53 -0000 hello when i using gtk+ with c++,how can i compile my application? --- Chris Vine 写道: > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > Hi all, > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > through C++? Is anyone doing this? Are there any 'tricks' I should > > know about beyond having to extern "C" the includes of gtk header > > files? > > They are already declared extern "C" if compiled for a C++ program. There is > > nothing you need to know - just use them. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ___________________________________________________________ 雅虎免费邮箱-3.5G容量,20M附件 http://cn.mail.yahoo.com/ From laowenbo@gmail.com Sun Jun 25 23:23:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBB8B3B0185 for ; Sun, 25 Jun 2006 23:23:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18438-05 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id 898803B0199 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so1299223pyf for ; Sun, 25 Jun 2006 20:23:32 -0700 (PDT) Received: by 10.35.129.19 with SMTP id g19mr5477137pyn; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Received: by 10.35.103.18 with HTTP; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2006 11:23:31 +0800 From: "lao wb" To: "=?ISO-8859-2?Q?David_Ne=E8as_(Yeti)?=" Subject: Re: Drawing images ( with transparency ) one on another In-Reply-To: <20060619104132.GW2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_47883_15491290.1151292211820" References: <20060619093509.DC2132E5C98@poczta.interia.pl> <20060619104132.GW2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.025 tagged_above=-999 required=2 tests=[AWL=0.073, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.025 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 03:23:34 -0000 ------=_Part_47883_15491290.1151292211820 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline SGksCiAgICBJIG5lZWQgZG8gdGhpcyB0b28gYnV0IGhhdmUgbm90IHN1Y2NlZWRlZCB5ZXQuIEkg dHJ5IHRvIHVzZQpnZGtfZHJhd19waXhidWYgYW5kIGdka19waXhidWZfY29tcG9zaXRlIGluIGV4 cG9zZSBldmVudCBoYW5kbGVyLCBidXQgaXQKc3RpbGwgZG9lc24ndCB3b3JrLiBJIHJlYWxseSBu ZWVkIGhlbHAgdG8gbWFrZSBteSB0ZXN0IGNvZGUgd29yay4KCkxhb3diCgojaW5jbHVkZSA8Z3Rr L2d0ay5oPgojZGVmaW5lIFNURF9XSURUSCAgICA2ODAKI2RlZmluZSBTVERfSEVJR0hUICA0ODAK CnN0YXRpYyBHZGtQaXhidWYgKiBzX2Jhc2VQaXg7CnN0YXRpYyBHZGtQaXhidWYgKiBzX2hvbWVN ZW51UGl4OwoKZ2Jvb2xlYW4gb25fZXhwb3NlKEd0a1dpZGdldCAqIHdpZGdldCwKICAgICAgICAg ICAgICAgICAgIEdka0V2ZW50RXhwb3NlICogcHMsCiAgICAgICAgICAgICAgICAgICBncG9pbnRl ciBkYXRhKQp7CiAgICBnZGtfcGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LAogICAgICAg ICAgICAgICAgICAgICAgICAgc19iYXNlUGl4LCAwLCAwLCBTVERfV0lEVEgsIFNURF9IRUlHSFQs IDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICBHREtfSU5URVJQX05FQVJFU1Qs IDApOwoKICAgIGdka19kcmF3X3BpeGJ1Zih3aWRnZXQtPndpbmRvdywgd2lkZ2V0LT5zdHlsZS0+ YmdfZ2NbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgc19ob21lTWVudVBp eCwgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAgICBTVERfV0lEVEgsCiAgICAgICAgICAg ICAgICAgICAgU1REX0hFSUdIVCwKICAgICAgICAgICAgICAgICAgICBHREtfUkdCX0RJVEhFUl9O T1JNQUwsCiAgICAgICAgICAgICAgICAgICAgMCwgMCk7CiAgICByZXR1cm4gRkFMU0U7Cn0KCgpp bnQgbWFpbihpbnQgYXJnYywgY2hhciAqIGFyZ3ZbXSkKewogICAgR3RrV2lkZ2V0ICogbWFpbldu ZCAgICAgICAgPSBOVUxMOwogICAgR2RrRHJhd2FibGUgKiAgICBwaXhNYXAgICAgPSBOVUxMOwog ICAgR3RrV2lkZ2V0ICogaW1nICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYm94 ICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYnV0dG9uICAgICAgICA9IE5VTEw7 CiAgICBHdGtBZGp1c3RtZW50ICogdmFkaiAgICA9IE5VTEw7CiAgICBHdGtBZGp1c3RtZW50ICog aGFkaiAgICA9IE5VTEw7CiAgICBHZGtCaXRtYXAgICAgICAqIG1zayAgICAgICAgPSBOVUxMOwog ICAgR2RrQml0bWFwICogaG9tZU1lbnUgICAgPSBOVUxMOwoKICAgIGd0a19pbml0KCZhcmdjLCAm YXJndik7CgogICAgbWFpblduZCA9IGd0a193aW5kb3dfbmV3KEdUS19XSU5ET1dfVE9QTEVWRUwp OwoKICAgIGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19XSU5ET1cobWFpblduZCksICJ0ZXN0IGRy YXcuLi5cbiIpOwoKICAgIGd0a19zaWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAi ZGVzdHJveSIsIGd0a19tYWluX3F1aXQsIE5VTEwpOwoKICAgIGltZyA9IGd0a19pbWFnZV9uZXco KTsKICAgIGd0a19jb250YWluZXJfYWRkKEdUS19DT05UQUlORVIobWFpblduZCksIGltZyk7CiAg ICBndGtfc2lnbmFsX2Nvbm5lY3QoR1RLX09CSkVDVChpbWcpLAogICAgICAgICAgICAgICAgICAg ICAgICJleHBvc2UtZXZlbnQiLAogICAgICAgICAgICAgICAgICAgICAgIEdUS19TSUdOQUxfRlVO Qyhvbl9leHBvc2UpLAogICAgICAgICAgICAgICAgICAgICAgIE5VTEwpOwoKICAgIGd0a19jb250 YWluZXJfc2V0X2JvcmRlcl93aWR0aChHVEtfQ09OVEFJTkVSKG1haW5XbmQpLCA1KTsKCiAgICBn dGtfd2lkZ2V0X3Nob3dfYWxsKG1haW5XbmQpOwoKICAgIGhvbWVNZW51ID0gZ2RrX3BpeG1hcF9j cmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93LAogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAmbXNrLAoKJm1haW5XbmQtPnN0eWxlLT5iZ1tHVEtfU1RBVEVfTk9S TUFMXSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImY6L2hvbWVt ZW51LmJtcCIpOyAvKiBhbHBoYQpjaGFubmVsIGJpdG1hcCovCiAgICBzX2hvbWVNZW51UGl4ID0K ICAgIGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgaG9tZU1lbnUsCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGdka19jb2xvcm1hcF9nZXRfc3lzdGVtKCksCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IFNURF9XSURUSCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU1REX0hFSUdIVCk7 CgogICAgcGl4TWFwID0gZ2RrX3BpeG1hcF9jcmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93 LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJm1zaywKCiZtYWluV25k LT5zdHlsZS0+YmdbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAiZjovU3Vuc2V0LmJtcCIpOyAvKiBubyBhbHBoYQpjaGFubmVsIGJpdG1h cCovCiAgICBzX2Jhc2VQaXggPQogICAgZ2RrX3BpeGJ1Zl9nZXRfZnJvbV9kcmF3YWJsZShzX2Jh c2VQaXgsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpeE1hcCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgZ2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgU1REX1dJRFRILAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBTVERfSEVJR0hUKTsKCiAgICBndGtfbWFpbigpOwoKICAgIHJldHVybiAwOwp9CgoyMDA2LzYv MTksIERhdmlkIE5l6GFzIChZZXRpKSA8eWV0aUBwaHlzaWNzLm11bmkuY3o+Ogo+Cj4gT24gTW9u LCBKdW4gMTksIDIwMDYgYXQgMTE6MzU6MDlBTSArMDIwMCwgaG0gd3JvdGU6Cj4gPgo+ID4gICBJ YHZlIGdvdCBhIHByb2JsZW0uIElgdmUgZ290IHR3byBzZXBhcmF0ZSBpbWFnZXMuIE9uZSBpcyBi YWNrZ3JvdW5kCj4gZm9yICB0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRy YW5zcGFyZW50LiBUaGVyZSBpcyBhbHNvIHRhYmxlLgo+IFF1ZXN0aW9uIGlzIDogaG93IHRvIGRy YXcgaW4gb25lIG9mIHRoZSB0YWJsZWBzIGNlbGxzIHRoZSBiYWNrZ3Jhb3VuZCwgYW5kCj4gb24g dGhpcyBiYWNrZ3JvdW5kICggYXMgYSBzZWNvbmQgbGF5ZXIgKSBzZWNvbmQgaW1hZ2UgKHRyYW5z cGFyZW50KSA/ICBJCj4ga25vdyAoIG9mIGNvdXJzZSApIGhvdyB0byBjcmVhdGUgaW1hZ2VzLCB0 YWJsZXMuCj4KPiBFaXRoZXIgdXNlIGdka19kcmF3X3BpeGJ1ZigpIGlmIHRoZSBjb3JyZWN0IG9y ZGVyIChmaXJzdAo+IGJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudAo+IGhhbmRsZXIsIG9yIHVzZSBnZGtfcGl4YnVmX2NvbXBvc2l0ZSgpIGFuZCBk cmF3IHRoZSBmaW5hbAo+IGltYWdlLgo+Cj4gWWV0aQo+Cj4KPiAtLQo+IEFub255bXMgZWF0IHRo ZWlyIGJvb2dlcnMuCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18KPiBndGstbGlzdCBtYWlsaW5nIGxpc3QKPiBndGstbGlzdEBnbm9tZS5vcmcKPiBodHRw Oi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdAo+Cg== ------=_Part_47883_15491290.1151292211820 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: base64 Content-Disposition: inline SGksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgSSBuZWVkIGRvIHRoaXMgdG9vIGJ1dCBoYXZlIG5v dCBzdWNjZWVkZWQgeWV0LiBJIHRyeSB0byB1c2UgZ2RrX2RyYXdfcGl4YnVmIGFuZCBnZGtfcGl4 YnVmX2NvbXBvc2l0ZSBpbiBleHBvc2UgZXZlbnQgaGFuZGxlciwgYnV0IGl0IHN0aWxsIGRvZXNu J3Qgd29yay4gSSByZWFsbHkgbmVlZCBoZWxwIHRvIG1ha2UgbXkgdGVzdCBjb2RlIHdvcmsuPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Ckxhb3diPGJyPjxicj4jaW5jbHVkZSAmbHQ7Z3RrL2d0 ay5oJmd0Ozxicj4jZGVmaW5lIFNURF9XSURUSCZuYnNwOyZuYnNwOyZuYnNwOyA2ODA8YnI+I2Rl ZmluZSBTVERfSEVJR0hUJm5ic3A7IDQ4MDxicj48YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfYmFz ZVBpeDs8YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfaG9tZU1lbnVQaXg7PGJyPjxicj5nYm9vbGVh biBvbl9leHBvc2UoR3RrV2lkZ2V0ICogd2lkZ2V0LCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBHZGtFdmVudEV4cG9zZSAqIHBzLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBncG9pbnRlciBkYXRhKTxicj57PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBnZGtf cGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtzX2Jhc2VQaXgsIDAsIDAs IFNURF9XSURUSCwgU1REX0hFSUdIVCwgMCwgMCwgMCwgMCw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7R0RLX0lOVEVSUF9O RUFSRVNULCAwKTs8YnI+Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ2RrX2RyYXdfcGl4YnVmKHdp ZGdldC0mZ3Q7d2luZG93LCB3aWRnZXQtJmd0O3N0eWxlLSZndDtiZ19nY1tHVEtfU1RBVEVfTk9S TUFMXSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyBzX2hvbWVNZW51 UGl4LCAwLCAwLCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyBTVERfV0lEVEgsIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7IFNU RF9IRUlHSFQsPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgR0RLX1JH Ql9ESVRIRVJfTk9STUFMLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAwLCAwKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJldHVybiBGQUxTRTs8YnI+fTxicj48YnI+ PGJyPmludCBtYWluKGludCBhcmdjLCBjaGFyICogYXJndltdKTxicj57PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyBHdGtXaWRnZXQgKiBtYWluV25kJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtEcmF3YWJsZSAqJm5ic3A7 Jm5ic3A7Jm5ic3A7IHBpeE1hcCZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZu YnNwOyZuYnNwOyBHdGtXaWRnZXQgKiBpbWcmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7 Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsg R3RrV2lkZ2V0ICogYm94Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgPSBOVUxMOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgR3RrV2lkZ2V0ICog YnV0dG9uJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZu YnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogdmFkaiZuYnNwOyZuYnNwOyZuYnNwOyA9 IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogaGFkaiZuYnNwOyZu YnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7ICogbXNrJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAgKiBob21lTWVudSZu YnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19p bml0KCZhbXA7YXJnYywgJmFtcDthcmd2KTs8YnI+PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBtYWlu V25kID0gZ3RrX3dpbmRvd19uZXcoR1RLX1dJTkRPV19UT1BMRVZFTCk7PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19X SU5ET1cobWFpblduZCksICZxdW90O3Rlc3QgZHJhdy4uLlxuJnF1b3Q7KTsmbmJzcDsmbmJzcDsm bmJzcDsgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19z aWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAmcXVvdDtkZXN0cm95JnF1b3Q7LCBn dGtfbWFpbl9xdWl0LCBOVUxMKTsKPGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgaW1nID0gZ3Rr X2ltYWdlX25ldygpOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2NvbnRhaW5lcl9hZGQoR1RL X0NPTlRBSU5FUihtYWluV25kKSwgaW1nKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19zaWdu YWxfY29ubmVjdChHVEtfT0JKRUNUKGltZyksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyAmcXVvdDtleHBvc2UtZXZlbnQmcXVvdDssPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7IEdUS19TSUdO QUxfRlVOQyhvbl9leHBvc2UpLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsgTlVMTCk7PGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2Nv bnRhaW5lcl9zZXRfYm9yZGVyX3dpZHRoKEdUS19DT05UQUlORVIobWFpblduZCksIDUpOzxicj48 YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aWRnZXRfc2hvd19hbGwobWFpblduZCk7PGJyPjxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgaG9tZU1lbnUgPSBnZGtfcGl4bWFwX2NyZWF0ZV9mcm9tX3hw bShtYWluV25kLSZndDt3aW5kb3csPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsgJmFtcDtt c2ssCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZhbXA7bWFpblduZC0mZ3Q7c3R5bGUt Jmd0O2JnW0dUS19TVEFURV9OT1JNQUxdLDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZx dW90O2Y6L2hvbWVtZW51LmJtcCZxdW90Oyk7IC8qIGFscGhhIGNoYW5uZWwgYml0bWFwKi88YnI+ Jm5ic3A7Jm5ic3A7Jm5ic3A7IHNfaG9tZU1lbnVQaXggPTxicj4KJm5ic3A7Jm5ic3A7Jm5ic3A7 IGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCw8YnI+Jm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtob21lTWVudSwgPGJyPiZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0 ZW0oKSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDswLCAw LCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtT VERfV0lEVEgsCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw O1NURF9IRUlHSFQpOzxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHBpeE1hcCA9IGdka19waXht YXBfY3JlYXRlX2Zyb21feHBtKG1haW5XbmQtJmd0O3dpbmRvdywgPGJyPiZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmYW1wO21zaywgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmYW1wO21haW5XbmQtJmd0O3N0 eWxlLSZndDtiZ1tHVEtfU1RBVEVfTk9STUFMXSwKPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmcXVv dDtmOi9TdW5zZXQuYm1wJnF1b3Q7KTsgLyogbm8gYWxwaGEgY2hhbm5lbCBiaXRtYXAqLzxicj4m bmJzcDsmbmJzcDsmbmJzcDsgc19iYXNlUGl4ID08YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGdka19w aXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19iYXNlUGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO3BpeE1hcCwgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7MCwgMCwgMCwgMCwgPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7U1REX1dJRFRILDxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO1NURF9IRUlHSFQp Ozxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19tYWluKCk7PGJyPjxicj4mbmJzcDsmbmJz cDsmbmJzcDsgcmV0dXJuIDA7PGJyPn08YnI+PGJyPjxkaXY+PHNwYW4gY2xhc3M9ImdtYWlsX3F1 b3RlIj4KMjAwNi82LzE5LCBEYXZpZCBOZehhcyAoWWV0aSkgJmx0OzxhIGhyZWY9Im1haWx0bzp5 ZXRpQHBoeXNpY3MubXVuaS5jeiI+eWV0aUBwaHlzaWNzLm11bmkuY3o8L2E+Jmd0Ozo8L3NwYW4+ PGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0iYm9yZGVyLWxlZnQ6IDFweCBz b2xpZCByZ2IoMjA0LCAyMDQsIDIwNCk7IG1hcmdpbjogMHB0IDBwdCAwcHQgMC44ZXg7IHBhZGRp bmctbGVmdDogMWV4OyI+Ck9uIE1vbiwgSnVuIDE5LCAyMDA2IGF0IDExOjM1OjA5QU0gKzAyMDAs IGhtIHdyb3RlOjxicj4mZ3Q7PGJyPiZndDsmbmJzcDsmbmJzcDsgSWB2ZSBnb3QgYSBwcm9ibGVt LiBJYHZlIGdvdCB0d28gc2VwYXJhdGUgaW1hZ2VzLiBPbmUgaXMgYmFja2dyb3VuZCBmb3ImbmJz cDsmbmJzcDt0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRyYW5zcGFyZW50 LiBUaGVyZSBpcyBhbHNvIHRhYmxlLiBRdWVzdGlvbiBpcyA6IGhvdyB0byBkcmF3IGluIG9uZSBv ZiB0aGUgdGFibGVgcyBjZWxscyB0aGUgYmFja2dyYW91bmQsIGFuZCBvbiB0aGlzIGJhY2tncm91 bmQgKCBhcyBhIHNlY29uZCBsYXllciApIHNlY29uZCBpbWFnZSAodHJhbnNwYXJlbnQpID8mbmJz cDsmbmJzcDtJIGtub3cgKCBvZiBjb3Vyc2UgKSBob3cgdG8gY3JlYXRlIGltYWdlcywgdGFibGVz Lgo8YnI+PGJyPkVpdGhlciB1c2UgZ2RrX2RyYXdfcGl4YnVmKCkgaWYgdGhlIGNvcnJlY3Qgb3Jk ZXIgKGZpcnN0PGJyPmJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudDxicj5oYW5kbGVyLCBvciB1c2UgZ2RrX3BpeGJ1Zl9jb21wb3NpdGUoKSBhbmQg ZHJhdyB0aGUgZmluYWw8YnI+aW1hZ2UuPGJyPjxicj5ZZXRpPGJyPjxicj48YnI+LS08YnI+CkFu b255bXMgZWF0IHRoZWlyIGJvb2dlcnMuPGJyPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fPGJyPmd0ay1saXN0IG1haWxpbmcgbGlzdDxicj48YSBocmVmPSJt YWlsdG86Z3RrLWxpc3RAZ25vbWUub3JnIj5ndGstbGlzdEBnbm9tZS5vcmc8L2E+PGJyPjxhIGhy ZWY9Imh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2d0ay1saXN0Ij4KaHR0 cDovL21haWwuZ25vbWUub3JnL21haWxtYW4vbGlzdGluZm8vZ3RrLWxpc3Q8L2E+PGJyPjwvYmxv Y2txdW90ZT48L2Rpdj48YnI+Cg== ------=_Part_47883_15491290.1151292211820-- From cgallucci@inwind.it Mon Jun 26 07:58:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EFE933B0280 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15191-10 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id CEFBB3B0199 for ; Mon, 26 Jun 2006 07:58:24 -0400 (EDT) Received: from localhost (172.16.1.206) by smtp6.libero.it (7.0.027-DD01) id 44992E6400679860 for gtk-list@gnome.org; Mon, 26 Jun 2006 13:58:23 +0200 Received: from smtp1.libero.it ([172.16.1.224]) by localhost (asav20.libero.it [193.70.193.7]) (amavisd-new, port 10024) with ESMTP id 21475-01 for ; Mon, 26 Jun 2006 13:58:23 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp1.libero.it (Postfix) with ESMTP id A5BADA8C53 for ; Mon, 26 Jun 2006 13:58:22 +0200 (MEST) From: "carmelo gallucci" To: Subject: CYGWIN and GTK Date: Mon, 26 Jun 2006 14:02:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.614 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -0.614 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 11:58:26 -0000 I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My application also use SDL and i want to enable SDL hacking to encapsulate it on a gtk window. My gtk application run pefectly. I can show widget and use it. My problem is that i cannot get this code to work (it work perfectly under linux): sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget ::gobj()->window)); I cannot get WINDOWID. When i use the macro GDK_WINDOW_XWINDOW i get the following error: (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): Gdk-WARNING **: /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk drawable-x11.c:971 drawable is not a pixmap or window What's the problem? Anyone know where the problem is? Thanks. Carmelo Gallucci From tml@iki.fi Mon Jun 26 10:19:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E8AB73B03F0 for ; Mon, 26 Jun 2006 10:19:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23891-06 for ; Mon, 26 Jun 2006 10:19:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 4B9203B0369 for ; Mon, 26 Jun 2006 10:19:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 411DF151341; Mon, 26 Jun 2006 17:19:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> Date: Mon, 26 Jun 2006 17:18:57 +0300 To: "carmelo gallucci" Subject: Re: CYGWIN and GTK In-Reply-To: References: X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.337 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.337 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:19:57 -0000 carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From marko.ivancic@ultra.si Mon Jun 26 10:48:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F1643B021C for ; Mon, 26 Jun 2006 10:47:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25463-10 for ; Mon, 26 Jun 2006 10:47:56 -0400 (EDT) Received: from deliver-2.mx.triera.net (deliver-2.mx.triera.net [213.161.0.32]) by menubar.gnome.org (Postfix) with ESMTP id D503D3B0185 for ; Mon, 26 Jun 2006 10:47:55 -0400 (EDT) Received: from localhost (in-3.mx.triera.net [213.161.0.27]) by deliver-2.mx.triera.net (Postfix) with ESMTP id 384F2A7 for ; Mon, 26 Jun 2006 16:47:46 +0200 (CEST) Received: from smtp.triera.net (smtp.triera.net [213.161.0.30]) by in-3.mx.triera.net (Postfix) with SMTP id 96AFF1BC02F for ; Mon, 26 Jun 2006 16:47:49 +0200 (CEST) Received: from [172.18.1.20] (unknown [213.161.20.162]) by smtp.triera.net (Postfix) with ESMTP id 439601A18AA for ; Mon, 26 Jun 2006 16:47:50 +0200 (CEST) Message-ID: <449FF39D.6080201@ultra.si> Date: Mon, 26 Jun 2006 16:47:57 +0200 From: Marko Ivancic User-Agent: Thunderbird 1.5.0.4 (X11/20060619) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: save copy of gtktextbuffer Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Triera AV Service X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.108 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, TW_GT=0.077] X-Spam-Score: -0.108 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:48:00 -0000 Hi. Is there any way to save a GtkTextBuffer (I mean the context of this buffer including pixbufs and other embedet widgets) into another GtkTextBuffer instance ?? Tnx, By Marko I. From linuxhippy@gmail.com Mon Jun 26 10:53:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 296143B0135 for ; Mon, 26 Jun 2006 10:53:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25937-02 for ; Mon, 26 Jun 2006 10:53:31 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id EC5DF3B0185 for ; Mon, 26 Jun 2006 10:53:30 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so731232hue for ; Mon, 26 Jun 2006 07:53:30 -0700 (PDT) Received: by 10.78.117.10 with SMTP id p10mr2151522huc; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Message-ID: <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> Date: Mon, 26 Jun 2006 16:53:29 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.151 tagged_above=-999 required=2 tests=[AWL=-0.386, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.151 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:53:32 -0000 I played a bit and found something which could be considered as "slow": Open the configuration dialog of gimp and move another window on top of it. This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you can still see a ~4mm repaint lag. I wonder wether this could also be caused because of inefficient double buffering ... time will show. lg Clemens 2006/6/23, Clemens Eisserer : > First of all thanks a lot for doing that much work porting GTK to windows. > I can't count how many apps I've used myself on windows-pcs which were > able to run because of your work. > > > If one would ask specific question like "I draw 100000 line segments > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > might get better help. > > I installed gimp on some win-xp computers in the company I work for > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > are very much the issues I have on linux but more "visible". Its the > UI, menus, window resizing, layout changes or repaint-events sent to > the window because its content was invalidated. > I can't say wether its really slow or just feels so, maybe the graphic > card driver had an influence (nvidia gf4 mx4000) or some other > circumstances were not optimal. > I simply never did care that much simply because I don't use/like this planform. > > Its just hard to know whats going wrong, especially if someone is no > gtk insider. > > lg Clemens > From torriem@chem.byu.edu Mon Jun 26 11:34:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 728723B03BC for ; Mon, 26 Jun 2006 11:34:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28776-08 for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 75B363B046C for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5QFYoKJ024264; Mon, 26 Jun 2006 09:34:50 -0600 Subject: Re: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D?= =?UTF-8?Q?=EF=BC=9A?= Re: Using GTK+ with C++ From: Michael L Torrie To: yeajchao In-Reply-To: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> References: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Content-Type: text/plain; charset=UTF-8 Date: Mon, 26 Jun 2006 09:34:49 -0600 Message-Id: <1151336089.25316.0.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Mon, 26 Jun 2006 09:34:50 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.615 tagged_above=-999 required=2 tests=[AWL=-0.893, BAYES_00=-2.599, SUBJECT_ENCODED_TWICE=1.723, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.615 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:34:52 -0000 On Mon, 2006-06-26 at 10:36 +0800, yeajchao wrote: > hello > when i using gtk+ with c++,how can i compile my application? The same way you do it with C, except you have to use g++ instead of gcc. But the command line arguments for doing the build and using pkg- config to get the cflags and ldflags is the same. Michael > > --- Chris Vine 鍐欓亾: > > > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > > Hi all, > > > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > > through C++? Is anyone doing this? Are there any 'tricks' I should > > > know about beyond having to extern "C" the includes of gtk header > > > files? > > > > They are already declared extern "C" if compiled for a C++ program. There is > > > > nothing you need to know - just use them. > > > > Chris > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > ___________________________________________________________ > 闆呰檸鍏嶈垂閭-3.5G瀹归噺锛20M闄勪欢 > http://cn.mail.yahoo.com/ > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Mon Jun 26 11:41:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDD083B017D for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29419-03 for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 7AD633B0387 for ; Mon, 26 Jun 2006 11:41:10 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so888205uge for ; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.165.16 with SMTP id n16mr2166312hue; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.124.2 with HTTP; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Message-ID: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> Date: Mon, 26 Jun 2006 16:41:09 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:41:12 -0000 On 6/25/06, Clemens Eisserer wrote: > When I maximize the window and resize the panes I get very slow > resizing, however when setting all involved widgets unbuffered > resizing is fast (but painting is done with artifacts). I think the artifacts are because, with double-buffering turned off, expose events do not get an automatic clear-to-background. There's a note about this in the entry for gtk_widget_set_double_buffered(): http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 I'm not a gtk-internals expert and I can't really see a good solution to this. The possibilities I can see are: 1) Provide an option to disable double buffering for all widgets You could hack into gdk_window_begin_paint_region() and add a new code path: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 something like if (global_no_double_buffer) clear expose area to background might be enough. Repainting would be fast but flickery and incredibly ugly. People with older machines and nvidia hardware acceleration would see an FPS improvement, but their eyes would be watering. 2) Use nvidia's pixmap placement hint I think this would require a new driver from nvidia and changes to the X server to make the option accessible. Not going to happen any time soon. 3) Persuade nvidia to change their pixmap caching policy It seems to me that their policy is broken. If an app creates a pixmap, you'd expect it to be used soon. Making new pixmaps default to slow memory is rather odd. But I guess they've done a lot of profiling (of non-GTK apps, heh) and like it the way it is. 4) Have a single expose pixmap You could allocate a single large expose pixmap (maybe as big as the enclosing window?) and reuse that, with clipping, rather than creating and destroying a new pixmap each time. gdk_window_begin_paint_region() actually maintains a stack of pending pixmaps, though I've no idea how often the stack feature is used. Perhaps you could get away with having a single permanent expose pixmap, and dynamically create and destroy sub-pixmaps if the stack starts working. If the stack is used infrequently maybe this would work OK. This would chew up graphics card memory :-( and main memory for software drivers :-( and small-footprint people would hate it. My machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if each screen is 50% covered in gtk2 apps, this change will make my X server need an extra 50MB of RAM. Ouch! Maybe there could be a timeout to free the backing pixmap if it's not used for a couple of seconds. John From linuxhippy@gmail.com Mon Jun 26 14:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 889943B02E1 for ; Mon, 26 Jun 2006 14:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06142-05 for ; Mon, 26 Jun 2006 14:14:16 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by menubar.gnome.org (Postfix) with ESMTP id 036D73B03CC for ; Mon, 26 Jun 2006 14:14:15 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so963030uge for ; Mon, 26 Jun 2006 11:14:15 -0700 (PDT) Received: by 10.78.140.17 with SMTP id n17mr2247538hud; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Message-ID: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Date: Mon, 26 Jun 2006 20:14:14 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.349 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.349 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 18:14:17 -0000 Hello John, Thanks a lot for beeing that patient and constructive, its really motivating! I know I am not the dream-guy to start working on this but hey what can GTK loose ;) > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a Yea I read the note yesterday which made it clear for me too. > 1.) Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. Yes I saw this large amount of flickering, I think this would be more or less a dirty hack when looking at the results. Its really ugly ;) I'll do some tests to see which influence composition managers have, they do their own sort of double buffering, maybe we could dave all these efforts under these circumstances at all? > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. All these concepts act on the assumption that what GTK currently does is more or less a good thing. However best-case for GTKs buffering scenario are onboard shared-mem cards, which do not require (much) bus-interactivity ... but even allocating several megs each repaint in system memory is expensive and more or less a do-not. What nvidia does is very common, on windows its defacto-standard. Also if they would change they semantics GTK would be hardware accalerated but a lot of time would be spent inside the GPU waiting for the requested piece of VRAM. > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. To be honest I like this approach most, especially because I've seen this technique in several other toolkits (Swing, LwVCL) working very well. Swing (a java toolkit) has even support for smaller backbuffers than the rendered area is, they simply repaint it as often to the backbuffer with different clipping/location till they've filled the whole screen. This could help making window resizing smooth (more painting should be in >90% be much faster than allocating a new pixmap each resize), after resizing a new buffer could be created with window size. Another advantage java can take from this design (starting with mustang) is that if the buffer is as large as the window, they actually just paint the pixmap if the window receives expose events. > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. Well but to run that many applications you also should have a descent powered system wheer grahic cards with 64+m are quite common ;) I too see a problem here, for java its maybe not that too dramatical, if the runtime itself is consuming 15mb another 5mb for the backbuffer don't hurt that much but for GTK and tons of long running apps realized with it the situation is a lot different. I am not enough of an expert to know a exact answer to this, I'll do some reseach at QT and other toolkits that provide double buffering how they deal with this issue. Maybe some kind of ergonomics could do the job, deciding when its worth to keep a buffer for how long and when to destroy it (would we need a timer thread for pixmap freeing *outch*?). As I said I simply don't know an answer maybe some experiments will show ... I've the whole summer for coding on this ^^ lg Clemens I browsed a bit through GTKs source code (only gtk, not gdk till now) and I've to admit that I never coded GTK apps before except some small examples and one java-gome application. As far as I understood from the gtk-tutorial there are some widgets which are windows themself ... which is a bit confusing for me. I tried to find the entrance point where X tells gtk windows to expose, does this happen once for the main "window" and gtk repaints the widgets in an hirarchial order or do the widgets which are windows themself get seperate expose events delivered? How (and where) does the buffering take place? How does GTK deal with widgets that don't want to be drawn doublebuffered? I know tons of awkward newbie quetsions, I guess just pointers to the source would be enough ;) From yeti@physics.muni.cz Mon Jun 26 15:10:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DD37E3B0167 for ; Mon, 26 Jun 2006 15:10:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08743-04 for ; Mon, 26 Jun 2006 15:09:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id E6C703B012B for ; Mon, 26 Jun 2006 15:09:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5QJ9sfx029554 for ; Mon, 26 Jun 2006 21:09:55 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1683523D16; Mon, 26 Jun 2006 21:09:54 +0200 (CEST) Date: Mon, 26 Jun 2006 21:09:57 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Scrolling performance Message-ID: <20060626190957.GR2296@potato.chello.upc.cz> References: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:10:03 -0000 On Mon, Jun 26, 2006 at 08:14:14PM +0200, Clemens Eisserer wrote: > As far as I understood from the gtk-tutorial there are some widgets > which are windows themself ... which is a bit confusing for me. > I tried to find the entrance point where X tells gtk windows to > expose, X tells Gtk+ nothing, Gtk+ is built on top of Gdk and Gdk receives the X events. Start with gdk_event_dispatch() in gdk/x11/gdkevents-x11.c. It is also instructive to compile Gtk+ with --enable-debug=yes and then do for instance GDK_DEBUG=events ./someprogram > does this happen once for the main "window" and gtk repaints > the widgets in an hirarchial order or do the widgets which are windows > themself get seperate expose events delivered? Widgets with their own windows receive their own expose events. Also have a look at http://primates.ximian.com/~federico/misc/gtk-drawing-model/ which explains the basic concepts. Yeti -- Anonyms eat their boogers. From cgallucci@inwind.it Mon Jun 26 15:56:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D635B3B0201 for ; Mon, 26 Jun 2006 15:56:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11469-07 for ; Mon, 26 Jun 2006 15:56:01 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id E0C5D3B007A for ; Mon, 26 Jun 2006 15:56:00 -0400 (EDT) Received: from localhost (172.16.1.83) by smtp6.libero.it (7.0.027-DD01) id 44992E640071E70D; Mon, 26 Jun 2006 21:55:55 +0200 Received: from smtp0.libero.it ([172.16.1.204]) by localhost (asav4.libero.it [193.70.192.153]) (amavisd-new, port 10024) with ESMTP id 20782-04-3; Mon, 26 Jun 2006 21:55:54 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp0.libero.it (Postfix) with ESMTP id 6BA223338A7; Mon, 26 Jun 2006 21:55:53 +0200 (MEST) From: "carmelo gallucci" To: "'Tor Lillqvist'" Subject: RE: CYGWIN and GTK Date: Mon, 26 Jun 2006 21:59:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <17567.60625.324000.832379@gargle.gargle.HOWL> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.397 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.397 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:56:07 -0000 Hi Tor. Maybe i'm not really shure .-). I'm trying to explain better. I have a complete application built on Linux fedora core (GTKmm, SDL, ffmpeg, etc,etc). I'm thinking the fasted way to have the same application running on a window OS is to build it using CYGwin(i'm really new of it). This only not to spend more time to develop new thing. I compile and run my app without any problem (i intend Gtk ffmpeg). When i try tu use SDL and particylary GDK(X11) function i have problem i wrote. I use SDL only to display YUV format on the video. What can i use instead of it? Thanks. Carmelo -----Original Message----- From: Tor Lillqvist [mailto:tml@iki.fi]=20 Sent: luned=EC 26 giugno 2006 16.19 To: carmelo gallucci Cc: gtk-list@gnome.org Subject: Re: CYGWIN and GTK carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From lalitk.pune@gmail.com Mon Jun 26 23:15:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6EF93B0171 for ; Mon, 26 Jun 2006 23:15:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32665-09 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 220273B00F2 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so2013774nzh for ; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.64.148.4 with SMTP id v4mr3198669qbd; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.65.23.15 with HTTP; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Message-ID: Date: Tue, 27 Jun 2006 08:45:55 +0530 From: "Lalit Kumar" To: gtk-list@gnome.org Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.162 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 03:15:58 -0000 Hi All, I am facing problem with gdk_font_load method in my application. It returns NULL. I am using gtk-2.0 on Redhat Enterprise WS 4. Can anybody help me to resolve this proble? Help says that gdk_font_load is depricated. What is the name of new equivalent method? Thanx in advance, -- Bye, Lalit Kumar Pune On 6/26/06, gtk-list-request@gnome.org wrote: > Send gtk-list mailing list submissions to > gtk-list@gnome.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.gnome.org/mailman/listinfo/gtk-list > or, via email, send a message with subject or body 'help' to > gtk-list-request@gnome.org > > You can reach the person managing the list at > gtk-list-owner@gnome.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gtk-list digest..." > > > Today's Topics: > > 1. Re: Drawing images ( with transparency ) one on another (lao wb) > 2. CYGWIN and GTK (carmelo gallucci) > 3. Re: CYGWIN and GTK (Tor Lillqvist) > 4. save copy of gtktextbuffer (Marko Ivancic) > 5. Re: GTK performance on Windows (Clemens Eisserer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Jun 2006 11:23:31 +0800 > From: "lao wb" > Subject: Re: Drawing images ( with transparency ) one on another > To: " David Ne?as (Yeti) " > Cc: gtk-list@gnome.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-2" > > Hi, > I need do this too but have not succeeded yet. I try to use > gdk_draw_pixbuf and gdk_pixbuf_composite in expose event handler, but it > still doesn't work. I really need help to make my test code work. > > Laowb > > #include > #define STD_WIDTH 680 > #define STD_HEIGHT 480 > > static GdkPixbuf * s_basePix; > static GdkPixbuf * s_homeMenuPix; > > gboolean on_expose(GtkWidget * widget, > GdkEventExpose * ps, > gpointer data) > { > gdk_pixbuf_composite(s_homeMenuPix, > s_basePix, 0, 0, STD_WIDTH, STD_HEIGHT, 0, 0, 0, 0, > GDK_INTERP_NEAREST, 0); > > gdk_draw_pixbuf(widget->window, widget->style->bg_gc[GTK_STATE_NORMAL], > s_homeMenuPix, 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT, > GDK_RGB_DITHER_NORMAL, > 0, 0); > return FALSE; > } > > > int main(int argc, char * argv[]) > { > GtkWidget * mainWnd = NULL; > GdkDrawable * pixMap = NULL; > GtkWidget * img = NULL; > GtkWidget * box = NULL; > GtkWidget * button = NULL; > GtkAdjustment * vadj = NULL; > GtkAdjustment * hadj = NULL; > GdkBitmap * msk = NULL; > GdkBitmap * homeMenu = NULL; > > gtk_init(&argc, &argv); > > mainWnd = gtk_window_new(GTK_WINDOW_TOPLEVEL); > > gtk_window_set_title(GTK_WINDOW(mainWnd), "test draw...\n"); > > gtk_signal_connect(GTK_OBJECT(mainWnd), "destroy", gtk_main_quit, NULL); > > img = gtk_image_new(); > gtk_container_add(GTK_CONTAINER(mainWnd), img); > gtk_signal_connect(GTK_OBJECT(img), > "expose-event", > GTK_SIGNAL_FUNC(on_expose), > NULL); > > gtk_container_set_border_width(GTK_CONTAINER(mainWnd), 5); > > gtk_widget_show_all(mainWnd); > > homeMenu = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/homemenu.bmp"); /* alpha > channel bitmap*/ > s_homeMenuPix = > gdk_pixbuf_get_from_drawable(s_homeMenuPix, > homeMenu, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > pixMap = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/Sunset.bmp"); /* no alpha > channel bitmap*/ > s_basePix = > gdk_pixbuf_get_from_drawable(s_basePix, > pixMap, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > gtk_main(); > > return 0; > } > > 2006/6/19, David Ne?as (Yeti) : > > > > On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > > > > > I`ve got a problem. I`ve got two separate images. One is background > > for the secondone. Secondone is partially transparent. There is also table. > > Question is : how to draw in one of the table`s cells the backgraound, and > > on this background ( as a second layer ) second image (transparent) ? I > > know ( of course ) how to create images, tables. > > > > Either use gdk_draw_pixbuf() if the correct order (first > > base, then the one with alpha channel) in expose event > > handler, or use gdk_pixbuf_composite() and draw the final > > image. > > > > Yeti > > > > > > -- > > Anonyms eat their boogers. > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: /archives/gtk-list/attachments/20060626/bc9fc384/attachment.htm > > ------------------------------ > > Message: 2 > Date: Mon, 26 Jun 2006 14:02:02 +0200 > From: "carmelo gallucci" > Subject: CYGWIN and GTK > To: > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My > application also use SDL and i want to enable SDL hacking to encapsulate > it on a gtk window. My gtk application run pefectly. I can show widget > and use it. My problem is that i cannot get this code to work (it work > perfectly under linux): > > sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget > ::gobj()->window)); > > I cannot get WINDOWID. > > When i use the macro GDK_WINDOW_XWINDOW i get the following error: > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): Gdk-WARNING **: > /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk > drawable-x11.c:971 drawable is not a pixmap or window > > What's the problem? Anyone know where the problem is? > > Thanks. > > Carmelo Gallucci > > > > ------------------------------ > > Message: 3 > Date: Mon, 26 Jun 2006 17:18:57 +0300 > From: Tor Lillqvist > Subject: Re: CYGWIN and GTK > To: "carmelo gallucci" > Cc: gtk-list@gnome.org > Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> > Content-Type: text/plain; charset=us-ascii > > carmelo gallucci writes: > > What's the problem? Anyone know where the problem is? > > Well, firstly you are using an unmaintained version of GTK+ (2.6.x). > > Secondly, are you sure what you are doing makes sense? You are using a > GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the > SDL you are using also for X11 on Cygwin? Or are you trying to use a > SDL that would use native Win32 (GDI) together with a GTK+ built for > X11? Surely that can't work. > > --tml > > > > ------------------------------ > > Message: 4 > Date: Mon, 26 Jun 2006 16:47:57 +0200 > From: Marko Ivancic > Subject: save copy of gtktextbuffer > To: gtk-list@gnome.org > Message-ID: <449FF39D.6080201@ultra.si> > Content-Type: text/plain; charset=ISO-8859-2; format=flowed > > Hi. > > Is there any way to save a GtkTextBuffer (I mean the context of this > buffer including pixbufs and other embedet widgets) into another > GtkTextBuffer instance ?? > > Tnx, > By > Marko I. > > > > ------------------------------ > > Message: 5 > Date: Mon, 26 Jun 2006 16:53:29 +0200 > From: "Clemens Eisserer" > Subject: Re: GTK performance on Windows > To: gtk-list@gnome.org > Message-ID: > <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I played a bit and found something which could be considered as "slow": > > Open the configuration dialog of gimp and move another window on top of it. > This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you > can still see a ~4mm repaint lag. > > I wonder wether this could also be caused because of inefficient > double buffering ... time will show. > > lg Clemens > > 2006/6/23, Clemens Eisserer : > > First of all thanks a lot for doing that much work porting GTK to windows. > > I can't count how many apps I've used myself on windows-pcs which were > > able to run because of your work. > > > > > If one would ask specific question like "I draw 100000 line segments > > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > > might get better help. > > > > I installed gimp on some win-xp computers in the company I work for > > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > > are very much the issues I have on linux but more "visible". Its the > > UI, menus, window resizing, layout changes or repaint-events sent to > > the window because its content was invalidated. > > I can't say wether its really slow or just feels so, maybe the graphic > > card driver had an influence (nvidia gf4 mx4000) or some other > > circumstances were not optimal. > > I simply never did care that much simply because I don't use/like this planform. > > > > Its just hard to know whats going wrong, especially if someone is no > > gtk insider. > > > > lg Clemens > > > > > ------------------------------ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > End of gtk-list Digest, Vol 26, Issue 37 > **************************************** > From paul@linuxaudiosystems.com Tue Jun 27 09:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 168BD3B00AD for ; Tue, 27 Jun 2006 09:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31194-03 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id 1FD8D3B0084 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1I00ERKTHNOOQ4@vms044.mailsrvcs.net> for gtk-list@gnome.org; Tue, 27 Jun 2006 08:29:48 -0500 (CDT) Date: Tue, 27 Jun 2006 09:30:19 -0400 From: Paul Davis Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-reply-to: To: Lalit Kumar Message-id: <1151415019.28727.41.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.476 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 13:30:21 -0000 On Tue, 2006-06-27 at 08:45 +0530, Lalit Kumar wrote: > Hi All, > > I am facing problem with gdk_font_load method in my application. It > returns NULL. > > I am using gtk-2.0 on Redhat Enterprise WS 4. > > Can anybody help me to resolve this proble? > Help says that gdk_font_load is depricated. What is the name of new > equivalent method? a) please do NOT quote an entire digest message just so you can ask a new question. b) please change the subject line when you ask a new question c) there really is no equivalent method. what are you trying to do? explicit font loading is rarely necessary now that GTK uses pango (and has done for at least 2 years. From linuxhippy@gmail.com Wed Jun 28 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 121493B037B for ; Wed, 28 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32231-05 for ; Wed, 28 Jun 2006 16:20:47 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id 52F463B0515 for ; Wed, 28 Jun 2006 16:19:03 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so1405343hue for ; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr717001hue; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Message-ID: <194f62550606281318k48b71f34kd98baccbcef314bb@mail.gmail.com> Date: Wed, 28 Jun 2006 22:18:54 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.111 tagged_above=-999 required=2 tests=[AWL=-0.346, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.111 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 20:21:19 -0000 Hi again, Thanks a lot for all the hints about gdk, I know found the source-parts which I looked for and thanks to the paper I even understand what they are doing :-) I thought about some techniques about implementing buffer release heuristics, however they destroy the benefit to smoe degree and have some overhead too. However I realized that the memory-consumption scenario is not _such_ a big problem. If you only hold the backbuffer only as long as the window is visible and release it the whole situation is much better because more than 2-3 open full-screen windows are unlikely and 16mb VRAM are ... well ... much more than default. I guess parsing an enviroment-variable or such to enable/disable the caching behaviour wouldn't be a bad idea? lg Clemens 2006/6/26, John Cupitt : > On 6/25/06, Clemens Eisserer wrote: > > When I maximize the window and resize the panes I get very slow > > resizing, however when setting all involved widgets unbuffered > > resizing is fast (but painting is done with artifacts). > > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a > note about this in the entry for gtk_widget_set_double_buffered(): > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > I'm not a gtk-internals expert and I can't really see a good solution > to this. The possibilities I can see are: > > 1) Provide an option to disable double buffering for all widgets > > You could hack into gdk_window_begin_paint_region() and add a new code path: > > http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 > > something like > > if (global_no_double_buffer) > clear expose area to background > > might be enough. > > Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. > > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. > > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. > > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. > > John > From felipe.weckx@gmail.com Wed Jun 28 18:40:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 747D83B00EC for ; Wed, 28 Jun 2006 18:40:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05443-08 for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 4090F3B007D for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id s15so144297wxc for ; Wed, 28 Jun 2006 15:40:06 -0700 (PDT) Received: by 10.70.92.2 with SMTP id p2mr2110412wxb; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Received: from c9007af8.virtua.com.br ( [201.52.122.248]) by mx.gmail.com with ESMTP id i17sm7634039wxd.2006.06.28.15.40.04; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Subject: Set pane position on application startup From: Felipe Weckx To: gtk-list@gnome.org Content-Type: text/plain Date: Wed, 28 Jun 2006 19:40:00 -0300 Message-Id: <1151534400.6517.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.4 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -2.4 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 22:40:29 -0000 Hi everyone, I've an application that saves the pane gutter position when it finishes, so when it is started it can set the position where it was previously. However, when I start the application the gutter doesn't go where I want to... but, if I call the procedure after the app is running, it goes to the right place, I've tried running this function through g_idle_add on the main program, but it doesn't work either... any ideas? -- []'s Felipe Weckx From nc-gaertnma@netcologne.de Wed Jun 28 19:31:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9E3D53B00F3 for ; Wed, 28 Jun 2006 19:31:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07544-07 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from smtp3.netcologne.de (smtp3.netcologne.de [194.8.194.66]) by menubar.gnome.org (Postfix) with ESMTP id 9E74B3B01D5 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from limapholos.matom.wg (xdsl-81-173-182-178.netcologne.de [81.173.182.178]) by smtp3.netcologne.de (Postfix) with ESMTP id D822567384 for ; Thu, 29 Jun 2006 01:31:03 +0200 (CEST) Date: Thu, 29 Jun 2006 01:31:03 +0200 From: Mattias Gaertner To: gtk-list@gnome.org Subject: iconify and iconify Message-ID: <20060629013103.74081832@limapholos.matom.wg> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.928 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_WEB=1.456, TW_GT=0.077] X-Spam-Score: 0.928 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 23:31:08 -0000 Hi all, When the user iconifies a window and/or when the user switches to another desktop, the gtk sends the 'window-state-event' signal with GDK_WINDOW_STATE_ICONIFIED. How can I find out, which one happened? Mattias From Yandong.Yao@Sun.COM Thu Jun 29 02:53:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 169923B0071 for ; Thu, 29 Jun 2006 02:53:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23618-05 for ; Thu, 29 Jun 2006 02:53:47 -0400 (EDT) Received: from sineb-mail-1.sun.com (sineb-mail-1.sun.com [192.18.19.6]) by menubar.gnome.org (Postfix) with ESMTP id 741C93B0206 for ; Thu, 29 Jun 2006 02:53:46 -0400 (EDT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k5T6rh8l019095 for ; Thu, 29 Jun 2006 14:53:44 +0800 (SGT) Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J1M00A010EONK00@mail-apac.sun.com> (original mail from Yandong.Yao@Sun.COM) for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Received: from [129.158.148.217] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J1M002H60HIM4OO@mail-apac.sun.com> for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Date: Thu, 29 Jun 2006 14:55:08 +0800 From: "yandong.yao" Subject: does g_utf8_collate() need check whether its parameter is utf8 or not? Sender: Yandong.Yao@Sun.COM To: gtk-list@gnome.org Message-id: <44A3794C.7070207@sun.com> Organization: SMI MIME-version: 1.0 Content-type: text/plain; charset=GB2312 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.4 (X11/20060613) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.549 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.549 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Yandong.Yao@Sun.COM List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:53:51 -0000 Hi guys, If i ask in wrong alias, please forgive me and forward to correct alias, thank you. The document of g_utf8_collate() require its parameters should be utf-8 encoded, but it did not check this in function body, so g_utf8_normalize() may return NULL for non-utf8 string, thus strcoll() will crash. I have met such problem for several time on opensolaris. So we need check at somewhere, 3 candidate: 1) check parameter in strcoll(): but because different c lib has diff implementation, so i guess it is not a good place to avoid this problem. 2) check parameter in g_utf8_* function: check parameter in this level will sensible, but it will result in a few check statement in g_utf8_* functions. 3) check in caller of g_utf8_*, this is ok also, but need every developer to do this. i prefer 2), cause it will reduce lots of developer's work, and the cost is little also. any comments or suggestions are welcome, thank you in advance. regards, yandong From linuxhippy@gmail.com Thu Jun 29 13:48:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1CC2F3B010F for ; Thu, 29 Jun 2006 13:48:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31768-05 for ; Thu, 29 Jun 2006 13:48:51 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.196]) by menubar.gnome.org (Postfix) with ESMTP id C6A213B00D4 for ; Thu, 29 Jun 2006 13:48:50 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so144861hue for ; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.164.13 with SMTP id m13mr1091961hue; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Message-ID: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Date: Thu, 29 Jun 2006 19:48:49 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Newbie question about GTKs object model... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.908 tagged_above=-999 required=2 tests=[AWL=0.492, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -1.908 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:48:52 -0000 Sorry for such a stupid question ... shame on myself for asking it :-/ I looked arround GdkWindow.h/c bit and actually did not find the definition of the type "GdkWindow", instead I only found the definition of _GdkWindowObject which looks quite like I imagine GdkWindow could look like. So where/how does a GdkWindowObject become to an GdkWindow or do I understand some things completly wrong? btw. yes I did read some docs about Glib's object model ;) Thank you in advance, lg Clemens From RMain@gmx.de Thu Jun 29 13:56:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7050A3B00AE for ; Thu, 29 Jun 2006 13:56:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32350-01 for ; Thu, 29 Jun 2006 13:56:12 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id B6A873B027E for ; Thu, 29 Jun 2006 13:56:11 -0400 (EDT) Received: (qmail 2526 invoked by uid 0); 29 Jun 2006 17:56:10 -0000 Received: from 89.57.94.28 by www018.gmx.net with HTTP; Thu, 29 Jun 2006 19:56:10 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Thu, 29 Jun 2006 19:56:10 +0200 From: "Robert Main" Message-ID: <20060629175610.156930@gmx.net> MIME-Version: 1.0 Subject: Problem with compiling To: gtk-list@gnome.org X-Authenticated: #31472207 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.465 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.465 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:56:14 -0000 Hi, need to compile GTK+ 1.2 to use it with MPlayer. The problem is: I'm on windows, I need a makefile, but how/where is one? There is makefile.am|in, but cant use that. I also cant run configure, windows and so... friend said i should download this library and that and all that and maybe it would work, but thats so much for just this purpose! ... is there a simple and easy way? I know there are binaries in the latest GTK+, but I dont know if i can use that... the same problem is with glib, also cant compile because i cant run configure hope you can help me :-) -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f黵 Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From yeti@physics.muni.cz Thu Jun 29 14:26:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC7EE3B016C for ; Thu, 29 Jun 2006 14:26:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01572-02 for ; Thu, 29 Jun 2006 14:26:40 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 4E5DC3B00AE for ; Thu, 29 Jun 2006 14:26:39 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5TIQb1N025861 for ; Thu, 29 Jun 2006 20:26:38 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 50CC323D59; Thu, 29 Jun 2006 20:26:37 +0200 (CEST) Date: Thu, 29 Jun 2006 20:26:41 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Newbie question about GTKs object model... Message-ID: <20060629182641.GA2296@potato.chello.upc.cz> References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 18:26:45 -0000 On Thu, Jun 29, 2006 at 07:48:49PM +0200, Clemens Eisserer wrote: > Sorry for such a stupid question ... shame on myself for asking it :-/ > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow" You could easily find it using ctags: Run `ctags *' in gdk/ and then press ^] when you have cursor on GdkWindow -- assuming you use vim. > instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? GdkWindow is defined in gdktypes.h: typedef struct _GdkDrawable GdkWindow; and GdkWindowObject has GdkDrawable as a *parent*. The net result is that GdkWindowObject is a GdkWindow which is the same as GdkDrawable. Yeti -- Anonyms eat their boogers. From christianseberino@yahoo.com Thu Jun 29 15:04:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5EC873B00AE for ; Thu, 29 Jun 2006 15:04:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03543-07 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: from web37611.mail.mud.yahoo.com (web37611.mail.mud.yahoo.com [209.191.87.94]) by menubar.gnome.org (Postfix) with SMTP id 446233B0120 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: (qmail 96171 invoked by uid 60001); 29 Jun 2006 19:03:59 -0000 Message-ID: <20060629190359.96169.qmail@web37611.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37611.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:03:59 PDT Date: Thu, 29 Jun 2006 12:03:59 -0700 (PDT) From: Christian Seberino Subject: What does *gnome integration" mean for a GTK app? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1939649571-1151607839=:91636" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.273 tagged_above=-999 required=2 tests=[AWL=-1.288, BAYES_50=0.001, BE_BOSS=1.539, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: 2.273 X-Spam-Level: ** X-Spam-Flag: YES X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:04:01 -0000 --0-1939649571-1151607839=:91636 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME? and... What does "GNOME integration" buy you? Please give examples? Is there some extra work one must do to get this "integration" in their GTK app? (I'm wondering if wxGTK apps will work with GNOME) Chris --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME?

and...

What does "GNOME integration" buy you?  Please give examples?


Is there some extra work one must do to get this "integration"
in their GTK app?

(I'm wondering if wxGTK apps will work with GNOME)

Chris


Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636-- From christianseberino@yahoo.com Thu Jun 29 15:05:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B45013B0003 for ; Thu, 29 Jun 2006 15:05:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03609-10 for ; Thu, 29 Jun 2006 15:05:54 -0400 (EDT) Received: from web37610.mail.mud.yahoo.com (web37610.mail.mud.yahoo.com [209.191.87.93]) by menubar.gnome.org (Postfix) with SMTP id CEAD03B00A4 for ; Thu, 29 Jun 2006 15:05:53 -0400 (EDT) Received: (qmail 42338 invoked by uid 60001); 29 Jun 2006 19:05:53 -0000 Message-ID: <20060629190553.42336.qmail@web37610.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37610.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:05:53 PDT Date: Thu, 29 Jun 2006 12:05:53 -0700 (PDT) From: Christian Seberino Subject: Do wx apps lose any (GNOME) integration abilitlies of "pure" GTK apps? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2050439885-1151607953=:41127" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.742 tagged_above=-999 required=2 tests=[AWL=-0.907, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_MESSAGE=0.001] X-Spam-Score: 0.742 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:05:55 -0000 --0-2050439885-1151607953=:41127 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps? e.g. with GNOME and with other GTK apps? (I sent another email about what benefits there are to integration as I'm not sure.) I don't know if there any bad things about using wx with GTK under the hood. Chris --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps?
e.g. with GNOME and with other GTK apps?

(I sent another email about what benefits there are to integration
as I'm not sure.)

I don't know if there any bad things about using wx with GTK under the
hood.

Chris


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127-- From christianseberino@yahoo.com Thu Jun 29 15:09:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 777823B00AE for ; Thu, 29 Jun 2006 15:09:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03693-08 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: from web37603.mail.mud.yahoo.com (web37603.mail.mud.yahoo.com [209.191.87.86]) by menubar.gnome.org (Postfix) with SMTP id 9717A3B00A4 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: (qmail 26717 invoked by uid 60001); 29 Jun 2006 19:08:59 -0000 Message-ID: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37603.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:08:59 PDT Date: Thu, 29 Jun 2006 12:08:59 -0700 (PDT) From: Christian Seberino Subject: Any reason to worry about using wx? (but it uses GTK!?! :) To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1343824353-1151608139=:24277" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.122 tagged_above=-999 required=2 tests=[AWL=-2.190, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514] X-Spam-Score: 1.122 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:09:01 -0000 --0-1343824353-1151608139=:24277 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux. Can anyone see any problems //down the road// with using wx as far as losing benefits a pure GTK app would have? Thanks Chris --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux.

Can anyone see any problems //down the road// with using wx as far
as losing benefits a pure GTK app would have?

Thanks

Chris


Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277-- From einKI.ml@gmx.net Thu Jun 29 17:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A16FC3B0285 for ; Thu, 29 Jun 2006 17:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09269-06 for ; Thu, 29 Jun 2006 17:14:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 7577E3B018F for ; Thu, 29 Jun 2006 17:14:15 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:14:14 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp019) with SMTP; 29 Jun 2006 23:14:14 +0200 X-Authenticated: #31874521 Subject: Draw directly to the screen From: "einKI.ml" To: gtk-list Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:14:12 +0200 Message-Id: <1151615652.5113.18.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.456 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.456 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:14:17 -0000 Hi My goal is to draw a line directly to the screen using gdk. "To the screen" means that it should be visible for the user over any other window. I thin i have to use the root window to accomplish this int main( int argc,char *argv[] ) { gtk_init (&argc, &argv); GdkWindow* rw = gdk_get_default_root_window(); GdkGC* gc = gdk_gc_new(rw); gdk_draw_line(rw,gc,10,10,500,500); gdk_flush(); gtk_main (); return 0; } However i dont see anything. I only can see the line if i shut down the x-server. So I believe i only draw to the background even behind nautilus. This seems logically but I cant find any other method to draw directly to the screen. If anyone has done this before or know how to do it I appreciate any help by einKI From paul@linuxaudiosystems.com Thu Jun 29 17:22:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EBB533B007B for ; Thu, 29 Jun 2006 17:22:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09674-01 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id C875B3B0198 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1N00CZL4PFXGPC@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 29 Jun 2006 16:22:28 -0500 (CDT) Date: Thu, 29 Jun 2006 17:22:58 -0400 From: Paul Davis Subject: Re: Draw directly to the screen In-reply-to: <1151615652.5113.18.camel@localhost> To: einKI.ml@gmx.net Message-id: <1151616178.28727.116.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1151615652.5113.18.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.55 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599] X-Spam-Score: -2.55 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:22:34 -0000 On Thu, 2006-06-29 at 23:14 +0200, einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. i suggest you look for the little app called "gromit" for ideas. From king@eiffel.com Thu Jun 29 17:26:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC5C53B0273 for ; Thu, 29 Jun 2006 17:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09893-02 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from smtp.eiffel.com (smtp.eiffel.com [65.170.180.5]) by menubar.gnome.org (Postfix) with ESMTP id A79583B0198 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from ise171.ise ([10.0.10.171]) by smtp.eiffel.com with esmtp (Exim 4.01) id 1Fw42B-0004qX-00; Thu, 29 Jun 2006 14:26:47 -0700 Message-ID: <44A44597.9030902@eiffel.com> Date: Thu, 29 Jun 2006 14:26:47 -0700 From: Ian King User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: einKI.ml@gmx.net Subject: Re: Draw directly to the screen References: <1151615652.5113.18.camel@localhost> In-Reply-To: <1151615652.5113.18.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[AWL=0.053, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.469 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:26:50 -0000 If you add the line gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); after you create the gc, then it should draw over all child windows. Regards, Ian King Eiffel Software einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. > > I thin i have to use the root window to accomplish this > > int main( int argc,char *argv[] ) > { > gtk_init (&argc, &argv); > > GdkWindow* rw = gdk_get_default_root_window(); > GdkGC* gc = gdk_gc_new(rw); > gdk_draw_line(rw,gc,10,10,500,500); > > gdk_flush(); > > gtk_main (); > return 0; > } > > However i dont see anything. I only can see the line if i shut down the > x-server. So I believe i only draw to the background even behind > nautilus. This seems logically but I cant find any other method to draw > directly to the screen. > > If anyone has done this before or know how to do it I appreciate any > help > by > einKI > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From einKI.ml@gmx.net Thu Jun 29 17:40:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C2FF3B013E for ; Thu, 29 Jun 2006 17:40:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10413-05 for ; Thu, 29 Jun 2006 17:40:31 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id BE9303B0120 for ; Thu, 29 Jun 2006 17:40:30 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:40:29 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp035) with SMTP; 29 Jun 2006 23:40:29 +0200 X-Authenticated: #31874521 Subject: Re: Re: Draw directly to the screen From: "einKI.ml" To: gtk-list In-Reply-To: <44A44597.9030902@eiffel.com> References: <1151615652.5113.18.camel@localhost> <44A44597.9030902@eiffel.com> Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:40:28 +0200 Message-Id: <1151617228.5113.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.5 tagged_above=-999 required=2 tests=[AWL=0.100, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.5 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:40:32 -0000 Hi > If you add the line > gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); > after you create the gc, then it should draw over all child windows. thx works perfect! I think i never figured this out alone from the reference but now its clear. > i suggest you look for the little app called "gromit" for ideas. seems a good starting point thy you too by From esodan@gmail.com Thu Jun 29 18:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 70A2A3B00AC for ; Thu, 29 Jun 2006 18:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13109-09 for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 2822F3B000D for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so628092uge for ; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.224.19 with SMTP id w19mr727175ugg; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.233.12 with HTTP; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Message-ID: <144160610606291553u37f4a830l7012f094d4db4cb3@mail.gmail.com> Date: Thu, 29 Jun 2006 17:53:31 -0500 From: "Daniel Espinosa" To: "Clemens Eisserer" Subject: Re: Newbie question about GTKs object model... In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9631_30011709.1151621611867" References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=-0.174, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.122 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 22:53:34 -0000 ------=_Part_9631_30011709.1151621611867 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2006/6/29, Clemens Eisserer : > > Sorry for such a stupid question ... shame on myself for asking it :-/ > > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow", instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? btw. yes I did read some docs > about Glib's object model ;) > > Thank you in advance, lg Clemens > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Why do you need GdkWindow? If you only need to create a window, don't worry about GdkWindow, is internaly managed by a GtkWindow object. --=20 Trabajar, la mejor arma para tu superaci=F3n "de grano en grano, se hace la arena" (R) (entr=E1mite, pero para los cuate= s: LIBRE) ------=_Part_9631_30011709.1151621611867 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

2006/6/29, Clemens Eisserer <linuxhippy@gmail.com>:<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Sorry for such a stupid question ... shame on myself for asking it :-/
<= br>I looked arround GdkWindow.h/c  bit and actually did not find = the
definition of the type "GdkWindow", instead I only found t= he
definition of _GdkWindowObject which looks quite like I imagine
GdkWindo= w could look like.
So where/how does a GdkWindowObject become to an GdkW= indow or do I
understand some things completly wrong? btw. yes I did rea= d some docs
about Glib's object model ;)

Thank you in advance, lg Clemens_______________________________________________
gtk-list mailing listgtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
<= br>Why do you need GdkWindow?

If you only need to create a window, d= on't worry about GdkWindow, is internaly managed by a GtkWindow object.

--
Trabajar, la mejor arma para tu superaci=F3n"de grano en grano, se hace la arena" (R) (entr=E1mite, pero pa= ra los cuates: LIBRE) ------=_Part_9631_30011709.1151621611867-- From c_gilbert@verizon.net Sun Jun 25 15:48:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2BF6F3B0018 for ; Sun, 25 Jun 2006 15:48:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27892-08 for ; Sun, 25 Jun 2006 15:48:10 -0400 (EDT) Received: from smtp101.vzn.mail.dcn.yahoo.com (smtp101.vzn.mail.dcn.yahoo.com [209.73.179.139]) by menubar.gnome.org (Postfix) with SMTP id 3A6383B000C for ; Sun, 25 Jun 2006 15:48:10 -0400 (EDT) Received: (qmail 44476 invoked from network); 25 Jun 2006 19:47:41 -0000 Received: from unknown (HELO ?192.168.1.101?) (c?gilbert@verizon.net@71.160.54.146 with login) by smtp101.vzn.mail.dcn.yahoo.com with SMTP; 25 Jun 2006 19:47:40 -0000 Subject: GtkTextBuffer "destroying" From: chuck gilbert To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 25 Jun 2006 12:49:33 -0700 Message-Id: <1151264973.3223.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.944 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: 1.944 X-Spam-Level: * X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 19:48:13 -0000 I can not seem to destroy a GtkTextBuffer created by calling gtk_text_buffer_new. To test my problem I used a function like below: somefunction() { GtkTextTagTable *tt = gtk_text_tag_table_new(); GtkTextBuffer *buffer = gtk_text_buffer_new(tt); gint n = gtk_text_buffer_get_line_count(buffer); gtk_widget_destroy(GTK_WIDGET(buffer)); } I have tried to cast "buffer" to G_OBJECT,GTK_TEXT_BUFFER,and GTK_OBJECT with no joy. At runtime I receive: gtk CRITICAL gtk_widget_destroy assumtion GTK_IS_WIDGET(widget) failed. The Buffer is created ie. the line count returns '1'. Thanks in advance for any help. From ibr@radix50.net Thu Jun 22 19:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ABA3B055E for ; Thu, 22 Jun 2006 19:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-06 for ; Thu, 22 Jun 2006 19:47:37 -0400 (EDT) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by menubar.gnome.org (Postfix) with ESMTP id AA8643B0288 for ; Thu, 22 Jun 2006 19:47:37 -0400 (EDT) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 0FA7CEAE70 for ; Fri, 23 Jun 2006 01:47:36 +0200 (CEST) Received: from mail-in-03.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id 013C417769D for ; Fri, 23 Jun 2006 01:47:36 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id BF3B21557B7 for ; Fri, 23 Jun 2006 01:47:35 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNlHdY020742 for ; Fri, 23 Jun 2006 01:47:18 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNlHtg020741 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:47:17 +0200 Date: Fri, 23 Jun 2006 01:47:17 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622234717.GB30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:48:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From MAILER-DAEMON Thu Jun 22 21:01:12 2006 Return-Path: <> X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3559E3B0413 for ; Thu, 22 Jun 2006 21:01:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04772-01 for ; Thu, 22 Jun 2006 21:01:07 -0400 (EDT) Received: from 6677.com (unknown [211.140.139.39]) by menubar.gnome.org (Postfix) with ESMTP id B68ED3B0658 for ; Thu, 22 Jun 2006 21:01:06 -0400 (EDT) Received: from 6677.com [127.0.0.1] by 6677.com [127.0.0.1] (with RAW) (MDaemon.PRO.v6.8.5.R) for ; Fri, 23 Jun 2006 09:11:56 +0800 Date: Fri, 23 Jun 2006 09:11:56 +0800 From: Postmaster@6677.com Subject: MDaemon Notification -- Attachment Removed To: gtk-list@gnome.org X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: Mime-Version: 1.0 X-Actual-From: Postmaster@6677.com X-MDSend-Notifications-To: [trash] Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.039 tagged_above=-999 required=2 tests=[BAYES_50=0.001, NO_REAL_NAME=0.961, TW_GT=0.077] X-Spam-Score: 1.039 X-Spam-Level: * X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Postmaster@6677.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 01:01:12 -0000 下列邮件包含被限制的附件,已被移除: 发信人 : gtk-list@gnome.org 收信人 : jf@6677.com 主题 : Mail Delivery (failure jf@6677.com) 邮件 ID : 已移除的附件: ----------------------------------------- message.scr From prashanthkm22@gmail.com Fri Jun 23 05:24:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 21EE33B041F for ; Fri, 23 Jun 2006 05:24:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31011-09 for ; Fri, 23 Jun 2006 05:24:18 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 4E20A3B0397 for ; Fri, 23 Jun 2006 05:24:18 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so4808wxc for ; Fri, 23 Jun 2006 02:24:17 -0700 (PDT) Received: by 10.70.108.14 with SMTP id g14mr4318104wxc; Fri, 23 Jun 2006 02:24:17 -0700 (PDT) Received: by 10.70.77.6 with HTTP; Fri, 23 Jun 2006 02:24:16 -0700 (PDT) Message-ID: Date: Fri, 23 Jun 2006 14:54:16 +0530 From: "prashanth km22" To: gtk-list@gnome.org Subject: How to set colors to Widgets MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 09:24:21 -0000 Hi all.. I am beginer to GTK, i created window and butons, but i dont know how to set colors to buttons. i saw gtk examples, i did not understand . Tell me how to do that.. Thank you. Prashanth From jalaganapathy@tataelxsi.co.in Thu Jun 29 02:25:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 03A973B011E for ; Thu, 29 Jun 2006 02:25:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22815-01 for ; Thu, 29 Jun 2006 02:25:54 -0400 (EDT) Received: from mail.tataelxsi.co.in (mail.tataelxsi.co.in [203.200.1.48]) by menubar.gnome.org (Postfix) with ESMTP id 26A103B000B for ; Thu, 29 Jun 2006 02:25:52 -0400 (EDT) Received: (from mail.tataelxsi.co.in [203.197.169.20]) by mail.tataelxsi.co.in (MOS 3.7.4b-GA) with HTTP/1.1 id BRM06226 (AUTH jalaganapathy); Thu, 29 Jun 2006 11:56:32 +0530 (IST) From: Jalagandeswari G Subject: Installing GTK+2.9.1 in Fedora core2 To: gtk-list@gnome.org X-Mailer: Mirapoint Webmail Direct 3.7.4b-GA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20060629115632.BRM06226@mail.tataelxsi.co.in> Date: Thu, 29 Jun 2006 11:56:32 +0530 (IST) X-Junkmail: Blacklisted X-Mirapoint-Sig: mail.tataelxsi.co.in X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:25:57 -0000 Hello All, Iam trying to install gtk+2.9.1 in fedora core2. my configure options are ./configure --prefix=/exp/ffox Confugure works fine. While running make i am getting the following errors. gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/exp/ffox/lib\" -DGTK_DATADIR=\"/exp/ffox/share\" -DGTK_DATA_PREFIX=\"/exp/ffox\" -DGTK_SYSCONFDIR=\"/exp/ffox/etc\" -DGTK_VERSION=\"2.9.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"pdf,cups\" -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_ENABLE_DEBUG -pthread -I/exp/ffox//include/glib-2.0 -I/exp/ffox//lib/glib-2.0/include -I/exp/ffox//include/pango-1.0 -I/exp/ffox//include/cairo -I/exp/ffox//include/atk-1.0 -I/exp/ffox/include -I/usr/X11R6/include -DG_DISABLE_DEPRECATED -g -O2 -g -Wall -MT gtkrecentmanager.lo -MD -MP -MF .deps/gtkrecentmanager.Tpo -c gtkrecentmanager.c -fPIC -DPIC -o .libs/gtkrecentmanager.o gtkrecentmanager.c:109: error: syntax error before "GBookmarkFile" gtkrecentmanager.c:109: warning: no semicolon at end of struct or union gtkrecentmanager.c:113: error: syntax error before '}' token gtkrecentmanager.c: In function `gtk_recent_manager_class_init': gtkrecentmanager.c:274: error: invalid application of `sizeof' to an incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_init': gtkrecentmanager.c:286: error: dereferencing pointer to incomplete type gtkrecentmanager.c:290: error: dereferencing pointer to incomplete type gtkrecentmanager.c:291: error: dereferencing pointer to incomplete type gtkrecentmanager.c:293: error: dereferencing pointer to incomplete type gtkrecentmanager.c:294: error: dereferencing pointer to incomplete type gtkrecentmanager.c:295: error: dereferencing pointer to incomplete type gtkrecentmanager.c:296: error: dereferencing pointer to incomplete type gtkrecentmanager.c:298: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_get_property': gtkrecentmanager.c:336: error: dereferencing pointer to incomplete type gtkrecentmanager.c:339: error: dereferencing pointer to incomplete type gtkrecentmanager.c:342: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_finalize': gtkrecentmanager.c:357: error: dereferencing pointer to incomplete type gtkrecentmanager.c:358: error: dereferencing pointer to incomplete type gtkrecentmanager.c:360: error: dereferencing pointer to incomplete type gtkrecentmanager.c:361: error: dereferencing pointer to incomplete type gtkrecentmanager.c:363: error: dereferencing pointer to incomplete type gtkrecentmanager.c:364: warning: implicit declaration of function `g_bookmark_file_free' gtkrecentmanager.c:364: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_real_changed': gtkrecentmanager.c:377: error: dereferencing pointer to incomplete type gtkrecentmanager.c:385: error: dereferencing pointer to incomplete type gtkrecentmanager.c:387: error: dereferencing pointer to incomplete type gtkrecentmanager.c:392: error: dereferencing pointer to incomplete type gtkrecentmanager.c:394: error: dereferencing pointer to incomplete type gtkrecentmanager.c:394: warning: implicit declaration of function `g_bookmark_file_new' gtkrecentmanager.c:395: error: dereferencing pointer to incomplete type gtkrecentmanager.c:399: warning: implicit declaration of function `g_bookmark_file_to_file' gtkrecentmanager.c:399: error: dereferencing pointer to incomplete type gtkrecentmanager.c:400: error: dereferencing pointer to incomplete type gtkrecentmanager.c:406: error: dereferencing pointer to incomplete type gtkrecentmanager.c:415: error: dereferencing pointer to incomplete type gtkrecentmanager.c:419: error: dereferencing pointer to incomplete type gtkrecentmanager.c:422: error: dereferencing pointer to incomplete type gtkrecentmanager.c:429: error: dereferencing pointer to incomplete type gtkrecentmanager.c:432: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_poll_timeout': gtkrecentmanager.c:458: error: dereferencing pointer to incomplete type gtkrecentmanager.c:458: error: dereferencing pointer to incomplete type gtkrecentmanager.c:461: error: dereferencing pointer to incomplete type gtkrecentmanager.c:470: error: dereferencing pointer to incomplete type gtkrecentmanager.c:477: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_set_filename': gtkrecentmanager.c:498: error: dereferencing pointer to incomplete type gtkrecentmanager.c:500: error: dereferencing pointer to incomplete type gtkrecentmanager.c:502: error: dereferencing pointer to incomplete type gtkrecentmanager.c:503: error: dereferencing pointer to incomplete type gtkrecentmanager.c:506: error: dereferencing pointer to incomplete type gtkrecentmanager.c:507: error: dereferencing pointer to incomplete type gtkrecentmanager.c:514: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `build_recent_items_list': gtkrecentmanager.c:534: error: dereferencing pointer to incomplete type gtkrecentmanager.c:536: error: dereferencing pointer to incomplete type gtkrecentmanager.c:538: error: dereferencing pointer to incomplete type gtkrecentmanager.c:539: error: dereferencing pointer to incomplete type gtkrecentmanager.c:542: error: dereferencing pointer to incomplete type gtkrecentmanager.c:555: error: dereferencing pointer to incomplete type gtkrecentmanager.c:563: error: dereferencing pointer to incomplete type gtkrecentmanager.c:565: error: dereferencing pointer to incomplete type gtkrecentmanager.c:571: warning: implicit declaration of function `g_bookmark_file_load_from_file' gtkrecentmanager.c:571: error: dereferencing pointer to incomplete type gtkrecentmanager.c:572: error: dereferencing pointer to incomplete type gtkrecentmanager.c:578: error: dereferencing pointer to incomplete type gtkrecentmanager.c:581: error: dereferencing pointer to incomplete type gtkrecentmanager.c:582: error: dereferencing pointer to incomplete type gtkrecentmanager.c:587: warning: implicit declaration of function `g_bookmark_file_get_size' gtkrecentmanager.c:587: error: dereferencing pointer to incomplete type gtkrecentmanager.c:588: error: dereferencing pointer to incomplete type gtkrecentmanager.c:590: error: dereferencing pointer to incomplete type gtkrecentmanager.c:595: error: dereferencing pointer to incomplete type gtkrecentmanager.c:596: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_for_screen': gtkrecentmanager.c:683: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `display_closed': gtkrecentmanager.c:697: error: dereferencing pointer to incomplete type gtkrecentmanager.c:698: error: dereferencing pointer to incomplete type gtkrecentmanager.c:703: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `unset_screen': gtkrecentmanager.c:718: error: dereferencing pointer to incomplete type gtkrecentmanager.c:720: error: dereferencing pointer to incomplete type gtkrecentmanager.c:726: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_set_screen': gtkrecentmanager.c:759: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_set_limit': gtkrecentmanager.c:786: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_limit': gtkrecentmanager.c:808: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_add_full': gtkrecentmanager.c:977: error: dereferencing pointer to incomplete type gtkrecentmanager.c:979: error: dereferencing pointer to incomplete type gtkrecentmanager.c:980: error: dereferencing pointer to incomplete type gtkrecentmanager.c:984: warning: implicit declaration of function `g_bookmark_file_set_title' gtkrecentmanager.c:984: error: dereferencing pointer to incomplete type gtkrecentmanager.c:987: warning: implicit declaration of function `g_bookmark_file_set_description' gtkrecentmanager.c:987: error: dereferencing pointer to incomplete type gtkrecentmanager.c:989: warning: implicit declaration of function `g_bookmark_file_set_mime_type' gtkrecentmanager.c:989: error: dereferencing pointer to incomplete type gtkrecentmanager.c:996: warning: implicit declaration of function `g_bookmark_file_add_group' gtkrecentmanager.c:996: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1003: warning: implicit declaration of function `g_bookmark_file_add_application' gtkrecentmanager.c:1003: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1007: warning: implicit declaration of function `g_bookmark_file_set_is_private' gtkrecentmanager.c:1007: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1013: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_remove_item': gtkrecentmanager.c:1048: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1050: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1051: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1061: warning: implicit declaration of function `g_bookmark_file_remove_item' gtkrecentmanager.c:1061: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1069: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_has_item': gtkrecentmanager.c:1098: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1100: warning: implicit declaration of function `g_bookmark_file_has_item' gtkrecentmanager.c:1100: error: dereferencing pointer to incomplete type gtkrecentmanager.c: At top level: gtkrecentmanager.c:1104: error: syntax error before '*' token gtkrecentmanager.c: In function `build_recent_info': gtkrecentmanager.c:1110: error: `bookmarks' undeclared (first use in this function) gtkrecentmanager.c:1110: error: (Each undeclared identifier is reported only once gtkrecentmanager.c:1110: error: for each function it appears in.) gtkrecentmanager.c:1111: error: `info' undeclared (first use in this function) gtkrecentmanager.c:1113: warning: implicit declaration of function `g_bookmark_file_get_title' gtkrecentmanager.c:1114: warning: implicit declaration of function `g_bookmark_file_get_description' gtkrecentmanager.c:1115: warning: implicit declaration of function `g_bookmark_file_get_mime_type' gtkrecentmanager.c:1117: warning: implicit declaration of function `g_bookmark_file_get_is_private' gtkrecentmanager.c:1119: warning: implicit declaration of function `g_bookmark_file_get_added' gtkrecentmanager.c:1120: warning: implicit declaration of function `g_bookmark_file_get_modified' gtkrecentmanager.c:1121: warning: implicit declaration of function `g_bookmark_file_get_visited' gtkrecentmanager.c:1123: warning: implicit declaration of function `g_bookmark_file_get_groups' gtkrecentmanager.c:1123: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1133: warning: implicit declaration of function `g_bookmark_file_get_applications' gtkrecentmanager.c:1133: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1144: warning: implicit declaration of function `g_bookmark_file_get_app_info' gtkrecentmanager.c: In function `IA__gtk_recent_manager_lookup_item': gtkrecentmanager.c:1196: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1198: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1199: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1209: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1224: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_move_item': gtkrecentmanager.c:1268: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1278: warning: implicit declaration of function `g_bookmark_file_move_item' gtkrecentmanager.c:1278: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1287: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_items': gtkrecentmanager.c:1317: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1320: warning: implicit declaration of function `g_bookmark_file_get_uris' gtkrecentmanager.c:1320: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1320: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1327: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1344: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1345: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1349: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `purge_recent_items_list': gtkrecentmanager.c:1370: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1373: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1374: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1376: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1377: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1378: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_purge_items': gtkrecentmanager.c:1406: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1409: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1415: error: dereferencing pointer to incomplete type make[4]: *** [gtkrecentmanager.lo] Error 1 make[4]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/exp/ffox/gtk+-2.9.1' make: *** [all] Error 2 Pls help me out to find a solution. regards, Jala The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@tataelxsi.co.in From jose.francisco.hevia@gmail.com Thu Jun 29 16:57:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 405123B00CC for ; Thu, 29 Jun 2006 16:57:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08622-01 for ; Thu, 29 Jun 2006 16:57:11 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by menubar.gnome.org (Postfix) with ESMTP id EF19B3B00BD for ; Thu, 29 Jun 2006 16:57:10 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c29so144243nfb for ; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Received: by 10.49.28.2 with SMTP id f2mr5801nfj; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Message-ID: Date: Thu, 29 Jun 2006 22:57:09 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Any reason to worry about using wx? (but it uses GTK!?! :) In-Reply-To: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.543 tagged_above=-999 required=2 tests=[AWL=-0.432, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514, SPF_PASS=-0.001] X-Spam-Score: -1.543 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 20:57:13 -0000 2006/6/29, Christian Seberino : > wx uses GTK under the hood...at least on Unix and Linux. > > Can anyone see any problems //down the road// with using wx as far > as losing benefits a pure GTK app would have? wx->- Another layer of stuff. - A subset of GTK, so it could be compatible with others.(you lost control) - GTK works on windows, Unix(X11) and native MacOS is in process. -Look at audacity-> wx , amsn... They are ugly on Linux (seems they use GTK 1.2 or GTK 2.0 without themes)(amsn added themes recently, but I remember a lot of people complaining how bad it was(they judged only by its appearance)) -IMHO win32 is dead, Microsoft needs to sell its new .Net related widgets, wx uses win32. -I have never used wx, so I could be mistaken. Cheers Jose Hevia From c_gilbert@verizon.net Thu Jun 29 23:46:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8428B3B00C7 for ; Thu, 29 Jun 2006 23:46:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23400-08 for ; Thu, 29 Jun 2006 23:46:07 -0400 (EDT) Received: from smtp102.vzn.mail.dcn.yahoo.com (smtp102.vzn.mail.dcn.yahoo.com [209.73.179.140]) by menubar.gnome.org (Postfix) with SMTP id 8387D3B000E for ; Thu, 29 Jun 2006 23:46:07 -0400 (EDT) Received: (qmail 10047 invoked from network); 30 Jun 2006 03:46:06 -0000 Received: from unknown (HELO ?192.168.1.101?) (c?gilbert@verizon.net@71.160.54.146 with login) by smtp102.vzn.mail.dcn.yahoo.com with SMTP; 30 Jun 2006 03:46:06 -0000 Subject: How to save GtkTextBuffers with formatting From: chuck gilbert To: gtk-list@gnome.org Content-Type: text/plain Date: Thu, 29 Jun 2006 20:48:08 -0700 Message-Id: <1151639288.29469.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.091 tagged_above=-999 required=2 tests=[AWL=-0.147, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_NEUTRAL=1.069] X-Spam-Score: 2.091 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 03:46:08 -0000 Is there a way to save and restore GtkTextBuffers with their associated TagTables and markers to files? From AFARRAG@eg.ibm.com Tue Jun 13 11:35:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4E7723B008F for ; Tue, 13 Jun 2006 11:35:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28376-08 for ; Tue, 13 Jun 2006 11:35:21 -0400 (EDT) Received: from mtagate6.uk.ibm.com (mtagate6.uk.ibm.com [195.212.29.139]) by menubar.gnome.org (Postfix) with ESMTP id 7AC3D3B000C for ; Tue, 13 Jun 2006 11:35:13 -0400 (EDT) Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate6.uk.ibm.com (8.13.6/8.13.6) with ESMTP id k5DFYN56121848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Jun 2006 15:34:23 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.6/NCO/VER7.0) with ESMTP id k5DFZbfW134912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Jun 2006 16:35:37 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5DFYNXn008997 for ; Tue, 13 Jun 2006 16:34:23 +0100 Received: from d06ml201.portsmouth.uk.ibm.com (d06ml201.portsmouth.uk.ibm.com [9.149.39.66]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5DFYNZo008994 for ; Tue, 13 Jun 2006 16:34:23 +0100 To: gtk-list@gnome.org Subject: Unable to install gtk2.8 MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 From: Ahmed Farrag Message-ID: X-MIMETrack: Serialize by Router on D06ML201/06/M/IBM(Release 6.5.5HF268 | April 6, 2006) at 13/06/2006 18:34:22 Content-Type: multipart/mixed; boundary="=_mixed 00558CBEC225718C_=" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.171 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.171 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 13 Jun 2006 15:35:26 -0000 X-Original-Date: Tue, 13 Jun 2006 18:34:22 +0300 X-List-Received-Date: Tue, 13 Jun 2006 15:35:26 -0000 --=_mixed 00558CBEC225718C_= Content-Type: multipart/alternative; boundary="=_alternative 00558CBEC225718C_=" --=_alternative 00558CBEC225718C_= Content-Type: text/plain; charset="US-ASCII" Hi, I have RHEL 4 installed on my machine, and I want to update the installed gtk to version 2.8.1 . However each time I try to start the configure script, I got a configuration error stating that I have to install glib, atk, cairo and pango libraries with newer versions than the ones currently installed (see the attached txt file). I have installed glib2.8, atk1.8, cairo 1.0.4 and pango 1.9.1 but it seems that the configure script of gtk can't find them. it finds only the older versions of these libraries. I have found that the version number of glib, atk, cairo and pango lib is hard coded in the configure script , and I think this might be the problem. Would you please advise if there is any workarounds I can make to install gtk. Thanks in advance Best Regards Ahmed Farrag Associate Software Engineer iSeries/Rational NLS Team Globalization - Cairo Technology Development Center (CTDC) - IBM EGYPT Branch Pyramids Heights Office Park, Building C10 Cairo - Alexandria Desert Road, KM 22. Giza, Egypt P.O. Box 166 El-Ahram, Giza ,Egypt Tel: Direct : (+202) 536 1422 Ext: 1422 e-mail: afarrag@eg.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------------------------------ "Nothing so conclusively proves a man's ability to lead others as what he does from day to day to lead himself." >>Thomas J. Watson --=_alternative 00558CBEC225718C_= Content-Type: text/html; charset="US-ASCII"
Hi,

I have RHEL 4 installed on my machine, and I want to update the installed gtk to version 2.8.1 . However each time I try to start the configure script, I got a configuration error stating that I have to install glib, atk, cairo and pango libraries with newer versions than the ones currently installed (see the attached txt file).  I have installed glib2.8, atk1.8, cairo 1.0.4 and pango 1.9.1 but it seems that the configure script of gtk can't find them. it finds only the older versions of these libraries. I have found that the version number of glib, atk, cairo and pango lib is hard coded in the configure script , and I think this might be the problem. Would you please advise if there is any workarounds I can make to install gtk.



Thanks in advance

Best Regards
Ahmed Farrag
Associate Software Engineer
iSeries/Rational NLS Team
Globalization -  Cairo Technology Development Center (CTDC) - IBM EGYPT Branch
Pyramids Heights Office Park, Building C10
Cairo - Alexandria Desert Road, KM 22.
Giza,  Egypt
P.O. Box  166 El-Ahram, Giza ,Egypt
Tel: Direct : (+202) 536 1422
Ext: 1422
e-mail:   afarrag@eg.ibm.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------
"Nothing so conclusively proves a man's ability to lead others as what he does from day to day to lead himself."

>>Thomas J. Watson
--=_alternative 00558CBEC225718C_=-- --=_mixed 00558CBEC225718C_= Content-Type: text/plain; name="fileconf.txt" Content-Disposition: attachment; filename="fileconf.txt" Content-Transfer-Encoding: quoted-printable [root@localhost gtk+-2.8.1]# ./configure --prefix=3D/usr=0Achecking for a B= SD-compatible install... /usr/bin//install -c=0Achecking whether build envi= ronment is sane... yes=0Achecking for gawk... gawk=0Achecking whether make = sets $(MAKE)... yes=0Achecking build system type... i686-pc-linux-gnu=0Ache= cking host system type... i686-pc-linux-gnu=0Achecking for native Win32... = no=0Achecking for gcc... gcc=0Achecking for C compiler default output file = name... a.out=0Achecking whether the C compiler works... yes=0Achecking whe= ther we are cross compiling... no=0Achecking for suffix of executables...= =0Achecking for suffix of object files... o=0Achecking whether we are using= the GNU C compiler... yes=0Achecking whether gcc accepts -g... yes=0Acheck= ing for gcc option to accept ANSI C... none needed=0Achecking for style of = include used by make... GNU=0Achecking dependency style of gcc... gcc3=0Ach= ecking for a sed that does not truncate output... /bin/sed=0Achecking for e= grep... grep -E=0Achecking for ld used by gcc... /usr/bin//ld=0Achecking if= the linker (/usr/bin//ld) is GNU ld... yes=0Achecking for /usr/bin//ld opt= ion to reload object files... -r=0Achecking for BSD-compatible nm... /usr/b= in//nm -B=0Achecking whether ln -s works... yes=0Achecking how to recognise= dependent libraries... pass=5Fall=0Achecking how to run the C preprocessor= ... gcc -E=0Achecking for ANSI C header files... yes=0Achecking for sys/typ= es.h... yes=0Achecking for sys/stat.h... yes=0Achecking for stdlib.h... yes= =0Achecking for string.h... yes=0Achecking for memory.h... yes=0Achecking f= or strings.h... yes=0Achecking for inttypes.h... yes=0Achecking for stdint.= h... yes=0Achecking for unistd.h... yes=0Achecking dlfcn.h usability... yes= =0Achecking dlfcn.h presence... yes=0Achecking for dlfcn.h... yes=0Acheckin= g for g++... g++=0Achecking whether we are using the GNU C++ compiler... ye= s=0Achecking whether g++ accepts -g... yes=0Achecking dependency style of g= ++... gcc3=0Achecking how to run the C++ preprocessor... g++ -E=0Achecking = for g77... g77=0Achecking whether we are using the GNU Fortran 77 compiler.= .. yes=0Achecking whether g77 accepts -g... yes=0Achecking the maximum leng= th of command line arguments... 32768=0Achecking command to parse /usr/bin/= /nm -B output from gcc object... ok=0Achecking for objdir... .libs=0Achecki= ng for ar... ar=0Achecking for ranlib... ranlib=0Achecking for strip... str= ip=0Achecking if gcc static flag works... yes=0Achecking if gcc supports -= fno-rtti -fno-exceptions... no=0Achecking for gcc option to produce PIC... = -fPIC=0Achecking if gcc PIC flag -fPIC works... yes=0Achecking if gcc suppo= rts -c -o file.o... yes=0Achecking whether the gcc linker (/usr/bin//ld) su= pports shared libraries... yes=0Achecking whether -lc should be explicitly = linked in... no=0Achecking dynamic linker characteristics... GNU/Linux ld.s= o=0Achecking how to hardcode library paths into programs... immediate=0Ache= cking whether stripping libraries is possible... yes=0Achecking if libtool = supports shared libraries... yes=0Achecking whether to build shared librari= es... yes=0Achecking whether to build static libraries... no=0Aconfigure: c= reating libtool=0Aappending configuration tag "CXX" to libtool=0Achecking f= or ld used by g++... /usr/bin//ld=0Achecking if the linker (/usr/bin//ld) i= s GNU ld... yes=0Achecking whether the g++ linker (/usr/bin//ld) supports s= hared libraries... yes=0Achecking for g++ option to produce PIC... -fPIC=0A= checking if g++ PIC flag -fPIC works... yes=0Achecking if g++ supports -c -= o file.o... yes=0Achecking whether the g++ linker (/usr/bin//ld) supports s= hared libraries... yes=0Achecking dynamic linker characteristics... GNU/Lin= ux ld.so=0Achecking how to hardcode library paths into programs... immediat= e=0Achecking whether stripping libraries is possible... yes=0Aappending con= figuration tag "F77" to libtool=0Achecking if libtool supports shared libra= ries... yes=0Achecking whether to build shared libraries... yes=0Achecking = whether to build static libraries... no=0Achecking for g77 option to produc= e PIC... -fPIC=0Achecking if g77 PIC flag -fPIC works... yes=0Achecking if = g77 supports -c -o file.o... yes=0Achecking whether the g77 linker (/usr/bi= n//ld) supports shared libraries... yes=0Achecking dynamic linker character= istics... GNU/Linux ld.so=0Achecking how to hardcode library paths into pro= grams... immediate=0Achecking whether stripping libraries is possible... ye= s=0Achecking for special C compiler options needed for large files... no=0A= checking for =5FFILE=5FOFFSET=5FBITS value needed for large files... 64=0Ac= hecking for =5FLARGE=5FFILES value needed for large files... no=0Achecking = for nm... /usr/bin//nm -B=0Achecking whether to enable maintainer-specific = portions of Makefiles... no=0Achecking for some Win32 platform... no=0Achec= king whether build environment is sane... yes=0Achecking for strerror in -l= cposix... no=0Achecking for gcc option to accept ANSI C... none needed=0Ach= ecking for a BSD-compatible install... /usr/bin//install -c=0Achecking whet= her make sets $(MAKE)... (cached) yes=0Achecking for pkg-config... /usr/bin= //pkg-config=0Achecking pkg-config is at least version 0.9.0... yes=0Acheck= ing for BASE=5FDEPENDENCIES=5FCFLAGS...=0Achecking for BASE=5FDEPENDENCIES= =5FLIBS...=0Aconfigure: error: Package requirements (glib-2.0 >=3D 2.7.1 = atk >=3D 1.0.1 pango >=3D 1.9.0 cairo >=3D 0.9.2) were not met.=0ACo= nsider adjusting the PKG=5FCONFIG=5FPATH environment variable if you=0Ainst= alled software in a non-standard prefix.=0A=0AAlternatively you may set the= BASE=5FDEPENDENCIES=5FCFLAGS and BASE=5FDEPENDENCIES=5FLIBS environment va= riables=0Ato avoid the need to call pkg-config. See the pkg-config man pag= e for=0Amore details.=0A= --=_mixed 00558CBEC225718C_=-- From M.Kahn@Astronautics.com Tue Jun 13 21:49:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 031683B00C8 for ; Tue, 13 Jun 2006 21:49:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13055-01 for ; Tue, 13 Jun 2006 21:49:35 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 2BD423B00A5 for ; Tue, 13 Jun 2006 21:49:35 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68F54.A6C559FA" Subject: Button background colors Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FCB1D@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.203 tagged_above=-999 required=2 tests=[AWL=1.318, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -1.203 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 14 Jun 2006 01:49:37 -0000 X-Original-Date: Tue, 13 Jun 2006 20:48:39 -0500 X-List-Received-Date: Wed, 14 Jun 2006 01:49:37 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68F54.A6C559FA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C68F54.A6C559FA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to the = latest military and commercial aircraft control panels.  Thus I am = expected to be able to emulate this with the buttons on my GUI.  So far, I have = failed utterly with GTK.

 

My web searches led me to try some of these processes = – in particular, Havoc Pennington’s “GTK colors = mini-FAQ” is what led me to try using the gtk_widget_get_parent to get the container = widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned = NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which = means I managed to set the background of the Main Window but nothing else, = despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C68F54.A6C559FA-- From suryakiran.gullapalli@gmail.com Thu Jun 1 00:10:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24B3A3B00BB for ; Thu, 1 Jun 2006 00:10:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04016-08 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by menubar.gnome.org (Postfix) with ESMTP id 9B3453B00B8 for ; Thu, 1 Jun 2006 00:10:51 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so260553nzo for ; Wed, 31 May 2006 21:10:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=N+wbMTsUS0m6ybIQQ6WBzXon9fU/EEzIVq5El3whjJyUR4SAxxBUxIEOsBfVXkeL2YbImX2jAbHiSNiVELVdbozPa3i6O5WTSb6jawRIjg1MW1JZlhMea6gfJPV+YUdgdJ2gGLM2E/7KnKs55/7qEZslYRDyBuFifgtqtukaPXo= Received: by 10.36.160.15 with SMTP id i15mr231979nze; Wed, 31 May 2006 21:10:50 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Wed, 31 May 2006 21:10:50 -0700 (PDT) Message-ID: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Date: Thu, 1 Jun 2006 09:40:50 +0530 From: "Surya Kiran Gullapalli" To: "Tor Lillqvist" In-Reply-To: <17533.16487.144000.523256@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1980_31614517.1149135050887" References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.185, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.28 X-Spam-Level: Cc: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 04:10:54 -0000 ------=_Part_1980_31614517.1149135050887 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > > That's what supposed to happen when one uses the ms-windows theme. > I've got it. The stock icons are coming with other themes. Thanks, Surya ------=_Part_1980_31614517.1149135050887 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
That's what supposed to happen when one uses the ms-windows theme.

I've got it. The stock icons are coming with other themes.
Thanks,
Surya
------=_Part_1980_31614517.1149135050887-- From kaminaga@sm.sony.co.jp Thu Jun 1 02:40:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 71ACE3B00EB for ; Thu, 1 Jun 2006 02:40:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10435-03 for ; Thu, 1 Jun 2006 02:40:55 -0400 (EDT) Received: from ns4.sony.co.jp (NS4.Sony.CO.JP [137.153.0.44]) by menubar.gnome.org (Postfix) with ESMTP id 2A5ED3B00CB for ; Thu, 1 Jun 2006 02:40:54 -0400 (EDT) Received: from mail7.sony.co.jp ([43.0.1.209]) Received: from mail7.sony.co.jp (localhost [127.0.0.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516eqQM024123 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id k516epjT024108 for ; Thu, 1 Jun 2006 15:40:52 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k516epY19677 for ; Thu, 1 Jun 2006 15:40:51 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k516fCXh017466 for ; Thu, 1 Jun 2006 15:41:12 +0900 (JST) Date: Thu, 01 Jun 2006 15:37:37 +0900 (JST) Message-Id: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> To: gtk-list@gnome.org From: Hiroki Kaminaga X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.184 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.184 X-Spam-Level: Subject: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 06:40:57 -0000 Hi, I'm trying to build GTK+ for ARM architecture, my target board is TI OMAP Starter Kit 5912 (OSK5912). >From the GTK+ FAQ, I built below package: pkg-config GNU make JPEG, PNG, TIFF libraries FreeType2 fontconfig (iconv was in glibc) gettext Glib Pango ATK and when I tryed to build GTK+, configure gave me below message: * * * checking for X... no configure: error: X development libraries not found * * * Is X required package? ARM has a limited resource, so if it is not necessary, I would like to avoid installing it. Thanks in Advance. (Hiroki Kaminaga) t -- From carlo-ag@libero.it Thu Jun 1 03:15:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CA9B63B0C35 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11982-05 for ; Thu, 1 Jun 2006 03:15:40 -0400 (EDT) Received: from relay-pt1.poste.it (relay-pt1.poste.it [62.241.4.164]) by menubar.gnome.org (Postfix) with ESMTP id C4C5A3B0109 for ; Thu, 1 Jun 2006 03:15:39 -0400 (EDT) Received: from [192.168.1.52] (151.37.218.171) by relay-pt1.poste.it (7.2.063) (authenticated as carlo.agrusti@poste.it) id 44119E620017FBFA for gtk-list@gnome.org; Thu, 1 Jun 2006 09:15:38 +0200 Message-ID: <447E9418.5010106@libero.it> Date: Thu, 01 Jun 2006 09:15:36 +0200 From: Carlo Agrusti User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> In-Reply-To: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> X-Enigmail-Version: 0.93.0.0 OpenPGP: id=9C055DBF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.476 tagged_above=-999 required=2 tests=[AWL=-0.785, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.476 X-Spam-Level: Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:15:41 -0000 Hiroki Kaminaga ha scritto lo scorso 01/06/2006 08:37: > Hi, > > I'm trying to build GTK+ for ARM architecture, my target board is > TI OMAP Starter Kit 5912 (OSK5912). > >>From the GTK+ FAQ, I built below package: > pkg-config > GNU make > JPEG, PNG, TIFF libraries > FreeType2 > fontconfig > (iconv was in glibc) > gettext > Glib > Pango > ATK > > and when I tryed to build GTK+, configure gave me below message: > * * * > checking for X... no > configure: error: X development libraries not found > * * * > > Is X required package? Yes, it is (unless you are using the old and unmaintained framebuffer back end). > ARM has a limited resource, so if it is not > necessary, I would like to avoid installing it. > Don't use full X server; if you enable KDrive, you will have a fully featured "tiny" X server for less than 1 MiB (compare it with a modern glibc environment and you will discover where your resources are used). From kaminaga@sm.sony.co.jp Thu Jun 1 03:46:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 793603B0C4E for ; Thu, 1 Jun 2006 03:46:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13720-10 for ; Thu, 1 Jun 2006 03:46:31 -0400 (EDT) Received: from ns6.sony.co.jp (NS6.Sony.CO.JP [137.153.0.32]) by menubar.gnome.org (Postfix) with ESMTP id 0334C3B0110 for ; Thu, 1 Jun 2006 03:46:29 -0400 (EDT) Received: from mail6.sony.co.jp ([43.0.1.208]) Received: from mail6.sony.co.jp (localhost [127.0.0.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRjJ023935; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail6.sony.co.jp (R8/Sony) with ESMTP id k517kRRt023922; Thu, 1 Jun 2006 16:46:27 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.191.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id k517kQY24496; Thu, 1 Jun 2006 16:46:26 +0900 (JST) Received: from localhost (tidal.sm.sony.co.jp [43.4.195.112]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id k517kk68014618; Thu, 1 Jun 2006 16:46:47 +0900 (JST) Date: Thu, 01 Jun 2006 16:43:12 +0900 (JST) Message-Id: <20060601.164312.41633181.kaminaga@sm.sony.co.jp> To: carlo-ag@libero.it From: Hiroki Kaminaga In-Reply-To: <447E9418.5010106@libero.it> References: <20060601.153737.74753890.kaminaga@sm.sony.co.jp> <447E9418.5010106@libero.it> X-Mailer: Mew version 4.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: building GTK+ on ARM X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:46:32 -0000 From: Carlo Agrusti > Don't use full X server; if you enable KDrive, you will have a fully > featured "tiny" X server for less than 1 MiB (compare it with a modern > glibc environment and you will discover where your resources are used). Thank you! (Hiroki Kaminaga) t -- From kereoz@yahoo.fr Thu Jun 1 04:42:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F0E363B00DE for ; Thu, 1 Jun 2006 04:42:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17618-03 for ; Thu, 1 Jun 2006 04:42:36 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id C57323B00CD for ; Thu, 1 Jun 2006 04:42:35 -0400 (EDT) Received: (qmail 90880 invoked by uid 60001); 1 Jun 2006 08:42:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SOSnkJ16bagATwum4KefozXDgJ6fNTELp2hlhxrZ18sFApRnFZ2uY4nD+XvPhLcAJLolKMxgKsoCZk2C0xq2bxeC1M45xM6rsDN3nmiDPbam+/dTLt9nVK8hBL/wJXkIJI+1e1bGiFduHMquH1OHHZO/CZysGRmiQOduxm7a+bw= ; Message-ID: <20060601084234.90878.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 01 Jun 2006 10:42:34 CEST Date: Thu, 1 Jun 2006 10:42:34 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.36 tagged_above=-999 required=2 tests=[AWL=-0.319, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.36 X-Spam-Level: Subject: Re: Widgets overlap X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 08:42:39 -0000 Hi, First, thanks for your answers :) But I didn't ask the good question : in fact, I'd like to overlap a video output widget and a Mozilla gecko widget. I want to put the browser on top of the video output, so you can see the video through the brower. In a word, the browser should be transparent. I know this is possible to do such things when the video widget works with framebuffer. Some poeple did such things with DirectX already, and I'm looking for a way to do it with GTK. Christophe HAUSER http://kereoz.sup.fr ___________________________________________________________________________ Yahoo! Mail r閕nvente le mail ! D閏ouvrez le nouveau Yahoo! Mail et son interface r関olutionnaire. http://fr.mail.yahoo.com From katsuo_harada_evil_does@hotmail.com Thu Jun 1 11:17:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C53B13B0DB9 for ; Thu, 1 Jun 2006 11:17:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15140-10 for ; Thu, 1 Jun 2006 11:17:02 -0400 (EDT) Received: from hotmail.com (bay105-f37.bay105.hotmail.com [65.54.224.47]) by menubar.gnome.org (Postfix) with ESMTP id BC3F83B0DA9 for ; Thu, 1 Jun 2006 11:16:58 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Jun 2006 08:16:57 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 01 Jun 2006 15:16:55 GMT X-Originating-IP: [86.200.250.161] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Thu, 01 Jun 2006 17:16:55 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 01 Jun 2006 15:16:57.0804 (UTC) FILETIME=[6C7428C0:01C6858E] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.275 tagged_above=-999 required=2 tests=[AWL=0.891, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BG=0.077] X-Spam-Score: 0.275 X-Spam-Level: Subject: GLib 2.11.1 FreeBSD make fails X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 15:17:07 -0000 Hello, All! I've already posted a make issue here not so long time ago. Here we come again. For a history i'm building a desktop station based on FreeBSD 4.11-RELEASE (GENERIC) kernel. while building GLib-2.11.1 i've got the following errors : http://pages-perso.esil.univ-mrs.fr/~vdoljiko/pub/make.log +++++++ HERE COMES AN EXTRAIT ++++++++ [SNIP] Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r [COMMENT] Notice the presence of -lc_r option [/COMMENT] gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib [COMMENT] Notice the absence of the -lc_r option [/COMMENT] gcc: unrecognized option `-pthreads' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_signal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getspecific' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_exit' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_equal' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setscope' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_broadcast' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_key_create' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setstacksize' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_unlock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_self' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_lock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_wait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_trylock' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_destroy' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_mutex_init' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_setdetachstate' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_join' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_cond_timedwait' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_attr_getschedparam' ../../gthread/.libs/libgthread-2.0.so: undefined reference to `pthread_setspecific' *** Error code 1 Stop in /home/libs/glib-2.11.1/tests/refcount. *** Error code 1 Stop in /home/libs/glib-2.11.1/tests. *** Error code 1 Stop in /home/libs/glib-2.11.1. *** Error code 1 Stop in /home/libs/glib-2.11.1. ++++++++++++++ END +++++++++++++++++++++++++++ as you can see the problem comes IMHO from badly compiled libgthread because it was compiled without -lc_r option. libc_r.a is the implementation of threads on FreeBSD system. During configure of GLib-2.11.1 i've specified LIBS=-lc_r and even LDFLAGS=-lc_r (!!! :-) ) but libgthread IMHO wasn't properly compiled. It seems that libtool and compagny line invoked from Makefile preserves -lc_r option but the effective command doesn't include -lc_r option as you can see in the example above. BUT libgthread don't reference pthread functions as result we get the above errors. 2. as you can see the line Making all in refcount /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -lc_r -o closures closures.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gthread/libgthread-2.0.la -pthreads -lintl -lc_r specifies -lc_r option BUT when executing the effective command this option is not present! WHY! i'm using GNU make latest specially build for freetype build. i've solved the problem by manually writing gcc -g -O2 -Wall -o .libs/closures closures.o -pthreads ../../glib/.libs/libglib-2.0.so -L/usr/lib ../../gobject/.libs/libgobject-2.0.so ../../gthread/.libs/libgthread-2.0.so /home/libs/glib-2.11.1/glib/.libs/libglib-2.0.so /usr/lib/libiconv.so /usr/lib/libintl.so /usr/test/libiconv/lib/libiconv.so -Wl,--rpath -Wl,/usr/test/glib-2.11.1/lib -Wl,--rpath -Wl,/usr/test/libiconv/lib -lc_r in Makefile in tests/refcount directory for each target (closures properties signals) and it worked, but i'm wondering if there won't be any problems on run-time ??? i should also say that the exactly the same problem occurs in test directory whiile compiling error-mutex-something.c what can you say about this ??? how should i proceed in order to build "proper" glib-2.11.1 ??? p.s while compiling pkg-config early i've got the same problems but in gthread subdirectory. was solved in the same manner by mannualy adding -lc_r option but not in make file but on the command line. as make checks for newer versions and dependencies it was sufficent. but in GLib-2.11.1 compiling mannually don't work because of rm -f before building each target. -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From dkasak@nusconsulting.com.au Thu Jun 1 22:11:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 095BB3B0196 for ; Thu, 1 Jun 2006 22:11:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23630-03 for ; Thu, 1 Jun 2006 22:11:15 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 9D4E63B010C for ; Thu, 1 Jun 2006 22:11:14 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k522CNvG022220; Fri, 2 Jun 2006 12:12:23 +1000 Message-ID: <447F9E48.6090304@nusconsulting.com.au> Date: Fri, 02 Jun 2006 12:11:20 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Surya Kiran Gullapalli , gtk-list@gnome.org References: <447BD8D6.6060201@fluent.co.in> <17532.4652.113000.859438@gargle.gargle.HOWL> <3462bcdb0605300556u53c563dai9626a6c42a13a98c@mail.gmail.com> <3462bcdb0605302205iff4db2cyfa7e2515b63fb7ca@mail.gmail.com> <17533.16487.144000.523256@gargle.gargle.HOWL> <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> In-Reply-To: <3462bcdb0605312110g7d0c9974l53192508be0b611e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 451465 - be5dc1df8278 X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=451465&m=be5dc1df8278 X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=451465&m=be5dc1df8278 X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=451465&m=be5dc1df8278 X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.428 tagged_above=-999 required=2 tests=[AWL=0.171, BAYES_00=-2.599] X-Spam-Score: -2.428 X-Spam-Level: Cc: Subject: Re: Win32 Binaries X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 02:11:17 -0000 Surya Kiran Gullapalli wrote: > > That's what supposed to happen when one uses the ms-windows theme. > > > I've got it. The stock icons are coming with other themes. > Thanks, > Surya How are you installing / changing themes under Windows? I've been using a utility from http://members.lycos.co.uk/alexv6/ but if there are others, I'd like to know. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From lists@nabble.com Fri Jun 2 01:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A34C53B030A for ; Fri, 2 Jun 2006 01:41:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32639-07 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 15A363B0341 for ; Fri, 2 Jun 2006 01:41:36 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm2Pf-0007IZ-7Z for gtk-list@gnome.org; Thu, 01 Jun 2006 22:41:35 -0700 Message-ID: <4674575.post@talk.nabble.com> Date: Thu, 1 Jun 2006 22:41:35 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <43ACACCA.70309@micahcarrick.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <43ACACCA.70309@micahcarrick.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 05:41:37 -0000 Maybe I am having the same question as you do. I am trying to display a 24bit image with size 2048X2048 pixels, and following is my code: //create a GdkPixbuf GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer GDK_COLORSPACE_RGB, //COLORSPACE FALSE, // has_alpha, 8, // int bits_per_sample, 2048, // int width, 2048, // int height, 2048*3, // sizeX*3; //int rowstride, NULL, //GdkPixbufDestroyNotify destroy_fn, NULL //gpointer destroy_fn_data); ); //display img GtkWidget* img = lookup_widget(MainWnd, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(img), //GtkImage *image, pb// GdkPixbuf *pixbuf ); the results i got is that: the image did appear, but the sizes are shrinked as 684 X 684 , and there are THREE same images tile in the viewport, the first and last ones are clipped. Can anyone tell me how to fix this? thanks!! -- View this message in context: http://www.nabble.com/Help-with-GdkPIxbuf-and-GtkImage...-t800118.html#a4674575 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Fri Jun 2 03:28:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 436273B08CC for ; Fri, 2 Jun 2006 03:28:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06135-06 for ; Fri, 2 Jun 2006 03:28:26 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1BD913B1044 for ; Fri, 2 Jun 2006 03:28:21 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm44x-0003Cd-RJ for gtk-list@gnome.org; Fri, 02 Jun 2006 00:28:19 -0700 Message-ID: <4675519.post@talk.nabble.com> Date: Fri, 2 Jun 2006 00:28:19 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <20060314073947.e7cba872.lists@elehack.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.527 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.527 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:28:29 -0000 Hi Michael, I am a beginner in Linux programming, and your suggestion works! But I am still having some problem that the CPU usage is always 100% after the program starts. Could you please look at my code below and give me some suggestion? Thanks a lot!!! Following is some of my code: // idle handler of the main loop gboolean OnIdle(int msgQid) { if(thread_signal) { RefreshImage(); } return TRUE; } int main (int argc, char *argv[]) { gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); //register an idle handler to update the image when the background thread emits a signal gdk_threads_enter(); g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a * PyGTK/GTKmm guy, so the C stuff * isn't my forte */ gdk_threads_leave(); MainWnd = create_MainWnd (); gtk_widget_show (MainWnd); gtk_main (); return 0; } -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Fri Jun 2 03:45:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F5423B1055 for ; Fri, 2 Jun 2006 03:45:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07057-07 for ; Fri, 2 Jun 2006 03:45:02 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id F1BFC3B104E for ; Fri, 2 Jun 2006 03:45:01 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp1-g19.free.fr (Postfix) with ESMTP id 9B0EE9A3E2; Fri, 2 Jun 2006 09:45:00 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4675519.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 09:47:58 +0200 Message-Id: <1149234479.10209.10.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.848 tagged_above=-999 required=2 tests=[AWL=-0.395, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.848 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 07:45:03 -0000 Le vendredi 02 juin 2006 00:28 -0700, heavenscape a 閏rit : > Hi Michael, > > I am a beginner in Linux programming, and your suggestion works! But I am > still having some problem that the CPU usage is always 100% after the > program starts. Could you please look at my code below and give me some > suggestion? > > Thanks a lot!!! > > Following is some of my code: > > // idle handler of the main loop > gboolean OnIdle(int msgQid) > { > if(thread_signal) > { > RefreshImage(); > } > return TRUE; > } Do you need to reexecute indefinitely this idle handler? If not use: return FALSE; > int main (int argc, char *argv[]) > { > gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, > argc, argv, > GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, > NULL); > > //register an idle handler to update the image when the background thread > emits a signal > gdk_threads_enter(); > g_idle_add(OnIdle, nMsgQID); /* may need some macros here; I'm a > * PyGTK/GTKmm guy, so the C stuff > * isn't my forte */ > gdk_threads_leave(); > > MainWnd = create_MainWnd (); > gtk_widget_show (MainWnd); > > gtk_main (); > return 0; > } > > -- > View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4675519 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From lists@nabble.com Fri Jun 2 06:33:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D3563B03E4 for ; Fri, 2 Jun 2006 06:33:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18136-04 for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 6ACDD3B030A for ; Fri, 2 Jun 2006 06:33:25 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Fm6y0-0004Vq-NT for gtk-list@gnome.org; Fri, 02 Jun 2006 03:33:20 -0700 Message-ID: <4677462.post@talk.nabble.com> Date: Fri, 2 Jun 2006 03:33:20 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org In-Reply-To: <1149234479.10209.10.camel@athlon.brefort.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 10:33:27 -0000 Yes! My background thread will send a message when it has finished something, so I do need the check the message status frequently. If my OnIdle function return false, it will never be called again, and therefore cannot monitor the message status any more. Is there any alternate solution? Thanks a lot!! -- View this message in context: http://www.nabble.com/Thread-generated-signals-t1278505.html#a4677462 Sent from the Gtk+ - General forum at Nabble.com. From george@clipper.ens.fr Fri Jun 2 09:36:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CE273B0401 for ; Fri, 2 Jun 2006 09:36:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29496-08 for ; Fri, 2 Jun 2006 09:36:35 -0400 (EDT) Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by menubar.gnome.org (Postfix) with ESMTP id 0462C3B03FE for ; Fri, 2 Jun 2006 09:36:34 -0400 (EDT) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id k52DaXPt088553 for ; Fri, 2 Jun 2006 15:36:33 +0200 (CEST) X-Envelope-To: Received: from (george@localhost) by clipper.ens.fr (8.13.1/jb-1.1) Date: Fri, 2 Jun 2006 15:36:33 +0200 From: Nicolas George To: gtk-list@gnome.org Message-ID: <20060602133633.GA9572@clipper.ens.fr> References: <1149104973.27709.4.camel@localhost.localdomain> <7bf6f2dc0606010816q15d512aejc30a6c93bc165e6@mail.gmail.com> <1149253312.4847.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <1149253312.4847.21.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.10 (nef2.ens.fr [129.199.96.32]); Fri, 02 Jun 2006 15:36:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[AWL=0.054, BAYES_00=-2.599] X-Spam-Score: -2.545 X-Spam-Level: Subject: Re: Color space transformations in GTK X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 13:36:38 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le quartidi 14 prairial, an CCXIV, Carlos Eduardo Rodrigues Diogenes a =E9c= rit=A0: > I think that it will help who want to play with colors in a quick way. I > don't find this in any other library, and I thinked that GTK+ could be a > good place for this, because it will become easiest to work with other > colors representations in GTK+ applications. Did you try lcms ? Despite being quite complete, it is also simple for simple tasks. --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (SunOS) iD8DBQFEgD7hsGPZlzblTJMRAh3AAJ4y7eJCapcSqGa0p/kKpw5km+O+2QCfR5Xv BafttugMjFnieL87fO646B4= =R3g0 -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From Valdis.Kletnieks@vt.edu Fri Jun 2 10:32:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B6FA03B0272 for ; Fri, 2 Jun 2006 10:32:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32747-03 for ; Fri, 2 Jun 2006 10:32:00 -0400 (EDT) Received: from turing-police.cc.vt.edu (pool-72-66-198-190.ronkva.east.verizon.net [72.66.198.190]) by menubar.gnome.org (Postfix) with ESMTP id B51C63B0238 for ; Fri, 2 Jun 2006 10:31:59 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k52EVr54003265; Fri, 2 Jun 2006 10:31:53 -0400 Message-Id: <200606021431.k52EVr54003265@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: heavenscape In-Reply-To: Your message of "Thu, 01 Jun 2006 22:41:35 PDT." <4674575.post@talk.nabble.com> From: Valdis.Kletnieks@vt.edu References: <43ACACCA.70309@micahcarrick.com> <4674575.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1149258713_2700P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 02 Jun 2006 10:31:53 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.827 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961, RCVD_IN_NJABL_DUL=1.946, SPF_SOFTFAIL=1.384] X-Spam-Score: 1.827 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:32:02 -0000 --==_Exmh_1149258713_2700P Content-Type: text/plain; charset=us-ascii On Thu, 01 Jun 2006 22:41:35 PDT, heavenscape said: > //create a GdkPixbuf > GdkPixbuf* pb = gdk_pixbuf_new_from_data( pDisplayBuf, // data buffer > GDK_COLORSPACE_RGB, //COLORSPACE > FALSE, // has_alpha, > 8, // int bits_per_sample, > 2048, // int width, > 2048, // int height, > 2048*3, // sizeX*3; //int rowstride, > NULL, //GdkPixbufDestroyNotify destroy_fn, > NULL //gpointer destroy_fn_data); > ); > the results i got is that: the image did appear, but the sizes are shrinked > as 684 X 684 , and there are THREE same images tile in the viewport, the > first and last ones are clipped. 684 is 2048/3, plus rounding. Are you sure that when you *loaded* the image into your pDisplayBuf, you correctly calculated where the various bytes go? Assuming pixel values r, g, and b, storing them into your pDisplayBuf for a given x,y (0-based coordinates 0..2047) is like this: pDisplayBuf[x*3+y] = r; pDisplayBuf[x*3+y+1] = g; pDisplayBuf[x*3+y+2] = b; Hmm... using x+y instead of x*3+y will produce a 1/3 width image and 2/3 trash. Other possibility is you're using 3*y+x instead (confusion of x/y between your code and what Gdk expects). --==_Exmh_1149258713_2700P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEgEvZcC3lWbTT17ARAhTUAJ4zzY8i6PbLXYW709arggnJGSHTEgCg6YNz WALAkmi+KDAQus4gx/9nsnc= =/pC/ -----END PGP SIGNATURE----- --==_Exmh_1149258713_2700P-- From jean.brefort@normalesup.org Fri Jun 2 10:58:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 708E23B1174 for ; Fri, 2 Jun 2006 10:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01643-02 for ; Fri, 2 Jun 2006 10:58:23 -0400 (EDT) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id 73B6A3B1194 for ; Fri, 2 Jun 2006 10:58:18 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id CA2F254B3D; Fri, 2 Jun 2006 16:58:16 +0200 (CEST) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 17:01:16 +0200 Message-Id: <1149260476.8914.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.89 tagged_above=-999 required=2 tests=[AWL=-0.360, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.89 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:58:41 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? You can use a timer, or display the message from your thread, or ... from the thread, you might use something as: gdk_threads_enter(); RefreshImage(); gdk_threads_leave(); From patrick.jacquotf@free.fr Fri Jun 2 14:47:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C93393B01E0 for ; Fri, 2 Jun 2006 14:47:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15276-10 for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 6763B3B01BA for ; Fri, 2 Jun 2006 14:47:52 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp6-g19.free.fr (Postfix) with ESMTP id 62746226CC; Fri, 2 Jun 2006 20:47:48 +0200 (CEST) From: Patrick Jacquot To: heavenscape In-Reply-To: <4677462.post@talk.nabble.com> References: <20060314130411.GA28584@clipper.ens.fr> <20060314073947.e7cba872.lists@elehack.net> <4675519.post@talk.nabble.com> <1149234479.10209.10.camel@athlon.brefort.fr> <4677462.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 02 Jun 2006 20:47:40 +0200 Message-Id: <1149274060.8687.52.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Thread-generated signals X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 18:47:54 -0000 Le vendredi 02 juin 2006 03:33 -0700, heavenscape a 閏rit : > Yes! My background thread will send a message when it has finished something, > so I do need the check the message status frequently. > > If my OnIdle function return false, it will never be called again, and > therefore cannot monitor the message status any more. > > Is there any alternate solution? Usually, one establishes a callback function to to be called when a message is due to be serviced. I'm not fluent in GTK programming (nor in English), but all GUI systems work so. -- Patrick From gnome-gtk-list@m.gmane.org Sun Jun 4 19:35:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4EAE3B0429 for ; Sun, 4 Jun 2006 19:35:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18939-10 for ; Sun, 4 Jun 2006 19:35:11 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 0D3193B0409 for ; Sun, 4 Jun 2006 19:35:10 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fn27a-0002sx-IN for gtk-list@gnome.org; Mon, 05 Jun 2006 01:35:02 +0200 Received: from cpe-72-130-182-162.san.res.rr.com ([72.130.182.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 Received: from swbrown by cpe-72-130-182-162.san.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jun 2006 01:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Steven Brown Date: Sun, 04 Jun 2006 16:27:05 -0700 Lines: 9 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe-72-130-182-162.san.res.rr.com User-Agent: Thunderbird 1.5.0.2 (X11/20060516) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.524 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.524 X-Spam-Level: Subject: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2006 23:35:12 -0000 I've been going through the glib docs trying to find a simple way to get my fd polled by glib's main loop and call me back, but I've not found anything near simple. Is there such a way? E.g., something like gdk_input_add (which says it's deprecated but doesn't say by what). I see that it could be implemented by a custom g_source_new and such, but doing so is a pretty huge amount of code for what should be a one-liner. I must be missing something obvious. From tristan.van.berkom@gmail.com Sun Jun 4 20:22:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7D323B0531 for ; Sun, 4 Jun 2006 20:22:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21420-01 for ; Sun, 4 Jun 2006 20:22:16 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id ABF0A3B05C2 for ; Sun, 4 Jun 2006 20:22:09 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i3so885889wra for ; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=rGr3/uC/YjBwRnO7oTslcMuIA9XLNEuzYxfx1mSmalOpfI5DfMvRkAHrJm5Uu4mO4fRWnEh4XiD/dS6k78RZC8DI+4xudasUUhtMNMAELaVGjCd2ZwBoZwXs7im6w9gxcnx+XmxCfeSUgDeWR1qP4mLIJ8IYyx0sU8kTo2Z5nKA= Received: by 10.54.111.13 with SMTP id j13mr4300960wrc; Sun, 04 Jun 2006 17:22:09 -0700 (PDT) Received: from ?66.48.170.25? ( [66.48.170.25]) by mx.gmail.com with ESMTP id 33sm2256255wra.2006.06.04.17.22.06; Sun, 04 Jun 2006 17:22:08 -0700 (PDT) Message-ID: <44837CEA.9020604@gnome.org> Date: Sun, 04 Jun 2006 20:38:02 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Brown References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.196 tagged_above=-999 required=2 tests=[AWL=0.404, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.196 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Simple way to get a fd polled in glib? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 00:22:20 -0000 Steven Brown wrote: >I've been going through the glib docs trying to find a simple way to get >my fd polled by glib's main loop and call me back, but I've not found >anything near simple. Is there such a way? E.g., something like >gdk_input_add (which says it's deprecated but doesn't say by what). > >I see that it could be implemented by a custom g_source_new and such, >but doing so is a pretty huge amount of code for what should be a >one-liner. I must be missing something obvious. > > > Well its not a one-liner... but something close to a one-liner: ================================== GIOChannel *channel = g_io_channel_unix_new (fd_to_poll); guint source_id = g_io_add_watch (channel, /* args of add_watch... */); /* For convenience... pass ownership of the channel to the attached GIOWatchSource */ g_object_unref (channel); /* .... */ At this point your callback will be called under the conditions you specified... when you are finished with the polling... you should call g_source_remove(source_id); and this will get rid of the io channel object as well as your poll function. ================================== Cheers, -Tristan From mclasen@redhat.com Mon Jun 5 14:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 744343B09D3; Mon, 5 Jun 2006 14:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20278-06; Mon, 5 Jun 2006 14:15:01 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id D637E3B0988; Mon, 5 Jun 2006 14:15:00 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF08I024331; Mon, 5 Jun 2006 14:15:00 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55IF0I9021827; Mon, 5 Jun 2006 14:15:00 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55IExAV012588; Mon, 5 Jun 2006 14:14:59 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Mon, 05 Jun 2006 14:14:59 -0400 Message-Id: <1149531299.4071.35.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: Cc: Subject: GLib 2.11.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 18:15:03 -0000 GLib 2.11.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.2.tar.bz2 md5sum: 18464b85bfd589f83897623c637a1553 glib-2.11.2.tar.gz md5sum: f728cd295ac98d4b95d850fe91c05fd5 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.1 to GLib 2.11.2 =================================================== * Add g_ascii_stroll to parse signed 64bit integers * GMarkup: add a flag to treat CDATA as text * GHashTable: add functions to remove all entries * GMainLoop: add functions to find the currently running source, and determine if it is destroyed * Bug fixes: 342563 g_atomic_thread_init() needs to be called before other _g_*_thread_init() functions 343548 Potential use after free in callers of g_string_free() 168538 Wish: Clearing contents of GHashTables 321886 GTK+ cannot be reliably used in multi-threaded applications 341826 goption.c: 'strtoll' is C99's function 343899 g_ascii_formatd dosn't work as expected for all format strings 317793 Make GEnumValue strings const 337129 Compile warnings in G_IMPLEMENT_INTERFACE 303622 What is G_TYPE_CHAR? * Updated translations (bg,dz,eu,gl,ja,nl,th,vi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=341826,342563,343548,168538,168538,321886,343899,321886,317793,337129,303622 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Peter Kjellerstedt, Kazuki Iwamoto Leonard den Ottolander, Chris Wilson, Behdad Esfahbod, Matt Barnes, 貀stein Johansen, Tim Janik Morten Welinder Matthias Clasen June 5, 2006 From mclasen@redhat.com Mon Jun 5 16:21:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 09B113B0543; Mon, 5 Jun 2006 16:21:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28553-01; Mon, 5 Jun 2006 16:21:32 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 0F8903B0012; Mon, 5 Jun 2006 16:21:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLVn7006951; Mon, 5 Jun 2006 16:21:31 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k55KLUBq020469; Mon, 5 Jun 2006 16:21:31 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k55KLUAV025318; Mon, 5 Jun 2006 16:21:30 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 05 Jun 2006 16:21:30 -0400 Message-Id: <1149538890.4071.40.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_XI=0.077] X-Spam-Score: -2.429 X-Spam-Level: Cc: Subject: GTK+ 2.9.2 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 20:21:34 -0000 GTK+ 2.9.2 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.2.tar.gz md5sum: c63e7d0cf7c4e983206c3088a0fb8862 gtk+-2.9.2.tar.bz2 md5sum: 17629437af44fce03485101371c8f041 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.1 to 2.9.2 ============================================ * GtkPrintOperation - Support asynchronous pagination with the ::paginate signal - Add gtk_print_operation_cancel - Support application-specific widgets - Allow disabling features based on application capabilities - Optionally show progress - Change some function names in GtkPrintContext to be longer and better - Support preview, the default implementation spawns evince, but the api allows for an internal preview implementation * GtkCellView - Add a model property * GtkStatusIcon - Allow to obtain screen geometry * GtkTreeView - Many bug fixes, in particular for RTL handling - Separate sensitive and selectable properties of rows - Optionally allow rubberband selection * GtkButton - Add image-spacing style property - Add image-position property * GtkToolButton - Add icon-spacing style property * Make GTK+ work as an untrused X client * Bugs fixed: 343838 gtkprintoperationpreview.h guards 305530 Crashes while creating source code w/GtkFontSelection 341327 Memory corruption inside glib 341734 cursor blocked to dnd mode after using shift and dnd on a GtkCalendar 343453 G_DEFINE_TYPE messes up internal typenames of GdkWindow and GdkPixmap 136571 Problems running as untrusted client 168105 the right edge tab does not appear when switching tab 172535 Add support for UI builders in gtk+ 302556 GtkTreeView widget signals are badly documented 324480 Selecting first item with keyboard is difficult 340428 small cleanup 340444 don't run the custom page size dialogue 340839 Critical warnings in GtkTreeModelFilter 341898 gtk_tree_view_insert_column_with_attributes doesn't work with fixed_height_mode 342003 DnD: Conditional jump or move depends on uninitialised value 342072 Wrong drop location in GtkEntry 342096 GtkImage animation CRITICALS on switching themes 342513 widget class style property with type module 342529 gdk should set resolution on PangoCairoFontmap, not PangoCairoContext 342535 Add documentation for new GtkWidget style properties (including Since tags) 342543 can't compile gtk+ on opensolaris using sun cc 342569 Typo in decl of gdk_color_parse 342752 Need a way to specify custom tab label for custom page in Print dialog 342754 print-editor: font button dialog doesn't get focus if main window has a window group 342781 GtkPrintUnixDialog: Collate should be insensitive unless Copies is > 1 342783 GtkPrintUnixDialog: Range textinput area should be insensitive unless range radiobutton is selected 342894 Use after free inside gtk_text_view_set_buffer 342930 GtkButton should offer a way to position the image relative to the text 343088 Some typos in the PO file 343425 "grab-notify"-signal is not correctly propagated for internal children 343438 gtk_color_button_set_color() doesn't emit "color-set" signal 343475 page setup unix dialog confusion 343625 allow to get only some info from gtk_status_icon_get_geometry 343677 GtkWindow chains key-release to key-press 320431 Text too close when using East/West in a GtkToolButton 321523 GtkTreeView's test_expand_row signal emitting impractical on row expand all 342007 Warning in gtk_paned_compute_position 343233 gdk_rectangle_intersect doc 333284 expander animation not working in RTL mode 343444 change color of gtk-demo source-buffer comment color from red to DodgerBlue 343630 Small inconsistence in migration documentation 80127 Rubberbanding for GtkTreeView 341450 status icon + libnotify 341679 Allow absolute filenames in the options entries * Updated translations (bg,cy,de,el,es,et,eu,gl,gu,it,ja, nb,nl,pt_BR,th,vi) Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Alexander Larsson, Behdad Esfahbod, Benjamin Berg, Caolan McNamara, Carlos Garnacho Parro, Carol Spears, Christian Persch, Chris Wilson, Claudio Saavedra, Clytie Siddall, Damon Chaplin, Daniel Lindenaar, Dan Winship, Diana Fong, Ed Catmur, Emmanuele Bassi, Havoc Pennington, Henrique Romano, Hiroyuki Ikezoe, James Moger, Johan Dahlin, Kouhei Sutou, Kristian Rietveld, Markku Vire, Mart Raudsepp, Masatake Yamato, Michael Emmel, Michael Natterer, Murray Cumming, Olexiy Avramchenko, Paolo Borelli, Patrick Monnerat, Richard Hult, Sampo Savolainen, Sebastien Bacher, Srirama Sharma, Stefan Kost, Tim Janik, Tommi Komulainen, Tor Lillqvist, Yevgen Muntyan A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=342072,342096,342003,341734,305530,168105,342007,342529,342535,342543,342569,341679,342752,172535,342513,342781,342783,342754,136571,341450,333284,340428,340839,341898,321523,343088,343233,324480,342894,320431,342930,343453,343425,343438,343444,340444,343475,302556,343677,343625,80127,343838,341327,168105,343630 Matthias Clasen June 5, 2006 From katsuo_harada_evil_does@hotmail.com Mon Jun 5 17:23:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 859933B03A0 for ; Mon, 5 Jun 2006 17:23:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01136-07 for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from hotmail.com (bay105-f27.bay105.hotmail.com [65.54.224.37]) by menubar.gnome.org (Postfix) with ESMTP id 80FF43B086B for ; Mon, 5 Jun 2006 17:23:25 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 14:23:24 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 21:23:22 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com From: "Vitaly D" To: gtk-list@gnome.org Date: Mon, 05 Jun 2006 23:23:22 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 21:23:24.0257 (UTC) FILETIME=[470DA510:01C688E6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.332 tagged_above=-999 required=2 tests=[AWL=-0.716, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.332 X-Spam-Level: Subject: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:23:28 -0000 Hello, i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 when running gtk-demo -> UI Manger demo i've got the following output http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log when trying File menu. is it a bug or not ??? -- Best Regards Vitaly katsuo_harada_evil_does [at] hotmail [dot] com Marseille Nice _________________________________________________________________ Windows Live Messenger : venez tester la version b阾a ! http://www.ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73 From tomasek@ebed.etf.cuni.cz Mon Jun 5 17:57:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 048853B0963 for ; Mon, 5 Jun 2006 17:57:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03329-04 for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (ebed.etf.cuni.cz [195.113.5.3]) by menubar.gnome.org (Postfix) with ESMTP id 1BFA13B086C for ; Mon, 5 Jun 2006 17:57:51 -0400 (EDT) Received: from ebed.etf.cuni.cz (localhost.localdomain [127.0.0.1]) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11) with ESMTP id k55LkIq0015361 for ; Mon, 5 Jun 2006 23:46:18 +0200 Received: (from tomasek@localhost) by ebed.etf.cuni.cz (8.12.11.20060308/8.12.11/Submit) id k55LkIAG015359 for gtk-list@gnome.org; Mon, 5 Jun 2006 23:46:18 +0200 Date: Mon, 5 Jun 2006 23:46:18 +0200 From: Petr Tomasek To: gtk-list@gnome.org Message-ID: <20060605214618.GA14951@ebed.etf.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Homepage: http://www.etf.cuni.cz/~tomasek/ X-Echelon: bomb Arafat Intifada bus kach drugs mafia boss heroin spy Semtex Saddam Al-Qaida Usama bin Ladin Bush Sharon X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.494 X-Spam-Level: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 21:57:53 -0000 On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > Hello, > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > when running gtk-demo -> UI Manger demo i've got the following output > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > when trying File menu. is it a bug or not ??? Did you also update the gtk2-engines? -- Petr Tomasek From katsuo_harada_evil_does@hotmail.com Mon Jun 5 18:13:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A06E33B08BD for ; Mon, 5 Jun 2006 18:13:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04035-10 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from hotmail.com (bay105-f10.bay105.hotmail.com [65.54.224.20]) by menubar.gnome.org (Postfix) with ESMTP id 1E6233B0929 for ; Mon, 5 Jun 2006 18:13:07 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Jun 2006 15:13:06 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 05 Jun 2006 22:13:05 GMT X-Originating-IP: [86.211.135.80] X-Originating-Email: [katsuo_harada_evil_does@hotmail.com] X-Sender: katsuo_harada_evil_does@hotmail.com In-Reply-To: <20060605214618.GA14951@ebed.etf.cuni.cz> From: "Vitaly D" To: tomasek@etf.cuni.cz, gtk-list@gnome.org Date: Tue, 06 Jun 2006 00:13:05 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 05 Jun 2006 22:13:06.0099 (UTC) FILETIME=[385EA030:01C688ED] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.375 tagged_above=-999 required=2 tests=[AWL=-0.759, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.375 X-Spam-Level: Cc: Subject: Re: gtk+-2.9.2 bug or not ??? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 22:13:11 -0000 >From: Petr Tomasek >To: gtk-list@gnome.org >Subject: Re: gtk+-2.9.2 bug or not ??? >Date: Mon, 5 Jun 2006 23:46:18 +0200 > >On Mon, Jun 05, 2006 at 11:23:22PM +0200, Vitaly D wrote: > > Hello, > > > > i've just installed fresh gtk+-2.9.2 and also Glib 2.11.2 > > > > when running gtk-demo -> UI Manger demo i've got the following output > > > > http://www.esil.univ-mrs.fr/~vdoljiko/pub/gtk-demo.log > > > > when trying File menu. is it a bug or not ??? > >Did you also update the gtk2-engines? what is gtk2-engines ? i'm using FreeBSD 4.11 with XFree86 4.6.0 with latest pango (1.13.1) atk (1.10.3) cairo (1.1.6) freetype (2.2.1) if this helps. otherwise i don't know what is gtk2-engines Cheers _________________________________________________________________ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://desktop.msn.fr/ From BillS@techsi.com Tue Jun 6 10:26:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 863103B0182 for ; Tue, 6 Jun 2006 10:26:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28454-01 for ; Tue, 6 Jun 2006 10:26:32 -0400 (EDT) Received: from mail.techsi.com (wsip-68-15-225-156.om.om.cox.net [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id B57E73B01B5 for ; Tue, 6 Jun 2006 10:26:31 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56EASAZ022954 for ; Tue, 6 Jun 2006 09:10:31 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 09:26:15 -0500 Message-ID: <00e901c68975$2e2455f0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EA_01C6894B.454E4DF0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.365 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.365 X-Spam-Level: Subject: Treeview - simulating / faking keyboard events to change selection / view X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 14:26:36 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I would like to simulate the functionality of the up and down, page up and down, and home and end keyboard keys to the treeview widget. So instead of writing all the scrolling functions myself, I would just like to use the existing ones within the treeview widget that are activated by keyboard events. So I would like to "trigger" the treeview widget into sensing that one of the keyboard buttons have been pressed that would scroll the treeview by line, page, or beginning or end of list. Thanks, Bill ------=_NextPart_000_00EA_01C6894B.454E4DF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I would like to simulate the functionality of the up and down, page = up and down, and home and end keyboard keys to the treeview widget.  So = instead of writing all the scrolling functions myself, I would just like to use = the existing ones within the treeview widget that are activated by keyboard events.  So I would like to “trigger” the treeview = widget into sensing that one of the keyboard buttons have been pressed that would = scroll the treeview by line, page, or beginning or end of = list.

 

Thanks,

Bill

 

------=_NextPart_000_00EA_01C6894B.454E4DF0-- From johannes_vuori@web.de Mon Jun 5 12:46:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 916763B026A for ; Mon, 5 Jun 2006 12:46:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15064-06 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by menubar.gnome.org (Postfix) with ESMTP id 5D9E53B0429 for ; Mon, 5 Jun 2006 12:46:50 -0400 (EDT) Reveived: from web.de by fmmailgate04.web.de (Postfix) with SMTP id 044A745BA for ; Mon, 5 Jun 2006 18:46:39 +0200 (CEST) Received: from [85.156.186.148] by freemailng1803.web.de with HTTP; Mon, 05 Jun 2006 18:46:38 +0200 Date: Mon, 05 Jun 2006 18:46:38 +0200 Message-Id: <814204608@web.de> MIME-Version: 1.0 From: johannes_vuori@web.de To: gtk-list@gnome.org Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.221 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, NO_REAL_NAME=0.961] X-Spam-Score: 0.221 X-Spam-Level: X-Mailman-Approved-At: Tue, 06 Jun 2006 11:17:41 -0400 Subject: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 16:46:51 -0000 Hi, I am developing a project with a friend. We are on the search for a good 2d graphics library, and I saw Your's. I would like to ask if the library for Windows and Linux use the same function names. So, if I would write this programm on a Linux system, would it be possible to simply install the Windows library on the Windows system, and without changing the names of the functions (of the library) in my programm, to compile it? Or are there slight/major changes we would have to do first? Is there also a c++ version for Windows? Yours sincerely, Johannes _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From tml@iki.fi Tue Jun 6 11:30:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7D50D3B0151 for ; Tue, 6 Jun 2006 11:30:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00836-04 for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 6E6E93B028A for ; Tue, 6 Jun 2006 11:30:55 -0400 (EDT) Received: from pettson.tml.iki.fi (MMMDCCLXVIII.tun.saunalahti.fi [213.169.6.168]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 8AB222166B5; Tue, 6 Jun 2006 18:30:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17541.40860.218000.127270@gargle.gargle.HOWL> Date: Tue, 6 Jun 2006 18:30:36 +0300 To: johannes_vuori@web.de In-Reply-To: <814204608@web.de> References: <814204608@web.de> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.328 tagged_above=-999 required=2 tests=[AWL=0.136, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.328 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Window's library's and Linux's library's differences X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 15:30:57 -0000 johannes_vuori@web.de writes: > I am developing a project with a friend. We are on the search for a > good 2d graphics library, Well, GTK+ isn't really a "2D graphics library". Maybe you are using the term loosely, or should you look on cairo instead? > I would like to ask if the library for Windows and Linux use the > same function names. Of course, it wouldn't make any sense otherwise, would it? (There are a few platform-specific functions that have x11 or win32 in their names, but they are very special-case.) > So, if I would write this programm on a Linux system, would it be > possible to simply install the Windows library on the Windows > system, and without changing the names of the functions (of the > library) in my programm, to compile it? If you program otherwise is portable, and if you take into consideration some relatively straightforward rules of thumb to follow, sure. (See http://www.iki.fi/tml/fosdem-2006.pdf ) It's best to build and test on both platforms continuously while developing the software, not just as a last-night effort, only to notice that you have made some fundamental nonportable design choice right at the start... > Is there also a c++ version for Windows? With C++ "version" I guess you mean gtkmm, which really isn't a "version", but a C++ binding on top of GTK+. Anyway, as far as I know, yes. Have never used it myself, though. --tml From BillS@techsi.com Tue Jun 6 18:09:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45303B02E8 for ; Tue, 6 Jun 2006 18:09:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25029-01 for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from mail.techsi.com (techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 7D7373B00BC for ; Tue, 6 Jun 2006 18:09:24 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k56LrZAZ026420 for ; Tue, 6 Jun 2006 16:53:37 -0500 From: "Bill Sousan" To: Date: Tue, 6 Jun 2006 17:09:16 -0500 Message-ID: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01A0_01C6898B.F3EC31C0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.499 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.499 X-Spam-Level: Subject: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 22:09:28 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Since I am using gtk with a touchscreen application, I have no keyboard. However, I am using a treeview widget and intend to have supporting button widgets to allow the user to scroll through the rows within the treeview widget. My challenge is that I need to indicate to the treeview widget how many rows to scroll up or down. Any suggestions on how to do this? I know I can position the cursor based on a path. However, that may be tricky in that the user may or may not have the sections within the tree expanded or not. Also, I would have to track how many rows are currently displayed within the current treeview. I other words, I need to emulate the user scrolling through the treeview by line, by page, or to the beginning or end. I think the begin or end would not be too bad. Thanks, Bill ------=_NextPart_000_01A0_01C6898B.F3EC31C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Since I am using gtk with a touchscreen application, I have no keyboard.  However, I am using a treeview widget and intend to have supporting button widgets to allow = the user to scroll through the rows within the treeview widget.  My = challenge is that I need to indicate to the treeview widget how many rows to scroll = up or down.  Any suggestions on how to do this?  I know I can = position the cursor based on a path.  However, that may be tricky in that the = user may or may not have the sections within the tree expanded or not.  = Also, I would have to track how many rows are currently displayed within the = current treeview.

 

I other words, I need to = emulate the user scrolling through the treeview by line, by page, or to the = beginning or end.  I think the begin or end would not be too bad. =

 

Thanks,

Bill

 

------=_NextPart_000_01A0_01C6898B.F3EC31C0-- From tristan.van.berkom@gmail.com Tue Jun 6 22:03:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 713AF3B0B0A for ; Tue, 6 Jun 2006 22:03:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04432-05 for ; Tue, 6 Jun 2006 22:03:23 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by menubar.gnome.org (Postfix) with ESMTP id D29193B02D7 for ; Tue, 6 Jun 2006 22:03:22 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id i12so280761wra for ; Tue, 06 Jun 2006 19:03:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MCzN6WRNDUHNO5h5KKbkczD+CTM0HLmY/6bgqc0T4C5mS7d+oONlRu0YSriqgEJ1voJGKRTu20Czmb2mSN30XDamoLYVDbg3g5mxYAC1GHnZo5g3K1n17wf+PRwcZ4om3AB//Xibs2oJvnB7udTlg8kvLvt40i+QFCqUYBhsAzA= Received: by 10.54.116.7 with SMTP id o7mr9068wrc; Tue, 06 Jun 2006 19:03:17 -0700 (PDT) Received: from ?66.48.170.73? ( [66.48.170.73]) by mx.gmail.com with ESMTP id g2sm1167040wra.2006.06.06.19.03.17; Tue, 06 Jun 2006 19:03:18 -0700 (PDT) Message-ID: <448637A8.7040007@gnome.org> Date: Tue, 06 Jun 2006 22:19:20 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Sousan References: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> In-Reply-To: <019f01c689b5$dcc239c0$db00a8c0@techsi.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.222 tagged_above=-999 required=2 tests=[AWL=0.378, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.222 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 02:03:25 -0000 Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From kereoz@yahoo.fr Wed Jun 7 04:20:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C11D3B0343 for ; Wed, 7 Jun 2006 04:20:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26466-05 for ; Wed, 7 Jun 2006 04:20:04 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id 01BE63B0217 for ; Wed, 7 Jun 2006 04:20:03 -0400 (EDT) Received: (qmail 35942 invoked by uid 60001); 7 Jun 2006 08:19:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=niZGyLE9Dw8mE00kfBFaSxDwB15y4KEkapVjfVMgSDMdAH1E/ZhaTeKOFuupaoYqxWtRPTUPUlGIB6Pv5xb7h7lX7E/wWCvHddhgrZ0RjJuwK/ZA8ZfGsDS3z7jKxNXIw9umiOI3oZWHTQjPQ6Vs2r+d4icV0Uwk9rpN2O0dCHY= ; Message-ID: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 07 Jun 2006 10:19:59 CEST Date: Wed, 7 Jun 2006 10:19:59 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.011 tagged_above=-999 required=2 tests=[AWL=-0.425, BAYES_20=-0.74, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.011 X-Spam-Level: Subject: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 08:20:07 -0000 Hi, I've got questions about building the gtkmozembed widget. Do I need to build mozilla or firefox from sources ? Mozilla or firefox ? Is there a way t build only the widget ? I would like to compile a gtk app using gtkmozembed (gtk mozilla widget) for ARM, so I need to have light libs. Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tonikitoo@gmail.com Wed Jun 7 08:39:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BF753B0D02 for ; Wed, 7 Jun 2006 08:39:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12108-03 for ; Wed, 7 Jun 2006 08:39:22 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id A14753B0CE7 for ; Wed, 7 Jun 2006 08:39:21 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167152wri for ; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pmn1n8Xl2f8npFFsBp5bWT5cMk8+QQwzmdfNwjtEPx4SzHfhwJ2Vo3DTFuksX7t+yf65LUhdLJSQ+Z3yRqc+xL/yhH8A/VtCZ+LLevuZhjds3Id1CFNC0DntHXlO4aR7kNGKNFvCOi5kvYaGMNA2hgO3T68tEVs7PhWvlYsne48= Received: by 10.65.98.11 with SMTP id a11mr307127qbm; Wed, 07 Jun 2006 05:39:20 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:39:20 -0700 (PDT) Message-ID: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> Date: Wed, 7 Jun 2006 08:39:20 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.18 tagged_above=-999 required=2 tests=[AWL=0.189, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.18 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:39:23 -0000 you could try building xulrunner with the --with-gecko-profile=minimal set, from the branch MOZILLA_1_8_BRANCH [pulling] export MOZ_CO_TAG=MOZILLA_1_8_BRANCH cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk # type the password anonymous cd mozilla make -f client.mk checkout MOZ_CO_PROJECT=xulrunner [building] cd cp xulrunner/config/mozconfig . [add the following 4 line into your mozconfig] ac_add_options --prefix= ac_add_options --disable-javaxpcom ac_add_options --disable-js-static-build ac_add_options --with-embedding-profile=minimal make -f client.mk build_all make -s install this would provide you the minimal 'gecko' build for embedding purposes. Link against the .so libs created at yout/prefix/lib/mozilla/.so (according with the .pc files). regards On 6/7/06, Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? > Mozilla or firefox ? > Is there a way t build only the widget ? > > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. > -- --Antonio Gomes Nokia Technology Institute From tonikitoo@gmail.com Wed Jun 7 08:41:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96E843B0D2A for ; Wed, 7 Jun 2006 08:41:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12377-03 for ; Wed, 7 Jun 2006 08:41:35 -0400 (EDT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 83A903B0D01 for ; Wed, 7 Jun 2006 08:40:45 -0400 (EDT) Received: by wr-out-0506.google.com with SMTP id 50so167408wri for ; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SXNYjX2suiXxjuMwK8zSL9VKJKjxgoH1rxni5wMIOa8sVn7/yZ15daEQX7VbhIemOstEvrSzyN4C6DOFgZHTSAZzklftx7v19uSUOB9L5jCPvU/L+a6tLNymZj8HshTIVEJ4HGqu17GXcUUQ0zrzMdNEfFxbA3DceTBHSka6v48= Received: by 10.65.237.20 with SMTP id o20mr305181qbr; Wed, 07 Jun 2006 05:40:44 -0700 (PDT) Received: by 10.65.248.15 with HTTP; Wed, 7 Jun 2006 05:40:44 -0700 (PDT) Message-ID: <7eb9ad710606070540k31b59afci2e52d298787a6200@mail.gmail.com> Date: Wed, 7 Jun 2006 08:40:44 -0400 From: "Antonio Gomes" To: "Christophe HAUSER" In-Reply-To: <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> <7eb9ad710606070539wb2edfb3p60be725bf523e6f9@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.2 tagged_above=-999 required=2 tests=[AWL=0.169, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XP=0.077] X-Spam-Score: -2.2 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:41:51 -0000 you can follow their official website at http://developer.mozilla.org/en/docs/Configuring_Build_Options#Using_a_.mozconfig_Configuration_File On 6/7/06, Antonio Gomes wrote: > you could try building xulrunner with the --with-gecko-profile=minimal > set, from the branch MOZILLA_1_8_BRANCH > > [pulling] > export MOZ_CO_TAG=MOZILLA_1_8_BRANCH > > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login > cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk > # type the password anonymous > cd mozilla > make -f client.mk checkout MOZ_CO_PROJECT=xulrunner > > [building] > cd > cp xulrunner/config/mozconfig . > [add the following 4 line into your mozconfig] > ac_add_options --prefix= > ac_add_options --disable-javaxpcom > ac_add_options --disable-js-static-build > ac_add_options --with-embedding-profile=minimal > make -f client.mk build_all > make -s install > > this would provide you the minimal 'gecko' build for embedding > purposes. Link against the .so libs created at > yout/prefix/lib/mozilla/.so (according with the .pc files). > > regards > > On 6/7/06, Christophe HAUSER wrote: > > Hi, > > > > I've got questions about building the gtkmozembed > > widget. > > Do I need to build mozilla or firefox from sources ? > > Mozilla or firefox ? > > Is there a way t build only the widget ? > > > > I would like to compile a gtk app using gtkmozembed > > (gtk mozilla widget) for ARM, so I need to have light > > libs. > > > > -- > --Antonio Gomes > Nokia Technology Institute > -- --Antonio Gomes From tvb@gnome.org Wed Jun 7 09:07:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 69DD73B0CE0 for ; Wed, 7 Jun 2006 09:07:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14222-07 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id B8F923B0CB4 for ; Wed, 7 Jun 2006 09:07:27 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id E61EA15A5E; Wed, 7 Jun 2006 09:07:23 -0400 (EDT) Message-ID: <4486D1CD.8070408@gnome.org> Date: Wed, 07 Jun 2006 09:17:01 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.48 tagged_above=-999 required=2 tests=[AWL=-0.034, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.48 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:07:28 -0000 Christophe HAUSER wrote: > Hi, > > I've got questions about building the gtkmozembed > widget. > Do I need to build mozilla or firefox from sources ? Heavens no ! the headers and gtkmozembed library is distributed with the system gecko, save yourself the trouble and use them. See the gnome 'devhelp' module's autofoo setup for an example of how to detect the correct gecko and get the right compile flags etc. Cheers, -Tristan From tvb@gnome.org Wed Jun 7 09:14:22 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0F433B0CDC for ; Wed, 7 Jun 2006 09:14:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14864-08 for ; Wed, 7 Jun 2006 09:14:20 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 258CD3B0D28 for ; Wed, 7 Jun 2006 09:14:18 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 34CE315A5E; Wed, 7 Jun 2006 09:14:14 -0400 (EDT) Message-ID: <4486D367.8070608@gnome.org> Date: Wed, 07 Jun 2006 09:23:51 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER References: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060607081959.35940.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_XF=0.077] X-Spam-Score: -2.441 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 13:14:22 -0000 Christophe HAUSER wrote: [...] > I would like to compile a gtk app using gtkmozembed > (gtk mozilla widget) for ARM, so I need to have light > libs. Sorry I missed this part... if you dont already have a gecko compiled and installed for your ARM machine... then you should look into compiling it, I havent heard of any "tiny gecko" in existence, although you can taylor your compile options I suppose and add stuff like --strip-all from your libs... If you do compile the gecko, follow the instructions at mozilla.org and find the right options to begin with: type "about:buildconfig" in the url window of any firefox to know the compile options, you want to use the compile options that suit your site (i.e. are you rendering fonts with xft ? are you using cairo backends ? what did the vendors compile with when compiling against a similar library suite to your ARM system). Cheers, -Tristan From bharat.gusain@st.com Wed Jun 7 06:05:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 56E0F3B0BCF for ; Wed, 7 Jun 2006 06:05:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01274-09 for ; Wed, 7 Jun 2006 06:05:22 -0400 (EDT) Received: from fra-del-03.spheriq.net (fra-del-03.spheriq.net [195.46.51.99]) by menubar.gnome.org (Postfix) with ESMTP id DE4263B0BA2 for ; Wed, 7 Jun 2006 06:05:21 -0400 (EDT) Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-03.spheriq.net with ESMTP id k57A5B4T000894 for ; Wed, 7 Jun 2006 10:05:11 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-02.spheriq.net with ESMTP id k57A575Q009985 for ; Wed, 7 Jun 2006 10:05:08 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id k57A567i024086 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 7 Jun 2006 10:05:07 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BFB19DA46 for ; Wed, 7 Jun 2006 10:05:05 +0000 (GMT) Received: from mail1.dlh.st.com (mail1.dlh.st.com [10.199.8.21]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 16D8C4741C for ; Wed, 7 Jun 2006 10:05:04 +0000 (GMT) Received: from dlhgn13dhcp15.dlh.st.com (dlhgn13dhcp15.dlh.st.com [10.199.13.15]) by mail1.dlh.st.com (MOS 3.5.8-GR) with ESMTP id CKW69700 (AUTH "bharat gusain"); Wed, 7 Jun 2006 15:35:02 +0530 (IST) From: Bharat Singh GUSAIN Organization: st To: gtk-list@gnome.org Date: Wed, 7 Jun 2006 15:32:26 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606071532.26772.bharat.gusain@st.com> X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.005 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DATE_IN_FUTURE_06_12=1.668, TW_GT=0.077] X-Spam-Score: 1.005 X-Spam-Level: * X-Mailman-Approved-At: Wed, 07 Jun 2006 09:14:49 -0400 Subject: YUV image display X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 10:05:23 -0000 hi all, i am new to GTK and is currently working on a webcam application developed in GTK for which i need some nice gui frontend and need to display the yuyv image formats also. but gtk only display images in rgb format. can anybody tell me that whether there is any calls in GTK which can display the yuv images. Thanx in advance Bharat From gnome-gtk-list@m.gmane.org Wed Jun 7 19:05:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CDEC93B04FF for ; Wed, 7 Jun 2006 19:05:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21300-02 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 83E5C3B0339 for ; Wed, 7 Jun 2006 19:05:09 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fo75C-0003yi-Gn for gtk-list@gnome.org; Thu, 08 Jun 2006 01:05:04 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 01:05:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Wed, 7 Jun 2006 23:02:39 +0000 (UTC) Lines: 81 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_DP=0.077, TW_GT=0.077] X-Spam-Score: -1.998 X-Spam-Level: Subject: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:05:11 -0000 I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). After doing so, I get the following error messages when I run gtk applications: ~ [1] gedit gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control ~ [2] evince evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control I've done Web searches and I have tried a number of things, but none of them fix this problem. Is this the right list on which to ask this question? It seems Gtk related. Does anyone have a suggestion? I've attached some notes on some of the things that I have tried, just in case they offer a clue. Thanks for help. Dave Some additional notes follow: ========================================================= When running gtk applications, for example gedit, I get the following message:: gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_object_compat_control This means, apparently, that every gtk application on my system is broken. Examples: gedit, firefox, realplay, epiphany, evince, SciTE, This symbol seems to be defined in libgobject-2.0.a. I ran:: $ nm -A --defined-only lib* | grep g_object_compat_control | less and saw the following:: libgobject-2.0.a:gobject.o:000036fe T g_object_compat_control the "T" means "The symbol is in the text (code) section." Then, to find out what package libgobject-2.0.a is in, I did the following:: $ dpkg -S libgobject-2.0.a which displayed:: libglib2.0-dev: /usr/lib/libgobject-2.0.a So, I did:: $ sudo apt-get --reinstall install libglib2.0-dev But, for example, gedit still does not work. Next, I did the following: 1. Retrieved a new, fresh /etc/apt/sources.list from http://www.ubuntuforums.org/showpost.php?p=1090438 2. Did another update/upgrade:: $ sudo apt-get update $ sudo apt-get upgrade But, gedit, for example, still produces the same error message. From yeti@physics.muni.cz Wed Jun 7 19:24:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C49E93B036A for ; Wed, 7 Jun 2006 19:24:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22273-07 for ; Wed, 7 Jun 2006 19:24:27 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id F030C3B02BE for ; Wed, 7 Jun 2006 19:24:26 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k57NOOFK029666 for ; Thu, 8 Jun 2006 01:24:25 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 953C823D62; Thu, 8 Jun 2006 01:24:24 +0200 (CEST) Date: Thu, 8 Jun 2006 01:24:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060607232429.GD30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 23:24:28 -0000 On Wed, Jun 07, 2006 at 11:02:39PM +0000, Dave Kuhlman wrote: > I am running Kubuntu, which is the KDE version of Ubuntu, a debian based Linux. > I upgraded (from breezy to dapper) using the standard Debian tools (apt-get). > After doing so, I get the following error messages when I run gtk applications: > > ~ [1] gedit > gedit: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > ~ [2] evince > evince: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: > g_object_compat_control > > Does anyone have a suggestion? What ldd some-gtk-app prints? Namely the libgobject-2.0 is interesting. > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > $ nm -A --defined-only lib* | grep g_object_compat_control | less You cannot get symbols from shared libs with nm. Try something like eu-readelf --symbols libgobject-2.0.so.0.1000.3 instead to get symbol info from the dynamic lib. Static libs (.a) are not used for dynamic linking and thus irrelevant here. What libgobject-2.0* files you have there anyway? > ... > So, I did:: > > $ sudo apt-get --reinstall install libglib2.0-dev The NON-dev package is important for run-time, -dev is only important for compilation. So what libglib2.0 do you have installed? Is it at least 2.10.0? Yeti -- Anonyms eat their boogers. From gnome-gtk-list@m.gmane.org Wed Jun 7 20:08:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA87F3B04ED for ; Wed, 7 Jun 2006 20:08:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24955-07 for ; Wed, 7 Jun 2006 20:08:47 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id E38E63B0E52 for ; Wed, 7 Jun 2006 20:08:46 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fo84m-00068B-52 for gtk-list@gnome.org; Thu, 08 Jun 2006 02:08:40 +0200 Received: from adsl-71-143-21-4.dsl.scrm01.pacbell.net ([71.143.21.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 Received: from dkuhlman by adsl-71-143-21-4.dsl.scrm01.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 02:08:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dave Kuhlman Date: Thu, 8 Jun 2006 00:08:23 +0000 (UTC) Lines: 65 Message-ID: References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.143.21.4 (Opera/9.00 (X11; Linux i686; U; en)) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.242 tagged_above=-999 required=2 tests=[AWL=-0.167, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, SUBJECT_EXCESS_BASE64=0.449, TW_GT=0.077] X-Spam-Score: -2.242 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 00:08:48 -0000 David Ne膷as (Yeti physics.muni.cz> writes: > > What > > ldd some-gtk-app > > prints? Namely the libgobject-2.0 is interesting. > David (Yeti) - Wow. I am really glad that I asked this question. Your reply was very educational. After posting my original message, I continued working on this problem. I remembered that, some time ago, I had compiled gtk+ on my machine. So I did $ make uninstall for each of pango, cairo, glib, and gtk+. Now, when I do (as you suggested): $ ldd gedit I do not see references to the libraries that I built in /usr/local/lib. I guess my problem was that these libraries were old and not up-to-date. > > This symbol seems to be defined in libgobject-2.0.a. I ran:: > > > > $ nm -A --defined-only lib* | grep g_object_compat_control | less > > You cannot get symbols from shared libs with nm. Try > something like > > eu-readelf --symbols libgobject-2.0.so.0.1000.3 I do not have eu-readelf on my machine. I will have to go looking for it. > > instead to get symbol info from the dynamic lib. Static libs > (.a) are not used for dynamic linking and thus irrelevant > here. > > What libgobject-2.0* files you have there anyway? > I believe that the problem was that the version in /usr/local/lib was built from old source. When I removed it, my system started finding the more up-to- date version in /usr/lib. That fixed my problem. I do not need to build gtk+ from source right now, but will likely need to do so in the future. I will have to try to remember this problem, and the suggestions you (Yeti) gave me to track it down. I've saved your message where I will have it next time. Thanks again. Dave From yeti@physics.muni.cz Thu Jun 8 04:25:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF193B0DFE for ; Thu, 8 Jun 2006 04:25:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19030-01 for ; Thu, 8 Jun 2006 04:25:36 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 5B5A23B05CC for ; Thu, 8 Jun 2006 04:25:35 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k588PSGn010077 for ; Thu, 8 Jun 2006 10:25:29 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id BC2F123D63; Thu, 8 Jun 2006 10:25:28 +0200 (CEST) Date: Thu, 8 Jun 2006 10:25:29 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608082529.GH2166@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 08:25:37 -0000 On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > I do not have eu-readelf on my machine. I will have to go looking for it. It seems Debian does not contain elfutils. Granted, it used to have an idiosyncratic license, but now it is GNU GPL so hopefully it will get to Debian too. > I do not need to build gtk+ from source right now, but will likely need to do > so in the future. I will have to try to remember this problem I wrote this a hundered times but I will repeat it again and again... Do not install libraries to /usr/local while you have another version of the library installed by your distro, it is a reciepe for troubles. Use the packaging system. Take advantage of the packaging system. It is not so hard to build a package of a newer version if you have the source package of the current one. Also look at backports, the version you need can be already there. Yeti -- Anonyms eat their boogers. From kereoz@yahoo.fr Thu Jun 8 05:06:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E914A3B05CA for ; Thu, 8 Jun 2006 05:06:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21502-05 for ; Thu, 8 Jun 2006 05:06:33 -0400 (EDT) Received: from web25906.mail.ukl.yahoo.com (web25906.mail.ukl.yahoo.com [217.12.10.204]) by menubar.gnome.org (Postfix) with SMTP id C371F3B0427 for ; Thu, 8 Jun 2006 05:06:32 -0400 (EDT) Received: (qmail 11551 invoked by uid 60001); 8 Jun 2006 09:06:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yMPVnzoUVlcHS8vnCG1q+69Nrkmr9PvstPvpkyp4VhjDcDD/NUaosQ+ctN8+TRCwM3yVcymuVv2BKEkz+78Taqh16m4tmcP6P6EHx26vPh5se7LkU46jb+BLQFhgFwJllRnFnYQJWfWE0rfEI2wjtRHHGIy+synl5rqR7tQBaj8= ; Message-ID: <20060608090631.11549.qmail@web25906.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25906.mail.ukl.yahoo.com via HTTP; Thu, 08 Jun 2006 11:06:31 CEST Date: Thu, 8 Jun 2006 11:06:31 +0200 (CEST) From: Christophe HAUSER To: gtk-list@gnome.org In-Reply-To: <4486D367.8070608@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.079 tagged_above=-999 required=2 tests=[AWL=0.443, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.079 X-Spam-Level: Subject: RE : Re: mozilla gtk widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 09:06:35 -0000 Thanks a lot :) Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From murrayc@murrayc.com Thu Jun 8 13:20:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C3163B07EB for ; Thu, 8 Jun 2006 13:20:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24076-02 for ; Thu, 8 Jun 2006 13:20:40 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (sd-green-bigip-98.dreamhost.com [208.97.132.98]) by menubar.gnome.org (Postfix) with ESMTP id 225883B0EFD for ; Thu, 8 Jun 2006 13:20:38 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id EE142129A8C for ; Thu, 8 Jun 2006 10:20:31 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-vTkKqJNWDGQR4LW1VhLx" Date: Thu, 08 Jun 2006 19:20:28 +0200 Message-Id: <1149787228.5749.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.444 tagged_above=-999 required=2 tests=[AWL=0.078, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.444 X-Spam-Level: Subject: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:20:44 -0000 --=-vTkKqJNWDGQR4LW1VhLx Content-Type: text/plain Content-Transfer-Encoding: 7bit Could someone point out what I'm doing wrong in the attached test case? It's meant to read a value from the rc file, to determine how a widget would be drawn, making the widget themed. I get this output: example button gtype name=ExampleButton example_button_class_init(): Registering example_thing style property. example_button_init(): example_thing from rc file=0 -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=custom_gtkrc Content-Type: text/plain; name=custom_gtkrc; charset=UTF-8 Content-Transfer-Encoding: 7bit style "example-style" { ExampleButton::example_thing = 10 } class "ExampleButton" style "example-style" --=-vTkKqJNWDGQR4LW1VhLx Content-Disposition: attachment; filename=testrcfull.c Content-Type: text/x-csrc; name=testrcfull.c; charset=UTF-8 Content-Transfer-Encoding: 7bit #include typedef struct _ExampleButton ExampleButton; typedef struct _ExampleButtonClass ExampleButtonClass; struct _ExampleButton { GtkButton parent; /* private */ }; struct _ExampleButtonClass { GtkButtonClass parent_class; }; static void example_button_init (ExampleButton *object) { int example_thing = 0; gtk_widget_style_get(GTK_WIDGET(object), "example_thing", &example_thing, NULL); printf("example_button_init(): example_thing from rc file=%d\n", example_thing); } static void example_button_class_init (ExampleButtonClass *klass) { GtkWidgetClass *widget_klass = 0; widget_klass = GTK_WIDGET_CLASS (klass); printf("example_button_class_init(): Registering example_thing style property.\n"); gtk_widget_class_install_style_property(widget_klass, g_param_spec_int("example_thing", "Example Thing", "This is just a silly example.", G_MININT, G_MAXINT, 0, G_PARAM_READABLE) ); } G_DEFINE_TYPE (ExampleButton, example_button, GTK_TYPE_BUTTON); #define EXAMPLE_TYPE_BUTTON (example_button_get_type ()) #define EXAMPLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_TYPE_BUTTON, ExampleButton)) #define EXAMPLE_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EXAMPLE_BUTTON, ExampleButtonClass)) #define EXAMPLE_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_IS_BUTTON_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EXAMPLE_TYPE_BUTTON)) #define EXAMPLE_BUTTON_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_BUTTON, ExampleButtonClass)) GtkWidget * example_button_new (void) { return g_object_new (EXAMPLE_TYPE_BUTTON, NULL); } int main( int argc, char *argv[] ) { GtkWidget *window = 0; GtkWidget *button = 0; gtk_init (&argc, &argv); GType gtype = example_button_get_type(); //Make sure that it is initialized. printf("example button gtype name=%s\n", g_type_name(gtype)); /* Without the gtk_window_new(), the RC file is never parsed. */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 200, 200); button = example_button_new(); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_rc_parse("custom_gtkrc"); gtk_main (); return 0; } --=-vTkKqJNWDGQR4LW1VhLx-- From tkomulai@gmail.com Thu Jun 8 13:55:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C39FF3B0670 for ; Thu, 8 Jun 2006 13:55:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26215-06 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by menubar.gnome.org (Postfix) with ESMTP id 1C0663B0718 for ; Thu, 8 Jun 2006 13:55:40 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id m2so969661uge for ; Thu, 08 Jun 2006 10:55:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N/uF80Ph918v7qMbZwwC4m8meKdr58vk9243wbszTySV3jyA0b8R3dTqgp4Hn4dkDgd5RdsId8kyvevrz2CNZbJMYCVLeEEaV7C/KHshARrLSrba0urdFRwNtxLhTucxnKtW1uYecUM5neZXyU5rjMIqdi/rmdbnXiRSBseYAmY= Received: by 10.78.18.1 with SMTP id 1mr592938hur; Thu, 08 Jun 2006 10:55:38 -0700 (PDT) Received: by 10.78.41.17 with HTTP; Thu, 8 Jun 2006 10:55:38 -0700 (PDT) Message-ID: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> Date: Thu, 8 Jun 2006 20:55:38 +0300 From: "Tommi Komulainen" Sender: tkomulai@gmail.com To: gtk-list@gnome.org In-Reply-To: <1149787228.5749.5.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1149787228.5749.5.camel@localhost.localdomain> X-Google-Sender-Auth: 220f190103d8c34d X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=0.162, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.438 X-Spam-Level: Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 17:55:43 -0000 On 6/8/06, Murray Cumming wrote: > Could someone point out what I'm doing wrong in the attached test case? > It's meant to read a value from the rc file, to determine how a widget > would be drawn, making the widget themed. > > I get this output: > > example button gtype name=ExampleButton > example_button_class_init(): Registering example_thing style property. > example_button_init(): example_thing from rc file=0 Instance init is too early to get style properties (though I suppose you could call gtk_widget_ensure_style there), you need to wait until 'style-set' is called. You should implement the style-set default handler anyway to work with theme changes. Unless you change widget hierarchies based on the style property it should be enough to access the property in size-request, size-allocate and expose. -- Tommi Komulainen tommi.komulainen@iki.fi From paul@linuxaudiosystems.com Thu Jun 8 14:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28F3F3B0F8F for ; Thu, 8 Jun 2006 14:26:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27909-07 for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 5CC3C3B0F4E for ; Thu, 8 Jun 2006 14:26:33 -0400 (EDT) Received: from dholak ([151.197.23.127]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0K00IO20K3LGR1@vms040.mailsrvcs.net> for gtk-list@gnome.org; Thu, 08 Jun 2006 13:26:28 -0500 (CDT) Date: Thu, 08 Jun 2006 14:26:45 -0400 From: Paul Davis In-reply-to: <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> To: Tommi Komulainen Message-id: <1149791205.5323.0.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 18:26:35 -0000 On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > On 6/8/06, Murray Cumming wrote: > > Could someone point out what I'm doing wrong in the attached test case? > > It's meant to read a value from the rc file, to determine how a widget > > would be drawn, making the widget themed. > > > > I get this output: > > > > example button gtype name=ExampleButton > > example_button_class_init(): Registering example_thing style property. > > example_button_init(): example_thing from rc file=0 > > Instance init is too early to get style properties (though I suppose > you could call gtk_widget_ensure_style there), you need to wait until > 'style-set' is called. You should implement the style-set default > handler anyway to work with theme changes. > > Unless you change widget hierarchies based on the style property it > should be enough to access the property in size-request, size-allocate > and expose. or call widget::ensure_style() From adam@ajtee.plus.com Thu Jun 8 15:45:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0B4A3B0FBE for ; Thu, 8 Jun 2006 15:45:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00491-09 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by menubar.gnome.org (Postfix) with ESMTP id 69ECB3B0766 for ; Thu, 8 Jun 2006 15:45:46 -0400 (EDT) Received: from [212.159.108.21] (helo=[192.168.0.3]) by pih-relay04.plus.net with esmtp (Exim) id 1FoQRs-0000el-NZ for gtk-list@gnome.org; Thu, 08 Jun 2006 20:45:44 +0100 Message-ID: <44887E68.8030004@ajtee.plus.com> Date: Thu, 08 Jun 2006 20:45:44 +0100 From: Adam Tee User-Agent: Thunderbird 1.5.0.4 (X11/20060606) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.399 X-Spam-Level: Subject: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 19:45:48 -0000 Hi all, I have a couple of questions regarding keybindings in my application. Is there anyway of overriding a window managers keybindings in an application ? The second concerns menued items which have been configured using an array of GtkActionEntries. Can I changed the associated keybindings on the fly, i.e. after loading a keymap file ? The menus are defined in a xml file. Thanks Adam Maintainer GNU Denemo, a GTK+ Front-End to GNU Lilypond From murrayc@murrayc.com Thu Jun 8 16:07:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A46153B021A for ; Thu, 8 Jun 2006 16:07:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02092-04 for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from swarthymail-a4.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by menubar.gnome.org (Postfix) with ESMTP id 529653B000E for ; Thu, 8 Jun 2006 16:07:49 -0400 (EDT) Received: from noname (p5497FA0A.dip.t-dialin.net [84.151.250.10]) by swarthymail-a4.dreamhost.com (Postfix) with ESMTP id 5B020129A8D; Thu, 8 Jun 2006 13:07:47 -0700 (PDT) From: Murray Cumming To: paul@linuxaudiosystems.com In-Reply-To: <1149791205.5323.0.camel@localhost.localdomain> References: <1149787228.5749.5.camel@localhost.localdomain> <68bd3e050606081055n69fb85fbjf3c6b0a9e4749290@mail.gmail.com> <1149791205.5323.0.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 08 Jun 2006 22:07:43 +0200 Message-Id: <1149797263.5749.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.482 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599] X-Spam-Score: -2.482 X-Spam-Level: Cc: Tommi Komulainen , gtk-list@gnome.org Subject: Re: Widget style property from RC file. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:07:50 -0000 On Thu, 2006-06-08 at 14:26 -0400, Paul Davis wrote: > On Thu, 2006-06-08 at 20:55 +0300, Tommi Komulainen wrote: > > On 6/8/06, Murray Cumming wrote: > > > Could someone point out what I'm doing wrong in the attached test case? > > > It's meant to read a value from the rc file, to determine how a widget > > > would be drawn, making the widget themed. > > > > > > I get this output: > > > > > > example button gtype name=ExampleButton > > > example_button_class_init(): Registering example_thing style property. > > > example_button_init(): example_thing from rc file=0 > > > > Instance init is too early to get style properties (though I suppose > > you could call gtk_widget_ensure_style there), you need to wait until > > 'style-set' is called. You should implement the style-set default > > handler anyway to work with theme changes. > > > > Unless you change widget hierarchies based on the style property it > > should be enough to access the property in size-request, size-allocate > > and expose. > > or call widget::ensure_style() Thanks. gtk_widget_ensure_style() doesn't make any difference for me, but I can successfully read the value in the realize handler. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From ben@benjohnson.net Thu Jun 8 16:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C31863B1008 for ; Thu, 8 Jun 2006 16:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03294-10 for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: from server018.dfw.nationwide.net (unknown [206.123.129.81]) by menubar.gnome.org (Postfix) with SMTP id 7FA0B3B021A for ; Thu, 8 Jun 2006 16:30:20 -0400 (EDT) Received: (qmail 21060 invoked from network); 8 Jun 2006 20:30:05 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 08 Jun 2006 20:30:05 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id B3A5BE4067 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02308-05 for ; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id 9152AE4068; Thu, 8 Jun 2006 13:30:04 -0700 (PDT) Date: Thu, 8 Jun 2006 13:30:04 -0700 From: Anna To: gtk-list@gnome.org Message-ID: <20060608203003.GG6681@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608082529.GH2166@potato.chello.upc.cz> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:30:22 -0000 On Thu, Jun 08, 2006 at 10:25:29AM +0200, David Ne?as (Yeti) wrote: > On Thu, Jun 08, 2006 at 12:08:23AM +0000, Dave Kuhlman wrote: > > > > I do not have eu-readelf on my machine. I will have to go looking for it. > > It seems Debian does not contain elfutils. Granted, it used > to have an idiosyncratic license, but now it is GNU GPL so > hopefully it will get to Debian too. darling:~# cat /etc/debian_version 3.1 darling:~# dpkg -S /usr/bin/readelf binutils: /usr/bin/readelf maybe 'readelf' on Debian the same as eu-readelf? - Anna From yeti@physics.muni.cz Thu Jun 8 16:38:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 160683B1008 for ; Thu, 8 Jun 2006 16:38:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03782-07 for ; Thu, 8 Jun 2006 16:38:03 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 852DA3B036E for ; Thu, 8 Jun 2006 16:38:01 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Kbt6q023889 for ; Thu, 8 Jun 2006 22:37:56 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 53BF923D9A; Thu, 8 Jun 2006 22:37:55 +0200 (CEST) Date: Thu, 8 Jun 2006 22:38:00 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608203800.GI30886@potato.chello.upc.cz> References: <20060607232429.GD30886@potato.chello.upc.cz> <20060608082529.GH2166@potato.chello.upc.cz> <20060608203003.GG6681@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060608203003.GG6681@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_DP=0.077] X-Spam-Score: -2.517 X-Spam-Level: Subject: Re: gtk/g_object_compat_control error after upgrading Ubuntu X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 20:38:08 -0000 On Thu, Jun 08, 2006 at 01:30:04PM -0700, Anna wrote: > > darling:~# cat /etc/debian_version > 3.1 > darling:~# dpkg -S /usr/bin/readelf > binutils: /usr/bin/readelf > > maybe 'readelf' on Debian the same as eu-readelf? This is binutils' readelf. They are different but both should work for the discussed purpose. Yeti -- Anonyms eat their boogers. From BillS@techsi.com Thu Jun 8 17:36:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA1DA3B000E for ; Thu, 8 Jun 2006 17:36:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07163-08 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 38CAB3B0194 for ; Thu, 8 Jun 2006 17:36:13 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k58LKsAZ017367; Thu, 8 Jun 2006 16:20:57 -0500 From: "Bill Sousan" To: "'Tristan Van Berkom'" Date: Thu, 8 Jun 2006 16:36:03 -0500 Message-ID: <003601c68b43$8dcba100$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJ1Fpwdt0TDWdPQL6ky+QryalI6ABbv/jQ In-Reply-To: <448637A8.7040007@gnome.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.109 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_05=-1.11, TW_GT=0.077] X-Spam-Score: -1.109 X-Spam-Level: Cc: gtk-list@gnome.org Subject: RE: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:36:14 -0000 Thanks! One question, however, how can you change the column header font? I was able to make the rows nice and fat. However, I can't figure out how to change the column title size (its font type). Thanks, Bill -----Original Message----- From: Tristan Van Berkom [mailto:tristan.van.berkom@gmail.com] Sent: Tuesday, June 06, 2006 9:19 PM To: Bill Sousan Cc: gtk-list@gnome.org Subject: Re: Treeview - scrolling through rows via method calls Bill Sousan wrote: >I other words, I need to emulate the user scrolling through the treeview by >line, by page, or to the beginning or end. I think the begin or end would >not be too bad. > > I have used treeviews on touchscreens... from my experience all you need is big fat rows and a nicely themed vertical scrollbar on your scrolled window, make sure they are big fat buttons :) You probably also want to design your app so that selecting a row (single or multiple) is the extent of the treeview interaction... toggle renderers are probably fine, but combo renderers and ofcourse; editable text renderers are out of the question. The GtkAdjustment used for the scrollbar usually has ok defaults, but if you need to tinker the page-size and step-increment etc... the GtkAdjutment is the right place to do it. Cheers, -Tristan From yeti@physics.muni.cz Thu Jun 8 17:39:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 94A863B0408 for ; Thu, 8 Jun 2006 17:39:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07377-08 for ; Thu, 8 Jun 2006 17:39:10 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9387F3B0105 for ; Thu, 8 Jun 2006 17:39:09 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k58Ld71R001243 for ; Thu, 8 Jun 2006 23:39:08 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 8BFE723D9A; Thu, 8 Jun 2006 23:39:07 +0200 (CEST) Date: Thu, 8 Jun 2006 23:39:12 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060608213912.GK30886@potato.chello.upc.cz> References: <448637A8.7040007@gnome.org> <003601c68b43$8dcba100$db00a8c0@techsi.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003601c68b43$8dcba100$db00a8c0@techsi.local> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: Treeview - scrolling through rows via method calls X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:39:13 -0000 On Thu, Jun 08, 2006 at 04:36:03PM -0500, Bill Sousan wrote: > Thanks! One question, however, how can you change the column header font? > I was able to make the rows nice and fat. However, I can't figure out how > to change the column title size (its font type). The default column header widget is inaccessible, but gtk_tree_view_column_set_widget() can put any widget you wish there. Yeti -- Anonyms eat their boogers. From mekstran@scl.ameslab.gov Fri Jun 9 10:26:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CD183B1106 for ; Fri, 9 Jun 2006 10:26:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30922-04 for ; Fri, 9 Jun 2006 10:26:31 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id AE19D3B02F7 for ; Fri, 9 Jun 2006 10:26:23 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 09 Jun 2006 09:26:22 -0500 id 0005389C.4489850E.00007C9B In-Reply-To: <44887E68.8030004@ajtee.plus.com> References: <44887E68.8030004@ajtee.plus.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6ec3650a2d223d4ab126ac1b931be9f0@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Date: Fri, 9 Jun 2006 09:25:52 -0500 To: Adam Tee X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, TW_KB=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Keybindings X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 14:26:35 -0000 On Jun 8, 2006, at 2:45 PM, Adam Tee wrote: > Is there anyway of overriding a window managers keybindings in an > application ? AFAIK, no. I could be wrong here, but I believe the window manager sees the keys before they ever get to the application, and eats them. Some window managers may potentially support a "pass-through" mode, but I don't know (I don't know that I've ever seen such a features, except I seem to remember one in an older version of wmii that was user-activated, not program-activated). Besides, overriding the WM's keybindings would be detrimental to users - they expect the WM keybindings to work the same in all applications. Especially those of us using highly kbd-driven WM's. > The second concerns menued items which have been configured using an > array of GtkActionEntries. Can I changed the associated keybindings on > the fly, i.e. after loading a keymap file ? The menus are defined in a > xml file. Can't help you there. I'm a bit fuzzy on the details of managing accellerator myself. - Michael From mattias.nissler@gmx.de Fri Jun 9 09:07:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA523B01CA for ; Fri, 9 Jun 2006 09:07:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25743-04 for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 5D6DE3B031E for ; Fri, 9 Jun 2006 09:07:00 -0400 (EDT) Received: (qmail invoked by alias); 09 Jun 2006 13:06:59 -0000 Received: from T56c9.t.pppool.de (EHLO [192.168.2.32]) [89.55.86.201] by mail.gmx.net (mp027) with SMTP; 09 Jun 2006 15:06:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Jun 2006 15:06:56 +0200 Message-Id: <1149858416.14903.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Jun 2006 11:58:55 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 13:07:02 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, I think its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From r.floret@laposte.net Sat Jun 10 12:21:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 807953B01CB for ; Sat, 10 Jun 2006 12:21:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14072-01 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from mx.laposte.net (mx.laposte.net [81.255.54.11]) by menubar.gnome.org (Postfix) with ESMTP id 67CF63B0158 for ; Sat, 10 Jun 2006 12:21:02 -0400 (EDT) Received: from [192.168.0.3] (81.248.212.147) by mx.laposte.net (7.2.060.1) (authenticated as r.floret) id 448702A20026ED87 for gtk-list@gnome.org; Sat, 10 Jun 2006 18:19:51 +0200 From: regis To: gtk-list@gnome.org In-Reply-To: <1149858416.14903.2.camel@localhost> References: <1149858416.14903.2.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Sat, 10 Jun 2006 20:19:40 +0400 Message-Id: <1149956380.11938.1.camel@Regis> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.264 tagged_above=-999 required=2 tests=[AWL=0.101, BAYES_00=-2.599, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: -0.264 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 16:21:03 -0000 Le vendredi 09 juin 2006 15:06 +0200, Mattias Nissler a 閏rit : > Hallo, > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > standard gtk+ file chooser dialog, I think its default size is really > too small. Is there some style option I can put into a rc file or some > other way to make the default size larger? Why don't you try gtk_widget_set_size_request(dialog,width,height) ? R間is From murrayc@murrayc.com Sat Jun 10 17:12:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E24673B0007 for ; Sat, 10 Jun 2006 17:12:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28035-01 for ; Sat, 10 Jun 2006 17:12:33 -0400 (EDT) Received: from swarthymail-a1.dreamhost.com (sd-green-bigip-176.dreamhost.com [208.97.132.176]) by menubar.gnome.org (Postfix) with ESMTP id F34183B0494 for ; Sat, 10 Jun 2006 17:12:31 -0400 (EDT) Received: from noname (p5497E4C3.dip.t-dialin.net [84.151.228.195]) by swarthymail-a1.dreamhost.com (Postfix) with ESMTP id 1835F90ED6 for ; Sat, 10 Jun 2006 14:12:29 -0700 (PDT) From: Murray Cumming To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Jun 2006 23:12:24 +0200 Message-Id: <1149973944.5715.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599] X-Spam-Score: -2.481 X-Spam-Level: Subject: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 21:12:36 -0000 Is there any particular reason why GtkClipboardRichTextReceivedFunc provides the text as const guint8*: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc instead of the const gchar* that GtkClipboardTextReceivedFunc provides: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardTextReceivedFunc ? -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From mattias.nissler@gmx.de Sun Jun 11 07:03:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D1743B00F2 for ; Sun, 11 Jun 2006 07:03:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05206-10 for ; Sun, 11 Jun 2006 07:03:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 9BCA03B057C for ; Sun, 11 Jun 2006 07:03:15 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 11:02:40 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp039) with SMTP; 11 Jun 2006 13:02:40 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Date: Sun, 11 Jun 2006 13:02:32 +0200 Message-Id: <1150023752.27952.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.492 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.492 X-Spam-Level: Subject: Re: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 11:03:17 -0000 > Le vendredi 09 juin 2006 锟5:06 +0200, Mattias Nissler a 锟絠t : > > Hallo, > > > > I'm running gtk+ 2.8.17 with gnome. While I like the layout of the > > standard gtk+ file chooser dialog, I think its default size is really > > too small. Is there some style option I can put into a rc file or some > > other way to make the default size larger? > > Why don't you try gtk_widget_set_size_request(dialog,width,height) ? > Well, I am not writing a GTK program, but I'm using programs that (my guess) don't resize the file dialog boxes, so they stay at their default size. So I'd like to change the default size to something more usable. Mattias From chris@cvine.freeserve.co.uk Sun Jun 11 08:32:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C364D3B010F for ; Sun, 11 Jun 2006 08:32:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09209-04 for ; Sun, 11 Jun 2006 08:32:54 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id DACC13B0091 for ; Sun, 11 Jun 2006 08:32:53 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3107 [172.22.158.37]) by mwinf3110.me.freeserve.com (SMTP Server) with ESMTP id ED6444800A4E for ; Sun, 11 Jun 2006 14:31:29 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id DEB8D4800089; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) Received: from boulder.homenet (user-3382.l6.c5.dsl.pol.co.uk [84.65.109.54]) by mwinf3107.me.freeserve.com (SMTP Server) with ESMTP id ADB754800087; Sun, 11 Jun 2006 14:31:19 +0200 (CEST) X-ME-UUID: 20060611123119711.ADB754800087@mwinf3107.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5BCVI7p002398; Sun, 11 Jun 2006 13:31:18 +0100 From: Chris Vine To: gtk-list@gnome.org Date: Sun, 11 Jun 2006 13:31:17 +0100 User-Agent: KMail/1.9.1 References: <1149973944.5715.10.camel@localhost.localdomain> In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606111331.18048.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.293 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.293 X-Spam-Level: Cc: Murray Cumming Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 12:32:55 -0000 On Saturday 10 June 2006 22:12, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >RichTextReceivedFunc > > instead of the const gchar* that GtkClipboardTextReceivedFunc provides: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboard >TextReceivedFunc ? Probably the use of guint8 has something to do with the rich text specification, although if so it would appear to be no more than a statement of intention as I did not think that glib supports anything but systems with 8-bit char types. At any rate there could only be a difference if the gchar (or guchar) type is formed other than by an octet. It seems inconceivable that modern systems would have char types smaller than an octet, but conceivable that they could be larger (sizeof(char), sizeof(wchar_t) and sizeof(long) can all be the same, for example). Chris From michael@zolnott.de Sun Jun 11 14:29:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D9A243B028A for ; Sun, 11 Jun 2006 14:29:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27506-08 for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 40D703B023D for ; Sun, 11 Jun 2006 14:29:12 -0400 (EDT) Received: from smtp1.freeserve.com (mwinf3002 [172.22.159.24]) by mwinf3010.me.freeserve.com (SMTP Server) with ESMTP id A1EF85C0336E for ; Sun, 11 Jun 2006 20:28:38 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 951E11C00146 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3002.me.freeserve.com (SMTP Server) with ESMTP id 583001C00142 for ; Sun, 11 Jun 2006 20:28:28 +0200 (CEST) X-ME-UUID: 20060611182828361.583001C00142@mwinf3002.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id CC22B2355F; Fri, 9 Jun 2006 23:55:26 +0100 (BST) Date: Fri, 9 Jun 2006 23:55:26 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060609225524.GC726@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.16 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.507 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.507 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:29:14 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEifxcXDV4oK/n3xIRAjSiAJ4mNyWu+1/oCesRm39Hu+coAoTjgACg2iQW Ba0/mrxfPfoc07kenuGRSV4= =JYWo -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- From michael@zolnott.de Sun Jun 11 14:53:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36F563B02CD for ; Sun, 11 Jun 2006 14:53:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28561-02 for ; Sun, 11 Jun 2006 14:53:19 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id F36443B02A7 for ; Sun, 11 Jun 2006 14:53:17 -0400 (EDT) Received: from smtp2.freeserve.com (mwinf3113 [172.22.158.41]) by mwinf3105.me.freeserve.com (SMTP Server) with ESMTP id EDF821C01BEE for ; Sun, 11 Jun 2006 20:28:36 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id A35105C00087 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) Received: from www.zolnott.de (user-4775.l2.c4.dsl.pol.co.uk [81.79.178.167]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id 4868F5C00084 for ; Sun, 11 Jun 2006 20:28:26 +0200 (CEST) X-ME-UUID: 20060611182826296.4868F5C00084@mwinf3113.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 0EA072356B; Sat, 10 Jun 2006 23:59:06 +0100 (BST) Date: Sat, 10 Jun 2006 23:59:06 +0100 From: Michael Ott To: gtk mailing list Message-ID: <20060610225904.GA6852@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.324 tagged_above=-999 required=2 tests=[AWL=-0.183, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -1.324 X-Spam-Level: Subject: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 18:53:23 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I try to compile an application under winxp. Under Linux i work with some gnome lib (for printing) and this i cannot do under win32. But i got an error before: I use only libglade-2.0 and gtk+-2.0 under win32. When i try to compile i get on the following line: sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); i got the following error: 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passi= ng arg 2 of `sprintf' makes pointer from integer without a cast Which library do i miss? Using gtk-2.8.14 under win32. CU =20 =20 Michael =20 =20 --=20 ,''`. Michael Ott, e-mail: michael at zolnott dot de : :' : Debian SID on Thinkpad T43:=20 `. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html=20 `- --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEi064XDV4oK/n3xIRAnh3AJ9IxGDAYCsDMbrCeB5MUQmb+k2jqACgz7qH 0flJ2aY7euqfiqe2jXibZRs= =ChBT -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- From yeti@physics.muni.cz Sun Jun 11 18:08:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 211243B0697 for ; Sun, 11 Jun 2006 18:08:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05325-01 for ; Sun, 11 Jun 2006 18:08:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9C4F63B0350 for ; Sun, 11 Jun 2006 18:08:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5BKghIY010616 for ; Sun, 11 Jun 2006 22:42:44 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0B40B23D59; Sun, 11 Jun 2006 22:42:43 +0200 (CEST) Date: Sun, 11 Jun 2006 22:42:47 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Message-ID: <20060611204247.GD30886@potato.chello.upc.cz> References: <20060609225524.GC726@zolnott06.zolnott> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060609225524.GC726@zolnott06.zolnott> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Subject: Re: win32 and internationalisation X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 22:08:21 -0000 On Fri, Jun 09, 2006 at 11:55:26PM +0100, Michael Ott wrote: > I try to compile an application under winxp. Under Linux i work with > some gnome lib (for printing) and this i cannot do under win32. > > But i got an error before: > I use only libglade-2.0 and gtk+-2.0 under win32. > > When i try to compile i get on the following line: > > sprintf(c_str, _("%02d.%02d.%d"), i_tmp_5, i_tmp_4, i_tmp_3); Do not use sprintf(), use g_snprintf() or g_strdup_printf() (and see below). > i got the following error: > > 796 H:\programming\projects\ampavi\src\ampavi_main_window.c [Warning] passing arg 2 of `sprintf' makes pointer from integer without a cast The error probably comes from implicitly declared _(). When a C function is not declared, the compiler invents an implicit declaration with int return value -- and you definitely want to tell it to make a lot noise instead, for gcc it's -Werror-implicit-function-declaration and for MSVC it's #pragma warning(error:4013) _() is a common convenience macro defined #define _(x) gettext(x) but it's up to you to define it. Why you mark "%02d.%02d.%d" as translatable anyway? Either the format is fixed and then it must not be translated, or you want it translatable for some reason, but then you never know how c_str needs to be long, so use g_strdup_printf(). Yeti -- Anonyms eat their boogers. From mclasen@redhat.com Mon Jun 12 12:04:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41C3B3B000C; Mon, 12 Jun 2006 12:04:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09149-04; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 7270D3B009D; Mon, 12 Jun 2006 12:04:29 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc9030255; Mon, 12 Jun 2006 12:03:37 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CG3bc3007778; Mon, 12 Jun 2006 12:03:37 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CG3blQ018463; Mon, 12 Jun 2006 12:03:37 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 12:03:36 -0400 Message-Id: <1150128216.15532.14.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_LQ=0.077, TW_RX=0.077, TW_TR=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GLib 2.11.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 16:04:32 -0000 GLib 2.11.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.3.tar.bz2 md5sum: 41931c4965f7e1848f81b800914905cd glib-2.11.3.tar.gz md5sum: cd78ebc535e29cdef0fed9487aa21dac This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are almost finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.2 to GLib 2.11.3 =================================================== * GBookmarkFile: - g_bookmark_file_move_item: Return TRUE in case of an empty target * Bugs fixed: 343919 gunicollate.c: strxfrm bug on VC8 * Updated translations (fi) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343919 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Kazuki Iwamoto, Tor Lillqvist Matthias Clasen June 12, 2006 From mitch@gimp.org Mon Jun 12 14:02:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888803B0461 for ; Mon, 12 Jun 2006 14:02:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21914-06 for ; Mon, 12 Jun 2006 14:02:17 -0400 (EDT) Received: from mitch.gimp.org (unknown [88.134.1.244]) by menubar.gnome.org (Postfix) with ESMTP id 0C81D3B0132 for ; Mon, 12 Jun 2006 12:07:15 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FpMpr-0003Vw-00; Sun, 11 Jun 2006 12:06:23 +0200 From: Michael Natterer To: Murray Cumming In-Reply-To: <1149973944.5715.10.camel@localhost.localdomain> References: <1149973944.5715.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 11 Jun 2006 12:06:16 +0200 Message-Id: <1150020377.3010.29.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.572 tagged_above=-999 required=2 tests=[AWL=-0.919, BAYES_00=-2.599, RCVD_IN_NJABL_DUL=1.946] X-Spam-Score: -1.572 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_clipboard_request_rich_text() provides guint8* instead of gchar* X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 18:02:20 -0000 On Sat, 2006-06-10 at 23:12 +0200, Murray Cumming wrote: > Is there any particular reason why GtkClipboardRichTextReceivedFunc > provides the text as const guint8*: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-Clipboards.html#GtkClipboardRichTextReceivedFunc Because the format of the serialized rich text data is arbitrary. Basically it's a blob of binary data of size "length", and not text. ciao, --mitch From mclasen@redhat.com Mon Jun 12 15:43:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 851123B00E5; Mon, 12 Jun 2006 15:43:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-06; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 5B16F3B0010; Mon, 12 Jun 2006 15:43:02 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWav007572; Mon, 12 Jun 2006 15:35:32 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5CJZWUd001833; Mon, 12 Jun 2006 15:35:32 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5CJZWlQ009694; Mon, 12 Jun 2006 15:35:32 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Jun 2006 15:35:31 -0400 Message-Id: <1150140931.15532.18.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.541 X-Spam-Level: Cc: Subject: GTK+ 2.8.19 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 19:43:04 -0000 GTK+ 2.8.19 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.19.tar.bz2 md5sum: 1a03dbed4b794194a610e9d7eb175b06 gtk+-2.8.19.tar.gz md5sum: 604d3263498994c58af378f0ec076e6f This is a bugfix release in the 2.8.x series. It fixes a rare memory corruption issue when using the deprecated GdkFont API. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.18 to GTK+ 2.8.19 =================================================== Bugs fixed: 341327 Memory corruption inside glib 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 343425 "grab-notify"-signal is not correctly propagated for internal children 344244 Window resizing not working when keeping the aspect fixed 344496 CRLF converting via Clipboard Updated translations (ne) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=343425,341327,344244,337491,344496 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Markku Vire, Sampo Savolainen, Tim Janik, Tor Lillqvist, Chris Wilson June 12, 2006 Matthias Clasen From mclasen@redhat.com Tue Jun 13 02:09:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 72FE93B00AF; Tue, 13 Jun 2006 02:09:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12183-04; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id B2F773B000C; Tue, 13 Jun 2006 02:09:13 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D681s3022181; Tue, 13 Jun 2006 02:08:01 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5D67uRP017686; Tue, 13 Jun 2006 02:07:56 -0400 Received: from [172.16.83.145] (vpn83-145.boston.redhat.com [172.16.83.145]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5D67tQC015619; Tue, 13 Jun 2006 02:07:56 -0400 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain; charset=UTF-8 Organization: Red Hat Date: Tue, 13 Jun 2006 02:09:42 -0400 Message-Id: <1150178982.4081.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.2.1 (2.7.2.1-4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=-0.056, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_KB=0.077] X-Spam-Score: -2.426 X-Spam-Level: Cc: Subject: GTK+ 2.9.3 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:09:16 -0000 GTK+ 2.9.3 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.3.tar.bz2 md5sum: d73039a3b5847c352f5740ac908be7d2 gtk+-2.9.3.tar.gz md5sum: 0156eef91d2bbb23f1b6ccb49335fae5 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are not yet completely finalized, so there are likely incompatibilies between this release and the final 2.10 release. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.2 to 2.9.3 ============================================ * GtkPrintOperation: - Introduce an allow-async property - Introduce a GtkPrintOperationAction enumeration - Rename pdf_target to export_filename - Allow to hide "Print to PDF" in the low-level API * GtkNotebook: - Add a destroy notify to gtk_notebook_set_window_creation_hook. * GtkTreeView: - Support grid lines * GtkRange: - Add a number of new stle properties which allow more fexible stepper theming * Bugs fixed: 153212 Have the Paste kbd shortcut jump to the location in the buffer 337491 _gdk_win32_drawable_release_dc: DeleteDC() called on a GetDC() handle 339739 gtk/gtkprintoperation-win32.c: 3 compile error 342339 GtkRange::stepper-spacing style property not implemented correctly 343945 Buttons of a GtkAssistant are not accessible 344148 Wrong reqs for ATK 344209 gtk_notebook_set_window_creation_hook() has no destroy func. 344232 GtkEntry's "Delete" context menu item is sensitive on a non-editable GtkEntry 344244 Window resizing not working when keeping the aspect fixed 344288 gtk_print_operation_preview_is_selected must return a value 344386 gdk-2.0-uninstalled.pc.in and gdkconfig.h 344496 CRLF converting via Clipboard 344504 GtkPrintCapabilities not in gtktypebuiltins.h 344505 Wrong signal registration for create_custom_widget 344512 cvs build issue 344513 pdf print module's print_stream not calling destroy notify 344518 NULL unref in page setup dialogue 344543 gtk_progress_bar_pulse calls gtk_progress_bar_paint directly 344560 gtk_print_settings_[sg]et_scale shouldn't be in percent 344607 memory leaks in gtkrecentchooserdefault.c and gtkrecentchoosermenu.c 344624 Memory leak in gtk_tree_model_filter_finalize: User data not freed 337603 Possible off-by-one in gdk_pango_layout_line_get_clip_region 344239 Wrong filename for gtk-find stock item. 344528 comma at end of GtkPrintOperationAction enum causes mozilla compilation error 344290 horizontal-padding not take into account when placing submenus 344558 document print dialogue response codes 339592 Add print-to-postscript 342249 Allow to draw upper and lower sides of GtkRange's trough differently 344530 gtk_recent_chooser_widget_new_for_manager and gtk_recent_chooser_menu_new_for_manager should allow NULL manager arg * Updated translations (es,fi,gu,ko,th,wa) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=153212,337491,339739,342339,343945,344148,344209,344232,344244,344288,344386,344496,344504,344505,344512,344513,344518,344543,344560,344607,344624,337603,344239,344528,344290,344558,339592,342249,344530 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Behdad Esfahbod, Bastian Nocera, Alexander Larsson, J黵g Billeter, Murray Cumming, Milosz Derezynski, Tor Lillqvist, Kazuki Iwamoto, Chris Wilson, Michael Natterer, Benjamin Berg, Marko Anastasov, Christian Persch, Masatake Yamamoto, Elijah Newren, John Finlay, Emmanuele Bassi, David Malcolm, John Darrington, Christian Weiske, Yvgen Muntyan, Martyn Russell, Kristian Rietveld June 13, 2006 Matthias Clasen From suryakiran.gullapalli@gmail.com Tue Jun 13 02:17:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ECF3B015D for ; Tue, 13 Jun 2006 02:17:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12730-02 for ; Tue, 13 Jun 2006 02:17:09 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 1E5ED3B00AF for ; Tue, 13 Jun 2006 02:17:08 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2351869nzo for ; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AjdeG/my9aZKptVxVu2SIogubCWxKAr3HX1opiXSepv2WV/xdlS7lqfXrYoQlSpChmZcBUDN5LhZopltI7Ei+MXADb5GyUs2yol7NRqVgmzN3F04gW/KosoogyTrCbFXpCbVoZwCa32PIFzGvURU4zgEsm1eSsPmN/+VaRtR7AM= Received: by 10.36.56.4 with SMTP id e4mr5918423nza; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Mon, 12 Jun 2006 23:16:23 -0700 (PDT) Message-ID: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> Date: Tue, 13 Jun 2006 11:46:23 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9016_20460533.1150179383165" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.859 tagged_above=-999 required=2 tests=[AWL=-0.132, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.859 X-Spam-Level: Subject: Font Path X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 06:17:15 -0000 ------=_Part_9016_20460533.1150179383165 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_9016_20460533.1150179383165 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_9016_20460533.1150179383165-- From suryakiran.gullapalli@gmail.com Tue Jun 13 06:52:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5924B3B000A for ; Tue, 13 Jun 2006 06:52:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20305-10 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 78A063B00C9 for ; Tue, 13 Jun 2006 06:52:21 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so2460005nzo for ; Tue, 13 Jun 2006 03:50:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UcWT8tNT7p4SbjxzYU7oPici9Ro4C0nxkQ0RGHY/Ox9lpXzzZIEYgNNa4PMdAJvSOypndwVY9RDFl5b+ipj4/a3Fo9hblR+xxl8x2fO7IQqHgwcFB5ScMUIHWv7eSQXZ4OML/pwhL6o75U8+bodUFhK/ChF1yUImiQujKV861Uc= Received: by 10.36.8.4 with SMTP id 4mr10540719nzh; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Tue, 13 Jun 2006 03:50:52 -0700 (PDT) Message-ID: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> Date: Tue, 13 Jun 2006 16:20:52 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_559_15776072.1150195852962" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.114 tagged_above=-999 required=2 tests=[AWL=-0.876, BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.114 X-Spam-Level: Subject: Theme engine tutorial. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 10:52:23 -0000 ------=_Part_559_15776072.1150195852962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_559_15776072.1150195852962 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_559_15776072.1150195852962-- From andi_sz_2000@yahoo.com Mon Jun 12 11:51:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C6323B00D4 for ; Mon, 12 Jun 2006 11:51:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08963-02 for ; Mon, 12 Jun 2006 11:51:53 -0400 (EDT) Received: from web51612.mail.yahoo.com (web51612.mail.yahoo.com [68.142.224.85]) by menubar.gnome.org (Postfix) with SMTP id 8A69F3B00D8 for ; Mon, 12 Jun 2006 11:51:52 -0400 (EDT) Received: (qmail 98982 invoked by uid 60001); 12 Jun 2006 15:51:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=twFPqLknw7rC+J3lu/TUPVojwbQkB+djl+EvcOmiR4QyNT69l3nofSk9rPpvx7m2zLc/2k70C+kP5pQqlLOHFuJGzNgOWOW1XOfn0p/woPoIAGZx4v0s0di6G84r+aCvTf57YEqin+6hSK+/3QOTRp1Y6dxXdhIifQLJExfDXAA= ; Message-ID: <20060612155104.98980.qmail@web51612.mail.yahoo.com> Received: from [85.204.36.18] by web51612.mail.yahoo.com via HTTP; Mon, 12 Jun 2006 08:51:04 PDT Date: Mon, 12 Jun 2006 08:51:04 -0700 (PDT) From: Andrea Szenasi To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, FROM_HAS_ULINE_NUMS=0.291, HOT_NASTY=0.157] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:25 -0400 Subject: question: connecting to mysql X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrea Szenasi List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 15:51:57 -0000 Hi all, i am a beginner in GTK PHP and i have problem connecting to MySQL 5.0.18. I am using GTK-PHP2 with PHP5. I use @mysql_connect, so i cant see the error message. But if I use just mysql_connect, then i got the following error message: Fatal:error: Call to undefined function mysql_connect() in XXX on line XXX . With PHP5 (classic, no GTK), the connection is working, so I have no idea what's the problem. Thanks in advance, Andi From mattias.nissler@gmx.de Sun Jun 11 06:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1F53B0095 for ; Sun, 11 Jun 2006 06:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05002-04 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 4B79D3B00D3 for ; Sun, 11 Jun 2006 06:43:36 -0400 (EDT) Received: (qmail invoked by alias); 11 Jun 2006 10:13:59 -0000 Received: from T5d1e.t.pppool.de (EHLO [192.168.2.32]) [89.55.93.30] by mail.gmx.net (mp020) with SMTP; 11 Jun 2006 12:13:59 +0200 X-Authenticated: #429267 From: Mattias Nissler To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Jun 2006 12:13:52 +0200 Message-Id: <1150020832.27952.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.494 tagged_above=-999 required=2 tests=[AWL=-0.029, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.494 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Subject: file dialog size X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2006 10:43:38 -0000 Hallo, I'm running gtk+ 2.8.17 with gnome. While I like the layout of the standard gtk+ file chooser dialog, its default size is really too small. Is there some style option I can put into a rc file or some other way to make the default size larger? Thanks, Mattias From behdad.esfahbod@gmail.com Mon Jun 12 18:10:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C1AE3B00A5 for ; Mon, 12 Jun 2006 18:10:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00834-05 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 337843B00F5 for ; Mon, 12 Jun 2006 18:10:12 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h26so959411wxd for ; Mon, 12 Jun 2006 15:09:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:sender; b=HkVpdki0/g3XkGcHUm613LiH99RNWp83QpOiB04twtI9/oyY5QJs7xgUW9ugXUYWTW0FQESua3SiFes9GpwcHFnulMB+jmu6Frg1gjSTz94Z0WNKazKYJCx/0yCrKVvi+sIhO9793kd+R7hBbKFWLBqlIyo5yetvED1gx6HIjnc= Received: by 10.70.36.1 with SMTP id j1mr6891335wxj; Mon, 12 Jun 2006 14:44:52 -0700 (PDT) Received: from to-dhcp26.toronto.redhat.com ( [63.250.163.171]) by mx.gmail.com with ESMTP id h18sm3879342wxd.2006.06.12.14.44.50; Mon, 12 Jun 2006 14:44:51 -0700 (PDT) From: Behdad Esfahbod To: Pango Release Lists , gtk-app-devel-list@gnome.org, gtk-devel-list@gnome.org, gtk-i18n-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HZBsNn3KdPR3jVVwB9gO" Date: Mon, 12 Jun 2006 17:44:37 -0400 Message-Id: <1150148678.10765.8.camel@home> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Sender: Behdad Esfahbod X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Tue, 13 Jun 2006 11:24:35 -0400 Cc: Subject: Pango-1.13.2 released [unstable] X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 22:10:14 -0000 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pango-1.13.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ or http://download.gnome.org/sources/pango/1.13/ 28a6ea9d43c4cd398e7352032f775401 pango-1.13.2.tar.bz2 17d78473c05fece044c6a3b44519b61f pango-1.13.2.tar.gz This is a development release leading up to Pango-1.14.0, which will be released just in time for GNOME-2.16. Notes: * This is unstable development release. While it has had fairly extensive testing, there are likely bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of Pango-1.12. If you have problems, you'll need to reinstall Pango-1.12.x * Bugs should be reported to http://bugzilla.gnome.org. About Pango =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x. Pango is designed to be modular; the core Pango layout engine can be used with different font backends. There are three basic backends, with multiple options for rendering with each. - Client side fonts using the FreeType and fontconfig libraries. Rendering can be with with Cairo or Xft libraries, or directly to an in-memory buffer with no additional libraries. - Native fonts on Microsoft Windows. (Optionally using Uniscribe for complex-text handling). Rendering can be done via Cairo or directly using the native Win32 API. - Native fonts on MacOS X, rendering via Cairo. The integration of Pango with Cairo (http://cairographics.org) provides a complete solution with high quality text handling and graphics rendering. Dynamically loaded modules then handle text layout for particular combinations of script and font backend. Pango ships with a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported. As well as the low level layout rendering routines, Pango includes PangoLayout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text. More information about Pango is available from http://www.pango.org/. Pango 1.13.2 depends on version 2.10.0 or newer of the GLib library and version 1.1.2 or newer of the cairo library (if the cairo backend is desired); more information about GLib and cairo can be found at http://www.gtk.org/ and http://cairographics.org/ respectively. Overview of changes between 1.13.1 and 1.13.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * Improved hexbox drawing, and font metrics calculations. * Synthesize italic variants on win32 [Hans Breuer] * New public API: - pango_cairo_show_error_underline - pango_cairo_error_underline_path - pango_font_describe_with_absolute_size * Misc fixes. * Bugs fixed in this release: Bug 326960 =E2=80=93 hex box drawing for win32 and atsui backends of cairo Bug 343717 =E2=80=93 License information in unclear. Bug 343355 =E2=80=93 Add pango_cairo_show_error_underline & pango_cairo_error_underline_path Bug 343966 =E2=80=93 pango Cygwin build fixes Patch from Cygwin Ports maintainer. Bug 343796 =E2=80=93 Italic Chinese character can't be show correctly in Win32. Bug 314114 =E2=80=93 max_x_advance not appropriate for approximate_(char|digit)_width Bug 341138 =E2=80=93 Using TTC font, Gtk2 programs begin to eating big mem= ory and have many cpu usage. Patch from Yong Li. Bug 336153 =E2=80=93 Mark to mark positioning (Lookup Type 6) isn't correc= t when using MarkAttchmentType Patch from Tin Myo Htet. Bug 333984 =E2=80=93 pango_language_from_string improvements Bug 125378 =E2=80=93 Better underline thickness handling Bug 339730 =E2=80=93 Pango needlessly falls back away from a Type 1 font i= nto a TTF font Bug 342562 =E2=80=93 Support absolute sizes in pango_font_description_to/from_string Bug 341922 =E2=80=93 pango should handle more characters as zero width Patch from Roozbeh Pournader Bug 342525 =E2=80=93 With PangoFc and PangoWin32, approximate digit width = is not what it says Bug 342079 =E2=80=93 pangoatsui-private.h missing from release Behdad Esfahbod 12 June 2006 --=-HZBsNn3KdPR3jVVwB9gO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEjeBFn+4E5dNTERURApTwAJ9OvqbaG1xnQYzGPC9u0WPi30b6ggCfXNvZ oFfMwctzkAaKRETc/0aDRj0= =Wl7j -----END PGP SIGNATURE----- --=-HZBsNn3KdPR3jVVwB9gO-- From ibaldo@adinet.com.uy Tue Jun 13 14:57:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 16B3A3B03F2 for ; Tue, 13 Jun 2006 14:57:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02939-02 for ; Tue, 13 Jun 2006 14:57:02 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 2FFFE3B00C4 for ; Tue, 13 Jun 2006 14:57:01 -0400 (EDT) Received: from [201.217.132.210] (201.217.132.210) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009A5526 for gtk-list@gnome.org; Tue, 13 Jun 2006 15:56:17 -0300 Message-ID: <448F0A43.8030606@adinet.com.uy> Date: Tue, 13 Jun 2006 15:56:03 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.182 tagged_above=-999 required=2 tests=[AWL=-0.645, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.182 X-Spam-Level: Subject: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 18:57:07 -0000 Hello. I must be doing something wrong but I don't know what is it, I can't believe that it is a bug in libglade since it should hit a lot of applications and people and I am not very experienced with GTK2 (I used GTK1 some long time ago though). It seems that libglade is not connecting the realize event of the drawing area but I can't believe it. Can someone tell what I am doing wrong or what I am missing? I googled for this, read a lot of documentation, invested like 4 hours and still don't get it. I know I can do some workarounds to what I am trying to do, but I think that it is better to learn. Your toughts are very appreciated. Here is my testglade.c file: /* Compile with: gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags --libs) -export-dynamic */ #include #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GladeXML *gxml; gtk_init(&argc, &argv); gxml = glade_xml_new("test.glade", NULL, NULL); glade_xml_signal_autoconnect(gxml); gtk_main(); return 0; } Here is my test.glade file: True window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True I made a testgtk.c file too to see if I can get the realize event and this works (I used a notebook because thats what I am doing in my real application which uses libglade): /* Compile with: gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) */ #include void realize(GtkWidget *da, gpointer ud) { g_print("realize_event of DrawingArea called!!!\n"); } int main(int argc, char *argv[]) { GtkWidget *window, *nb, *lbl, *da; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); da = gtk_drawing_area_new (); gtk_widget_set_size_request (da, 100, 100); g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); lbl = gtk_label_new ("A notebook with a Drawing Area"); nb = gtk_notebook_new (); gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), GTK_WIDGET(lbl)); gtk_container_add (GTK_CONTAINER (window), nb); gtk_widget_show_all (window); gtk_main(); return 0; } Goodbye. P.s.: I posted this email to gtk-app-devel-list yesterday but it didn't show up... -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From ibaldo@adinet.com.uy Tue Jun 13 21:16:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EA96E3B00D4; Tue, 13 Jun 2006 21:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12110-07; Tue, 13 Jun 2006 21:16:26 -0400 (EDT) Received: from smtp-s6.antel.net.uy (smtp-s6.antel.net.uy [200.40.30.235]) by menubar.gnome.org (Postfix) with ESMTP id 6CF0B3B0147; Tue, 13 Jun 2006 21:16:25 -0400 (EDT) Received: from [201.217.133.125] (201.217.133.125) by smtp-s6.antel.net.uy (7.2.072.1) (authenticated as ibaldo) id 44746A14009C939E; Tue, 13 Jun 2006 22:15:32 -0300 Message-ID: <448F404C.4020209@adinet.com.uy> Date: Tue, 13 Jun 2006 19:46:36 -0300 From: Ivan Baldo User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 X-Accept-Language: es-uy, es, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org References: <448DEC68.9000706@adinet.com.uy> In-Reply-To: <448DEC68.9000706@adinet.com.uy> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.142 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_GX=0.077] X-Spam-Score: -1.142 X-Spam-Level: Cc: Subject: Re: GtkDrawingArea realize event not connected when using libglade? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 01:16:32 -0000 Hello. Sorry for the crosspost, I tought that gtk-app-devel-list wasn't working but what isn't working is my ISP, for some reason I don't receive the emails of this mailing lists so I have to watch the archives :-(, and since I sent this email to gtk-list too I think that it is apropiate to close this thread there as well since maybe someone answers it without knowing that I already discovered my problem. I will not disturb on gtk-list anymore. Well, now I get it! libglade first creates all widgets and *shows* them because that is what is told on the XML file, after that it autoconnects all the events, but it is already too late for the realize event since the widgets are already realized :-). Silly me... I couldn't figure it before. Solution: don't enable the visible attribute on widgets that you want to catch the realize event and show this widgets manually with your own code after all signals are autoconnected. Thank you and goodbye. P.s.: now I need to figure out why the unrealize signal isn't emitted, but maybe because I use gtk_main_quit instead of destroying the main window... El 12/06/06 19:36, Ivan Baldo escribi: > Hello. > I must be doing something wrong but I don't know what is it, I > can't believe that it is a bug in libglade since it should hit a lot > of applications and people and I am not very experienced with GTK2 (I > used GTK1 some long time ago though). > It seems that libglade is not connecting the realize event of the > drawing area but I can't believe it. > Can someone tell what I am doing wrong or what I am missing? I > googled for this, read a lot of documentation, invested like 4 hours > and still don't get it. I know I can do some workarounds to what I am > trying to do, but I think that it is better to learn. Your toughts are > very appreciated. > Here is my testglade.c file: > > /* > Compile with: > gcc -Wall -o testglade testglade.c $(pkg-config libglade-2.0 --cflags > --libs) -export-dynamic > */ > > #include > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GladeXML *gxml; > gtk_init(&argc, &argv); > gxml = glade_xml_new("test.glade", NULL, NULL); > glade_xml_signal_autoconnect(gxml); > gtk_main(); > return 0; > } > > > Here is my test.glade file: > > > > > > > > True > window1 > GTK_WINDOW_TOPLEVEL > GTK_WIN_POS_NONE > False > True > False > True > False > False > GDK_WINDOW_TYPE_HINT_NORMAL > GDK_GRAVITY_NORTH_WEST > True > False > > > > True > last_modification_time="Mon, 12 Jun 2006 22:21:03 GMT"/> > > > > > > > > I made a testgtk.c file too to see if I can get the realize event > and this works (I used a notebook because thats what I am doing in my > real application which uses libglade): > /* > Compile with: > gcc -Wall -o testgtk testgtk.c $(pkg-config gtk+-2.0 --cflags --libs) > */ > > #include > > void realize(GtkWidget *da, gpointer ud) > { > g_print("realize_event of DrawingArea called!!!\n"); > } > > int main(int argc, char *argv[]) > { > GtkWidget *window, *nb, *lbl, *da; > gtk_init(&argc, &argv); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > da = gtk_drawing_area_new (); > gtk_widget_set_size_request (da, 100, 100); > g_signal_connect_after (da, "realize", G_CALLBACK (realize), NULL); > lbl = gtk_label_new ("A notebook with a Drawing Area"); > nb = gtk_notebook_new (); > gtk_notebook_append_page(GTK_NOTEBOOK(nb), GTK_WIDGET(da), > GTK_WIDGET(lbl)); > gtk_container_add (GTK_CONTAINER (window), nb); > gtk_widget_show_all (window); > gtk_main(); > return 0; > } > > Goodbye. > P.s.: I still don't know where to post this, I think the correct place > is here iin gtk-app-devel-list but maybe it should be gtk-list? > > -- Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/ ICQ 10215364 - Phone/FAX (598) (2) 613 3223. Caldas 1781, Malvin, Montevideo, Uruguay, South America, planet Earth. In favour of world peace and freedom, against U.S.A. and allies!!! Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo From kereoz@yahoo.fr Wed Jun 14 11:41:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525F23B029F for ; Wed, 14 Jun 2006 11:41:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01059-03 for ; Wed, 14 Jun 2006 11:41:52 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id E2C1F3B01CF for ; Wed, 14 Jun 2006 11:41:51 -0400 (EDT) Received: (qmail 57560 invoked by uid 60001); 14 Jun 2006 15:41:09 -0000 Message-ID: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Wed, 14 Jun 2006 17:41:09 CEST Date: Wed, 14 Jun 2006 17:41:09 +0200 (CEST) From: Christophe HAUSER Subject: GtkFixed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.215 tagged_above=-999 required=2 tests=[AWL=0.384, BAYES_00=-2.599] X-Spam-Score: -2.215 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 15:41:54 -0000 Hello, I've got a problem using GtkFixed. Using the following code, the window is empty when I launch the app. fixed = gtk_fixed_new(); Moz = gtk_moz_embed_new(); gtk_container_add (GTK_CONTAINER (window), fixed); gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); gtk_widget_show_all(window); Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From tvb@gnome.org Wed Jun 14 13:52:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36FAE3B0081 for ; Wed, 14 Jun 2006 13:52:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17448-10 for ; Wed, 14 Jun 2006 13:52:53 -0400 (EDT) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id DB2C83B000E for ; Wed, 14 Jun 2006 13:52:52 -0400 (EDT) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 4948015A7F; Wed, 14 Jun 2006 13:51:46 -0400 (EDT) Message-ID: <44904EFB.2060907@gnome.org> Date: Wed, 14 Jun 2006 14:01:31 -0400 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christophe HAUSER Subject: Re: GtkFixed References: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> In-Reply-To: <20060614154109.57558.qmail@web25911.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, SPF_HELO_PASS=-0.001] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 17:52:54 -0000 Christophe HAUSER wrote: > Hello, > > I've got a problem using GtkFixed. > Using the following code, the window is empty when I > launch the app. > > fixed = gtk_fixed_new(); > Moz = gtk_moz_embed_new(); > > gtk_container_add (GTK_CONTAINER (window), fixed); > gtk_fixed_put(GTK_FIXED(fixed), Moz,0,0); > > gtk_moz_embed_load_url(GTK_MOZ_EMBED(Moz),"about:"); > gtk_widget_show_all(window); Hmmm, looks like you have a fixed child with width/height = 0; try setting the size-request, since fixed doesnt allocate any size that you dont request. Cheers, -Tristan From M.Kahn@Astronautics.com Wed Jun 14 16:31:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03783B013D for ; Wed, 14 Jun 2006 16:31:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15984-10 for ; Wed, 14 Jun 2006 16:31:23 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 7DC8E3B0135 for ; Wed, 14 Jun 2006 16:31:22 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68FF1.5E830686" Subject: Button background colors Date: Wed, 14 Jun 2006 15:30:29 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaP8WA158meoUl2QFmwJ7Wu6VRUvQ== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.082 tagged_above=-999 required=2 tests=[AWL=0.439, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.082 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 20:31:25 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 =20 ------_=_NextPart_001_01C68FF1.5E830686 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

 

------_=_NextPart_001_01C68FF1.5E830686-- From paul@linuxaudiosystems.com Wed Jun 14 17:26:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CF6E3B02DC for ; Wed, 14 Jun 2006 17:26:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23464-07 for ; Wed, 14 Jun 2006 17:26:36 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id AC98D3B0388 for ; Wed, 14 Jun 2006 17:26:35 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0V00LGSCVCHRK9@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Jun 2006 16:26:01 -0500 (CDT) Date: Wed, 14 Jun 2006 17:26:22 -0400 From: Paul Davis Subject: Re: Button background colors In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150320382.1765.96.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 21:26:42 -0000 On Wed, 2006-06-14 at 15:30 -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file > because I am programming to requirements that specify different > background colors for different buttons. gtk_widget_set_name (buttonwidget, "myNameForThisSpecialButton"); then use "myNameForThisSpecialButton" in an RC file. From ben@benjohnson.net Wed Jun 14 22:09:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B08C13B00F3 for ; Wed, 14 Jun 2006 22:09:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05224-06 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: from server019.dfw.nationwide.net (server019.dfw.nationwide.net [206.123.129.82]) by menubar.gnome.org (Postfix) with SMTP id 604B53B0018 for ; Wed, 14 Jun 2006 22:09:11 -0400 (EDT) Received: (qmail 20394 invoked from network); 15 Jun 2006 02:08:31 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Thu, 15 Jun 2006 02:08:31 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 0AA77E4067 for ; Wed, 14 Jun 2006 19:08:32 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21661-10 for ; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id A3C6BE4071; Wed, 14 Jun 2006 19:08:31 -0700 (PDT) Date: Wed, 14 Jun 2006 19:08:31 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615020831.GP11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.551 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599] X-Spam-Score: -2.551 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 02:09:12 -0000 On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > I am using Gtk 2.8.18. > > I would like to know how to set the background color in a GtkButton. > > I cannot set the background in a style, theme, or resource file because I am > programming to requirements that specify different background colors for > different buttons. > > I have tried using gtk_widget_modify_bg the button, using all combinations > of creating the button with and without a label. I use gtk_widget_modify_bg() without trouble. piece of a function: struct somethingorother pagestate_colors = { blah, blah, blah }; static void update_examples_from_state( GtkWidget * toggle ) { GdkColor color = pagestate_colors.scheme_bg_normal; gtk_widget_modify_bg( toggle, GTK_STATE_NORMAL, &color); gtk_widget_modify_bg( toggle, GTK_STATE_ACTIVE, &color); gtk_widget_modify_bg( toggle, GTK_STATE_PRELIGHT, &color); gtk_widget_modify_bg( toggle, GTK_STATE_SELECTED, &color); gtk_widget_modify_bg( toggle, GTK_STATE_INSENSITIVE, &color); } after running that you have to let the main event processing loop run a little to let your changes take effect. I am using using 2.6.8-1 but I can't imagine this functionality would have changed. - Anna From laowenbo@gmail.com Thu Jun 15 02:38:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EC5B3B02E7 for ; Thu, 15 Jun 2006 02:38:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17015-01 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id B09DC3B0118 for ; Thu, 15 Jun 2006 02:38:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so183376pyd for ; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr2447571pyi; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Received: by 10.35.109.19 with HTTP; Wed, 14 Jun 2006 23:37:56 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 14:37:56 +0800 From: "lao wb" To: gtk-list@gnome.org Subject: Where to get more information about GDK MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1639_31450020.1150353476125" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -0.659 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 06:38:34 -0000 ------=_Part_1639_31450020.1150353476125 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, i am a newcomer The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk, but look like there is no www.gdk.org, another site i can find is developer.gnome.org, while lack of enough examples. I really need examples to know how to use the tricky gdk_XXX APIs. Thanks in advance! laowenbo ------=_Part_1639_31450020.1150353476125 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,
i am a newcomer
The GTK tutorial on www.gtk.org including abundant examples is really helpful to use gtk,  but look like there is no www.gdk.org , another site i can find is developer.gnome.org, while lack of enough examples.  I  really  need examples  to  know how to use the tricky gdk_XXX APIs. Thanks  in advance!

laowenbo
------=_Part_1639_31450020.1150353476125-- From yeti@physics.muni.cz Thu Jun 15 04:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 407AC3B03BB for ; Thu, 15 Jun 2006 04:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23572-06 for ; Thu, 15 Jun 2006 04:48:08 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 74E203B00F7 for ; Thu, 15 Jun 2006 04:48:07 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5F8laRp032159 for ; Thu, 15 Jun 2006 10:47:37 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id DBA3623D5E; Thu, 15 Jun 2006 10:47:36 +0200 (CEST) Date: Thu, 15 Jun 2006 10:47:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060615084737.GM2858@potato.chello.upc.cz> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 08:48:10 -0000 On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > I use gtk_widget_modify_bg() without trouble. piece of a function: It works for people who use a decent Gtk+ theme. But themes and theme engines can easily make similar things stop working. Try just style "default" { bg_pixmap[NORMAL] = "someimage" } widget_class "*" style "default" in your gtkrc. I am afraid the requirement of particular colors goes directly against themeability. One cannot have both. Yeti -- Anonyms eat their boogers. From rvaughan@gmail.com Thu Jun 15 08:11:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F45E3B03E8 for ; Thu, 15 Jun 2006 08:11:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05367-05 for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 422B93B03BB for ; Thu, 15 Jun 2006 08:11:48 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so845715uge for ; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr1254247ugm; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Received: by 10.67.97.17 with HTTP; Thu, 15 Jun 2006 05:11:47 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 13:11:47 +0100 From: "Richard Vaughan" To: gtk-list@gnome.org Subject: Layered Drawing Areas MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.026 tagged_above=-999 required=2 tests=[AWL=1.068, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: 0.026 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:11:53 -0000 Hi, Has anyone managed to get multiple drawing areas to layer transparently ontop of eachother? I am trying to create an app that looks like it will need 3 or four layers of information drawn ontop of each other - but I want to be able to work with the layers independantly, and I want to be able to see down to the bottom layer. Using a fixed container I can have the layers (at least it seems to do what I think I want), but when I draw in a layer it seems to blank out the 'destroyed' area. Is there a way of setting the transparency, or linking the background image for the layer above to the layer beneath it? If it changes anything I am using GPE on an Ipaq... Thanks, Richard From paul@linuxaudiosystems.com Thu Jun 15 08:56:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA8FA3B05A7 for ; Thu, 15 Jun 2006 08:56:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10559-01 for ; Thu, 15 Jun 2006 08:56:36 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B95773B04A2 for ; Thu, 15 Jun 2006 08:56:11 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W00MXXJXDED5C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 07:56:02 -0500 (CDT) Date: Thu, 15 Jun 2006 08:56:23 -0400 From: Paul Davis Subject: Re: Layered Drawing Areas In-reply-to: To: Richard Vaughan Message-id: <1150376183.1765.118.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 12:56:47 -0000 On Thu, 2006-06-15 at 13:11 +0100, Richard Vaughan wrote: > Hi, > > Has anyone managed to get multiple drawing areas to layer > transparently ontop of eachother? > > I am trying to create an app that looks like it will need 3 or four > layers of information drawn ontop of each other - but I want to be > able to work with the layers independantly, and I want to be able to > see down to the bottom layer. > > Using a fixed container I can have the layers (at least it seems to do > what I think I want), but when I draw in a layer it seems to blank out > the 'destroyed' area. Is there a way of setting the transparency, or > linking the background image for the layer above to the layer beneath > it? > > If it changes anything I am using GPE on an Ipaq... GnomeCanvas widget. GTK widgets do not (currently) support any notion of alpha transparency or z-order (stacking). The Canvas does. It has no relationships with Gnome other than those shared with GTK. GnomeCanvas is no longer "supported", but as yet its successor has not emerged and there are several contenders. --p From kereoz@yahoo.fr Thu Jun 15 10:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A85B3B05A7 for ; Thu, 15 Jun 2006 10:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16151-02 for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: from web25904.mail.ukl.yahoo.com (web25904.mail.ukl.yahoo.com [217.12.10.202]) by menubar.gnome.org (Postfix) with SMTP id 36F783B05BC for ; Thu, 15 Jun 2006 10:17:31 -0400 (EDT) Received: (qmail 4610 invoked by uid 60001); 15 Jun 2006 14:17:18 -0000 Message-ID: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25904.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 16:17:17 CEST Date: Thu, 15 Jun 2006 16:17:17 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <44904EFB.2060907@gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.274 tagged_above=-999 required=2 tests=[AWL=0.325, BAYES_00=-2.599] X-Spam-Score: -2.274 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 14:17:33 -0000 I tried setting the size-request, but the widget is still not shown...and I've got no error while compiling... I can run the app without any error, but I only see the main window... > Hmmm, looks like you have a fixed child with > width/height = 0; > try setting the size-request, since fixed doesnt > allocate any size > that you dont request. > > Cheers, > -Tristan > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:11:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDA413B0427 for ; Thu, 15 Jun 2006 11:11:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18523-06 for ; Thu, 15 Jun 2006 11:11:29 -0400 (EDT) Received: from web25909.mail.ukl.yahoo.com (web25909.mail.ukl.yahoo.com [217.12.10.207]) by menubar.gnome.org (Postfix) with SMTP id C78DB3B0261 for ; Thu, 15 Jun 2006 11:11:28 -0400 (EDT) Received: (qmail 17522 invoked by uid 60001); 15 Jun 2006 15:11:03 -0000 Message-ID: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25909.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:11:02 CEST Date: Thu, 15 Jun 2006 17:11:02 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615145020.HUVX16286.aamtaout03-winn.ispmail.ntl.com@smtp.ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.242, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:11:31 -0000 I think it will help :) But about the size request, I wonder if my code is right : GtkRequisition *req ; req->height = 300; req->width = 400; gtk_widget_size_request(GTK_WIDGET(Moz), req); Maybe I forget something ? It doesn't work better with a button or any other widget, but when it is something else than a mozilla widget, I can see it very small :) It is not resized... > This may help or may not? > Sometimes I have found with GtkContainer derived > widgets the requested position/layout is overridden. > Do a search for _gtk_widget_get_aux_info in the gtk > code. > > Calls to gtk_widget_set_uposition and > gtk_widget_set_usize create a GtkWidgetAuxInfo > structure which holds the location and positional > information from the fore mentioned calls. Once > created these values are used as default in size > requests. > > Could the moz widget be using > gtk_widget_set_uposition or gtk_widget_set_usize > internally? > > Regards > > ----------------------------------------- > Email sent from www.ntlworld.com > Virus-checked using McAfee(R) Software > Visit www.ntlworld.com/security for more information > > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From kereoz@yahoo.fr Thu Jun 15 11:27:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E921A3B05D7 for ; Thu, 15 Jun 2006 11:27:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19172-08 for ; Thu, 15 Jun 2006 11:27:23 -0400 (EDT) Received: from web25911.mail.ukl.yahoo.com (web25911.mail.ukl.yahoo.com [217.146.176.249]) by menubar.gnome.org (Postfix) with SMTP id D9EB83B05DE for ; Thu, 15 Jun 2006 11:27:22 -0400 (EDT) Received: (qmail 6262 invoked by uid 60001); 15 Jun 2006 15:26:43 -0000 Message-ID: <20060615152643.6260.qmail@web25911.mail.ukl.yahoo.com> Received: from [194.2.163.124] by web25911.mail.ukl.yahoo.com via HTTP; Thu, 15 Jun 2006 17:26:43 CEST Date: Thu, 15 Jun 2006 17:26:43 +0200 (CEST) From: Christophe HAUSER Subject: RE : Re: GtkFixed To: gtk-list@gnome.org In-Reply-To: <20060615141718.4608.qmail@web25904.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.311 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.311 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:27:26 -0000 Ok, I found the problem : I called the function gtk_widget_size_request instead of gtk_widget_set_size_request There is something strange : I didn't find gtk_widget_set_size_request in GTK documentation, but I found gtk_widget_size_request --- Christophe HAUSER a 閏rit : > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > > > > Christophe HAUSER > http://kereoz.sup.fr > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la > meilleure protection possible contre les messages > non sollicit閟 > http://mail.yahoo.fr Yahoo! Mail > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Christophe HAUSER http://kereoz.sup.fr __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit閟 http://mail.yahoo.fr Yahoo! Mail From paul@linuxaudiosystems.com Thu Jun 15 11:54:59 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8F83D3B0623 for ; Thu, 15 Jun 2006 11:54:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21029-03 for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 5B6DC3B063D for ; Thu, 15 Jun 2006 11:54:58 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0W0030XS358E42@vms042.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 10:52:17 -0500 (CDT) Date: Thu, 15 Jun 2006 11:52:39 -0400 From: Paul Davis Subject: Re: RE : Re: RE : Re: GtkFixed In-reply-to: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> To: Christophe HAUSER Message-id: <1150386759.22276.5.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <20060615151103.17520.qmail@web25909.mail.ukl.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 15:54:59 -0000 On Thu, 2006-06-15 at 17:11 +0200, Christophe HAUSER wrote: > I think it will help :) > But about the size request, I wonder if my code is > right : > > GtkRequisition *req ; > req->height = 300; > req->width = 400; > > gtk_widget_size_request(GTK_WIDGET(Moz), req); gtk_widget_set_size_request() From cole-anstey@ntlworld.com Thu Jun 15 13:44:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A2983B0314 for ; Thu, 15 Jun 2006 13:44:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25557-02 for ; Thu, 15 Jun 2006 13:44:03 -0400 (EDT) Received: from queue01-winn.ispmail.ntl.com (queue01-winn.ispmail.ntl.com [81.103.221.55]) by menubar.gnome.org (Postfix) with ESMTP id 62F8D3B0126 for ; Thu, 15 Jun 2006 13:44:02 -0400 (EDT) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20060615145316.CKIP28076.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 Received: from smtp.ntlworld.com ([81.103.221.25]) by aamtaout04-winn.ispmail.ntl.com with SMTP id <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> for ; Thu, 15 Jun 2006 15:53:16 +0100 X-Mailer: Openwave WebEngine, version 2.8.17 (webedge20-101-1107-20041027) X-Originating-IP: [146.82.1.162] From: To: Subject: Re: RE : Re: GtkFixed Date: Thu, 15 Jun 2006 14:53:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060615145316.CHDM16086.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.572 tagged_above=-999 required=2 tests=[AWL=-0.718, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -0.572 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 17:44:04 -0000 > > I tried setting the size-request, but the widget is > still not shown...and I've got no error while > compiling... > I can run the app without any error, but I only see > the main window... > > > Hmmm, looks like you have a fixed child with > > width/height = 0; > > try setting the size-request, since fixed doesnt > > allocate any size > > that you dont request. > > > > Cheers, > > -Tristan > > > This may help or may not? Sometimes I have found with GtkContainer derived widgets the requested position/layout is overridden. Do a search for _gtk_widget_get_aux_info in the gtk code. Calls to gtk_widget_set_uposition and gtk_widget_set_usize create a GtkWidgetAuxInfo structure which holds the location and positional information from the fore mentioned calls. Once created these values are used as default in size requests. Could the moz widget be using gtk_widget_set_uposition or gtk_widget_set_usize internally? Regards ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From adc4444@hotmail.com Thu Jun 15 14:07:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9713A3B0397 for ; Thu, 15 Jun 2006 14:07:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26238-06 for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 7FBC63B007F for ; Thu, 15 Jun 2006 14:07:44 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 Jun 2006 11:07:10 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Thu, 15 Jun 2006 18:07:09 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com From: "DC A" To: gtk-list@gnome.org Subject: Problem in updating progress bar Date: Thu, 15 Jun 2006 18:07:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Jun 2006 18:07:10.0440 (UTC) FILETIME=[85713E80:01C690A6] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.162 tagged_above=-999 required=2 tests=[AWL=-2.069, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 18:07:45 -0000 What could be the reason for using gtk_events_pending() and gtk_main_iteration() in the following code snippet: for( gflt=0; gflt<=1; ){ gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); //update while (gtk_events_pending ()) gtk_main_iteration (); gflt += 0.1; sleep(1); if ( gflt > 1 ) break; } why the code cannot update the progressbar without these two functions? I saw the API but still it is not clear to me. Thanks. --AD _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From yeti@physics.muni.cz Thu Jun 15 16:27:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 733223B01A1 for ; Thu, 15 Jun 2006 16:27:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31273-10 for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 575F33B006C for ; Thu, 15 Jun 2006 16:27:55 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5FJHlVX028614 for ; Thu, 15 Jun 2006 21:17:48 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 2DC7C23D5E; Thu, 15 Jun 2006 21:17:47 +0200 (CEST) Date: Thu, 15 Jun 2006 21:17:50 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Problem in updating progress bar Message-ID: <20060615191750.GO30886@potato.chello.upc.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:27:57 -0000 On Thu, Jun 15, 2006 at 06:07:09PM +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. Have yor read the FAQ too? http://www.gtk.org/faq/#AEN602 Also, are you aware gtk_progress_bar_update() is deprecated? gtk_progress_bar_set_fraction() -- which is the function to use -- only queues the drawing. The drawing then actually occurs in Gtk+ main loop, which does not have a chance to run without gtk_main_iteration(). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Thu Jun 15 16:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F7FB3B01A1 for ; Thu, 15 Jun 2006 16:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00430-05 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id BFC843B0237 for ; Thu, 15 Jun 2006 16:53:30 -0400 (EDT) Received: from dual ([151.197.125.250]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0X009IA2VD7944@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Jun 2006 14:45:14 -0500 (CDT) Date: Thu, 15 Jun 2006 15:45:35 -0400 From: Paul Davis Subject: Re: Problem in updating progress bar In-reply-to: To: DC A Message-id: <1150400735.22276.22.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:53:34 -0000 On Thu, 2006-06-15 at 18:07 +0000, DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. google for "event based programming main loop" programming GUIs is very different in its basic control flow model than writing simple non-user-driven procedural software. From M.Kahn@Astronautics.com Thu Jun 15 16:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 740B13B03D2 for ; Thu, 15 Jun 2006 16:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00479-06 for ; Thu, 15 Jun 2006 16:54:44 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 79F013B0311 for ; Thu, 15 Jun 2006 16:54:43 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C690BD.DA53493A" Subject: RE: Button background colors Date: Thu, 15 Jun 2006 15:54:10 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019481FF@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSABaKA0g From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:54:47 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A coworker came to my rescue on this one. I am a Linux developer and this application had to work under Windows. It turns out that if your Windows desktop theme is set to "Windows XP" then you cannot change the background color of your buttons. If you change your desktop theme to "Windows Classic" then the gtk_widget_modify_style approach works. The gtk_widget_set_style and other approaches may also work, but I haven't tested them. We have a short deadline on this app - I'll test it later. =20 Thanks to everyone who gave it a look. What a surprise it turned out to be a Windows problem, not a GTK problem. =20 Michael Kahn =20 ________________________________ From: Michael Kahn=20 Sent: Tuesday, June 13, 2006 8:49 PM To: 'gtk-list@gnome.org' Subject: Button background colors =20 I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C690BD.DA53493A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A coworker came to my rescue on = this one.  I am a Linux developer and this application had to work under Windows.  It turns out that if your Windows desktop theme is set to = “Windows XP” then you cannot change the background color of your = buttons.  If you change your desktop theme to “Windows Classic” then the = gtk_widget_modify_style approach works.  The gtk_widget_set_style  and other = approaches may also work, but I haven’t tested them.  We have a short = deadline on this app – I’ll test it later.

 

Thanks to everyone who gave it a look.  What a surprise it turned out to be a Windows problem, not a = GTK problem.

 

  Michael = Kahn

 


From: = Michael Kahn
Sent: Tuesday, June 13, = 2006 8:49 PM
To: = 'gtk-list@gnome.org'
Subject: Button = background colors

 

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to = set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to = the latest military and commercial aircraft control panels.  Thus I am expected to be able to emulate this with the buttons on my GUI.  So = far, I have failed utterly with GTK.

 

My web searches led me to try some of these processes – in particular, Havoc Pennington’s “GTK colors mini-FAQ” is what led me to try using the gtk_widget_get_parent to = get the container widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( = ), which means I managed to set the background of the Main Window but nothing = else, despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C690BD.DA53493A-- From BillS@techsi.com Thu Jun 15 18:05:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348F23B01FF for ; Thu, 15 Jun 2006 18:05:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02711-10 for ; Thu, 15 Jun 2006 18:05:22 -0400 (EDT) Received: from mail.techsi.com (mail.techsi.com [68.15.225.156]) by menubar.gnome.org (Postfix) with ESMTP id 09F4F3B018C for ; Thu, 15 Jun 2006 18:05:21 -0400 (EDT) Received: from PCBillS ([192.168.0.219]) by mail.techsi.com (8.12.10/8.12.10) with ESMTP id k5FLp1AZ024125 for ; Thu, 15 Jun 2006 16:51:06 -0500 From: "Bill Sousan" To: Subject: use of gtk rc files slows down display Date: Thu, 15 Jun 2006 17:04:18 -0500 Message-ID: <000601c690c7$aa62c850$db00a8c0@techsi.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C6909D.C18CC050" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaJdSsRYrjZo913SPm8k/6CEFijaA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.603 tagged_above=-999 required=2 tests=[AWL=-0.682, BAYES_50=0.001, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -0.603 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 22:05:25 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using some existing rc files for my gtk application that I pulled off of the web and noticed a considerable slow down in the display versus when not using an rc file (the one passed to gtk_rc_parse() function). Are there considerations that I need to be aware of if I want to use to rc files to have a nice "skin" without the slowdown? Thanks, Bill ------=_NextPart_000_0007_01C6909D.C18CC050 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using some existing rc files for my gtk = application that I pulled off of the web and noticed a considerable slow down in the = display versus when not using an rc file (the one passed to gtk_rc_parse() function).  Are there considerations that I need to be aware of if = I want to use to rc files to have a nice “skin” without the = slowdown?

 

Thanks,

Bill

 

 

------=_NextPart_000_0007_01C6909D.C18CC050-- From diego@otello.alma.unibo.it Fri Jun 16 01:40:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C38C23B006C for ; Fri, 16 Jun 2006 01:40:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18193-03 for ; Fri, 16 Jun 2006 01:40:09 -0400 (EDT) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 852AC3B0011 for ; Fri, 16 Jun 2006 01:39:59 -0400 (EDT) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 44DB0122256; Fri, 16 Jun 2006 03:38:40 -0400 (EDT) Message-ID: <449243F6.6010901@otello.alma.unibo.it> Date: Fri, 16 Jun 2006 07:39:02 +0200 From: Diego Zuccato User-Agent: Thunderbird 1.5.0.2 (X11/20060422) MIME-Version: 1.0 To: DC A Subject: Re: Problem in updating progress bar References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.558 tagged_above=-999 required=2 tests=[AWL=0.041, BAYES_00=-2.599] X-Spam-Score: -2.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 05:40:28 -0000 DC A wrote: > What could be the reason for using gtk_events_pending() and > gtk_main_iteration() in the following code snippet: > > > for( gflt=0; gflt<=1; ){ > gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt ); > //update > while (gtk_events_pending ()) > gtk_main_iteration (); > gflt += 0.1; > sleep(1); > if ( gflt > 1 ) break; > } > > why the code cannot update the progressbar without these two functions? I > saw the API but still it is not clear to me. 'Cause you're blocking the main loop (which handles all the updating). But that sleep(1) still blocks for a whole second any action: your GUI will act quite strangely! Could be really better to handle a timeout/idle callback. If all you have to do is some lengthy operation, you could use a thread that does it and updates a "percentage indicator" (a shared variable). In the main program (the GUI manager) you set up a timeout callback (the timeout is up to you: from .1 to tenths of seconds) that reads the shared variable and updates the progress bar. This way you won't have to bother about locks: just DON'T do anything GUI-related in the calc thread. BYtE, Diego. From lists@nabble.com Fri Jun 16 07:14:35 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12D983B0007 for ; Fri, 16 Jun 2006 07:14:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26539-04 for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id C61543B002C for ; Fri, 16 Jun 2006 07:14:33 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FrCGc-0008HH-NC for gtk-list@gnome.org; Fri, 16 Jun 2006 04:13:34 -0700 Message-ID: <4898493.post@talk.nabble.com> Date: Fri, 16 Jun 2006 03:58:40 -0700 (PDT) From: prashu To: gtk-list@gnome.org Subject: Regarding GTK player MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: prashan@sasken.com X-Nabble-From: prashu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.316 tagged_above=-999 required=2 tests=[AWL=2.285, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.316 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 11:14:35 -0000 hi all... i am designing user inerface to mobiles for mobiles. For UI i selected GTK as framework. I am writting in C langauge. What actually i need is one playlist window which contains audio files from particular directory. on selecting file from playlist another window should open. which contains play and pause buttons. If any one have code of this thing , please mail to my id, prashan@sasken.com. with regards, Prashanth KM -- View this message in context: http://www.nabble.com/Regarding-GTK-player-t1797584.html#a4898493 Sent from the Gtk+ - General forum at Nabble.com. From adc4444@hotmail.com Fri Jun 16 14:07:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C2A253B026A for ; Fri, 16 Jun 2006 14:07:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11049-01 for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from hotmail.com (bay119-f14.bay119.hotmail.com [207.46.9.94]) by menubar.gnome.org (Postfix) with ESMTP id 5D7A93B030D for ; Fri, 16 Jun 2006 14:07:52 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 16 Jun 2006 11:05:35 -0700 Message-ID: Received: from 207.46.9.123 by by119fd.bay119.hotmail.msn.com with HTTP; Fri, 16 Jun 2006 18:05:30 GMT X-Originating-IP: [64.229.227.235] X-Originating-Email: [adc4444@hotmail.com] X-Sender: adc4444@hotmail.com In-Reply-To: <449243F6.6010901@otello.alma.unibo.it> From: "DC A" To: diego@otello.alma.unibo.it, gtk-list@gnome.org Subject: Re: Problem in updating progress bar Date: Fri, 16 Jun 2006 18:05:30 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 16 Jun 2006 18:05:35.0606 (UTC) FILETIME=[77547960:01C6916F] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.156 tagged_above=-999 required=2 tests=[AWL=-2.063, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.156 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 18:07:54 -0000 Thank you all for explaining this problem. --DC _________________________________________________________________ Fashion, food, romance in Sympatico / MSN Lifestyle http://lifestyle.sympatico.msn.ca/Home/ From papel@free.fr Wed Jun 14 07:03:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB43B01B1 for ; Wed, 14 Jun 2006 07:03:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16109-06 for ; Wed, 14 Jun 2006 07:03:40 -0400 (EDT) Received: from swip.net (mailfe04.tele2.fr [212.247.154.108]) by menubar.gnome.org (Postfix) with ESMTP id 9DBBD3B0093 for ; Wed, 14 Jun 2006 07:03:39 -0400 (EDT) X-T2-Posting-ID: 4qjjVdH8TQlq0xUsIYMW3y8I4nzdJt8e7HSuCLByD9Y= X-Cloudmark-Score: 0.000000 [] Received: from [80.170.52.241] (HELO localhost) by mailfe04.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 212846123 for gtk-list@gnome.org; Wed, 14 Jun 2006 13:03:02 +0200 Message-ID: <448FEC06.9090600@free.fr> Date: Wed, 14 Jun 2006 12:59:18 +0200 From: Papel User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.12) Gecko/20050920 X-Accept-Language: fr, es, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk events ??? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.898 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -0.898 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 11:03:42 -0000 Hello, From a few days ago, i have a lot of problems with gtk events (MainLoop). I have created a GTK frame into a main widget and a box into this frame. I have reparent this widget (window) to a XWindow. I would like to send events (XEvents) to this widget. How I can do to send this XEvents to GtkEvents to the widget ??? I have tried : gtk_widget_event / gtk_main_iteration_do / gtk_main_do_event / etc... Thank you in advance MCB From root@gateshead-online.co.uk Thu Jun 15 03:57:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B35803B0155 for ; Thu, 15 Jun 2006 03:57:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20648-07 for ; Thu, 15 Jun 2006 03:57:12 -0400 (EDT) Received: from gateshead-online.co.uk (p15122568.pureserver.info [217.160.177.192]) by menubar.gnome.org (Postfix) with ESMTP id 1EC033B02FA for ; Thu, 15 Jun 2006 03:57:09 -0400 (EDT) Received: from root by gateshead-online.co.uk with local (Exim 4.30) id 1Fqmic-0008Bj-Jf for gtk-list@gnome.org; Thu, 15 Jun 2006 08:56:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17553.4798.584679.71190@p15122568.pureserver.info> Date: Thu, 15 Jun 2006 08:56:46 +0100 To: gtk-list@gnome.org From: dale_mellor@users.sourceforge.net Subject: Re: Button background colors In-Reply-To: <20060615020831.GP11914@rose.benjohnson.net> References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> X-Mailer: VM 7.18 under Emacs 21.4.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.503 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, NO_REAL_NAME=0.961] X-Spam-Score: -1.503 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 07:57:14 -0000 I too use gtk_widget_modify_bg without trouble on a GtkButton object, using GTK version 2.9.2. Anna writes: > On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote: > > I am using Gtk 2.8.18. > > > > I would like to know how to set the background color in a GtkButton. > > > > I cannot set the background in a style, theme, or resource file because I am > > programming to requirements that specify different background colors for > > different buttons. > > > > I have tried using gtk_widget_modify_bg the button, using all combinations > > of creating the button with and without a label. > > I use gtk_widget_modify_bg() without trouble. piece of a function: > From jose.francisco.hevia@gmail.com Thu Jun 15 05:27:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B20D43B0270 for ; Thu, 15 Jun 2006 05:27:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25836-07 for ; Thu, 15 Jun 2006 05:27:38 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8A7003B0353 for ; Thu, 15 Jun 2006 05:27:37 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so51745nfe for ; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.47.10 with SMTP id u10mr360304nfu; Thu, 15 Jun 2006 02:27:36 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 15 Jun 2006 02:27:35 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 11:27:35 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Button background colors In-Reply-To: <20060615084737.GM2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.104 tagged_above=-999 required=2 tests=[AWL=0.195, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.104 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 09:27:39 -0000 MjAwNi82LzE1LCBEYXZpZCBOZehhcyAoWWV0aSkgPHlldGlAcGh5c2ljcy5tdW5pLmN6PjoKPiBP biBXZWQsIEp1biAxNCwgMjAwNiBhdCAwNzowODozMVBNIC0wNzAwLCBBbm5hIHdyb3RlOgo+ID4K PiA+IEkgdXNlIGd0a193aWRnZXRfbW9kaWZ5X2JnKCkgd2l0aG91dCB0cm91YmxlLiAgcGllY2Ug b2YgYSBmdW5jdGlvbjoKPgo+IEl0IHdvcmtzIGZvciBwZW9wbGUgd2hvIHVzZSBhIGRlY2VudCBH dGsrIHRoZW1lLiAgQnV0IHRoZW1lcwo+IGFuZCB0aGVtZSBlbmdpbmVzIGNhbiBlYXNpbHkgbWFr ZSBzaW1pbGFyIHRoaW5ncyBzdG9wIHdvcmtpbmcuCj4gVHJ5IGp1c3QKPgo+IHN0eWxlICJkZWZh dWx0IiB7Cj4gICAgYmdfcGl4bWFwW05PUk1BTF0gPSAic29tZWltYWdlIgo+IH0KPiB3aWRnZXRf Y2xhc3MgIioiIHN0eWxlICJkZWZhdWx0Igo+Cj4gaW4geW91ciBndGtyYy4KPgo+IEkgYW0gYWZy YWlkIHRoZSByZXF1aXJlbWVudCBvZiBwYXJ0aWN1bGFyIGNvbG9ycyBnb2VzCj4gZGlyZWN0bHkg YWdhaW5zdCB0aGVtZWFiaWxpdHkuICBPbmUgY2Fubm90IGhhdmUgYm90aC4KPgo+IFlldGkKCkF0 IGZpcnN0LCBJIGFncmVlZCB3aXRoIHRoaXMuIE5vdyBJIGtub3cgdGhhdCBpdCdzIHBvc3NpYmxl IHRvIG1ha2UgYW4KaW50ZWxsaWdlbnQgcHJvZ3JhbSB0aGF0IGtub3dzIHdpdGNoIGNvbG9ycyBh cmUgeW91IHVzaW5nIGFuZCB0YWtlCmFjdGlvbiBmcm9tIGl0LgoKODAgcGVyIGNlbnQgb2YgdGhl bWVzIGFyZSBhbG1vc3Qgd2hpdGUgZm9yIGJ1dHRvbnMsIEkgbGlrZSBkYXJrIG9uZXMuClRoaXMg Y291bGQgYmUgZGV0ZWN0ZWQgYnkgdGhlIHByb2dyYW0gYW5kIGRlY2lkZToKSWYgeW91IGFyZSB1 c2luZyBicmlnaHQgdGhlbWVzIHtzZWxlY3QgdGhpcyBjb2xvcnMufQplbHNlIHtzZWxlY3QgdGhl IG90aGVyIG9uZXMufQpiYXNlZCBpbiBjb250cmFzdCBiZXR3ZWVuIHRoZW0KClRoZW1lYWJpbGl0 eSBpcyB2ZXJ5IGltcG9ydGFudCBmb3IgR3RrLCBidXQgdXNpbmcgY29sb3JzIGxpa2Ugc2NhbGFi bGUKaWNvbnMgKGxvb2sgYXQgdGhlc2UgZmlsbXMgd2l0aCB0aGUgInJlZCBidXR0b24iKSB3aXRo b3V0IGhhdmluZyB0bwpib3RoZXIgd2l0aCBjb21wbGV4aXR5IGdpdmVzIGd0ayBhIGxvdCBvZiBw b3dlciB0byBnaXZlIGl0IGF3YXkuCgogICAgICAgICAgICBKb3NlIEhldmlhCg== From kstachowski@o2.pl Thu Jun 15 19:00:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1AB673B00D0 for ; Thu, 15 Jun 2006 19:00:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04700-08 for ; Thu, 15 Jun 2006 19:00:27 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 03CFC3B0080 for ; Thu, 15 Jun 2006 19:00:26 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2035C58014 for ; Fri, 16 Jun 2006 00:59:51 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: drawing a generated bitmap Date: Thu, 15 Jun 2006 22:59:50 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606152259.50433.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.102 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: 1.102 X-Spam-Level: * X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 23:00:28 -0000 hello :) i understand this is a basic question and am sorry for my ignorance. i really haven't managed to find an answer though i've searched quite a time. i've actually got two problems (using nemerle (mono, i.e. gtk#)): 1. i'd like to generate a terrain heightmap and draw it onto a widget. should i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), try to convert it to an xpm (how?) or what other method would be most appropriate? (please, read the second question before answering this one) 2. i'd like to be able to fluently change the colours while the heightmap is already generated. in the old days (i haven't written much for quite a time) it was possible to just draw a bitmap onto the screen and keep redefining the colours, which was pretty fast and looked nice in its way. is it still doable? i'd need it for altering the water level on the map. any help would be appreciated :) From zhaolj@gmail.com Fri Jun 16 03:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46A9B3B000B for ; Fri, 16 Jun 2006 03:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20725-04 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 76F973B0007 for ; Fri, 16 Jun 2006 03:27:55 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so510575pyd for ; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.15.11 with SMTP id s11mr424956pyi; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Fri, 16 Jun 2006 00:26:41 -0700 (PDT) Message-ID: <9f5a93cb0606160026o65c6bc68gdd9b2a4ad88f4264@mail.gmail.com> Date: Fri, 16 Jun 2006 15:26:41 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.818 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.818 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 07:27:56 -0000 RGVhciBBbGwsCgpJIGhhdmUgYSBwcm9ibGVtIHdoZW4gSSBjcmVhdGUgYSBuZXcgR1NvdXJjZSBz dHJ1Y3R1cmUuCgpJbiBmYWN0LCBJIHdvdWxkIHNlbmQgc29tZSBldmVudHMgdG8gdGhlIG1haW4g bG9vcCBvZiBteSBhcHAgZnJvbQpvdGhlciB0aHJlYWRzIG9ubHkgd2l0aCB0aGUgZ2xpYiBBUElz LiBJIGNyZWF0ZSBteSBvd24gR1NvdXJjZQpzdHJ1Y3R1cmUgYW5kIGF0dGFjaCBpdCB3aXRoIHRo ZSBkZWZhdWx0IG1haW4gY29udGV4dC4gQnV0IEkgYWx3YXlzCmdldCBhIHNlZ21lbnQgZmF1bHQg d2hlbiB0aGUgb3RoZXIgdGhyZWFkIHNlbmQgc29tZSB0aGluZyB0byB0aGUgbWFpbgpsb29wLiBJ IGZpbmQgZXZlcnkgZmV3IGluZm9ybWF0aW9uIGFib3V0IHVzaW5nIEdTb3VyY2UuCgpXaGVyZSBj YW4gSSBmaW5kIGFuIGV4YW1wbGUgb2YgdXNpbmcgR1NvdXJjZSAobm90IHVzaW5nCmdfaWRsZV9z b3VyY2VfbmV3LCBub3IgZ190aW1lb3V0X3NvdXJjZV9uZXcpID8gb3IgQ2FuIHlvdSBndXlzIHN1 Z2dlc3QKbWUgYmV0dGVyIHNvbHV0aW9uIGFib3V0IHNlbmQgZXZlbnQgd2l0aCBteSBvd24gZGF0 YSB0byBtYWluIGxvb3AKKG1haW4gbG9vcCBjYW4gbm90IGJlIHN0b3BlZCBvciBibG9ja2VkKSBv bmx5IHVzaW5nIGdsaWIgQVBJcz8KClRoYW5rcyBpbiBhZHZhbmNlIQoKLS0gClJlZ2FyZHOjoQoK TGlhbmdqaW5nCg== From andyggill@gmail.com Fri Jun 16 09:51:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF0263B0011 for ; Fri, 16 Jun 2006 09:51:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30311-07 for ; Fri, 16 Jun 2006 09:51:39 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by menubar.gnome.org (Postfix) with ESMTP id BC4D33B0007 for ; Fri, 16 Jun 2006 09:51:38 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c2so487632nfe for ; Fri, 16 Jun 2006 06:50:41 -0700 (PDT) Received: by 10.48.43.7 with SMTP id q7mr1735277nfq; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Received: by 10.49.58.15 with HTTP; Fri, 16 Jun 2006 06:50:40 -0700 (PDT) Message-ID: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> Date: Fri, 16 Jun 2006 14:50:40 +0100 From: "andy gill" To: gtk-list@gnome.org Subject: opengl and gtk MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_113283_13878838.1150465840774" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.161 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -0.161 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:50 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 13:51:42 -0000 ------=_Part_113283_13878838.1150465840774 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree. what's the best (i.e. documented and supported) way of getting opengl and gtk to work together? cheers. ------=_Part_113283_13878838.1150465840774 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline is there any officially supported way of integrating opengl into a gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to have varying levels of support for different platforms/language bindings, and i don't quite understand why there isn't opengl support in the main tree.
what's the best (i.e. documented and supported) way of getting opengl and gtk to work together?

cheers.
------=_Part_113283_13878838.1150465840774-- From zhaolj@gmail.com Sat Jun 17 12:32:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 872CF3B0139 for ; Sat, 17 Jun 2006 12:32:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27157-09 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id 3DAF43B00E6 for ; Sat, 17 Jun 2006 12:32:46 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id c39so865244pyd for ; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.18.4 with SMTP id v4mr6012908pyi; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Received: by 10.35.73.7 with HTTP; Sat, 17 Jun 2006 09:32:02 -0700 (PDT) Message-ID: <9f5a93cb0606170932i455c53c0ved3aa0c501215662@mail.gmail.com> Date: Sun, 18 Jun 2006 00:32:02 +0800 From: "Liangjing Zhao" To: gtk-list@gnome.org Subject: How to create a new customized GSource MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.597 tagged_above=-999 required=2 tests=[AWL=0.779, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -1.597 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 16:32:47 -0000 RGVhciBBbGwsCgpTb3JyeSwgSSBhbSBub3Qgc3VyZSBpZiBJIHBvc3QgdGhpcyBxdWVzdGlvbiB0 d2ljZSBpbiB0aGlzIGxpc3QuIEJ1dAppdCBzZWVtcyB0aGUgZmlyc3QgdGltZSB3YXMgZmFpbGVk LgoKSSBoYXZlIGEgcHJvYmxlbSB3aGVuIEkgY3JlYXRlIGEgbmV3IEdTb3VyY2Ugc3RydWN0dXJl LgoKSW4gZmFjdCwgSSB3b3VsZCBzZW5kIHNvbWUgZXZlbnRzIHRvIHRoZSBtYWluIGxvb3Agb2Yg bXkgYXBwIGZyb20Kb3RoZXIgdGhyZWFkcyBvbmx5IHdpdGggdGhlIGdsaWIgQVBJcy4gSSBjcmVh dGUgbXkgb3duIEdTb3VyY2UKc3RydWN0dXJlIGFuZCBhdHRhY2ggaXQgd2l0aCB0aGUgZGVmYXVs dCBtYWluIGNvbnRleHQuIEJ1dCBJIGFsd2F5cwpnZXQgYSBzZWdtZW50IGZhdWx0IHdoZW4gdGhl IG90aGVyIHRocmVhZCBzZW5kIHNvbWUgdGhpbmcgdG8gdGhlIG1haW4KbG9vcC4gSSBmaW5kIGV2 ZXJ5IGZldyBpbmZvcm1hdGlvbiBhYm91dCB1c2luZyBHU291cmNlLgoKV2hlcmUgY2FuIEkgZmlu ZCBhbiBleGFtcGxlIG9mIHVzaW5nIEdTb3VyY2UgKG5vdCB1c2luZwpnX2lkbGVfc291cmNlX25l dywgbm9yIGdfdGltZW91dF9zb3VyY2VfbmV3KSA/IG9yIENhbiB5b3UgZ3V5cyBzdWdnZXN0Cm1l IGJldHRlciBzb2x1dGlvbiBhYm91dCBzZW5kIGV2ZW50IHdpdGggbXkgb3duIGRhdGEgdG8gbWFp biBsb29wCihtYWluIGxvb3AgY2FuIG5vdCBiZSBzdG9wZWQgb3IgYmxvY2tlZCkgb25seSB1c2lu ZyBnbGliIEFQSXM/CgpUaGFua3MgaW4gYWR2YW5jZSEKCi0tIApSZWdhcmRzo6EKCkxpYW5namlu Zwo= From ben@benjohnson.net Sat Jun 17 16:19:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6D3B02A9 for ; Sat, 17 Jun 2006 16:19:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06354-09 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: from server016.dfw.nationwide.net (server016.dfw.nationwide.net [206.123.129.79]) by menubar.gnome.org (Postfix) with SMTP id C8CD93B00D2 for ; Sat, 17 Jun 2006 16:19:42 -0400 (EDT) Received: (qmail 15137 invoked from network); 17 Jun 2006 20:17:13 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Sat, 17 Jun 2006 20:17:13 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 2E560E4067 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00589-06 for ; Sat, 17 Jun 2006 13:17:13 -0700 (PDT) Received: by rose (Postfix, from userid 1000) id E181DE4071; Sat, 17 Jun 2006 13:17:12 -0700 (PDT) Date: Sat, 17 Jun 2006 13:17:12 -0700 From: Anna To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617201712.GF11914@rose.benjohnson.net> Mail-Followup-To: Anna , gtk-list@gnome.org References: <79D0CFE134D11C45A1E70E6EF187EBFC018FD306@HQMAIL1.aca.astronautics.com> <20060615020831.GP11914@rose.benjohnson.net> <20060615084737.GM2858@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.515 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.515 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:19:46 -0000 On Thu, Jun 15, 2006 at 11:27:35AM +0200, Jose Hevia wrote: > 2006/6/15, David Ne?as (Yeti) : > > On Wed, Jun 14, 2006 at 07:08:31PM -0700, Anna wrote: > > > > > > I use gtk_widget_modify_bg() without trouble. piece of a function: > > > > It works for people who use a decent Gtk+ theme. But themes > > and theme engines can easily make similar things stop working. > > Try just > > > > style "default" { > > bg_pixmap[NORMAL] = "someimage" > > } > > widget_class "*" style "default" > > > > in your gtkrc. > > > > I am afraid the requirement of particular colors goes > > directly against themeability. One cannot have both. > > > > Yeti > > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them > > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I have a "widget" (actually, a dialog with database interface) that allows users to create button background colors, and apply that "theme" to a "class" of buttons in the application. This was an important element to have in my app because the buttons, from the GTK+ point of view, are all more or less the same, and are created on-the-fly at the user's bequest. The user is allowed to group the buttons in any way they see fit. It works quite well with two great benefits: it gets around inflexabilities in themes and makes button color selection accessible to users who don't know how to use a text editor... much less use a syntax to create a complex theme. - Anna From yeti@physics.muni.cz Sat Jun 17 16:45:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F38AC3B07E3 for ; Sat, 17 Jun 2006 16:45:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09232-08 for ; Sat, 17 Jun 2006 16:45:26 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 7746F3B0805 for ; Sat, 17 Jun 2006 16:45:25 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HHKKwI018732 for ; Sat, 17 Jun 2006 19:20:21 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 0804923CE9; Sat, 17 Jun 2006 19:20:20 +0200 (CEST) Date: Sat, 17 Jun 2006 19:20:23 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060617172023.GS30886@potato.chello.upc.cz> References: <200606152259.50433.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606152259.50433.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 20:45:29 -0000 On Thu, Jun 15, 2006 at 10:59:50PM +0000, kamil stachowski wrote: > i understand this is a basic question and am sorry for my ignorance. i really > haven't managed to find an answer though i've searched quite a time. > > i've actually got two problems (using nemerle (mono, i.e. gtk#)): > > 1. i'd like to generate a terrain heightmap and draw it onto a widget. should > i be using drawingarea.gdkwindow.drawpixel (how to handle colours, then?), > try to convert it to an xpm (how?) or what other method would be most > appropriate? (please, read the second question before answering this one) Don't draw pixel by pixel, it would be awfully slow. Use GdkPixbufs and gdk_draw_pixbuf(). > 2. i'd like to be able to fluently change the colours while the heightmap is > already generated. in the old days (i haven't written much for quite a time) > it was possible to just draw a bitmap onto the screen and keep redefining the > colours, which was pretty fast and looked nice in its way. is it still > doable? Something along these lines should be doable *if* you can get a indexed color visual, which you cannot count on. So I would just redraw it (incidentally I develop a program which uses false-color maps a lot and redrawing works good enough). Yeti -- Anonyms eat their boogers. From paul@linuxaudiosystems.com Sat Jun 17 17:36:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2443E3B0139 for ; Sat, 17 Jun 2006 17:36:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11011-09 for ; Sat, 17 Jun 2006 17:36:33 -0400 (EDT) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id 0D2693B0104 for ; Sat, 17 Jun 2006 17:36:32 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1000D5OX9ZC3Q3@vms040.mailsrvcs.net> for gtk-list@gnome.org; Sat, 17 Jun 2006 16:34:48 -0500 (CDT) Date: Sat, 17 Jun 2006 17:35:12 -0400 From: Paul Davis Subject: Re: Gtk events ??? In-reply-to: <448FEC06.9090600@free.fr> To: Papel Message-id: <1150580112.8703.55.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <448FEC06.9090600@free.fr> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 21:36:36 -0000 On Wed, 2006-06-14 at 12:59 +0200, Papel wrote: > Hello, > > From a few days ago, i have a lot of problems with gtk events (MainLoop). > I have created a GTK frame into a main widget and a box into this frame. > I have reparent this widget (window) to a XWindow. > I would like to send events (XEvents) to this widget. How I can do to > send this XEvents to GtkEvents to the widget ??? > > I have tried : gtk_widget_event / gtk_main_iteration_do / > gtk_main_do_event / etc... you're not thinking clearly. GTK is a multiplatform GUI toolkit. its backend is not just X Window, but includes the DirectFB (framebuffer) system on Linux, the GDI API (and others on win32) and recently Quartz/Aqua on OS X. sending GTK events doesn't mean sending events that are translated all the way down to the backend's notion of an "event". if you send a GTK "Button Press" event to a widget, GTK will do that entirely within its own event system, without any reference to the backend you are using. back to basics: why have you reparented the window inside a non-GTK XWindow? --p From yeti@trific.ath.cx Sat Jun 17 19:05:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F32E3B00DC for ; Sat, 17 Jun 2006 19:05:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13816-04 for ; Sat, 17 Jun 2006 19:05:33 -0400 (EDT) Received: from trific.ath.cx (rb5bf232.chello.upc.cz [89.176.185.232]) by menubar.gnome.org (Postfix) with ESMTP id 026623B00AA for ; Sat, 17 Jun 2006 19:05:32 -0400 (EDT) Received: by trific.ath.cx (Postfix, from userid 16809) id 34EC4156127; Sun, 18 Jun 2006 00:09:49 +0200 (CEST) Date: Sun, 18 Jun 2006 00:09:38 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Button background colors Message-ID: <20060617220938.GW30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 23:05:34 -0000 On Thu Jun 15 05:27:35 2006, Jose Hevia wrote: > At first, I agreed with this. Now I know that it's possible to make an > intelligent program that knows witch colors are you using and take > action from it. > > 80 per cent of themes are almost white for buttons, I like dark ones. > This could be detected by the program and decide: > If you are using bright themes {select this colors.} > else {select the other ones.} > based in contrast between them How this makes the look consistent with Bumblebee [the theme]? Colors are not the only part of look and feel and they are the easiest part. When the theme uses pixmap backgrounds you should [in most cases] take the pixmap, give it a tint and use it instead of a solid color. Etc. Hackish theme engines like the qt one do not make it easier either. > Themeability is very important for Gtk, but using colors like scalable > icons (look at these films with the "red button") without having to > bother with complexity gives gtk a lot of power to give it away. I agree with the importance, but I don't agree with the statement it is solved. The only real solution would be taking your app specific widgets into account in the theme itself and drawing themed icons for it if necessary. Not very realistic. Instead we are left with a bunch of heuristics, workarounds and hacks that do something not too awful in some common cases. Yeti -- Anonyms eat their boogers. From lists@nabble.com Sat Jun 17 22:11:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D2483B00EC for ; Sat, 17 Jun 2006 22:11:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20102-07 for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id AFE163B000B for ; Sat, 17 Jun 2006 22:11:40 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Frmk9-00052t-CL for gtk-list@gnome.org; Sat, 17 Jun 2006 19:10:29 -0700 Message-ID: <4920028.post@talk.nabble.com> Date: Sat, 17 Jun 2006 19:10:29 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to draw a rectangle on a GtkImage widget? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.564 tagged_above=-999 required=2 tests=[AWL=0.037, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.564 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 02:11:42 -0000 Hi All, I am displaying an image in the main window with a thumbnail of the same image on one side. The thumbnail always shows the entire image while the main window shows just a part of the image because of zoom. Now I want to draw a rectange in the thumbnail to indicate which part of the image is currently displayed in the main window. How can I achieve this? Thanks!! -- View this message in context: http://www.nabble.com/How-to-draw-a-rectangle-on-a-GtkImage-widget--t1805314.html#a4920028 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Sun Jun 18 02:56:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6C5B3B008A for ; Sun, 18 Jun 2006 02:56:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28242-09 for ; Sun, 18 Jun 2006 02:55:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8DBF53B014D for ; Sun, 18 Jun 2006 02:55:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5HMJ3jN031835 for ; Sun, 18 Jun 2006 00:19:04 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 19A4223D5D; Sun, 18 Jun 2006 00:19:03 +0200 (CEST) Date: Sun, 18 Jun 2006 00:19:08 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Mailing list problems? Message-ID: <20060617221907.GX30886@potato.chello.upc.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 06:56:00 -0000 Hello, a couple of days ago my e-mails took almost a day to deliver (and it still takes a long time). But that was a small problem, now when I look at the archives, e.g. http://mail.gnome.org/archives/gtk-list/ I see only ========================================================================== The gtk-list Archives You can get more information about this list. Archive View by: Downloadable version June 2006: [ Thread ] [ Subject ] [ Author ] [ Date ] [ Gzip'd Text 7 KB ] ========================================================================== IOW there is only June 2006 -- and even that is incomplete. Other Gtk+ lists look similarly empty. Did something bad happen to them? Yeti -- Anonyms eat their boogers. From dov.grobgeld@gmail.com Sun Jun 18 04:10:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7A56F3B01BA for ; Sun, 18 Jun 2006 04:10:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31006-02 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 840143B01B4 for ; Sun, 18 Jun 2006 04:09:59 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 9so1633845nzo for ; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.14.31 with SMTP id r31mr2636632nzi; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Received: by 10.37.21.57 with HTTP; Sun, 18 Jun 2006 01:08:28 -0700 (PDT) Message-ID: Date: Sun, 18 Jun 2006 11:08:28 +0300 From: "Dov Grobgeld" To: "andy gill" Subject: Re: opengl and gtk In-Reply-To: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <28702fb80606160650h2777608bt63b516321ab00b78@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 08:10:00 -0000 As far as I understand gtkglext is currently the prefered method of using GL within gtk. I have recently used it in a cross platform application that works fine both on Linux and on Win32. Regards, Dov On 6/16/06, andy gill wrote: > is there any officially supported way of integrating opengl into a > gtk/gtkmm/gtk# application? the gtkglarea and gtkglext extensions seem to > have varying levels of support for different platforms/language bindings, > and i don't quite understand why there isn't opengl support in the main > tree. > what's the best (i.e. documented and supported) way of getting opengl and > gtk to work together? > > cheers. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From kstachowski@o2.pl Sun Jun 18 07:29:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C2BB3B03F5 for ; Sun, 18 Jun 2006 07:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20622-07 for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id 44C653B02EF for ; Sun, 18 Jun 2006 07:29:36 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 2B8285807B for ; Sun, 18 Jun 2006 13:28:32 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 11:28:31 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200606181128.31582.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.444 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -1.444 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 11:29:39 -0000 thank you for the answer :) > Don't draw pixel by pixel, it would be awfully slow. > Use GdkPixbufs and gdk_draw_pixbuf(). you mean "don't draw pixel by pixel using drawpoint", is that it? > Something along these lines should be doable *if* you can > get a indexed color visual, which you cannot count on. So > I would just redraw it (incidentally I develop a program > which uses false-color maps a lot and redrawing works good > enough). that's a pity but i'll have to cope with that if there's no other way. however, i ran into a problem with colourmaps. i was using gdk.image (has the putpixel method which treats the colours in a more traditional way, and seems to be fast enough for my needs) but didn't manage to change the colours it uses. i keep getting a blue gradient which is not precisely what i want. here's the code: def img=Image(ImageType.Fastest,Visual.System,500,500); for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) img.PutPixel(x,y,(x+y):>UInt32); def gc=GC(args.Event.Window); mutable col=Color(0xff,0,0); gc.Colormap.AllocColor(ref col,true,true); img.Colormap=gc.Colormap; args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); i don't seem to be able to spot anything red in the result. could you please tell me what i am doing wrong? From yeti@physics.muni.cz Sun Jun 18 09:43:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8AFFD3B0BF1 for ; Sun, 18 Jun 2006 09:43:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28794-01 for ; Sun, 18 Jun 2006 09:43:29 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 128E23B0C68 for ; Sun, 18 Jun 2006 09:41:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5ICGX47030918 for ; Sun, 18 Jun 2006 14:16:34 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 5E0A123D5F; Sun, 18 Jun 2006 14:16:33 +0200 (CEST) Date: Sun, 18 Jun 2006 14:16:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Message-ID: <20060618121635.GZ30886@potato.chello.upc.cz> References: <200606181128.31582.kstachowski@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606181128.31582.kstachowski@o2.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_XF=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 13:43:45 -0000 On Sun, Jun 18, 2006 at 11:28:31AM +0000, kamil stachowski wrote: > > Don't draw pixel by pixel, it would be awfully slow. > > Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? Yes, I do -- and I still mean it. > however, i ran into a problem with colourmaps. i was using gdk.image (has the > putpixel method which treats the colours in a more traditional way, and seems > to be fast enough for my needs) but didn't manage to change the colours it > uses. i keep getting a blue gradient which is not precisely what i want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could you please > tell me what i am doing wrong? Well, I can't speak Nemerle, but as far as I understand it, you first fill the image with arbitrary values no one knows which color they correspond to in the colormap, then allocate one very dark red color (full red is 0xffff in Gdk) but never use it -- the `pixel' field filled by AllocColor is the value to use with PutPixel -- and after all that you set the image's colormap. To draw you have to allocate the colors *first* -- and note if the display is not direct/true-color, it has a limited number of colors and you will not be able to allocate a new color for each unique (x+y):>UInt32 value. So, please save yourself all the hassle and just use GdkPixbuf. Yeti -- Anonyms eat their boogers. From riboaz@xs4all.nl Sun Jun 18 10:04:43 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBDDB3B0B99 for ; Sun, 18 Jun 2006 10:04:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29603-07 for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by menubar.gnome.org (Postfix) with ESMTP id 569E53B0BAA for ; Sun, 18 Jun 2006 10:04:39 -0400 (EDT) Received: from [192.168.1.101] (dpc6744211093.direcpc.com [67.44.211.93]) by smtp-vbr7.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5IDtEGv072056 for ; Sun, 18 Jun 2006 15:55:17 +0200 (CEST) (envelope-from riboaz@xs4all.nl) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <200606181128.31582.kstachowski@o2.pl> References: <200606181128.31582.kstachowski@o2.pl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <14003C28-5DE0-4295-9EC8-E2D3D0A8F9A0@xs4all.nl> Content-Transfer-Encoding: 7bit From: Richard Boaz Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 17:55:07 +0200 To: gtk-list@gnome.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -2.445 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:04:44 -0000 hi, i do something like this in an application to draw probability density function plots. what i do is render the image to an internal RGB buffer, followed by gdk_draw_rgb_image() to render it to the internal pixmap (this pixmap subsequently rendered to the screen): width = DrawingArea->allocation.width; height = DrawingArea->allocation.height; rgbbuf = malloc(width * height * 3); memset(rgbbuf, 240, width * height * 3); // set the background to GREY=(240, 240, 240) DrawBufferImage(rgbbuf, width, height, data); gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); free(rgbbuf); inside the DrawBufferImage() routine, i examine the data, point by point, and assign each pixel to be the RGB combination corresponding to the colour defined/assigned for each data value. my input data also dictates an absolute starting size, so inside the DrawBufferImage() routine, i also magnify the image using a bi-cubic spline interpolation algorithm. the speed achieved in ultimately rendering the image is as fast as possible, and there is no real discernable delay between receiving the data to plot and rendering the image to the screen, i.e., it's instantaneous. plotting pixel by pixel (and magnifying to boot) can result in a quickly drawn image (depending on the number of data points, of course), if gone about in the right manner. cheers, richard On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > thank you for the answer :) > >> Don't draw pixel by pixel, it would be awfully slow. >> Use GdkPixbufs and gdk_draw_pixbuf(). > > you mean "don't draw pixel by pixel using drawpoint", is that it? > >> Something along these lines should be doable *if* you can >> get a indexed color visual, which you cannot count on. So >> I would just redraw it (incidentally I develop a program >> which uses false-color maps a lot and redrawing works good >> enough). > > that's a pity but i'll have to cope with that if there's no other way. > > however, i ran into a problem with colourmaps. i was using > gdk.image (has the > putpixel method which treats the colours in a more traditional way, > and seems > to be fast enough for my needs) but didn't manage to change the > colours it > uses. i keep getting a blue gradient which is not precisely what i > want. > here's the code: > > def img=Image(ImageType.Fastest,Visual.System,500,500); > for (mutable x=0, x<500; x++) for (mutable y=0; y<500; y++) > img.PutPixel(x,y,(x+y):>UInt32); > > def gc=GC(args.Event.Window); > mutable col=Color(0xff,0,0); > gc.Colormap.AllocColor(ref col,true,true); > img.Colormap=gc.Colormap; > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > i don't seem to be able to spot anything red in the result. could > you please > tell me what i am doing wrong? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From gaal@forum2.org Sun Jun 18 10:06:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 435323B0BB8 for ; Sun, 18 Jun 2006 10:06:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29678-04 for ; Sun, 18 Jun 2006 10:06:01 -0400 (EDT) Received: from smtp2.actcom.co.il (smtp2.actcom.co.il [192.114.47.35]) by menubar.gnome.org (Postfix) with ESMTP id 650563B0BCC for ; Sun, 18 Jun 2006 10:06:00 -0400 (EDT) Received: from sike (line25-249.adsl.actcom.co.il [192.115.25.249]) by smtp2.actcom.co.il (8.13.3/8.13.3) with ESMTP id k5IDMLPC010326 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jun 2006 16:22:28 +0300 Received: from roo by sike with local (Exim 4.62) (envelope-from ) id 1FrxCy-0004RL-3X for gtk-list@gnome.org; Sun, 18 Jun 2006 16:22:14 +0300 Received: by sike (hashcash-sendmail, from uid 1000); Sun, 18 Jun 2006 16:20:55 +0300 Date: Sun, 18 Jun 2006 16:20:54 +0300 From: Gaal Yahas To: gtk-list@gnome.org Subject: Interrupt signal, GLib, threads Message-ID: <20060618132054.GL9396@sike.forum2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 X-Hashcash: 1:26:060618:gtk-list@gnome.org::gDKzIiB7k7Eeir0+:0000000000000000000 000000000000000000000007LSqZ X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.509 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599] X-Spam-Score: -2.509 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:06:04 -0000 I have a GLib/GThread console application that runs fine on Linux and Solaris. But ever since I added threading, when the user hits ^C in the shell the signal is ignored. Does using GThread automatically mask signals? What do I do to get them back? When running my app under gdb, incidentally, ^C works as expected (that is, it drops me in a gdb prompt wherever I was). -- Gaal Yahas http://gaal.livejournal.com/ From kstachowski@o2.pl Sun Jun 18 10:36:28 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C9DB3B0BEE for ; Sun, 18 Jun 2006 10:36:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30842-02 for ; Sun, 18 Jun 2006 10:36:26 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by menubar.gnome.org (Postfix) with ESMTP id B38393B0B9E for ; Sun, 18 Jun 2006 10:36:25 -0400 (EDT) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id AF99258082 for ; Sun, 18 Jun 2006 16:35:40 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:35:39 +0000 User-Agent: KMail/1.9.1 References: <200606181128.31582.kstachowski@o2.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200606181435.39660.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.392 tagged_above=-999 required=2 tests=[AWL=-0.789, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GB=0.077, TW_GT=0.077] X-Spam-Score: -1.392 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:36:28 -0000 hello :) thank you very much for your answer :) but i'm afraid i won't be able to use it. the access to the rgb class seems= to=20 be either very much limited in gtk sharp (mono) compared to the original an= d=20 other bindings, or at least quite a way beyond my programming skills. i think i'm supposed to be using a gdk.pixbuf instead but than again i can'= t=20 or don't know how to access the memory directly. anyways, in the meantime i've received another answer which made me finally= =20 grab the concept behind colour allocation and colour.pixel value. it seems= =20 that i eventually got an idea of what i'm actually writing :) still, thanks a lot for the answer once again:) Dnia niedziela, 18 czerwca 2006 15:27, napisa=B3e=B6: > hi, > > i do something like this in an application used to draw probability > density function plots. what i do is render the image to an internal > RGB buffer followed by gdk_draw_rgb_image() to render it to the > internal pixmap (this pixmap subsequently rendered to the screen): > > width =3D DrawingArea->allocation.width; > height =3D DrawingArea->allocation.height; > rgbbuf =3D malloc(width * height * 3); > memset(rgbbuf, 240, width * height * 3); // set the background to > GREY=3D(240, 240, 240) > DrawBufferImage(rgbbuf, width, height, data); > gdk_draw_rgb_image(pixmap, DrawingArea->style->fg_gc[GTK_STATE_NORMAL], > 0, 0, width, height, GDK_RGB_DITHER_NONE, rgbbuf, width*3); > free(rgbbuf); > > my input data dictates an absolute starting size, so inside my > DrawBufferImage() routine, i also magnify the image using a bi-cubic > spline interpolation algorithm. the speed achieved in ultimately > rendering the image is as fast as possible, and there is no real > discernable delay between receiving the data to plot and rendering > the image to the screen, i.e., it's instantaneous. > > plotting pixel by pixel (and magnifying to boot) can result in a > quickly drawn image (depending on the number of data points, of > course), if gone about in the right manner. > > cheers, > > richard > > On Jun 18, 2006, at 1:28 PM, kamil stachowski wrote: > > thank you for the answer :) > > > >> Don't draw pixel by pixel, it would be awfully slow. > >> Use GdkPixbufs and gdk_draw_pixbuf(). > > > > you mean "don't draw pixel by pixel using drawpoint", is that it? > > > >> Something along these lines should be doable *if* you can > >> get a indexed color visual, which you cannot count on. So > >> I would just redraw it (incidentally I develop a program > >> which uses false-color maps a lot and redrawing works good > >> enough). > > > > that's a pity but i'll have to cope with that if there's no other way. > > > > however, i ran into a problem with colourmaps. i was using > > gdk.image (has the > > putpixel method which treats the colours in a more traditional way, > > and seems > > to be fast enough for my needs) but didn't manage to change the > > colours it > > uses. i keep getting a blue gradient which is not precisely what i > > want. > > here's the code: > > > > def img=3DImage(ImageType.Fastest,Visual.System,500,500); > > for (mutable x=3D0, x<500; x++) for (mutable y=3D0; y<500; y++) > > img.PutPixel(x,y,(x+y):>UInt32); > > > > def gc=3DGC(args.Event.Window); > > mutable col=3DColor(0xff,0,0); > > gc.Colormap.AllocColor(ref col,true,true); > > img.Colormap=3Dgc.Colormap; > > > > args.Event.Window.DrawImage(gc,img,0,0,0,0,500,500); > > > > i don't seem to be able to spot anything red in the result. could > > you please > > tell me what i am doing wrong? > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list From tomee@kadu.net Sun Jun 18 10:55:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C71413B0100 for ; Sun, 18 Jun 2006 10:55:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31378-02 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from mail.chilan.com (mail.chilan.com [82.160.212.9]) by menubar.gnome.org (Postfix) with ESMTP id 3229A3B0077 for ; Sun, 18 Jun 2006 10:55:13 -0400 (EDT) Received: from aereo (aaso91.neoplus.adsl.tpnet.pl [83.5.226.91]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by mail.chilan.com (Postfix) with ESMTP id 4713723F60 for ; Sun, 18 Jun 2006 16:54:00 +0200 (CEST) From: Tomek Jarzynka To: gtk-list@gnome.org Subject: No icons in Open File dialog Date: Sun, 18 Jun 2006 16:53:58 +0200 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181653.59412.tomee@kadu.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:55:15 -0000 Hello, after playing around with unstable packages I messed up GTK - i.e. it doesn't display folder and file icons in the Open File dialog, only text. I've downgraded to the latest stable versions available for Mandriva 2006 (2.8.3) but still no icons appear. I can change the theme with gtk-chtheme (I am using KDE), but still there are no icons. I get no errors in the console. How do I fix that? Where to look for the icon configuration files that may be missing or corrupted? -- tomasz k. jarzynka / 601 706 601 / tomee(a-t)kadu(d-o-t)net "You laugh because I'm different. I laugh beacuse you're all the same." From nf2@scheinwelt.at Sun Jun 18 18:55:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 462013B00AF; Sun, 18 Jun 2006 18:55:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12908-03; Sun, 18 Jun 2006 18:55:31 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 208EC3B00B2; Sun, 18 Jun 2006 18:55:30 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1Fs69X-0004Oc-Kv; Mon, 19 Jun 2006 00:54:01 +0200 Message-ID: <4495D984.5090705@scheinwelt.at> Date: Mon, 19 Jun 2006 00:53:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gtk-list@gnome.org, gnome vfs list Subject: libxdg-vfs and Gtk-Filechooser Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 9d02a3267670e8bb77f537b38fda5a39 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.012, BAYES_00=-2.599, TW_XD=0.077] X-Spam-Score: -2.51 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 22:55:34 -0000 Hi, The experimental "libxdg-vfs" provides a generic interface to VFS libraries. It tries to autodetect the current desktop and then connects to Gnome-VFS or KIO by launching the backend executables xdg_vfs_gnome or xdg_vfs_kde. http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html The target of "libxdg-vfs" would be giving applications access to ftp/smb shares etc... Of course this also involves bringing VFS access to filechoosers. AFAIK Gtk-Filechooser has pluggable backends (GtkFilesystem). It would be interesting if it could also run on top of "libxdg-vfs". The problem is, that i couldn't find any documentation how to implement a GtkFilesystem module. Could you please give me an introduction and maybe tell me about the specific requirements for a GtkFilesystem? Perhaps i need to provide more functions through "libxdg-vfs": listing and mounting Volumes, obtaining icon-paths,... Regards, Norbert From kstachowski@o2.pl Mon Jun 19 01:31:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D03CC3B02D0 for ; Mon, 19 Jun 2006 01:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26079-03 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 501B13B0CE7 for ; Mon, 19 Jun 2006 01:31:52 -0400 (EDT) Received: from poczta.o2.pl (mx10.go2.pl [193.17.41.74]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 541273A0414 for ; Mon, 19 Jun 2006 00:05:44 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 88F8C58010 for ; Mon, 19 Jun 2006 00:05:13 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: Re: drawing a generated bitmap User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Date: Sun, 18 Jun 2006 22:05:08 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200606182205.09332.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.28 tagged_above=-999 required=2 tests=[AWL=0.108, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -2.28 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 05:31:54 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm very sorry about the mess with my posts... this is the first time i'm using a mailing list... From kstachowski@o2.pl Mon Jun 19 02:29:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3900E3B0D4C for ; Mon, 19 Jun 2006 02:29:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28331-03 for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 6FC8A3B0D5D for ; Mon, 19 Jun 2006 02:29:14 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id 0FEDB2A42D9 for ; Sun, 18 Jun 2006 16:16:06 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id B93C9748099 for ; Sun, 18 Jun 2006 16:15:35 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: Re: drawing a generated bitmap Date: Sun, 18 Jun 2006 14:15:34 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606181415.34985.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.446 tagged_above=-999 required=2 tests=[AWL=-0.766, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_XF=0.077] X-Spam-Score: -1.446 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 06:29:17 -0000 > Well, I can't speak Nemerle, but as far as I understand it, > you first fill the image with arbitrary values no one knows > which color they correspond to in the colormap, then > allocate one very dark red color (full red is 0xffff in > Gdk) but never use it -- the `pixel' field filled by > AllocColor is the value to use with PutPixel -- and after > all that you set the image's colormap. > To draw you have to allocate the colors *first* -- and note > if the display is not direct/true-color, it has a limited > number of colors and you will not be able to allocate a new > color for each unique (x+y):>UInt32 value. so that's the way it works! oh dear, thank you very much! you've saved me headache for at least a week :) the thing is that i got completely lost about the concept of colour allocation and colour.pixel value. i've utterly failed to understand the meaning of "hardware pixel" as it is put in the docs. actually, this also why i sticked to image instead of pixbuf - i thought image.putpixel's colour parameter was the traditional way, and was afraid to use pixbuf.drawpoint's gc.foreground because i couldn't understand it. but now the penny dropped, thank you a great lot :) i definitely owe you a beer or two in case we ever met :) ps. i'm sorry if this post appears as a new thread. it's my first time using a mailing list... From kstachowski@o2.pl Mon Jun 19 03:12:18 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 049243B0469 for ; Mon, 19 Jun 2006 03:12:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29499-07 for ; Mon, 19 Jun 2006 03:12:17 -0400 (EDT) Received: from tur.go2.pl (tur.go2.pl [193.17.41.50]) by menubar.gnome.org (Postfix) with ESMTP id 344293B0198 for ; Mon, 19 Jun 2006 03:12:02 -0400 (EDT) Received: from poczta.o2.pl (mx2.go2.pl [193.17.41.42]) by tur.go2.pl (o2.pl Mailer 2.0.1) with ESMTP id A33D22A7E30 for ; Mon, 19 Jun 2006 02:07:22 +0200 (CEST) Received: from [192.168.32.11] (nat-157.ghnet.pl [83.175.180.157]) by poczta.o2.pl (Postfix) with ESMTP id 829CB748066 for ; Mon, 19 Jun 2006 02:06:52 +0200 (CEST) From: kamil stachowski To: gtk-list@gnome.org Subject: re: drawing a generated bitmap Date: Mon, 19 Jun 2006 00:06:51 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606190006.52079.kstachowski@o2.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.402 tagged_above=-999 required=2 tests=[AWL=-0.799, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077, TW_XF=0.077] X-Spam-Score: -1.402 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 07:12:18 -0000 hello :) sorry for writing to you at your private address instead of the gtk list but it seems that using a mailing list exceeds my computer skills :/ anyway, i'd like to thank you very much for your answer. it made me finally understand how stuff works. here's the answer i think i failed to post on the list: >> Well, I can't speak Nemerle, but as far as I understand it, >> you first fill the image with arbitrary values no one knows >> which color they correspond to in the colormap, then >> allocate one very dark red color (full red is 0xffff in >> Gdk) but never use it -- the `pixel' field filled by >> AllocColor is the value to use with PutPixel -- and after >> all that you set the image's colormap. >> To draw you have to allocate the colors *first* -- and note >> if the display is not direct/true-color, it has a limited >> number of colors and you will not be able to allocate a new >> color for each unique (x+y):>UInt32 value. > so that's the way it works! oh dear, thank you very much! you've saved me > headache for at least a week :) > the thing is that i got completely lost about the concept of colour > allocation and colour.pixel value. i've utterly failed to understand the > meaning of "hardware pixel" as it is put in the docs. > actually, this also why i sticked to image instead of pixbuf - i thought > image.putpixel's colour parameter was the traditional way, and was afraid to > use pixbuf.drawpoint's gc.foreground because i couldn't understand it. > but now the penny dropped, thank you a great lot :) i definitely owe you a > beer or two in case we ever met :) thanks again, kamil stachowski From lists@nabble.com Mon Jun 19 05:10:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5E0723B008F for ; Mon, 19 Jun 2006 05:10:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-05 for ; Mon, 19 Jun 2006 05:10:31 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E4EB73B0014 for ; Mon, 19 Jun 2006 05:10:30 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFlX-0004aX-HJ for gtk-list@gnome.org; Mon, 19 Jun 2006 02:09:51 -0700 Message-ID: <4932993.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:09:51 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Is there any widget on which I can plot my own primitives? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:10:32 -0000 I have explored some widgets such as GtkImage and GnomeCanvas, but none of them provide the functions I need. Does anyone got any idea? Thanks! -- View this message in context: http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 Sent from the Gtk+ - General forum at Nabble.com. From lists@nabble.com Mon Jun 19 05:17:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3EC43B0004 for ; Mon, 19 Jun 2006 05:17:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01908-01 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 72F253B00A4 for ; Mon, 19 Jun 2006 05:17:32 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsFsB-0004kJ-Do for gtk-list@gnome.org; Mon, 19 Jun 2006 02:16:43 -0700 Message-ID: <4933077.post@talk.nabble.com> Date: Mon, 19 Jun 2006 02:16:43 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the mouse move and double click event? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:17:33 -0000 I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, I need to capture the coordination of the cursor. In VC++, this can be easily achieved by using the OnMouseMove() function. But in Gtk, I cannot find any similar signal to map. Does anyone got any idea? Thanks!! -- View this message in context: http://www.nabble.com/How-to-capture-the-mouse-move-and-double-click-event--t1810142.html#a4933077 Sent from the Gtk+ - General forum at Nabble.com. From z_b_r@poczta.fm Mon Jun 19 05:36:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 633A53B00A4 for ; Mon, 19 Jun 2006 05:36:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01950-04 for ; Mon, 19 Jun 2006 05:36:03 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id C12ED3B0004 for ; Mon, 19 Jun 2006 05:36:02 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id 66C9F373E63; Mon, 19 Jun 2006 11:35:15 +0200 (CEST) Received: from poczta.interia.pl (f27.poczta.interia.pl [10.217.2.27]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 09FB9373E29 for ; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 0B5532E5C9D; Mon, 19 Jun 2006 11:35:10 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id DC2132E5C98 for ; Mon, 19 Jun 2006 11:35:09 +0200 (CEST) Date: 19 Jun 2006 11:35:09 +0200 From: hm Subject: Drawing images ( with transparency ) one on another To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060619093509.DC2132E5C98@poczta.interia.pl> X-EMID: 1aa40acc X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.455 tagged_above=-999 required=2 tests=[AWL=-0.971, BAYES_40=-0.185, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 09:36:05 -0000 =0AHi, =0A=0A I`ve got a problem. I`ve got two separate images. One is bac= kground for the secondone. Secondone is partially transparent. There is al= so table. Question is : how to draw in one of the table`s cells the backgra= ound, and on this background ( as a second layer ) second image (transparen= t) ? I know ( of course ) how to create images, tables.=0A=0Athanks ---------------------------------------------------------------------- Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 From jean.brefort@normalesup.org Mon Jun 19 06:43:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A42C3B00C8 for ; Mon, 19 Jun 2006 06:43:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05026-01 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by menubar.gnome.org (Postfix) with ESMTP id 7BF243B0091 for ; Mon, 19 Jun 2006 06:43:46 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5E409225FA; Mon, 19 Jun 2006 12:43:01 +0200 (CEST) Subject: Re: Is there any widget on which I can plot my own primitives? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4932993.post@talk.nabble.com> References: <4932993.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:46:15 +0200 Message-Id: <1150713975.8915.1.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.892 tagged_above=-999 required=2 tests=[AWL=-0.362, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.892 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:43:49 -0000 Le lundi 19 juin 2006 02:09 -0700, heavenscape a 閏rit : > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. Which functions do you need? > Does anyone got any idea? Thanks! May be GtkDrawingArea? Regards, Jean From jean.brefort@normalesup.org Mon Jun 19 06:47:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A8DF3B015D for ; Mon, 19 Jun 2006 06:47:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05099-08 for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by menubar.gnome.org (Postfix) with ESMTP id 5B4743B008F for ; Mon, 19 Jun 2006 06:47:08 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp3-g19.free.fr (Postfix) with ESMTP id 4AF08444E6; Mon, 19 Jun 2006 12:46:28 +0200 (CEST) Subject: Re: How to capture the mouse move and double click event? From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4933077.post@talk.nabble.com> References: <4933077.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Jun 2006 12:49:42 +0200 Message-Id: <1150714182.8915.6.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.891 tagged_above=-999 required=2 tests=[AWL=-0.361, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.891 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:47:09 -0000 Le lundi 19 juin 2006 02:16 -0700, heavenscape a 閏rit : > I have a GtkImage in a GtkViewport, when the mouse is hoving above the image, > I need to capture the coordination of the cursor. In VC++, this can be > easily achieved by using the OnMouseMove() function. But in Gtk, I cannot > find any similar signal to map. > > Does anyone got any idea? Thanks!! The "motion-notify-event" signal is most probably what you need. Regards, Jean From lieven@quasar3d.nl Mon Jun 19 07:28:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A099F3B00A5 for ; Mon, 19 Jun 2006 07:28:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06013-07 for ; Mon, 19 Jun 2006 07:28:08 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 0257C3B000F for ; Mon, 19 Jun 2006 07:28:07 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JBQgWa009810 for ; Mon, 19 Jun 2006 13:26:45 +0200 To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? References: <4932993.post@talk.nabble.com> Message-ID: From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 19 Jun 2006 13:26:42 +0200 In-Reply-To: <4932993.post@talk.nabble.com> User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 11:28:11 -0000 Hi, Use the GtkDrawingArea. You can draw to it using Gdk or maybe Cairo (not sure if that's already in the stable version). Google gave me this tutorial: http:// www.gtk.org/tutorial/x2491.html Greets, Lieven van der Heide. On Mon, 19 Jun 2006 11:09:51 +0200, heavenscape wrote: > > I have explored some widgets such as GtkImage and GnomeCanvas, but none > of > them provide the functions I need. > > Does anyone got any idea? Thanks! > -- > View this message in context: > http://www.nabble.com/Is-there-any-widget-on-which-I-can-plot-my-own-primitives--t1810109.html#a4932993 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lieven@quasar3d.nl Mon Jun 19 08:15:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 540D53B0AAF for ; Mon, 19 Jun 2006 08:15:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09991-10 for ; Mon, 19 Jun 2006 08:15:06 -0400 (EDT) Received: from edwards.eatserver.nl (edwards.eatserver.nl [212.203.14.57]) by menubar.gnome.org (Postfix) with ESMTP id 75A0A3B0444 for ; Mon, 19 Jun 2006 08:15:05 -0400 (EDT) Received: from lieven.coded-illusions.com (rt-dkz-2b703.adsl.wanadoo.nl [83.116.85.3]) (authenticated bits=0) by edwards.eatserver.nl (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k5JCDXWa008938 for ; Mon, 19 Jun 2006 14:13:33 +0200 Date: Mon, 19 Jun 2006 14:13:33 +0200 To: gtk-list@gnome.org Subject: Different thickness depending on widget properties. From: LievenQ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.52 (Win32, build 7721) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=0.109, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.356 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:15:08 -0000 Hi, I am currently working on the wimp theme engine, and I would like to have different thickness property values depending on whether the edge type is etched, or sunken. What would be the best approach on doing so? Also, I'm wondering why the GtkFrame is used for both visually grouping widgets together (like the windows groupbox), aswell as adding edges to widgets (like the drop down list in the combobox seems to be doing). They may have the same functionality (which is none, afaik ;)), and in the default theme they may look the same, but imho there really is a difference between a grouping frame and an edge, and when you're theming, it may be very likely that you want to theme them differently. So I think it would be easier if it were different widgets. Greets, Lieven van der Heide. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From yeti@physics.muni.cz Mon Jun 19 09:03:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B68713B0387 for ; Mon, 19 Jun 2006 09:03:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12359-02 for ; Mon, 19 Jun 2006 09:03:15 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id CE0ED3B0246 for ; Mon, 19 Jun 2006 09:03:14 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JAfVKW028290 for ; Mon, 19 Jun 2006 12:41:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4E12123CE6; Mon, 19 Jun 2006 12:41:31 +0200 (CEST) Date: Mon, 19 Jun 2006 12:41:32 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Drawing images ( with transparency ) one on another Message-ID: <20060619104132.GW2858@potato.chello.upc.cz> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.555 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599] X-Spam-Score: -2.555 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:03:16 -0000 On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. Either use gdk_draw_pixbuf() if the correct order (first base, then the one with alpha channel) in expose event handler, or use gdk_pixbuf_composite() and draw the final image. Yeti -- Anonyms eat their boogers. From jmad@maerskdata.dk Mon Jun 19 09:04:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DAE2B3B0312 for ; Mon, 19 Jun 2006 09:04:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12532-05 for ; Mon, 19 Jun 2006 09:04:52 -0400 (EDT) Received: from smddisadksgd001.mdd.local (mail.maerskdata.dk [85.89.224.39]) by menubar.gnome.org (Postfix) with ESMTP id 810BC3B006A for ; Mon, 19 Jun 2006 09:04:51 -0400 (EDT) Received: from smdgldodksgd005.mdd.local ([172.29.201.20]) by smddisadksgd001.mdd.local with InterScan VirusWall; Mon, 19 Jun 2006 14:33:26 +0200 Subject: xevent ? To: gtk-list@gnome.org Cc: X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 From: Jens Madsen Date: 19-Jun-2006 14:33:25 CEDT Message-ID: X-MIMETrack: Serialize by Router on SDRMAIL01/MDG(Release 6.5.3|September 14, 2004) at 19-06-2006 14:33:27 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.519 tagged_above=-999 required=2 tests=[AWL=-0.699, BAYES_05=-1.11, FORGED_RCVD_HELO=0.135, INVALID_DATE=2.193] X-Spam-Score: 0.519 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 13:04:55 -0000 Hi, I am converting some old x-windows software to GTK. It contains a handler for receiving xevents from other applications. What sort of GTK api should I use for receiving/sending the x-events ? Best regards Jens Madsen From simon@thegestalt.org Mon Jun 19 10:43:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CFD73B0123 for ; Mon, 19 Jun 2006 10:43:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15901-01 for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from mail.thegestalt.org (kanga.astray.com [195.82.114.48]) by menubar.gnome.org (Postfix) with ESMTP id 6C54F3B017E for ; Mon, 19 Jun 2006 10:43:36 -0400 (EDT) Received: from simon by mail.thegestalt.org with local (Exim 4.12) id 1FsKwK-00071M-00 for gtk-list@gnome.org; Mon, 19 Jun 2006 15:41:20 +0100 Date: Mon, 19 Jun 2006 15:41:20 +0100 From: Simon Wistow To: gtk-list@gnome.org Subject: Problems using GTK in Maya Message-ID: <20060619144120.GJ7044@thegestalt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.455 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_RG=0.077] X-Spam-Score: -2.455 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 14:43:40 -0000 I've attempted to write a dialog for Maya using GTK but it consistently causes segfaults. The dialog will launch and return successfully but the next button I press will causes a Maya crash with the message The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 62194 error_code 8 request_code 42 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) And so far I've been unable to geta back trace out of GDB or Totalview. I've narrowed it down to a test case string create_dialog { int argc = 0; char** argv = 0; // Initialize the widget set if (!gtk_init_check (&argc, &argv)) { return ""; } // drain the event loop while (gtk_events_pending ()) { gtk_main_iteration (); } return ""; } either with or without the event loop draining. Am I doing something fundamentally wrong? Do I need to do somethign with XEmbed? Is GTK just not suited to this? Do I need to sacrifice a different breed of chicken? I'm using GTK 2.69 for what it's worth. Simon -- X-Gleitschirmfliegen: macht Spaaaasss! From paul@linuxaudiosystems.com Mon Jun 19 12:36:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E4033B03A5 for ; Mon, 19 Jun 2006 12:36:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20590-07 for ; Mon, 19 Jun 2006 12:36:08 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 14F6B3B01C6 for ; Mon, 19 Jun 2006 12:36:07 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1400EA98NCJ2C6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Mon, 19 Jun 2006 11:33:12 -0500 (CDT) Date: Mon, 19 Jun 2006 12:33:38 -0400 From: Paul Davis Subject: Re: xevent ? In-reply-to: <1150734280.8703.98.camel@localhost.localdomain> To: Jens Madsen Message-id: <1150734818.8703.101.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1150734280.8703.98.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GD=0.077] X-Spam-Score: -2.522 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 16:36:11 -0000 On Mon, 2006-06-19 at 14:33 +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? basically, you can't. GTK is a cross platform toolkit, so it doesn't have an API that exposes backend details like XEvent. if you root around in the sources of gdk, especially the gdk-x11 directory, you will find some stuff that could be useful. but its not GTK and not even really GDK, since these APIs are designed to work on a variety of backends, including several that are not X Window related. --p From jose.francisco.hevia@gmail.com Mon Jun 19 06:50:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B57E3B007B for ; Mon, 19 Jun 2006 06:50:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05221-03 for ; Mon, 19 Jun 2006 06:50:53 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id DDACA3B013E for ; Mon, 19 Jun 2006 06:50:52 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so538227hue for ; Mon, 19 Jun 2006 03:49:46 -0700 (PDT) Received: by 10.49.72.7 with SMTP id z7mr4462656nfk; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Mon, 19 Jun 2006 03:49:45 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2006 12:49:45 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Is there any widget on which I can plot my own primitives? In-Reply-To: <4932993.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4932993.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-Mailman-Approved-At: Mon, 19 Jun 2006 14:33:36 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:50:56 -0000 2006/6/19, heavenscape : > > I have explored some widgets such as GtkImage and GnomeCanvas, but none of > them provide the functions I need. > Does anyone got any idea? Thanks! Oh, yes, I'm looking my crystal ball, but I can't manage to get to know what kind of functions you need :-) But I'm sure you know, so please, give more info. Jose Hevia From lists@nabble.com Mon Jun 19 21:48:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9193B09BA for ; Mon, 19 Jun 2006 21:48:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15436-06 for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 142DA3B059B for ; Mon, 19 Jun 2006 21:48:38 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsVLU-0004uW-Mp for gtk-list@gnome.org; Mon, 19 Jun 2006 18:48:00 -0700 Message-ID: <4947880.post@talk.nabble.com> Date: Mon, 19 Jun 2006 18:48:00 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: Trouble with GtkImage on button press event! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 01:48:41 -0000 I need to capture the button press event on a GtkImage widget, and I use the following code: w = lookup_widget(MainWnd,"image1"); gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); and I mapped the "Button press event" using glade, but it never worked. Anyone knows why? -- View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 Sent from the Gtk+ - General forum at Nabble.com. From yeti@physics.muni.cz Mon Jun 19 23:15:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DA3403B022F for ; Mon, 19 Jun 2006 23:15:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19691-10 for ; Mon, 19 Jun 2006 23:15:01 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 9BAA53B036C for ; Mon, 19 Jun 2006 23:15:00 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5JI2VFE002259 for ; Mon, 19 Jun 2006 20:02:32 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 4559923D5E; Mon, 19 Jun 2006 20:02:31 +0200 (CEST) Date: Mon, 19 Jun 2006 20:02:35 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: xevent ? Message-ID: <20060619180234.GF30886@potato.chello.upc.cz> References: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606191622.k5JGMIea031347@tirith.ics.muni.cz> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:15:04 -0000 On Mon, Jun 19, 2006 at 04:22:25PM +0000, Jens Madsen wrote: > Hi, I am converting some old x-windows software to GTK. > It contains a handler for receiving xevents from other applications. > > What sort of GTK api should I use for receiving/sending the x-events ? See gdk_add_client_message_filter() and related funcs. At least I think they are intended for this situation, fortunately I have never needed them. Yeti -- Anonyms eat their boogers. From lists@nabble.com Mon Jun 19 23:37:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 155253B032C for ; Mon, 19 Jun 2006 23:37:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20664-03 for ; Mon, 19 Jun 2006 23:37:49 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 0B8933B03A6 for ; Mon, 19 Jun 2006 23:37:48 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsX2j-0006su-9z for gtk-list@gnome.org; Mon, 19 Jun 2006 20:36:45 -0700 Message-ID: <4948583.post@talk.nabble.com> Date: Mon, 19 Jun 2006 20:36:45 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: trouble getting the current size of GtkViewport MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 03:37:52 -0000 I am displaying an image inside a GtkViewport (which is in a scrolled window), my main window resizes frequently (and so the viewport), and i want the image to rescale to fit the current size of the viewport. Anybody has any idea how to get the current size of the viewport? Thanks a lot!!!! -- View this message in context: http://www.nabble.com/trouble-getting-the-current-size-of-GtkViewport-t1815369.html#a4948583 Sent from the Gtk+ - General forum at Nabble.com. From jean.brefort@normalesup.org Tue Jun 20 01:47:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC0303B05AF for ; Tue, 20 Jun 2006 01:47:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26815-06 for ; Tue, 20 Jun 2006 01:47:47 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 08FEA3B031E for ; Tue, 20 Jun 2006 01:47:41 -0400 (EDT) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id C710471130; Tue, 20 Jun 2006 07:46:38 +0200 (CEST) Subject: Re: Trouble with GtkImage on button press event! From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: heavenscape In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 07:49:52 +0200 Message-Id: <1150782592.14978.0.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.853 tagged_above=-999 required=2 tests=[AWL=-0.400, BAYES_00=-2.599, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: -1.853 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 05:47:48 -0000 Le lundi 19 juin 2006 18:48 -0700, heavenscape a 閏rit : > I need to capture the button press event on a GtkImage widget, and I use the > following code: > > w = lookup_widget(MainWnd,"image1"); > gtk_widget_add_events(w, GDK_BUTTON_PRESS_MASK ); > > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? do you call glade_xml_signal_autoconnect in your code? > View this message in context: http://www.nabble.com/Trouble-with-GtkImage-on-button-press-event%21-t1815116.html#a4947880 > Sent from the Gtk+ - General forum at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From andrew@operationaldynamics.com Tue Jun 20 02:16:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC8873B0F1C for ; Tue, 20 Jun 2006 02:16:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28283-07 for ; Tue, 20 Jun 2006 02:16:40 -0400 (EDT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by menubar.gnome.org (Postfix) with SMTP id 8BF9B3B0EBA for ; Tue, 20 Jun 2006 02:16:39 -0400 (EDT) Received: (qmail 57818 invoked by uid 0); 20 Jun 2006 05:49:08 -0000 Received: from unknown (HELO procyon) (unknown) by unknown with SMTP; 20 Jun 2006 05:49:08 -0000 X-pair-Authenticated: 150.101.122.233 Subject: Re: Trouble with GtkImage on button press event! From: Andrew Cowie To: gtk-list@gnome.org In-Reply-To: <4947880.post@talk.nabble.com> References: <4947880.post@talk.nabble.com> Content-Type: text/plain Organization: Operational Dynamics Date: Tue, 20 Jun 2006 15:48:53 +1000 Message-Id: <1150782533.17295.4.camel@procyon.operationaldynamics.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.384 tagged_above=-999 required=2 tests=[AWL=0.215, BAYES_00=-2.599] X-Spam-Score: -2.384 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:16:42 -0000 On Mon, 2006-06-19 at 18:48 -0700, heavenscape wrote: > I need to capture the button press event on a GtkImage widget... > and I mapped the "Button press event" using glade, but it never worked. > Anyone knows why? [gtk] Images themselves don't have [gdk] Windows underneath them, and only such Windows receive events. There is thus a "helper" class called GtkEventBox. You have to nest the Image inside an EventBox to which you can then hook up mouse button press events. http://developer.gnome.org/doc/API/2.0/gtk/GtkEventBox.html or http://java-gnome.sourceforge.net/docs/javadoc/org/gnu/gtk/EventBox.html AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Website: http://www.operationaldynamics.com/ Blog: http://research.operationaldynamics.com/blogs/andrew/ GPG key: 0945 9282 449C 0058 1FF5 2852 2D51 130C 57F6 E7BD From lists@nabble.com Tue Jun 20 02:46:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BEA183B038D for ; Tue, 20 Jun 2006 02:46:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30258-08 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 873AB3B0085 for ; Tue, 20 Jun 2006 02:46:53 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FsZzm-00022R-Mg for gtk-list@gnome.org; Mon, 19 Jun 2006 23:45:54 -0700 Message-ID: <4950061.post@talk.nabble.com> Date: Mon, 19 Jun 2006 23:45:54 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: How to capture the scroll event of the scrolled window? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 06:46:56 -0000 I need to track the scroll events of the GtkScrolledWindow, and i use following code: GtkWidget* w = lookup_widget(MainWnd,"scrolledwindow1"); gtk_widget_add_events (w, GDK_SCROLL_MASK); and I mapped the scroll child event with glade, but it does not work. Anyone knows why? -- View this message in context: http://www.nabble.com/How-to-capture-the-scroll-event-of-the-scrolled-window--t1815899.html#a4950061 Sent from the Gtk+ - General forum at Nabble.com. From prashan@sasken.com Tue Jun 20 04:48:02 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC4BB3B0E25 for ; Tue, 20 Jun 2006 04:48:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03632-08 for ; Tue, 20 Jun 2006 04:47:55 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id 1A6C73B0F64 for ; Tue, 20 Jun 2006 04:47:53 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8jlRJ007178 for ; Tue, 20 Jun 2006 14:15:47 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5K8ji59007156for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5K8jiKm016268for ; Tue, 20 Jun 2006 14:15:44 +0530 (IST) Message-ID: <4497B5B8.1080000@sasken.com> Date: Tue, 20 Jun 2006 14:15:44 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: proggressbar.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:75.63018 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.072 tagged_above=-999 required=2 tests=[AWL=-0.074, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -0.072 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 08:48:03 -0000 how to design a progressbar, and add to my application window? with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From prashan@sasken.com Tue Jun 20 07:07:05 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D06E33B032F for ; Tue, 20 Jun 2006 07:07:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10540-04 for ; Tue, 20 Jun 2006 07:07:04 -0400 (EDT) Received: from mail3.sasken.com (sandesha.sasken.com [164.164.56.19]) by menubar.gnome.org (Postfix) with ESMTP id B9BA63B03AD for ; Tue, 20 Jun 2006 07:07:03 -0400 (EDT) Received: from mail3.sasken.com (localhost [127.0.0.1]) by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6ERJ012845 for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sunm21.sasken.com (sunm21.sasken.com [10.0.80.21])by mail3.sasken.com (8.12.10/8.12.10) with ESMTP id k5KB6E59012842for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Received: from sasken.com (localhost [127.0.0.1])by sunm21.sasken.com (8.12.10/) with ESMTP id k5KB6EKm016317for ; Tue, 20 Jun 2006 16:36:14 +0530 (IST) Message-ID: <4497D6A6.20505@sasken.com> Date: Tue, 20 Jun 2006 16:36:14 +0530 From: Kalli Math User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Please help me.. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.037 X-imss-result: Passed X-imss-scores: Clean:25.28121 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.3 tagged_above=-999 required=2 tests=[AWL=0.298, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:07:06 -0000 hi all... I am doing GUI for audio players using *GTK* as framework. i have to design a *playlist* which contains files from one* directory*, on selecting file from playlist another window should open,which contains play,* pause and stop buttons and one progress bar*. i have to write *events* for those play & all buttons. if anybody have idea of this please help me. or tell me where i get source code of this. with regards, Prashanth km "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email From paul@linuxaudiosystems.com Tue Jun 20 07:52:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 318133B044D for ; Tue, 20 Jun 2006 07:52:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-01 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id B16773B03B8 for ; Tue, 20 Jun 2006 07:52:05 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J15007F0Q8GB21C@vms046.mailsrvcs.net> for gtk-list@gnome.org; Tue, 20 Jun 2006 06:50:40 -0500 (CDT) Date: Tue, 20 Jun 2006 07:51:07 -0400 From: Paul Davis Subject: Re: proggressbar.. In-reply-to: <4497B5B8.1080000@sasken.com> To: Kalli Math Message-id: <1150804267.8703.134.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <4497B5B8.1080000@sasken.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.547 tagged_above=-999 required=2 tests=[AWL=0.052, BAYES_00=-2.599] X-Spam-Score: -2.547 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 11:52:07 -0000 On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? it is customary to show some indication that you've attempted to find an answer to such simple, basic questions before asking a mailing list. www.gtk.org has lots of documentation on the GTK API, and links to lots of example source code which you are expected to make use of to find useful, real world, working examples. if you don't understand even the basic idea behind using GTK (or any GUI toolkit), mailing lists are not the right place to begin. From linuxhippy@gmail.com Tue Jun 20 09:27:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 520BE3B02A4 for ; Tue, 20 Jun 2006 09:27:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17603-06 for ; Tue, 20 Jun 2006 09:27:34 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 14A793B01A8 for ; Tue, 20 Jun 2006 09:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so742257hue for ; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.40.10 with SMTP id n10mr2592344hun; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 06:26:51 -0700 (PDT) Message-ID: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Date: Tue, 20 Jun 2006 15:26:51 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Scrolling performance MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 13:27:36 -0000 Hi there, I recently updated to OpenSuSE 10.1 since some people suggested that Eclipse/GTK's performance is better with gtk 2.8. My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with latest NVidia binary drivers, renderaccel enabled. GTK applications tend to be very unresponsive compared to other toolkits: - Slow expose reaction. If I move a window above e.g. gtk-demo I see a repaint-lag of about 2-3cm. - Slow scrolling. Even fast scrolling inside of the filechooser is not smooth. I can see scrolling srtifacts which look like caused by asynchronous repainting of the scrolled area. - Slow layouting, especially for Text composnents: Moving e.g. the vertical splitters of gftp (one pane a table as content, other table is empty) is done with about 5fps. Even my old P233 with Windows2000 can do compareable GUI operations without any problems. Also reslayouting/repainting windows after window-size change is slow. - Sluggish Menu-behaviour. In gftp I can feel a ~400ms lag, therefor it takes about 400ms for the menu to catch up to my mouse-pointer if I move with about 500pixel/s. - Eclipse in general is just _very_ slow at all. If large popup menus go away you see the background about 300-500ms repainting itself. Netbeans (Swing based) is way faster, only after start its slow (till the java JIT compiled the hot spots). I know this is an opensource project, I know if something bothers me I can grab the code and enhance it or dontate some money to make someone else fix my problems. However I still go to school and currently have to do my diploma -> no money, no time. I know its unpolite to post such problems to the list, but bad performance has been discussed since ... I guess the 2.0 release. I still remember many projects refusing to upgarde with tables of micro-benchmarks. Till a long time improvements are promiesed, fast paths in pango, enhanced speed of cairo, better repaint handling and whatsoever. If I start a application which links against GTK-2.8 _feels_ exactly as good damn slow as GTK-2.0. The I start a GTK-1.2 based problem and can't trust my eyes ... what happend to GTK. At times of GTK-1.2 I preffered GTK since it felt a bit faster than QT-2.x but now QT is lightening fast compared to GTK-2.x not talking about high-performance libraries like FOX or FLTK. I used Mozilla/GTK1.2 builds as long as they were available, since even mozilla slowed down by only using GDK(2). I just don't get it why I need a 3ghz PC to not see repaint lags or 5fps layout updates. These things worked years ago ten times better than now (and no, this are not themes. GTK-1/QT-2 were themed too with tons of pixmaps). What has happend? I guess performance regression testing is something never here has heard of :-/ And where to start getting my hands on? I just can't work with this crap anymore, but since GTK is on the way to be used as the default toolkit ... it seems there's no way arround it. Which profiling tools do you recommend? Do you think using the intel compiler is worth a try? Where does all the time go to? I've done some sysprof-profiling and its shows than pango is not the evil. Are maybe the repaint algorythmns not optimal, repainting too often too large areas/hidden components? Sorry for wasting your time and your energy, a frustrated Clemens From mclasen@redhat.com Tue Jun 20 11:22:11 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B32C3B043F; Tue, 20 Jun 2006 11:22:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-09; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 71CF13B00E7; Tue, 20 Jun 2006 11:22:09 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLnL004523; Tue, 20 Jun 2006 11:21:21 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KFLLNA016479; Tue, 20 Jun 2006 11:21:21 -0400 Received: from golem.boston.redhat.com (golem.boston.redhat.com [172.16.80.24]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id k5KFLKdH032719; Tue, 20 Jun 2006 11:21:20 -0400 Subject: GLib 2.11.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Date: Tue, 20 Jun 2006 11:21:20 -0400 Message-Id: <1150816880.15532.58.camel@golem.boston.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 (2.7.1-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 15:22:11 -0000 GLib 2.11.4 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.11/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.11/ glib-2.11.4.tar.bz2 md5sum: 9d3a94baa4bfcd9a579b45eea6de3a8c glib-2.11.4.tar.gz md5sum: f7768bc7ed524c6b40cb87daccb6c2b2 This is a development release leading up to GLib 2.12. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.10. If you have problems, you'll need to reinstall GLib 2.10. * GLib 2.12 will be source and binary compatible with the GLib 2.10.x series (for some caveats, see the README). At this point, the API additions in the 2.11.x series are finished. * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.11.3 to GLib 2.11.4 =================================================== * GBookmarkFile: - g_bookmark_file_remove_item returns a boolean * g_mkstemp accepts the XXXXXX in the middle of the template * Bugs fixed: 344868 g_key_file_to_data should separate groups * Updated translations (de,es,fr,gu,hi,ko,th) A list of all bugs fixed in this release can be found at: http://bugzilla.gnome.org/buglist.cgi?bug_id=344868 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Emmanuele Bassi, Christian Persch, Federico Mena Quintero Matthias Clasen June 20, 2006 From torriem@chem.byu.edu Tue Jun 20 14:00:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AAD953B04F0 for ; Tue, 20 Jun 2006 14:00:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02250-08 for ; Tue, 20 Jun 2006 14:00:13 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 8D0CF3B0302 for ; Tue, 20 Jun 2006 14:00:02 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5KFR9lG010025 for ; Tue, 20 Jun 2006 09:27:10 -0600 Subject: Re: Please help me.. From: Michael L Torrie To: gtk-list@gnome.org In-Reply-To: <4497D6A6.20505@sasken.com> References: <4497D6A6.20505@sasken.com> Content-Type: text/plain Date: Tue, 20 Jun 2006 09:27:09 -0600 Message-Id: <1150817229.26278.4.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Tue, 20 Jun 2006 09:27:10 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.514 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.514 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:00:23 -0000 On Tue, 2006-06-20 at 16:36 +0530, Kalli Math wrote: > hi all... > > I am doing GUI for audio players using *GTK* as framework. i have to > design a *playlist* which contains files from one* directory*, on > selecting file from playlist another window should open,which contains > play,* pause and stop buttons and one progress bar*. i have to write > *events* for those play & all buttons. if anybody have idea of this > please help me. or tell me where i get source code of this. Do you have a specific question? I doubt anyone here will write your program for you. > > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mitch@gimp.org Tue Jun 20 14:16:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C5693B03C5 for ; Tue, 20 Jun 2006 14:16:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03488-03 for ; Tue, 20 Jun 2006 14:16:26 -0400 (EDT) Received: from mitch.gimp.org (fuckup.club.berlin.ccc.de [195.160.172.2]) by menubar.gnome.org (Postfix) with ESMTP id 86EB33B0341 for ; Tue, 20 Jun 2006 14:16:25 -0400 (EDT) Received: from mitch by mitch.gimp.org with local (Exim 3.36 #1 (Debian)) id 1FsknV-0007g7-00; Tue, 20 Jun 2006 20:17:58 +0200 Subject: Re: proggressbar.. From: Michael Natterer To: Kalli Math In-Reply-To: <4497B5B8.1080000@sasken.com> References: <4497B5B8.1080000@sasken.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 20:17:57 +0200 Message-Id: <1150827477.31698.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.387 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.387 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:16:27 -0000 I think it would help a bit if you a) asked specific questions b) didn't have 3 times as much advertizing as content in your mail c) didn't have this idiotic disclaimer On Tue, 2006-06-20 at 14:15 +0530, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Tue Jun 20 14:20:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D25DE3B03E3 for ; Tue, 20 Jun 2006 14:20:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03798-03 for ; Tue, 20 Jun 2006 14:20:52 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 120A73B0401 for ; Tue, 20 Jun 2006 14:20:51 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id i30so402545wxd for ; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.19.6 with SMTP id 6mr10823687wxs; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 11:20:51 -0700 (PDT) Message-ID: <522c6460606201120g780d763dvf18c90f7fb461681@mail.gmail.com> Date: Tue, 20 Jun 2006 19:20:51 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 18:20:54 -0000 On 6/20/06, Clemens Eisserer wrote: > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Hi Clemens, I've not tried suse 10.1, but older suses used to install a theme engine for gtk which tried to copy the current KDE theme. It always caused me problems: it was slow, very ugly, and had repaint errors. Maybe it's better than it used to be, but if you have not disabled it, I think it's worth trying without. I forget what the package you have to remove is called, maybe try something like rpm -q a | grep -i gtk | grep -i engine (untested) and see if it lists any theme engines. GTK on the default theme should be fast. John From patrick.jacquotf@free.fr Tue Jun 20 15:18:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A6EB3B046A for ; Tue, 20 Jun 2006 15:18:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07752-07 for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 9EC583B047F for ; Tue, 20 Jun 2006 15:18:13 -0400 (EDT) Received: from [192.168.0.1] (fny94-1-81-57-170-53.fbx.proxad.net [81.57.170.53]) by smtp2-g19.free.fr (Postfix) with ESMTP id C6C8F73297; Tue, 20 Jun 2006 21:18:10 +0200 (CEST) Subject: Re: Drawing images ( with transparency ) one on another From: Patrick Jacquot To: hm In-Reply-To: <20060619093509.DC2132E5C98@poczta.interia.pl> References: <20060619093509.DC2132E5C98@poczta.interia.pl> Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2006 21:17:43 +0200 Message-Id: <1150831063.12639.2.camel@proton> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.582 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599] X-Spam-Score: -2.582 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:18:15 -0000 Le lundi 19 juin 2006 11:35 +0200, hm a 閏rit : > Hi, > > I`ve got a problem. I`ve got two separate images. One is background for the secondone. Secondone is partially transparent. There is also table. Question is : how to draw in one of the table`s cells the backgraound, and on this background ( as a second layer ) second image (transparent) ? I know ( of course ) how to create images, tables. > > thanks > > ---------------------------------------------------------------------- > Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f1961 > One solution could be to prepare the composite image with the imagemagick library, then to display that composite image HTH -- Patrick From Valdis.Kletnieks@vt.edu Tue Jun 20 15:31:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 908813B04C0 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08815-08 for ; Tue, 20 Jun 2006 15:31:31 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 9C8D13B04A5 for ; Tue, 20 Jun 2006 15:31:30 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KJVPU2012082; Tue, 20 Jun 2006 15:31:25 -0400 Message-Id: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 15:26:51 +0200." <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150831885_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 15:31:25 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.596 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.596 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 19:31:31 -0000 --==_Exmh_1150831885_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 15:26:51 +0200, Clemens Eisserer said: > Where does all the time go to? I've done some sysprof-profiling and > its shows than pango is not the evil. Are maybe the repaint > algorythmns not optimal, repainting too often too large areas/hidden > components? So where *does* the time go to, if not pango? The more detail you can provide, the easier it is to track down. For what it's worth, I'm using an older Dell C840 laptop (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer, and it's able to keep up just fine. (Although I admit that if I grab one 700x1000 window and start using the mouse to move it back and forth as fast as I can move the mouse, in front of 2 other 700x1000 windows, and the window manager is doing the moving window in translucent mode as well, that *will* spike the processor up to about 100% and only 8 or 10 redraws per second. I'm not saying it's *not* an issue for you, but simply pointing out that not everybody is seeing the problem - on my machine, GTK2 *is* a bit heavier than GTK1, but not to the point where it's a major issue. And in general, it's really hard to chase down performance regressions in an open-source project without somebody actually seeing the problem and willing to work in some detail to chase it down (been there myself - there's been more than a few times when I've been literally the only person who was both seeing a given bug in the Linux kernel and in a position to help debug it...) --==_Exmh_1150831885_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmE0NcC3lWbTT17ARAu6DAKCFrdWzrt6jGOyh69x5OyWXCTOWfQCfdYba DBRnnX3k5h5Y8BId+X2kJlo= =y5ZG -----END PGP SIGNATURE----- --==_Exmh_1150831885_3210P-- From linuxhippy@gmail.com Tue Jun 20 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A25C13B037B for ; Tue, 20 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11895-05 for ; Tue, 20 Jun 2006 16:21:18 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id C470F3B0270 for ; Tue, 20 Jun 2006 16:21:17 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so710136hud for ; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.69.7 with SMTP id r7mr2961683hua; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 13:21:16 -0700 (PDT) Message-ID: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Date: Tue, 20 Jun 2006 22:21:16 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.561 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 20:21:19 -0000 Hi again, Maybe GTK is using X in a way it does not like? > of 2 other 700x1000 windows, and the window manager is doing the moving window > in translucent mode as well, that *will* spike the processor up to about 100% > and only 8 or 10 redraws per second. Well but then a composition manager is installed (as far as I know this is needed for transculesent windows), the window-content is cached in a pixmap and just this pixmap is drawn overe and over and the application does not receive a single expose event by X - So it has in fact nothing to do with GTK. Thanks for the tip with the theme, the only theme I've installed is called "Raleigh". > (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer Well but it should be enough to handle these simple tasks very fast. If QT can do it fast, GTK should be able too. I just wonder why QT performs that well (and many other toolkits I've used too like FOX or FLTK) but everytime it comes down to bad performance of GTK the following things happen: 1.) Not even one comment from a developer. Maybe there are not enough, maybe nobody cares, ore maybe they can't cope with critic? I don't know. 2.) Some fans respond that on their machines its working fast enough. Fighting against that one that brought up the topic to show him that their favourite Gui toolkit is not as weak as it looks. 3.) The discussion dies with or without a flame. -> no result, nothing changes. I see/saw quite frequently complaints about GTK's performance, I saw tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away from GTK-2 because they were concerned loosing users when switching to this toolkit. > So where *does* the time go to, if not pango? The more detail you can > provide, the easier it is to track down. I did some sysprof testing back when I tried to analyze why the Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default theme). It was almost a flat profile, but X spiked quite a lot. Doing the same test (invalidating eclispe's main window) shows about half (!!!) of the time is spent in X. The test with gftp (moving splitters) shows X using 67.1% of CPU whereas gftp itself only consumes 31%. I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). lg Clemens From myeates@jpl.nasa.gov Tue Jun 20 17:24:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B67933B090F for ; Tue, 20 Jun 2006 17:24:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14950-08 for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from nmta3.jpl.nasa.gov (nmta.jpl.nasa.gov [137.78.160.108]) by menubar.gnome.org (Postfix) with ESMTP id 9336B3B082C for ; Tue, 20 Jun 2006 17:24:48 -0400 (EDT) Received: from xmta3.jpl.nasa.gov (xmta3.jpl.nasa.gov [137.78.160.111]) by nmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlIa004610 for ; Tue, 20 Jun 2006 14:24:47 -0700 Received: from [137.78.28.25] (matslab.jpl.nasa.gov [137.78.28.25]) by xmta3.jpl.nasa.gov (Switch-3.1.8/Switch-3.1.7) with ESMTP id k5KLOlK8000301 for ; Tue, 20 Jun 2006 14:24:47 -0700 Message-ID: <4498679B.7000508@jpl.nasa.gov> Date: Tue, 20 Jun 2006 14:24:43 -0700 From: Mathew Yeates User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: matslab.jpl.nasa.gov [137.78.28.25] X-Source-Sender: myeates@jpl.nasa.gov X-AUTH: Internal IP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.568 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599] X-Spam-Score: -2.568 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:24:49 -0000 Hi When I try and compile I get the error in my subject line. This is with a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Mathew From Valdis.Kletnieks@vt.edu Tue Jun 20 17:30:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4628D3B082C for ; Tue, 20 Jun 2006 17:30:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15364-10 for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 4B7023B05CA for ; Tue, 20 Jun 2006 17:30:22 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KLUJKk016876; Tue, 20 Jun 2006 17:30:19 -0400 Message-Id: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Tue, 20 Jun 2006 22:21:16 +0200." <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150839019_3210P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 17:30:19 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.558 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.558 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:23 -0000 --==_Exmh_1150839019_3210P Content-Type: text/plain; charset=us-ascii On Tue, 20 Jun 2006 22:21:16 +0200, Clemens Eisserer said: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. Maybe none of the developers are seeing your issue, and none of the usual bleeding-edge testers see it either. This makes it hard for them to fix it. > 2.) Some fans respond that on their machines its working fast enough. I'm suspecting you're addressing me with that comment. ;) My point was that it *isn't* the case where every single GTK2 system is seeing horrid performance, and that it always sucks in every case. You seem to be encountering an issue that is *not* present on every system. (On the other hand, if computers and users didn't keep finding new ways to trip over obscure corner cases, I'd be unemployed, so I'm not complaining ;) > I see/saw quite frequently complaints about GTK's performance, I saw > tables comparing GTK-1.2 vs. GTK-2 performance, authors migrating away > from GTK-2 because they were concerned loosing users when switching to > this toolkit. Because usually the person complaining disappears before providing useful info like this: > > So where *does* the time go to, if not pango? The more detail you can > > provide, the easier it is to track down. > I did some sysprof testing back when I tried to analyze why the > Eclipse/GTK port performs like crap (this was FC4 / GTK-2.6 / Default > theme). It was almost a flat profile, but X spiked quite a lot. Doing > the same test (invalidating eclispe's main window) shows about half > (!!!) of the time is spent in X. The test with gftp (moving splitters) > shows X using 67.1% of CPU whereas gftp itself only consumes 31%. > I am using Xorg 6.9 with grayscale-aa fonts (xrender is accalerated). OK, *now* we have something that we can start looking into - we now know that at least part of the problem is that gftp is generating some very sub-optimal X requests. And we have a test case that reproduces easily (although on my box moving the main horizontal splitter in the gftp gui up and down result in about 70% gftp-gtk and 25% in the X server). I'll take a closer look at this later tonight - the kernel I have booted at the moment doesn't have oprofile support. (And no, I don't pretend to know the GTK innards well enough to fix this, but I've been doing systems debugging and tuning for enough decades that I certainly should be able to get a clear and coherent bugzilla out of it so that somebody else can run with it from there...) --==_Exmh_1150839019_3210P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmGjrcC3lWbTT17ARAipXAJ0VwdLBfSxH0117D7jSuyfn23bE9gCgudlr 1k0WTieYG9P86q3XX2RzYns= =rDWz -----END PGP SIGNATURE----- --==_Exmh_1150839019_3210P-- From mleisher@crl.nmsu.edu Tue Jun 20 17:30:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC5483B0ACC for ; Tue, 20 Jun 2006 17:30:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-02 for ; Tue, 20 Jun 2006 17:30:38 -0400 (EDT) Received: from crl.nmsu.edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id A09343B0BBE for ; Tue, 20 Jun 2006 17:30:36 -0400 (EDT) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.nmsu.edu (8.13.6/8.13.6) with ESMTP id k5KLUYPh018088; Tue, 20 Jun 2006 15:30:34 -0600 Message-ID: <44986900.7080407@crl.nmsu.edu> Date: Tue, 20 Jun 2006 15:30:40 -0600 From: Mark Leisher User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Clemens Eisserer Subject: Re: Scrolling performance References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.2/1551/Tue Jun 20 07:37:21 2006 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.494 tagged_above=-999 required=2 tests=[AWL=-0.840, BAYES_00=-2.599, DNS_FROM_RFC_BOGUSMX=1.945] X-Spam-Score: -1.494 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:30:44 -0000 Clemens Eisserer wrote: > >> (1.6Ghz CPU, 768M of RAM, and an NVidia 440Go chipset), hardly a screamer > Well but it should be enough to handle these simple tasks very fast. > If QT can do it fast, GTK should be able too. > > I just wonder why QT performs that well (and many other toolkits I've > used too like FOX or FLTK) but everytime it comes down to bad > performance of GTK the following things happen: > 1.) Not even one comment from a developer. Maybe there are not enough, > maybe nobody cares, ore maybe they can't cope with critic? I don't > know. > 2.) Some fans respond that on their machines its working fast enough. > Fighting against that one that brought up the topic to show him that > their favourite Gui toolkit is not as weak as it looks. > 3.) The discussion dies with or without a flame. > -> no result, nothing changes. I run GTK+ 2.8 on a 400MHz Pentium II box (512MB, Slackware 9) every day without any noticeable performance problems. At one time or another I have used pretty much all versions of GTK+ on this machine without any performance problems. In fact I just installed all the latest libraries last night and didn't experience any performance problems with any programs I linked to the new libraries. Your performance problem is most likely configuration or distribution-specific. Thus the lack of response from the developers. The discussion founders because nothing needs changing except perhaps your system, which your fellow travelers can only help with up to a point because most of us don't have your specific setup. I will say that it not a good sign that problems like yours can't be diagnosed easily. The accretion of mass and complexity in the OS and GUI is making it increasingly difficult to determine where to start troubleshooting. -- ------------------------------------------------------------------------ Mark Leisher Computing Research Lab They never open their mouths New Mexico State University without subtracting from the Box 30001, MSC 3CRL sum of human knowledge. Las Cruces, NM 88003 -- Thomas Bracket Reed (1839-1902) From tml@iki.fi Tue Jun 20 17:49:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33B5C3B0954 for ; Tue, 20 Jun 2006 17:49:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16362-09 for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 3898C3B028D for ; Tue, 20 Jun 2006 17:49:36 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 349E1151226; Wed, 21 Jun 2006 00:49:32 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17560.28006.652000.134571@gargle.gargle.HOWL> Date: Wed, 21 Jun 2006 00:49:26 +0300 To: Mathew Yeates Subject: Re: problem compiling on Windows with MSVC - missing libiconv_set_relocation_prefix In-Reply-To: <4498679B.7000508@jpl.nasa.gov> References: <4498679B.7000508@jpl.nasa.gov> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.329 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.329 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:49:40 -0000 Mathew Yeates writes: > When I try and compile I get the error in my subject line. This is with > a binary libiconv-1.9.1 and glib 2.8. Any windozers seen this before? Presumably you get the error when running your code, not compiling? Anyway, you probably have an older version of the GNU iconv Dll, iconv.dll, in your Windows System32 folder. (Or something totally unrelated that just happens to also be called iconv.dll.) Hide that other iconv.dll. If you later then notice that some 3rd-party app that has installed it in the system32 folder starts complaining about it missing, copy it to that app's executable's folder, where it should have been in the first place. --tml From jcupitt@gmail.com Tue Jun 20 17:57:42 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D481A3B026F for ; Tue, 20 Jun 2006 17:57:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17120-07 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.203]) by menubar.gnome.org (Postfix) with ESMTP id 9A3F33B0244 for ; Tue, 20 Jun 2006 17:57:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id h30so11009wxd for ; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.92.17 with SMTP id p17mr11155104wxb; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Tue, 20 Jun 2006 14:57:34 -0700 (PDT) Message-ID: <522c6460606201457k7a194a19n956616ccdaeb85da@mail.gmail.com> Date: Tue, 20 Jun 2006 22:57:34 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:57:43 -0000 On 6/20/06, Clemens Eisserer wrote: > Thanks for the tip with the theme, the only theme I've installed is > called "Raleigh". I found the package: http://www.novell.com/products/linuxpackages/suselinux/gtk-qt-engine.html it is installed by default, so unless you've removed it, you are probably using it. Worth checking anyway. I used to use gtk2.4 apps under suse on a very old 450MHz PII machine and performance was not obviously worse than Qt (for me). John From linuxhippy@gmail.com Tue Jun 20 18:41:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4FC13B0170 for ; Tue, 20 Jun 2006 18:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20290-07 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 2388D3B08F1 for ; Tue, 20 Jun 2006 18:41:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so720860hud for ; Tue, 20 Jun 2006 15:41:32 -0700 (PDT) Received: by 10.78.17.4 with SMTP id 4mr3049235huq; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Tue, 20 Jun 2006 15:41:31 -0700 (PDT) Message-ID: <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Date: Wed, 21 Jun 2006 00:41:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.37 tagged_above=-999 required=2 tests=[AWL=-0.155, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -2.37 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 22:41:37 -0000 Hi again, > I'm suspecting you're addressing me with that comment. ;) Well, maybe ;) When I wrote the original post I was quite frustrated since I was unhappy about GTKs performance since a long time (I used FC3 (2.4) and FC4(2.6) and now OpenSuSE 10.1 (2.8), my laptop died (2.6ghz) and now I've to work on an Athlon-1000 where all gtk programs are the same oder of magnitude slower than on my laptop, I just can feel it much more because of the slowness of the machine itself. > Because usually the person complaining disappears before providing useful > info like this: Well I understand that this leads to frustration over the time. I am too one of those guys crying very loud, however I am a java-programmer working with Eclipse since about 2 years. I can choose between a slow GTK2 interface or an unuseable but fast Motif based, and that for the tool I work most of the time with :-/ So ... yes I am interested in investing time to at least help abit with informations ;) For now my timeframe is *very* limmited (my current project has its deadline about 2-3 weeks), but I am of course I am willed to help. I would also be willed to get my hands on code ... if someone would be patient enough to help me at the beginning ;) I did some oprofiling, however I don't have a vmlinz-file handy so its quite a bit useless: 5558 39.2930 no-vmlinux 2116 14.9593 libfb.so 1319 9.3248 nvidia_drv.so 1031 7.2888 Xorg 603 4.2630 libqt-mt.so.3.3.5 550 3.8883 libc-2.4.so 470 3.3227 libgobject-2.0.so.0.800.5 416 2.9410 libcairo.so.2.2.3 337 2.3825 libglib-2.0.so.0.800.5 304 2.1492 libgdk-x11-2.0.so.0.800.10 272 1.9229 libpango-1.0.so.0.1001.1 201 1.4210 libX11.so.6.2 177 1.2513 libpthread-2.4.so 155 1.0958 libgtk-x11-2.0.so.0.800.10 > I'll take a closer look at this later tonight - the kernel I have booted at the > moment doesn't have oprofile support. Thanks for looking into this. lg Clemens From Valdis.Kletnieks@vt.edu Tue Jun 20 19:43:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1109D3B0357 for ; Tue, 20 Jun 2006 19:43:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24750-03 for ; Tue, 20 Jun 2006 19:43:33 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id C354B3B02B8 for ; Tue, 20 Jun 2006 19:43:32 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5KNhQN3004405; Tue, 20 Jun 2006 19:43:26 -0400 Message-Id: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Clemens Eisserer Subject: Re: Scrolling performance In-Reply-To: Your message of "Wed, 21 Jun 2006 00:41:31 +0200." <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> From: Valdis.Kletnieks@vt.edu References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150847006_3852P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jun 2006 19:43:26 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.404 tagged_above=-999 required=2 tests=[AWL=-0.150, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_IB=0.077] X-Spam-Score: -1.404 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 23:43:38 -0000 --==_Exmh_1150847006_3852P Content-Type: text/plain; charset=us-ascii On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > I did some oprofiling, however I don't have a vmlinz-file handy so its > quite a bit useless: > 5558 39.2930 no-vmlinux Bummer. With a system time *that* high, I'm wondering if there's something odd going on here... a vmlinux to help split that out would certainly help a lot in debugging here.. > 2116 14.9593 libfb.so > 1319 9.3248 nvidia_drv.so > 1031 7.2888 Xorg > 603 4.2630 libqt-mt.so.3.3.5 > 550 3.8883 libc-2.4.so > 470 3.3227 libgobject-2.0.so.0.800.5 Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a generic GTK issue, not gftp, unless the 3 other apps I tested did the same wrong thing with it.. ;) samples % image name app name symbol name 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process 5232 6.7536 libfb.so libfb.so (no symbols) 4834 6.2398 Xorg Xorg (no symbols) 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy 2172 2.8037 vmlinux vmlinux get_page_from_freelist 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock 1359 1.7542 nvidia nvidia (no symbols) 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup (or, done by shared library: 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 10538 13.6027 vmlinux 5594 7.2209 libc-2.4.90.so 5377 6.9408 libgobject-2.0.so.0.1102.1 5232 6.7536 libfb.so 4953 6.3934 Xorg 4784 6.1753 nvidia_drv.so 3933 5.0768 libpthread-2.4.90.so At least in my case, the top hog appears to be too much work done scaling theme pixmaps over and over, when they're likely to be invalidated by another resize before the scaling is completed.... You probably mentioned it before, but what GTK2 theme are you using? --==_Exmh_1150847006_3852P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmIgecC3lWbTT17ARAvXtAKDYfozX87Bk7LwUKWF75kNiCuBY2gCgp136 iJcjpeJlIWrhq/fYvfTtwEc= =x8rS -----END PGP SIGNATURE----- --==_Exmh_1150847006_3852P-- From nick.soffe@bioch.ox.ac.uk Wed Jun 21 04:41:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 68FAD3B0A36 for ; Wed, 21 Jun 2006 04:41:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22457-02 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from relay0.mail.ox.ac.uk (relay0.mail.ox.ac.uk [129.67.1.161]) by menubar.gnome.org (Postfix) with ESMTP id 910DE3B07B7 for ; Wed, 21 Jun 2006 04:41:30 -0400 (EDT) Received: from smtp1.herald.ox.ac.uk ([163.1.0.247]) by relay0.mail.ox.ac.uk with esmtp (Exim 4.62) (envelope-from ) id 1FsyHA-0005TT-2r for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Received: from nmrpc.bioch.ox.ac.uk ([129.67.77.14]) by smtp1.herald.ox.ac.uk with esmtp (Exim 3.36 #1) id 1FsyHA-0000gW-01 for gtk-list@gnome.org; Wed, 21 Jun 2006 09:41:28 +0100 Date: Wed, 21 Jun 2006 09:39:16 +0100 (GMT Daylight Time) From: Nick Soffe To: Subject: Re: Scrolling performance In-Reply-To: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> Message-ID: X-X-Sender: bioc0391@imap228.herald.ox.ac.uk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 08:41:32 -0000 On Tue, 20 Jun 2006, Clemens Eisserer wrote: > Hi there, > > I recently updated to OpenSuSE 10.1 since some people suggested that > Eclipse/GTK's performance is better with gtk 2.8. > My machine is a Athlon 1000 with 512mb SDram and a GeForce FX5200 with > latest NVidia binary drivers, renderaccel enabled. > > GTK applications tend to be very unresponsive compared to other toolkits: Clemens, I don't know if this has any relevance now, but I experienced similar poor performance a while ago with a machine who's configuration was very similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the Nvidia binary driver current at the time (a couple of years ago). The driver worked well for 3d applications (glxgears gave much higher fps) but seemed to devastate the 2d performance particularly with GTK2 applications. Changing back to the open source 'nv' driver seemed to work much better. I never knew whether the problem was hardware or software related and eventually swapped the graphics card for an inexpensive radeon using the OS 'radeon' driver. This combination worked much better for me so I never investigated further. Nick From linuxhippy@gmail.com Wed Jun 21 07:44:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 173903B0F80 for ; Wed, 21 Jun 2006 07:44:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01010-04 for ; Wed, 21 Jun 2006 07:44:13 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id AFCBC3B0EEF for ; Wed, 21 Jun 2006 07:44:12 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 24so800375hud for ; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.51.9 with SMTP id y9mr3301492huy; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 04:44:10 -0700 (PDT) Message-ID: <194f62550606210444r79f41268xebc6eb2a75e46f20@mail.gmail.com> Date: Wed, 21 Jun 2006 13:44:10 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.735 tagged_above=-999 required=2 tests=[AWL=-0.693, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.735 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 11:44:14 -0000 Hello Nick, > I don't know if this has any relevance now, but I experienced similar poor > performance a while ago with a machine who's configuration was very > similar to yours (Athlon 1000, Nvidia FX5200) and it seemed related to the > Nvidia binary driver current at the time (a couple of years ago). Definitivly could be ... all my systems are equiped with NVidia cards (GF488Go, FX5200, GF6600) and I am using the nvidia binary driver on all of my systems. However throwing their closed-source beast away is not an option for me, from time to time I play 3d games or enjoy opengl/shader development for fun. Many others also use the nvidia driver, maybe theres a way it could be solved? It really could be this combination, maybe it could be worked arround (if easy) or someone could file a bugreport at nvidia, however I guess they would like to see specific claims. Does anybody know a better way for profiling X/X requests than oprofile? Thanks a lot for reading, lg Clemens From linuxhippy@gmail.com Wed Jun 21 08:04:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D3E753B090F for ; Wed, 21 Jun 2006 08:04:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02496-05 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by menubar.gnome.org (Postfix) with ESMTP id 28A553B0992 for ; Wed, 21 Jun 2006 08:04:23 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so855999hue for ; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.26.9 with SMTP id 9mr3210819huz; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 05:04:21 -0700 (PDT) Message-ID: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> Date: Wed, 21 Jun 2006 14:04:21 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.395 tagged_above=-999 required=2 tests=[AWL=-0.661, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_BF=0.077, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -1.395 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 12:04:27 -0000 Hello Valdis, Thanks again for taking all the time :-) You were right, novell installed by default a gtk-qt-engine package, that was also the reason why I was not able to get rid of "this one and only theme". Now I am using the default theme and its _way_ better, I see about twice as much refreshed when moving gftp's vertical splitter, the horizontal are still very slow. gtk-demo still shows a much higher expose-lag than even konqueror which its much more complex (and skinned) default interface. > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. Great, SuSe (unlike fedora) stores an compressed vmlinux directly in /boot. 4676 19.7391 libfb.so (no symbols) 3647 15.3953 vmlinux-copy default_idle 2445 10.3212 nvidia_drv.so _nv000805X 2031 8.5736 vmlinux-copy get_page_from_freelist 1817 7.6702 Xorg (no symbols) 1130 4.7701 libcairo.so.2.2.3 (no symbols) 888 3.7486 libgobject-2.0.so.0.800.5 (no symbols) 699 2.9507 libpango-1.0.so.0.1001.1 (no symbols) 659 2.7819 libgdk-x11-2.0.so.0.800.10 (no symbols) 638 2.6932 libglib-2.0.so.0.800.5 (no symbols) 482 2.0347 nvidia_drv.so _nv000194X 331 1.3973 libgtk-x11-2.0.so.0.800.10 (no symbols) 315 1.3297 libc-2.4.so _int_malloc 309 1.3044 nvidia (no symbols) This profile looks _very_ strange for me. For what is libfb good ... I am quite sure I am using the binary nvidia driver. A lot if time is "wasted" allocating memory and a lot of time goes to the nvidia drivers doing something. Is there a way to get something like call-graphs out of oprofile, maybe this would illustrate which functions call into _nv000805X or libfb. When moving gftps splitters I still see X (with the default theme) eating cpu-time at about 65% and gftp at about 33%. > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... Just because of interrest couldn't cairo be used for scaling with a fast path through XRender? Does XRender supports scaling of images? Thanks again, lg Clemens From jcupitt@gmail.com Wed Jun 21 09:07:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DF073B0F19 for ; Wed, 21 Jun 2006 09:07:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07105-09 for ; Wed, 21 Jun 2006 09:07:36 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id CE1593B0FD4 for ; Wed, 21 Jun 2006 09:07:35 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so128046wxc for ; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.78.5 with SMTP id a5mr1084728wxb; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:07:35 -0700 (PDT) Message-ID: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> Date: Wed, 21 Jun 2006 14:07:35 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.441 tagged_above=-999 required=2 tests=[AWL=-0.072, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.441 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:07:39 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From jcupitt@gmail.com Wed Jun 21 09:22:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941143B0FAC for ; Wed, 21 Jun 2006 09:22:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08193-05 for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 7AF683B0FCF for ; Wed, 21 Jun 2006 09:21:55 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so130171wxc for ; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.18.10 with SMTP id 10mr1106184wxr; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Received: by 10.70.91.13 with HTTP; Wed, 21 Jun 2006 06:21:54 -0700 (PDT) Message-ID: <522c6460606210621u56e6c915u4db618c4c3de2cc0@mail.gmail.com> Date: Wed, 21 Jun 2006 14:21:54 +0100 From: "John Cupitt" Subject: Re: Scrolling performance Cc: gtk-list@gnome.org In-Reply-To: <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.437 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.437 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:22:00 -0000 On 6/21/06, Clemens Eisserer wrote: > You were right, novell installed by default a gtk-qt-engine package, > that was also the reason why I was not able to get rid of "this one > and only theme". Now I am using the default theme and its _way_ > better, I see about twice as much refreshed when moving gftp's > vertical splitter, the horizontal are still very slow. > gtk-demo still shows a much higher expose-lag than even konqueror > which its much more complex (and skinned) default interface. Good, glad that helped. There are fast and attractive gtk2 themes as well: I use clearlooks myself. For what it's worth, if I maximise gftp and wiggle the vertical splitter I see rather similar numbers to you. I have an nvidia 6200 with driver 1.0-8762 and gtk2.8.18. 379387 69.5894 Xorg CPU_CLK_UNHALT...| samples| %| ------------------ 143932 37.9380 libfb.so 101881 26.8541 no-vmlinux 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) 26745 7.0495 Xorg 6181 1.6292 libc-2.3.6.so 1685 0.4441 libextmod.so 116 0.0306 mouse_drv.so 42 0.0111 libramdac.so 1 2.6e-04 libm-2.3.6.so 125293 22.9820 gftp-gtk CPU_CLK_UNHALT...| samples| %| ------------------ 20136 16.0711 libpangoft2-1.0.so.0.1201.2 16493 13.1635 libcairo.so.2.2.4 15452 12.3327 libgobject-2.0.so.0.1000.3 13860 11.0621 libpango-1.0.so.0.1201.2 12485 9.9646 libc-2.3.6.so 12299 9.8162 libgdk-x11-2.0.so.0.800.18 11823 9.4363 libglib-2.0.so.0.1000.3 4191 3.3450 libgtk-x11-2.0.so.0.800.18 4190 3.3442 libX11.so.6.2.0 2946 2.3513 libpthread-2.3.6.so 2517 2.0089 no-vmlinux 2171 1.7327 libpangocairo-1.0.so.0.1201.2 2087 1.6657 libXrender.so.1.3.0 1887 1.5061 libm-2.3.6.so 1084 0.8652 libfreetype.so.6.3.8 956 0.7630 libclearlooks.so 352 0.2809 pango-basic-fc.so 323 0.2578 libgthread-2.0.so.0.1000.3 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 8 0.0064 ld-2.3.6.so 3 0.0024 gftp-gtk John From paul@linuxaudiosystems.com Wed Jun 21 09:30:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 524143B0FAC for ; Wed, 21 Jun 2006 09:30:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08899-09 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by menubar.gnome.org (Postfix) with ESMTP id 6ED913B0FE0 for ; Wed, 21 Jun 2006 09:30:02 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J17000M8PHWT1L4@vms042.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 08:29:57 -0500 (CDT) Date: Tue, 20 Jun 2006 21:00:15 -0400 From: Paul Davis Subject: Re: Scrolling performance In-reply-to: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> To: Valdis.Kletnieks@vt.edu Message-id: <1150851615.8703.171.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.931 tagged_above=-999 required=2 tests=[AWL=-0.579, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247] X-Spam-Score: -1.931 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:30:03 -0000 On Tue, 2006-06-20 at 19:43 -0400, Valdis.Kletnieks@vt.edu wrote: > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) i talked for a little while with tim janik at LAC2006 this year about this very issue. GTK1's pane widget used the standard draw-with-XOR to indicate the new position of the divider, and the resize didn't occur till mouse release. GTK2, for some unknown reason, abandoned that approach and instead keeps issuing resize events as the mouse moves. its completely and totally braindead as the default behaviour, although i would concede that there are situations where it would be nice to have this available. in ardour, dragging panes around like this causes a more or less complete redraw of our monster canvas widget, which causes absurdly slow and ugly visuals while doing it. i've looked at rewriting GtkPaned to use the old behaviour by default, but it was just too much work for me to get into at the time i was looking into it. --p From linuxhippy@gmail.com Wed Jun 21 10:12:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E2C53B0F79 for ; Wed, 21 Jun 2006 10:12:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11455-01 for ; Wed, 21 Jun 2006 10:12:43 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 024343B0954 for ; Wed, 21 Jun 2006 10:12:42 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so3546903uge for ; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.17.1 with SMTP id 1mr3355654huq; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 21 Jun 2006 07:12:41 -0700 (PDT) Message-ID: <194f62550606210712n52adc4fbu66cc223ceec68c87@mail.gmail.com> Date: Wed, 21 Jun 2006 16:12:41 +0200 From: "Clemens Eisserer" To: paul@linuxaudiosystems.com, gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <1150851615.8703.171.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <1150851615.8703.171.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:12:47 -0000 Hello Paul, > GTK2, for some unknown reason, abandoned that > approach and instead keeps issuing resize events as the mouse moves. its > completely and totally braindead as the default behaviour, although i > would concede that there are situations where it would be nice to have > this available. Yes I know, older toolkits used to solve it this way. However most modern toolkits resize the content as soon as the slider is moved and are able to cope with it better than GTK (at least on my machine), e.g. moving the panes of k3b (a KDE based cdrecord frontend, qt: skinned, gtk: default theme) is smooth whereas gftp's panes always give an impression of beeing behind the cursor and showing visual ugliness. However this could also be caused by the nvidia driver, I don't know :-/ Maybe I can create a small video of both programs and upload it somewhere.... lg Clemens From M.Kahn@Astronautics.com Wed Jun 21 10:21:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EA683B106A for ; Wed, 21 Jun 2006 10:21:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11945-10 for ; Wed, 21 Jun 2006 10:21:48 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id D14463B1034 for ; Wed, 21 Jun 2006 10:21:47 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6953D.FE391C43" Subject: GTK Performance on Athlon Date: Wed, 21 Jun 2006 09:21:31 -0500 Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: GTK Performance on Athlon Thread-Index: AcaVPf3m6pVD3d/ISkecaOL4KsmRdA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.3 tagged_above=-999 required=2 tests=[AWL=-1.116, BAYES_40=-0.185, HTML_MESSAGE=0.001] X-Spam-Score: -1.3 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:21:51 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. The system clock took off at warp speed (about three times normal speed). When I emailed SuSE, they told me that the BIOS does not provide a solid real-time clock interrupt. (One side-effect of the warp speed system clock was I could not "double click" on anything.) They felt that they may have a fix for this problem in SUSE 10.0. It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance. I really hope this isn't your problem. =20 BTW - I have since returned to using my old 1.7 GHz PC (assembled myself) to run Linux. I won't be taking any chances on the Athlon in the future; that's just too much money to spend on a machine that doesn't play nicely with my preferred flavor of Linux. =20 Michael Kahn =20 ------_=_NextPart_001_01C6953D.FE391C43 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A few months ago, I bought an HP Athlon PC and = installed SuSE 9.2.  The system clock took off at warp speed (about three = times normal speed).  When I emailed SuSE, they told me that the BIOS = does not provide a solid real-time clock interrupt.  (One side-effect of the = warp speed system clock was I could not “double click” on = anything.)  They felt that they may have a fix for this problem in SUSE 10.0.  = It may be that the Athlon clock fix in SUSE 10.0 is what is hindering your GTK performance.  I really hope this isn’t your = problem.

 

BTW – I have since returned to using my old 1.7 = GHz PC (assembled myself) to run Linux.  I won’t be taking any = chances on the Athlon in the future; that’s just too much money to spend on a machine that doesn’t play nicely with my preferred flavor of = Linux.

 

  Michael Kahn

 

------_=_NextPart_001_01C6953D.FE391C43-- From paul@linuxaudiosystems.com Wed Jun 21 10:46:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4A2C3B1091 for ; Wed, 21 Jun 2006 10:46:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13938-01 for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 328253B105D for ; Wed, 21 Jun 2006 10:46:44 -0400 (EDT) Received: from dual ([141.152.254.231]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1700ETJSZ4L7UG@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 21 Jun 2006 09:45:05 -0500 (CDT) Date: Wed, 21 Jun 2006 10:45:33 -0400 From: Paul Davis Subject: Re: GTK Performance on Athlon In-reply-to: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> To: Michael Kahn Message-id: <1150901133.10221.2.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 14:46:47 -0000 On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > The system clock took off at warp speed (about three times normal > speed). When I emailed SuSE, they told me that the BIOS does not > provide a solid real-time clock interrupt. (One side-effect of the > warp speed system clock was I could not 鈥渄ouble click鈥 on anything.) > They felt that they may have a fix for this problem in SUSE 10.0. It > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > your GTK performance. I really hope this isn鈥檛 your problem. it sounds quite likely that you have been the victim of some slightly uninformed customer support. was this a dual core Athlon? From Valdis.Kletnieks@vt.edu Wed Jun 21 11:42:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D6F313B0F95 for ; Wed, 21 Jun 2006 11:42:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17781-01 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by menubar.gnome.org (Postfix) with ESMTP id 381A23B1012 for ; Wed, 21 Jun 2006 11:42:29 -0400 (EDT) Received: from turing-police.cc.vt.edu (localhost [127.0.0.1]) by turing-police.cc.vt.edu (8.13.7.PreAlpha0/8.13.7.PreAlpha0) with ESMTP id k5LFgNYf004294; Wed, 21 Jun 2006 11:42:24 -0400 Message-Id: <200606211542.k5LFgNYf004294@turing-police.cc.vt.edu> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: paul@linuxaudiosystems.com Subject: Re: GTK Performance on Athlon In-Reply-To: Your message of "Wed, 21 Jun 2006 10:45:33 EDT." <1150901133.10221.2.camel@localhost.localdomain> From: Valdis.Kletnieks@vt.edu References: <79D0CFE134D11C45A1E70E6EF187EBFC019E52C2@HQMAIL1.aca.astronautics.com> <1150901133.10221.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1150904543_3088P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 21 Jun 2006 11:42:23 -0400 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.583 tagged_above=-999 required=2 tests=[AWL=0.056, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_PASS=-0.001] X-Spam-Score: -1.583 X-Spam-Level: Cc: gtk-list@gnome.org, Michael Kahn X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 15:42:31 -0000 --==_Exmh_1150904543_3088P Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 21 Jun 2006 10:45:33 EDT, Paul Davis said: > On Wed, 2006-06-21 at 09:21 -0500, Michael Kahn wrote: > > A few months ago, I bought an HP Athlon PC and installed SuSE 9.2. > > The system clock took off at warp speed (about three times normal > > speed). When I emailed SuSE, they told me that the BIOS does not > > provide a solid real-time clock interrupt. (One side-effect of the > > warp speed system clock was I could not =E2=80=9Cdouble click=E2=80= =9D on anything.) > > They felt that they may have a fix for this problem in SUSE 10.0. It= > > may be that the Athlon clock fix in SUSE 10.0 is what is hindering > > your GTK performance. I really hope this isn=E2=80=99t your problem.= >=20 > it sounds quite likely that you have been the victim of some slightly > uninformed customer support. was this a dual core Athlon? No, the =22turbo clock ticks=22 problem is a very real issue on certain A= thlon motherboards. There's been several long threads about it on the linux-ke= rnel mailing list, and I believe it's fixed in 2.6.16 or 2.6.17 or so (althoug= h I'd have to go back and check, I wasn't paying much attention because I d= on't have an Athlon). SUSE may well have backported the fix into whatever ker= nel they're shipping with 10.0. And a screaming clock *can* bork double-clicks - imagine where you need t= o get in 2 clicks in under 250 milliseconds, but the system ticks off what it t= hinks is 250ms in only 75ms. And your mouse won't double-click faster than 80m= s. ;) --==_Exmh_1150904543_3088P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFEmWjfcC3lWbTT17ARAl0OAKCdWN5CkoY/7CUNUYAB9THaAsKlFgCbBk+e PUDaJiUXtpFfp14/cFuJQes= =hmFE -----END PGP SIGNATURE----- --==_Exmh_1150904543_3088P-- From chris@cvine.freeserve.co.uk Wed Jun 21 19:26:49 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525373B00CF for ; Wed, 21 Jun 2006 19:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12592-06 for ; Wed, 21 Jun 2006 19:26:48 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 2D0E93B009B for ; Wed, 21 Jun 2006 19:26:47 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id 004B21C00083; Thu, 22 Jun 2006 01:26:46 +0200 (CEST) Received: from boulder.homenet (user-2086.l1.c4.dsl.pol.co.uk [81.79.136.38]) by mwinf3106.me.freeserve.com (SMTP Server) with ESMTP id C5F531C00082; Thu, 22 Jun 2006 01:26:45 +0200 (CEST) X-ME-UUID: 20060621232645810.C5F531C00082@mwinf3106.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5LNRE68002592; Thu, 22 Jun 2006 00:27:14 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: proggressbar.. Date: Thu, 22 Jun 2006 00:27:13 +0100 User-Agent: KMail/1.9.1 References: <4497B5B8.1080000@sasken.com> In-Reply-To: <4497B5B8.1080000@sasken.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.989 tagged_above=-999 required=2 tests=[AWL=-1.325, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -0.989 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 23:26:49 -0000 On Tuesday 20 June 2006 09:45, Kalli Math wrote: > how to design a progressbar, and add to my application window? > > with regards, > Prashanth km > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged > information. In case you are not the original intended Recipient of the > message, you must not, directly or indirectly, use, Disclose, distribute, > print, or copy any part of this message and you are requested to delete it > and inform the sender. Any views expressed in this message are those of the > individual sender unless otherwise stated. Nothing contained in this > message shall be construed as an offer or acceptance of any offer by Sasken > Communication Technologies Limited ("Sasken") unless sent with that express > intent and with due authority of Sasken. Sasken has taken enough > precautions to prevent the spread of viruses. However the company accepts > no liability for any damage caused by any virus transmitted by this email It is reasonably straightforward, but I think your disclaimer prevents me from answering your question. Chris From mclasen@redhat.com Wed Jun 21 23:10:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA4213B0172; Wed, 21 Jun 2006 23:10:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23030-07; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 63BA23B0008; Wed, 21 Jun 2006 23:10:39 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AclX021506; Wed, 21 Jun 2006 23:10:38 -0400 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5M3AcnM019751; Wed, 21 Jun 2006 23:10:38 -0400 Received: from [172.16.83.158] (vpn83-158.boston.redhat.com [172.16.83.158]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k5M3AciB004961; Wed, 21 Jun 2006 23:10:38 -0400 Subject: GTK+ 2.9.4 released From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Organization: Red Hat Date: Wed, 21 Jun 2006 23:12:41 -0400 Message-Id: <1150945961.4457.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.7.3 (2.7.3-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.017, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:10:42 -0000 GTK+ 2.9.4 is now available for download at: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.9/ gtk+-2.9.4.tar.bz2 md5sum: c06cf2cfa66485600d90789c9e58f27c gtk+-2.9.4.tar.gz md5sum: e3fefedc7f1a89b66c71c9967168a857 This is a development release leading up to GTK+ 2.10. Notes: * This is unstable development release. There are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GTK+ 2.8. If you have problems, you'll need to reinstall GTK+ 2.8. * GTK+ 2.10 will be source compatible with the GTK+ 2.8 series; the new API additions in GTK+ 2.9.0 are finalized by now. * The ABI version has been bumped from 2.4.0 to 2.10.0, since the filechooser backend interface has been changed. Third-party filechooser backends need to be ported to the new interface. Other third-party modules (input methods, image loaders, etc) just need to be reinstalled in the proper location for GTK+ to find them. * Remaining issues for GTK+ 2.10 can be found with following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=gtk%2b&target_milestone=2.10+API+Freeze&target_milestone=2.10+Freeze&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.x is found at: http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.4/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.9.3 to 2.9.4 ============================================ * GtkPrintOperation: - UI improvements in the print dialog - Make printing work without a display connection - Replace "Print to PDF" by "Print to file" that can generate PDF or PostScript - Add a function to the low-level API to enumerate all printers * GtkNotebook tab DND has been improved * GtkProgressbar supports text in activity mode * GtkLabel allows to set the wrap mode * GtkStatusIcon supports transparency * Bugs fixed: 344850 Dragging a GtkTreeViewColumn segfaults when using certain GtkTreeViewColumnDropFunc 342458 Stock menu items without icons are broken in recent GTK+ releases. 335873 notebook DND + popup windows 337882 gtk_progress_bar_set_text() does nothing in activity mode 339456 unix print dialogue help button bug 339702 Make sure printing works without a display 341571 tabs too easily reordered 344074 New Feature: get printer list, and get default print 344743 gtk_targets_include_text() should initialize atoms 344838 Allow func to be NULL in gtk_tree_view_set_search_position_func 344891 GtkPrintOperationPreview signal defs correction 345008 Need updated cairo req 345093 print preview temp file issues 345107 Memory leak in gtk_entry_completion_finalize: User data not freed 345194 gdk_window_set_functions() docs need to be updated 345456 grid-lines property is wrongly registered and get/set. 314278 strings in gtk-update-icon-cache are not marked for translation 344707 size group with widgets in hidden container 344897 Entry completion model NULL handling should be documented 345038 gtk_print_job_set_status' status 345106 dialog button box spacings 345176 GtkIconView doc about drag and drop 345275 doc imporovements for gtk_window_move 345320 Two very similiar strings should be made equal 345321 Add meaning of "shortcut" as translator comment 320034 transparency gtkstatusicon 339592 Add print-to-postscript 344867 custom paper file could use keyfile * Updated translations (cs,de,es,fr,gl,gu,hi,ko,ta,th) A list of all bugs fixed in this release can be found at http://bugzilla.gnome.org/buglist.cgi?bug_id=344838,344743,344867,344891,345008,341571,345038,337882,345093,344707,339456,345107,345275,339702,344074,345320,345321,344897,314278,320034,344850,345194,345176,345106,335873,342458,339592,345456 Thanks to everybody who has contributed to this release, in the form of bug reports or patches: Christian Persch, John Finlay, Federico Mena Quintero, Michael Emmel, Marko Anastasov, Bastien Nocera, Carlos Garnacho, Yevgen Muntyan, Tommi Komulainen, Tim Janik, Christian Weiske, Behdad Esfahbod, Alexander Larsson, Felipe Heidrich, Hendrik Richter, Claudio Saavedra, Dan Winship, Callum McKenzie, John Palmieri, Murray Cumming, Kristian Rietveld June 21, 2006 Matthias Clasen From lists@nabble.com Wed Jun 21 23:29:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CB3B03DC for ; Wed, 21 Jun 2006 23:29:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24140-01 for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 1411D3B026B for ; Wed, 21 Jun 2006 23:29:24 -0400 (EDT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FtFsh-0000bD-BH for gtk-list@gnome.org; Wed, 21 Jun 2006 20:29:23 -0700 Message-ID: <4986548.post@talk.nabble.com> Date: Wed, 21 Jun 2006 20:29:23 -0700 (PDT) From: heavenscape To: gtk-list@gnome.org Subject: cannot draw lines in a GtkDrawingArea widget MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: masonduan1@sina.com X-Nabble-From: heavenscape X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.82 tagged_above=-999 required=2 tests=[AWL=-0.708, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.82 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 03:29:25 -0000 Hi all, I need to draw some lines in a GtkDrawingArea widget, and I use the following code: GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. 10,//the x coordinate of the start point 30,//the y coordinate of the start point 580,//the x coordinate of the end point 30 //the y coordinate of the start point ); it does not work! Anybody knows why? Thanks!! -- View this message in context: http://www.nabble.com/cannot-draw-lines-in-a-GtkDrawingArea-widget-t1827981.html#a4986548 Sent from the Gtk+ - General forum at Nabble.com. From yogesh.ar@gmail.com Thu Jun 22 01:09:48 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E0E443B03C9 for ; Thu, 22 Jun 2006 01:09:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29017-09 for ; Thu, 22 Jun 2006 01:09:41 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id C40353B0098 for ; Thu, 22 Jun 2006 01:09:40 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so202391pyf for ; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.34.18 with SMTP id m18mr649285pyj; Wed, 21 Jun 2006 22:09:40 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:09:39 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 10:39:39 +0530 From: "Yogesh Arora" To: gtk-list@gnome.org Subject: auromatic scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.382 tagged_above=-999 required=2 tests=[AWL=0.218, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.382 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:09:48 -0000 I have a TextView inside a scroll window. I want to create an animation effect in which TextView scrolls automatically I know there is set_value function in Range class. But for calling that function i will always have to calculate the value. There should be some funtion such as step_increment page_increment can called for step or page_increment From yogesh.ar@gmail.com Thu Jun 22 01:38:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59EBA3B035E for ; Thu, 22 Jun 2006 01:38:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30733-08 for ; Thu, 22 Jun 2006 01:38:31 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id BFA423B0008 for ; Thu, 22 Jun 2006 01:38:30 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id t32so201085pyc for ; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.91.15 with SMTP id t15mr679056pyl; Wed, 21 Jun 2006 22:38:30 -0700 (PDT) Received: by 10.35.100.17 with HTTP; Wed, 21 Jun 2006 22:38:29 -0700 (PDT) Message-ID: Date: Thu, 22 Jun 2006 11:08:29 +0530 From: "Yogesh Arora" To: "Chris Vine" Subject: Re: proggressbar.. In-Reply-To: <200606220027.13878.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.391 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.391 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 05:38:32 -0000 is that just due to tall claims he is making...or has it got something to do with india On 6/22/06, Chris Vine wrote: > On Tuesday 20 June 2006 09:45, Kalli Math wrote: > > how to design a progressbar, and add to my application window? > > > > with regards, > > Prashanth km > > > > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > > > > SASKEN BUSINESS DISCLAIMER > > This message may contain confidential, proprietary or legally Privileged > > information. In case you are not the original intended Recipient of the > > message, you must not, directly or indirectly, use, Disclose, distribute, > > print, or copy any part of this message and you are requested to delete it > > and inform the sender. Any views expressed in this message are those of the > > individual sender unless otherwise stated. Nothing contained in this > > message shall be construed as an offer or acceptance of any offer by Sasken > > Communication Technologies Limited ("Sasken") unless sent with that express > > intent and with due authority of Sasken. Sasken has taken enough > > precautions to prevent the spread of viruses. However the company accepts > > no liability for any damage caused by any virus transmitted by this email > > It is reasonably straightforward, but I think your disclaimer prevents me from > answering your question. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Thanks Yogesh Dont be intimidated by impossibillity.... be motivated by possibillity! From yeti@physics.muni.cz Thu Jun 22 02:37:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 938243B021B for ; Thu, 22 Jun 2006 02:37:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01472-04 for ; Thu, 22 Jun 2006 02:37:42 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 81A8C3B0234 for ; Thu, 22 Jun 2006 02:37:41 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5M6bdQI030282 for ; Thu, 22 Jun 2006 08:37:40 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 6499123CE9; Thu, 22 Jun 2006 08:37:39 +0200 (CEST) Date: Thu, 22 Jun 2006 08:37:39 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: cannot draw lines in a GtkDrawingArea widget Message-ID: <20060622063739.GM30886@potato.chello.upc.cz> References: <4986548.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4986548.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 06:37:44 -0000 On Wed, Jun 21, 2006 at 08:29:23PM -0700, heavenscape wrote: > > I need to draw some lines in a GtkDrawingArea widget, and I use the > following code: > > GtkWidget* w = lookup_widget(MainWnd,"drawingarea1"); > gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow > w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC. > 10,//the x coordinate of the start point > 30,//the y coordinate of the start point > 580,//the x coordinate of the end point > 30 //the y coordinate of the start point > ); > > it does not work! Anybody knows why? .From the use of lookup_widget() I assume you don't draw in expose event handler (where you get the widget as function argument and do not have to look it up). Draw in the expose handler -- can you see the lines now? Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Thu Jun 22 07:55:41 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EB213B0086 for ; Thu, 22 Jun 2006 07:55:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21594-10 for ; Thu, 22 Jun 2006 07:55:40 -0400 (EDT) Received: from smtp.poczta.interia.pl (smtp4.poczta.interia.pl [80.48.65.8]) by menubar.gnome.org (Postfix) with ESMTP id 10CEC3B042E for ; Thu, 22 Jun 2006 07:55:39 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id EB5F427105B; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from poczta.interia.pl (f34.poczta.interia.pl [10.217.2.34]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 8C873271069 for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 8D01125049D; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 3F0DE25049A for ; Thu, 22 Jun 2006 13:55:30 +0200 (CEST) Date: 22 Jun 2006 13:55:30 +0200 From: hm Subject: Two buttons, two images and switching between them To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060622115530.3F0DE25049A@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.765 tagged_above=-999 required=2 tests=[AWL=0.223, BAYES_00=-2.599, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: -0.765 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 11:55:41 -0000 =0AHi !=0A=0A I`ve got a problem : I have window, with two buttons inside= . I`ve got two GtkImage`s, and on a beginning of the program, i`m ( setting= gtk_button_set_image () ) these images to be button`s "icons". =0AI want t= o make a signal function, that handles clicking on both of these buttons. O= n click it should switch images between the buttons. For example i`ve got i= con1, icon2, button1 and button2. =0Abutton1 -> icon1=0Abutton2 -> icon2 ( = icon2 is set to be an icon for button2 )=0A=0Anow.. i`ve got a signal, that= button1 is pressed. So i want now, to have situation :=0A=0Abutton1 -> ico= n2=0Abutton2 -> icon1=0A=0A When I try again to do gtk_button_set_image ( b= utton1, icon2 ) and gtk_button_set_image ( button2, icon1 ) it doesn`t work= propertly ( button1 has icon2 , but button2 has no icon ). I suppose it is= so because of button1 is now "parrent" ( or owner ) of both icons ???? I= `m not quiet sure. I would be appreciate for any clue how to do this. Maybe= there is any method to release icon from being button`s child ? Uhh.. it i= s little twisted :) From betsy.vyce@ctg.com Wed Jun 21 12:39:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 10E193B108D for ; Wed, 21 Jun 2006 12:39:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21747-06 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from smtp.ctg.com (smtp-out.ctg.com [206.201.124.158]) by menubar.gnome.org (Postfix) with ESMTP id 6BC553B1035 for ; Wed, 21 Jun 2006 12:39:36 -0400 (EDT) Received: from netmail.ctg.com (netmail.ctg.com [205.142.112.242]) by smtp.ctg.com (Symantec Mail Security) with ESMTP id 4762810CF for ; Wed, 21 Jun 2006 12:39:30 -0400 (EDT) Received: from BUF-EXC1.ctg.com ([205.142.112.13]) by netmail.ctg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 12:39:29 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C69551.44546463"; type="multipart/alternative" Subject: Linux Accessibility Project Date: Wed, 21 Jun 2006 12:39:28 -0400 Message-ID: <46A68DDC98C6464DBB54D968081874CF021EAFD2@BUF-EXC1.ctg.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: Linux Accessibility Project Thread-Index: AcaVUUPWid50p5tHQK+nedj3OL/r1A== From: "Betsy Vyce" To: X-OriginalArrivalTime: 21 Jun 2006 16:39:29.0956 (UTC) FILETIME=[446D9640:01C69551] X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.093 tagged_above=-999 required=2 tests=[BAYES_50=0.001, EXTRA_MPART_TYPE=1.091, HTML_MESSAGE=0.001] X-Spam-Score: 1.093 X-Spam-Level: * X-Mailman-Approved-At: Thu, 22 Jun 2006 11:45:55 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 16:39:38 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C69551.44546463 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C69551.44546463" ------_=_NextPart_002_01C69551.44546463 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Our client, IBM, currently has an immediate opening for candidates with=0D= =0A Internals knowledge of GTK and "GTK custom widget", "Bonobo", AT-SPI",=0D= =0A "ATK", and/or "Accessibility" skills. In general, we are seeking=0D=0A someone with deeper GTK knowledge. The project involves working on=0D=0A solving a set of bugs in the Gnome desktop which can be viewed at the=0D=0A following link:=0D=0A =0D=0A =0D=0A =0D=0A http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.html=0D=0A =0D=0A =0D=0A =0D=0A Candidates MUST have Linux experience. We are looking for someone who=0D= =0A can add new functionality after debugging an issue rather than just a=0D=0A debugger, so we need someone with significant development and/or design=0D= =0A skills.=0D=0A =0D=0A =0D=0A =0D=0A Candidates can work from any location in the U.S. as long as they can=0D=0A work at an IBM facility. If they can be in Austin, TX, then all the=0D=0A better.=0D=0A =0D=0A =0D=0A =0D=0A If anyone is interested in being considered for this opportunity, please=0D= =0A reply to this email with a copy of your resume at your earliest=0D=0A convenience.=0D=0A =0D=0A =0D=0A =0D=0A Regards,=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Betsy Vyce=0D=0A Senior Recruiter, Austin Team=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A Tel: 877-222-0688 (Toll Free)=0D=0A =0D=0A Home Office: 303-339-0928=0D=0A =0D=0A Fax: 303-814-1735=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A ------_=_NextPart_002_01C69551.44546463 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0D=0A =0D=0A =0D=0A =0D=0A =0D= =0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A
=0D=0A =0D=0A

Our client, IBM, currently has an immediate opening fo= r=0D=0A candidates with Internals knowledge of GTK and “GTK custom widget&#= 8221;,=0D=0A “Bonobo”, AT-SPI”, “ATK”, and/or “Acc= essibility”=0D=0A skills.  In general, we are seeking someone with deeper GTK knowledg= e.  The=0D=0A project involves working on solving a set of bugs in the Gnome desktop wh= ich=0D=0A can be viewed at the following link:

=0D=0A =0D=0A

 

=0D=0A =0D=0A

http://accessibility.freestandards.org/~gk4/a11y/gap-todo-012506.ht= ml

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates MUST have Linux experience.  We are lo= oking for=0D=0A someone who can add new functionality after debugging an issue rather tha= n just=0D=0A a debugger, so we need someone with significant development and/or design= =0D=0A skills.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Candidates can work from any location in the U.S. = as long as=0D=0A they can work at an IBM facility.  If they can be in Austin, TX,=0D=0A then all the better.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

If anyone is interested in being considered for this=0D= =0A opportunity, please reply to this email with a copy of your resume at you= r=0D=0A earliest convenience.

=0D=0A =0D=0A

 

=0D=0A =0D=0A

Regards,

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A

Betsy Vyce
=0D=0A Senior Re= cruiter,=0D=0A Austin Team

=0D= =0A =0D=0A

=

=0D=0A =0D=0A

 = =

=0D=0A =0D=0A

= Tel: =0D=0A 877-222-0688 (Toll Free)

=0D=0A =0D=0A

= Home=0D=0A Office:  303-339-0928

=0D=0A =0D=0A

= Fax: =0D=0A 303-814-1735

=0D=0A =0D=0A
=0D=0A =0D=0A

 

=0D=0A =0D=0A
=0D=0A =0D=0A The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged mate= rial. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by persons or entities= other than the intended recipient is prohibited. If you received this in= error, please contact the sender and delete the material from any comput= er.=0D=0A =0D=0A =0D=0A ------_=_NextPart_002_01C69551.44546463-- ------_=_NextPart_001_01C69551.44546463 Content-Type: image/gif; name="image001.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Description: image001.gif Content-Location: image001.gif R0lGODlhvQBrAPcAAFqmjVmqk7XYzjqSdsHe1ZPFtdyhJMrc05TIukqegp/EtJW+rXG2o47Gtvbo yc3k3dXo4mOkja3VyUyji6TQxODu6un08cni2j2cgezLh9Ho4eCrPEKWem61obzVyuvHffv05C+P cOLw7DKWeua6X/nv2t7u6r3d1EZKizKRcsbi2rja0X29q6DOwVapkYfBse/TmHa5pmCtl3q7qUGe g4G/rd3t6WWwm7rc0mmznjU5gZ7NwJzMvlGmjpnLvEWghvj8+6vUyYnDsuS2VcTh2fT6+DaYfMPg 2Dqaf7LYzajTxpHHt4PArrba0C6Ud+OzTv///4C7p+z18qrRxT6XerLVylGih8Xg13i3otnq5fj7 +p/LvYvBr/v9/FWkiuTx7e/39PP597raz9zs5zuVeDeTdZfHt2WslVKcg5DDsoS9qsjJ3Gmul67U x9Dm36PNv1adhZrJutXj3Ie/rdfX5kKafUabf+jy73CynVldmHS0n12oj6bPwmxvpO3t9PT0+HSt mE6ghXmvm4Gyn/v8/LLOwr3c0mVon8/Q4eLi7Z+hwyyOb+729Hy4pfD39fT39bK0z11hmn+Br3t9 rObm797e6unp8aqsyu/39cLYzujw672/1lZalpGTuvv7/UtPj4W1ovDw9qbIufj4+66wzcTG2qvK vMDC2GGqkm2wmoaIs/L49u3z7+z187W30d3o46Olxvb6+czN3+3285G7qrm71PD08dvb6PT5+IqM tnCqlWFknU5SkZWXvVJWk+Tt6NPU4/H49tjr5UBEiNns5s/n4I2PuGhroXR2qHBypm2plJiav3yw nMLg1/z9/Xi6p/3+/vr8/NDn4f3682inkKPGttnm4EqYf/3+/aepyC+UeMnj3Oby7v79+3d5qpye wY24p6rTyIm3pYKEsbbRxeDq5cba0Pj6+fz471SnkOjz8K/Nv5vMvvf7+uXy7vDXot+pNt3u6eKw Rs/g2Mrk3Ds/hPTfteGuQvrx36/Wy4zEtEehiNjr5uKxSiuNbf///yH5BAEAAP8ALAAAAAC9AGsA AAj/AP8JHEiwoMGDCBMqXMiwocOHECNKnEjR4JSLGDNq3Mixo8cpWiqKHEmypMl//lKqXMmypcuX MP1JOUmzpk2aMXPq3Dnzps+fQBfuHEp0Zc+gSJP6LMqUp9KnUEs2nQrzaNSrWBtS3crSatavYAdy HSszrNmwZLl6PctWadqta9vK/fmWaty5eHHWbXo3r9+Re/n+HXwyMNO+hBM7NFwUseLHCRkTdQy5 MkHJQylbtozZaUMVOBIyenGDARGGAdIVRMJis9S0CzgIZtjBiROELGzrdoJLYRAnEwba3pbVGdi0 aP6hma1w90EETnqs+ucsnO2FLZx0+IfBCfGB0Xbb/25xsEEPhLV3BzG4aoTuGSGvpvWgnPlBEbZx TLht8DrBJE40sdAMuklQkCO2pZPOBPs0Y1AXtglzkG0TTNCDbRUUZIQTCFCw4WnyjQWKQMsdltAK tn3BHX8EIUheQU7kgJoTLxiEoBBhYJJQeiwS5N8/GjihAoxOCEDAF7FkldMi1AwiCijKLMKSOAOV 2BhC+tgWjyOz2GZBQcE4wUN/Mi4EgRPRsLcbAweFx8CZEhIpnnEEqSCeNFjBFIICtvzziByv/GML IP7AMY8mBL0iBy0phUCLHIRYI8eklBYyQFkTiqdbMUQW9FtoC9mp44FOsOCOCPEVRKBuI/TnBDs7 2P9WBEKxMFLMj1C9hEag/ywQQkoRPPIPICMe9Is/A8jxDyFwpJRJQbpgahAE9BxBwLW2NQNEQT44 gQEjAmXXY0Ki2ujEEl0AsQoj2w4EjW03yLAfpz7yh4sTLhgUAAvQ/APhuG61NAArAnnAkin/vBIC IOsQtMAgzdL3zwEqDTIQOeD8qtmKCDGhKTYNEeEEGGqKhwFBDDjRr0C4/vNjt/QOhIR4J+TZUiED KcCSIP8Y7A/PVaY0wECFqBTBQKCotHEFDyTkiA/PvICnQ10MeRARTQigtQBxCiQMMQS1ckRBxIA9 EAFfFmQBD88sMWqIKw1ASM4sLQLIpT8TVGJyAhX/DexApijt2uAHtXQ03TABTaLQRKtEzUALCE74 5AK1pPg/Oieut0rP/mNOxQI9IltKG1P+V0uAEJT5S5dbyUGgj+D9LCsRGAURLo5JkaqNJFMUSysI tRIMQowMf1AspS/FEhyqx8TM5inBkYktmtgihybW0IK35P3lQxABu2Fg/ECtbKhbzQRlqRsD7Tr0 m25LEJTDbkoQ9MxuDRB0wm40qKNkS79oHEzIAT00nKN2QqsKQs41kAfYpgEUuIFtbDCQL9hGCDgQ V4YE4gLgSCAJMnBCAB7SrXNRgAZOABWFKFDCGAjEPTTYgQ+0IUKBUGA8K6hBy57iEmUMRBNScoku /wpSomo8AhBwSKIS4fAr200IAcLpERh+ZBsIBIEBL1DB1P6xvwZogAkxSIIGZvEQdXhPIK1wgguz 5KCBpEwKEnBC/Qaiw6ZN0Acd8IEGTPC/ltBiINVoCQdEQYjOCYQZyCJYQjIxOmnBCIosG5cON6gp 28Sng5oSQEEqYIJOmsAGayFCd5ygox2Wyj39CcCtNMUmm/UQUf+Yx8MUUIgA/kIXiyjHQB4hClbM TSG2wNtdODQQHORHGPmYmXf+EQvb7GAgAnDCDwTyg+hQ8B9dcsJ0BMINTcmAIErQTY1Yto/+XMgI /fmBMZ2Avn9IMByudIndTCEHYf1DDqZQhkpS0P9LgWgCFIdTSOQc6SNICmQblSSjy8Y1M4HkBmQD aSYBHBJNJJgtigXBhBNakI5xAUGNjHACBWA0TbiRpYn++KNCfDZMg/6jAyrABbiCxKIsuRCN/tGC bUQwEAlywyE7/EcznHCDgdzrNvyQ5kD+BS7brGAgcdRHPN8iCEKI4iUW89sw4yeQfznBfE4IA0FC KJ5r/uNMtqGhdh5SyRkIRIdOUKsTNCCQEu5Gk8ysJESjEphrEIIQKYCJNQZ6FwRscCBB6M4InmkQ DXTUCQx420AaQEMatLMhOIgBAzbLgBxMVCAVCIBtntEOgoiArB1QKFRH6VK+7iV15YDJIljRLIL/ mo4ze7nGsho5pUxw77abMUzD5rG9Ri3gANtLHnDlYphFLOAcjygEOHQxiGpoQhQhQAMoBDEA5S6X LZIZwCBMYY4DmAIUeKMuNQDh3e+apTO6AgQzrtFe94IlCvjNr373y9/++ve/URCrfQdM4AIb+MAI TrCCF8zgBjv4wRCOsIQnTOGsgOADHyhBhSuCDhKQAASP6cYGMgCDDYB4wwaxRz9gkJB3GMAAG3iC jGdM4xrb+MY4zrGObyyPIQjkAzHesZCHTOQiG/nINn6xAdCBkBLAwwAOeMw0NuAAfNxDwyguyAcM QAKFdGMalXEACYZgjywfBMxmTrOa18zmNrv5/81wjrOc50xnrPihzre9xSfwDBVFUOIfpaDDP+iA iF7c+RSV+Acw6GCMUfyjFon4hywSPZBSqGIZf1DEJ0jxBz90QhWwWAalBeIKVSjC0bVQxSUEIotT wKIToSBFJyLNZ4RMAhL/QAEy/nHrY9RiFMNQxT+SsYlIyMIP9ejEPyKBiIEAgxdrUIQnNuELQR8i F2v4xCX+MJBNcGINsPjHJfpAh0nk4h+kQEEvJoECRahiHLVGCCTGQQdv+OIfn7CEIoyxBkn4whPD +EMvFOEKSURiFCjwxEAmsYyB3CIPAkGBLP6RB1wP5BirFsguTjHoYfyj4IDuwz/WAPF4G8QSnP9Q xCWQUQpODDoSndjELkpxCEknQxJr4MQmvEGQPmTD4SXfRB4OsQtuDyQPtRgItP/hBx38AeRrEDnJ TX4QThwiEeNWNr4PEYpl9OEb//DEJw6ei2OQ4h+UaHYujAF0gWTjGEb/RyUEjYxwC6QPZ0cECj4u iZFLveRUJ4gxePGPROhgDQKZRCT+gQgdAEMgyUjGP06hgz/n4t6V+EQnrm6JemTjD6c4RB6GkXRk 1FzvvTiEHxDBi0tEAtdQ/3vgCxIKWtNB4Uz/syduLxBLWOIfo7iFQELxe6aXwvabCIXI/wGJXTD9 zv+wxCn+jHZIUDoUf/5DpP8w6tkjhROTgAX/J8DufcUAgxTNLr/618/+9rv//fCPv/znT//62//+ +B+MBS7wgDtkpRkFAAENgQsQcAUVsDsMEQZm0AhqcAHt8AYMKAAFMAYkIQUPcAF3sFcUAQRvEAe9 4xPcoAdlkBIpcAZtADKr4AZ04hBScAHt4xB3kAKL4AUriBAXkABSEgKBUAAzAQ1f0DQJsQUq0QiN oBIjiAUiIQVRQAYkuAdT0AUVMQUpYQY/EQZeQIIj6A920A6MkACBsDINsQVl8IURcQcjuAc1aBAi QAUpkYX+4Ab/gAUpoAcKsQf+EAdicAFHaAhi4A+NUBFagAqNkoV14AgVUQUpsQU/0QYpgQd3/7AK hhAFFwANfegFX6AO0KAFzsAIWTAdUlA2aeMIeOAPCVABPaEOY2CIEWUDYyAFQCAFbgANhoAFVvMP 6qABXsEFi2AHblAEGsAFb2CLduAPehASzsANWUAMvSMFCeAPDxAGFyAlb7AKsYAF9PAPWiACReAM FWADpSUQ2CACWVABuAAEY7BBGpASbPAFq0AAavBZ/wAGWZCKAhELIgANjEAM3FABaYKN3MCOcRAF PQENFZAF3/gPnFgBYPgPX+AGGvAFaWgQaZASeuA/A5EFQeQPeMAIVoAFdRACb1AATLgIZaCIRagS UfAPXDCCdoBXYtCM/jCGTMgHqVAHcyAQYv8Yk1VAEKlAihCwkGegEl9QBQDwKyFABU91kimRkf6w BXVQAP+ACimQCgCwCClgBTylBWfwK4tQB4HgD3UgEFeQEqlgkQSRBcOohTuZAHNIBSSZAmIgEGmQ AnZQBXZABVfwD9yACr8SCDz1Bmy4CHtAgUUgh0v5hwphCEZ4BnGgIlLABmDZCBeADXXgDyHgBQLg D4sAAEyYAhYgAM1YBtbIBylhhylQASIQWGcAmVqoBm5gBX74D1LAhACQAtc4EHGwlFbQgDg5ggkQ C6EJACwZDVXAhqkwB40gJXugBhXgD1zwDwCgEmx4h/9gBv5ABY2QlqhAhf9gA0FUBtvJU7L/2Yx4 YIchMAZMaJmBcIVIGA3NiAUXkBJ5KYghUAdeAIlkOYx78A9C6A+oEAV2gIQK4QxYwBJUUDPxyQYC AQRW4AUVUFpxIICZuQhgEwX+YAUCUZl48A/D+AaZ6Zn/YIf7+Q9f+YekGQjRkAUFAQZXqBKLkAYC AZspSQBm0BsF4A8pIFZBmSEV8Cs7iQ3O+Q+QyYtSwIZUeIUT5Qa/wgfuYqErQQWa9AYaKRDDWACw 6aDtwAXXGQ1ukBIE0KXO+AApwQV34H+C6AX/MJb+QAwWGgJw+A+quBAC4JHSiQvxeQYLupsDoQV8 EAWQeZ7/UIQYqg6BtQcFwIaNgIghAAEc/3mh0OAMMhqH/qAGCMENahAIKGUI/wCbiOkGBRAFdlgG vRGUFDgGv9IG/wAEQQqZCrqp/kCFdvgGWrACUhIHBSEGdJoSZCAFauAPhnqoGhmp/6ACKfEAQlgH QKCmGiCl/vBZuMCECfCpKbEC1nmdWNAG2zSAxZkSzSCmeJqqVoCYXwCb+0SBgvoPqckSbGABXrAI VJCFwcig/pCSQcmdCAEEEGCHk+qqf6gGTCmq/xCUYEMMp5qqq+oPeNoFsAmV+SCDaWkHKmIQsSAG lekPYjAHLcEGnCoQ0fCVUSCIlKqs/ZmX/7AKbqgSVXAHLUqWEXGShtCl38qgiDmRXkAPuf8ZAhR0 roTqD1hwBVdwAQLYBilQBnvQCJ8lrympB0G6EASQEn8ooxCgjhqAsWUwKwL7DwTrD6iqqs8ZlAm7 sP+AC7BpB2yQBhGLEL3qD1WgpfDps/QgDBsrENZJBSGwCBcgVCmhASMrELjAhqigAj+LgQJBAHEQ nWXAtGogDFoABDbQjIsgAvE5ojIrEAVKhYqasxcqEM34rXD4BYHFBlMgANckr3+YmwAgVNn6D22w BbEQDcHgpMFYon2ottUZkyFxtVm7tQf7tf4AlUKYAgUwBVeQujbABRCwuCLQojaAiN/6D00Tt/9g qilhBVDYDMWqpmbgCHkJmQkgEI5AgRD/AIQiEAIpsBBXuAgJYAVZSKljYJlz0AZAEAiIqaV2YAZf 6Q8waqEpMAcnwKxzEJ0CsApp2ShRgA1dUKLo+rn7KhCMMIJ1YAUVGwjgcoV10LQXWgCVuQhTEJX+ oKIY6Q8bzLUBi7D+8pVQOQVMSQWaKhCkib7q67T/EAbNiAr/q7YIPBCC2LuDK59a8JU66A8XQKz+ wAZR8K4iYIeoUABDuhBpMMD+QAZpsC1dUKD+EAi44AUp+Q8VcL9XGZtukJap8A8FkIUA8ABgIAYF sAUFkMMT5QUhkMVp8CtUwKQCYQFFvE94IJ5VMIIQkLbXCZu2ygYpUKplkAJbGwIwmgohjqCgXeDG tjoGcRCSXACt8XEBgZCRUNwuaKkSAOAGbpzFAiG0ZaCiaZoCKZCXxNCiVgCHU1CxKRAFIqAG6fnE G8wQ4TiOvfETvboIZvAG0QnEEHHL5KgUUhBYjTAFaTCCVtCP4CiOw0wQwpzLDmYCeGAHdVsGXqCI iVEFVrAIdVsHbACEcxbNkEHO+cdnAQEAOw== ------_=_NextPart_001_01C69551.44546463-- From linuxhippy@gmail.com Thu Jun 22 13:08:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CBBF3B03E5 for ; Thu, 22 Jun 2006 13:08:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11990-05 for ; Thu, 22 Jun 2006 13:08:30 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id D7CA73B0603 for ; Thu, 22 Jun 2006 13:08:29 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so579907uge for ; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr612924hue; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 22 Jun 2006 10:08:29 -0700 (PDT) Message-ID: <194f62550606221008p61ceb686s5402452b96c8c6bb@mail.gmail.com> Date: Thu, 22 Jun 2006 19:08:29 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606210504l4b528726h97aec48813dc785b@mail.gmail.com> <522c6460606210607l29af93cckef98339b81cb8e27@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=-0.080, BAYES_00=-2.599, SPF_PASS=-0.001, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 17:08:33 -0000 Hello again, Thanks a lot for sending your results of the 6200. It seems that (on my system) 35% of total cpu time are spent in software rendering related stuff (I guess _nv000805X is some kind of vram readback or upload function). When running gftp with the open-source "nv" driver performance feels way better (but not as ligthening fast as qt) as log as not-AA'ed fonts are used. So by identifying these problematic areas someone could send nvidia an bug-report for the missing XRender hookups/implementations. But I don't have any clue howto identify these :-/ Does anybody know a good technique/tools for finding out which calls to X are slow? Does running gftp in sync mode with some x protocoll analyzer make sence? Thank you in advance, lg Clemens 2006/6/21, John Cupitt : > > Good, glad that helped. There are fast and attractive gtk2 themes as > well: I use clearlooks myself. > > For what it's worth, if I maximise gftp and wiggle the vertical > splitter I see rather similar numbers to you. I have an nvidia 6200 > with driver 1.0-8762 and gtk2.8.18. > > 379387 69.5894 Xorg > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 143932 37.9380 libfb.so > 101881 26.8541 no-vmlinux > 98804 26.0431 anon (tgid:4610 range:0x82c000-0x922000) > 26745 7.0495 Xorg > 6181 1.6292 libc-2.3.6.so > 1685 0.4441 libextmod.so > 116 0.0306 mouse_drv.so > 42 0.0111 libramdac.so > 1 2.6e-04 libm-2.3.6.so > 125293 22.9820 gftp-gtk > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 20136 16.0711 libpangoft2-1.0.so.0.1201.2 > 16493 13.1635 libcairo.so.2.2.4 > 15452 12.3327 libgobject-2.0.so.0.1000.3 > 13860 11.0621 libpango-1.0.so.0.1201.2 > 12485 9.9646 libc-2.3.6.so > 12299 9.8162 libgdk-x11-2.0.so.0.800.18 > 11823 9.4363 libglib-2.0.so.0.1000.3 > 4191 3.3450 libgtk-x11-2.0.so.0.800.18 > 4190 3.3442 libX11.so.6.2.0 > 2946 2.3513 libpthread-2.3.6.so > 2517 2.0089 no-vmlinux > 2171 1.7327 libpangocairo-1.0.so.0.1201.2 > 2087 1.6657 libXrender.so.1.3.0 > 1887 1.5061 libm-2.3.6.so > 1084 0.8652 libfreetype.so.6.3.8 > 956 0.7630 libclearlooks.so > 352 0.2809 pango-basic-fc.so > 323 0.2578 libgthread-2.0.so.0.1000.3 > 30 0.0239 libgdk_pixbuf-2.0.so.0.800.18 > 8 0.0064 ld-2.3.6.so > 3 0.0024 gftp-gtk > > John > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From oystein@gnubg.org Thu Jun 22 15:00:31 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 66FFE3B006D for ; Thu, 22 Jun 2006 15:00:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19184-03 for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 6F8D03B00BC for ; Thu, 22 Jun 2006 15:00:29 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J19009W9ZGSS260@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1900LMZZGRKNH7@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 21:00:28 +0200 (CEST) Date: Thu, 22 Jun 2006 21:00:24 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Main Loop, IO Channels and my CLI To: gtk-list@gnome.org Message-id: <449AE8C8.9030709@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig4D0040E48100B18213443258 X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:00:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D0040E48100B18213443258 Content-Type: multipart/mixed; boundary="------------030705090007050505050704" This is a multi-part message in MIME format. --------------030705090007050505050704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I've just made a small glib code that read commands from from a command line interface prompt. It uses g_main_loop and a g_io_channel. I've attached the code. First: It nearly works as expected. The callback is called each time I enter a command, and it's parsed to the command handler. However, I want to expand this to system to use automatic string completion, (the system provided in glib), for all available commands. Now it only handles command as I press enter. I guess I need a extra callback for each keypress. This callback can check if I press and then call g_completion_complete(), but how do I attach such a signal to the main lo= op? Then: Can this be a bug? It work fine unless I use a special scandinavian letter in my commands. Do I have to convert my string at any time? How? (I'm using win32 command prompt window) Example: myprompt> hello You typed: hello myprompt> =C6sop ** (gnubg.exe:3128): WARNING **: Something went wrong Invalid byte sequence in conversion input -=D8ystein --------------030705090007050505050704 Content-Type: text/plain; name="commandsystem.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="commandsystem.c" #include #include static void prompt(){ g_printf("myprompt> "); } static void handlecommand( gchar *sz ){ g_printf( "You typed: %s", sz ); prompt(); } static gboolean mycallback( GIOChannel *channel, GIOCondition cond, gpointer data) { gchar *str_return; gsize length, terminator_pos; GError *error = NULL; if( g_io_channel_read_line( channel, &str_return, &length, &terminator_pos, &error) == G_IO_STATUS_ERROR ) g_warning("Something went wrong"); if ( error != NULL ) { g_printf(error->message); exit(1); } handlecommand( str_return ); g_free( str_return ); return TRUE; } int main(int argc, char* argv[]) { GMainLoop *mainloop = g_main_loop_new( NULL, FALSE); #ifdef G_OS_WIN32 GIOChannel *channel = g_io_channel_win32_new_fd( STDIN_FILENO ); #else GIOChannel *channel = g_io_channel_unix_new( STDIN_FILENO ); #endif prompt(); g_io_add_watch( channel, G_IO_IN, mycallback, NULL ); g_main_loop_run(mainloop); return 0; } --------------030705090007050505050704-- --------------enig4D0040E48100B18213443258 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmujL6kDTFPhwyqYRAmO8AJ90ccVLei/Y2LKl4OmNPvFmCxc48QCbBpkZ DBHxKFHZ30sS+FdQ1vWycnk= =B070 -----END PGP SIGNATURE----- --------------enig4D0040E48100B18213443258-- From tristan.van.berkom@gmail.com Thu Jun 22 15:25:07 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87E353B0137 for ; Thu, 22 Jun 2006 15:25:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20656-05 for ; Thu, 22 Jun 2006 15:25:06 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id 0E8183B04F4 for ; Thu, 22 Jun 2006 15:25:05 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so586701nzh for ; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: by 10.65.182.16 with SMTP id j16mr3112039qbp; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Received: from ?66.48.170.242? ( [66.48.170.242]) by mx.gmail.com with ESMTP id q18sm1306507qbq.2006.06.22.12.25.03; Thu, 22 Jun 2006 12:25:05 -0700 (PDT) Message-ID: <449AF297.6070003@gnome.org> Date: Thu, 22 Jun 2006 15:42:15 -0400 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI References: <449AE8C8.9030709@gnubg.org> In-Reply-To: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.229 tagged_above=-999 required=2 tests=[AWL=0.371, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.229 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:25:07 -0000 貀stein Johansen wrote: >Hi, > >I've just made a small glib code that read commands from from a command >line interface prompt. It uses g_main_loop and a g_io_channel. I've >attached the code. > >First: >It nearly works as expected. The callback is called each time I enter a >command, and it's parsed to the command handler. However, I want to >expand this to system to use automatic string completion, (the system >provided in glib), for all available commands. Now it only handles >command as I press enter. I guess I need a extra callback for each >keypress. This callback can check if I press and then call >g_completion_complete(), but how do I attach such a signal to the main loop? > > > You need to get raw keyboard input from your terminal, in unix you can use tcsetattr(). >Then: >Can this be a bug? It work fine unless I use a special scandinavian >letter in my commands. Do I have to convert my string at any time? How? >(I'm using win32 command prompt window) > >Example: >myprompt> hello >You typed: hello >myprompt> 苨op > >** (gnubg.exe:3128): WARNING **: Something went wrong >Invalid byte sequence in conversion input > > > You might want to change the encoding on the io channel.. if you set it to NULL then it should work. Cheers, -Tristan From tml@iki.fi Thu Jun 22 15:29:09 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34F8A3B05BF for ; Thu, 22 Jun 2006 15:29:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21008-07 for ; Thu, 22 Jun 2006 15:29:06 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id F38B13B04A4 for ; Thu, 22 Jun 2006 15:29:05 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 636F315138F; Thu, 22 Jun 2006 22:29:02 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.61302.590000.98041@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:28:54 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.33 tagged_above=-999 required=2 tests=[AWL=0.134, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.33 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:29:09 -0000 =D8ystein Johansen writes: > (I'm using win32 command prompt window) And GIOChannel watches work? Wow, I'm amazed. Or actually, in the case of watches for GIOChannels associated with C file descriptors on Win32, GLib uses a separate thread that sits most of the time blocked waiting to read() from the file descriptor, so I guess indeed there is no reason why it wouldn't work for terminal input. > Invalid byte sequence in conversion input > Can this be a bug? It work fine unless I use a special scandinavian > letter in my commands. Do I have to convert my string at any time? > How? I think the input you get from a console window is typically in the so-called OEM code page of your Windows installation. You need to call the GetConsoleCP() function to find out the codepage of the console, and then form the encoding name as a string like "CP437", and tell the GIOChannel to use that encoding. Something like: char codepage[10]; ... sprintf (codepage, "CP%d", GetConsoleCP ()); ... g_io_channel_set_encoding (channel, codepage, &error); (Totally untested, tell us if it works ;) Otherwise GLib assumes the data is in UTF-8, and reading *lines* from a GIOChannel indeed requires it to know the actual encoding of the data, so it will complain when the data isn't proper UTF-8. --tml From tml@iki.fi Thu Jun 22 15:41:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46DF13B022E for ; Thu, 22 Jun 2006 15:41:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21958-02 for ; Thu, 22 Jun 2006 15:41:35 -0400 (EDT) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 07D893B06CE for ; Thu, 22 Jun 2006 15:41:34 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 9443B1394B7; Thu, 22 Jun 2006 22:41:31 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17562.62051.621000.757828@gargle.gargle.HOWL> Date: Thu, 22 Jun 2006 22:41:23 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.331 tagged_above=-999 required=2 tests=[AWL=0.133, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.331 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 19:41:36 -0000 =D8ystein Johansen writes: > However, I want to expand this to system to use automatic string > completion, (the system provided in glib), for all available > commands. Now it only handles command as I press enter. I guess I > need a extra callback for each keypress. This callback can check if > I press and then call g_completion_complete(), but how do I > attach such a signal to the main loop? Ah, I forgot to answer this part. I am afraid you might run into difficulty in doing this on Win32. Or maybe it isn't that hard? There is an API SetConsoleMode(), and mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe it's actually quite similar to Unix, and you can do character-at-a-time input, and your own echo processing. Maybe all you need to do is something like GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); and it will Just Work?=20 --tml From bonefry@gmail.com Thu Jun 22 17:13:39 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 416803B0601 for ; Thu, 22 Jun 2006 17:13:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26826-10 for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 572B63B061C for ; Thu, 22 Jun 2006 17:13:37 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so606362nzh for ; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: by 10.65.95.12 with SMTP id x12mr3218683qbl; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Received: from ?86.34.237.177? ( [86.34.237.177]) by mx.gmail.com with ESMTP id a5sm1382428qbd.2006.06.22.14.13.35; Thu, 22 Jun 2006 14:13:36 -0700 (PDT) Message-ID: <449B07F9.9030500@gmail.com> Date: Fri, 23 Jun 2006 00:13:29 +0300 From: Alex Nedelcu User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: GTK performance on Windows Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.158 tagged_above=-999 required=2 tests=[AWL=0.442, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.158 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:39 -0000 Why is GTK's performance so bad on Windows ? Of all the gui tookits I use, it has the worse performance. I am interested in GTK on Windows because I want to make cross-platform applications. Isn't there a new version on the horizon that will fix this ? Or what can be done to tune the performance of GTK interfaces ? I am using GTK+ version 2.8, and Windows XP. The platform I use is Mono with the GTK# bindings, but I also made tests in Python with the PyGTK.bindings, and I've got the same results. Thank you, From chris@cvine.freeserve.co.uk Thu Jun 22 17:13:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96F463B02CA for ; Thu, 22 Jun 2006 17:13:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27147-02 for ; Thu, 22 Jun 2006 17:13:50 -0400 (EDT) Received: from smtp2.freeserve.com (smtp2.wanadoo.co.uk [193.252.22.157]) by menubar.gnome.org (Postfix) with ESMTP id 774DB3B0769 for ; Thu, 22 Jun 2006 17:13:44 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id A0287580008E; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) Received: from boulder.homenet (user-2802.lns6-c11.dsl.pol.co.uk [84.69.106.242]) by mwinf3114.me.freeserve.com (SMTP Server) with ESMTP id 5BE1E58001A9; Thu, 22 Jun 2006 23:13:42 +0200 (CEST) X-ME-UUID: 20060622211342377.5BE1E58001A9@mwinf3114.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5MLDBgq004659; Thu, 22 Jun 2006 22:13:11 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Two buttons, two images and switching between them Date: Thu, 22 Jun 2006 22:13:11 +0100 User-Agent: KMail/1.9.1 References: <20060622115530.3F0DE25049A@poczta.interia.pl> In-Reply-To: <20060622115530.3F0DE25049A@poczta.interia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606222213.11197.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.306 tagged_above=-999 required=2 tests=[AWL=-0.042, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.306 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:13:53 -0000 On Thursday 22 June 2006 12:55, hm wrote: > Hi ! > > I`ve got a problem : I have window, with two buttons inside. I`ve got > two GtkImage`s, and on a beginning of the program, i`m ( setting > gtk_button_set_image () ) these images to be button`s "icons". I want to > make a signal function, that handles clicking on both of these buttons. On > click it should switch images between the buttons. For example i`ve got > icon1, icon2, button1 and button2. button1 -> icon1 > button2 -> icon2 ( icon2 is set to be an icon for button2 ) > > now.. i`ve got a signal, that button1 is pressed. So i want now, to have > situation : > > button1 -> icon2 > button2 -> icon1 > > When I try again to do gtk_button_set_image ( button1, icon2 ) and > gtk_button_set_image ( button2, icon1 ) it doesn`t work propertly ( button1 > has icon2 , but button2 has no icon ). I suppose it is so because of > button1 is now "parrent" ( or owner ) of both icons ???? I`m not quiet > sure. I would be appreciate for any clue how to do this. Maybe there is any > method to release icon from being button`s child ? Uhh.. it is little > twisted :) When you substitute an image in button1 the reference count to icon1 would have been decremented, and if you have not taken steps to stop button1 taking ownership of it it will have been destroyed. That may be your problem (although in that case it is surprising that it worked the first time). Chris From oystein@gnubg.org Thu Jun 22 17:54:47 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AC523B0242 for ; Thu, 22 Jun 2006 17:54:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28976-07 for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id 18D9A3B022C for ; Thu, 22 Jun 2006 17:54:44 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A009X17J7S2C0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1A00FW87J6QD35@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Thu, 22 Jun 2006 23:54:43 +0200 (CEST) Date: Thu, 22 Jun 2006 23:54:39 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <449AF297.6070003@gnome.org> To: Tristan Van Berkom Message-id: <449B119F.1000203@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enigF4FE71D812066FD76946249B X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.563 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599] X-Spam-Score: -2.563 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:54:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF4FE71D812066FD76946249B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tristan Van Berkom wrote: > =D8ystein Johansen wrote: >=20 >> Hi, >> >> I've just made a small glib code that read commands from from a comman= d >> line interface prompt. It uses g_main_loop and a g_io_channel. I've >> attached the code. >> >> First: >> It nearly works as expected. The callback is called each time I enter = a >> command, and it's parsed to the command handler. However, I want to >> expand this to system to use automatic string completion, (the system >> provided in glib), for all available commands. Now it only handles >> command as I press enter. I guess I need a extra callback for each >> keypress. This callback can check if I press and then call >> g_completion_complete(), but how do I attach such a signal to the main= >> loop? >> >> =20 >> > You need to get raw keyboard input from your terminal, in unix > you can use tcsetattr(). >=20 >> Example: >> myprompt> hello >> You typed: hello >> myprompt> =C6sop >> >> ** (gnubg.exe:3128): WARNING **: Something went wrong >> Invalid byte sequence in conversion input > You might want to change the encoding on the io > channel.. if you set it to NULL then it should work. Thank you! Adding this line: g_io_channel_set_encoding (channel, NULL, &error); makes it work. Thank you! Now let me try finding the right codepage as Tor suggests. Hmmm.... gcc -o mycli commandsystem.o -LC:/GTK/lib -lglib-2.0 -lintl -liconv -lkernel32 commandsystem.o(.text+0x3f):commandsystem.c: undefined reference to `GetConsoleCP' It doesn't link? (Yes, I do add -lkernel32) -=D8ystein --------------enigF4FE71D812066FD76946249B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEmxGi6kDTFPhwyqYRAm34AJsEdcDQXNEIGbhSJrl8V1Y0BqA7qgCfXAcm 5Ita9vLa8F8qptA4rEeUAHw= =nwVe -----END PGP SIGNATURE----- --------------enigF4FE71D812066FD76946249B-- From itsme_515@hotmail.com Thu Jun 22 18:00:54 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6F863B06F4 for ; Thu, 22 Jun 2006 18:00:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29478-01 for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from hotmail.com (bay109-f14.bay109.hotmail.com [64.4.19.24]) by menubar.gnome.org (Postfix) with ESMTP id 9A4DC3B067C for ; Thu, 22 Jun 2006 18:00:53 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 15:00:53 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Thu, 22 Jun 2006 22:00:50 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com From: "Aar Em" To: gtk-list@gnome.org Subject: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 17:00:50 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 22 Jun 2006 22:00:53.0042 (UTC) FILETIME=[5474C120:01C69647] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.907 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: 1.907 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 22:00:55 -0000 Dear peers, After struggling with this for over a day, I wanted to ask you for your help regarding usage for g_list_insert_sorted. Can someone please help. Here are the operative parts of my program: I have the following struct: typedef struct _message_info { char *from; char *subject; char *face; long *ctime; } MESSAGE_INFO; I have the following comparison function: static gint compare_ctime (gconstpointer a, gconstpointer b) { const MESSAGE_INFO *p1=a,*p2=b; return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); } and the following calling part: Glist *headers; ..... MESSAGE_INFO *m; m = g_new(MESSAGE_INFO,1); m->from = safe_strdup (from); m->subject = safe_strdup (subject); m->face = safe_strdup (xface); m->ctime = ctime; headers = g_list_insert_sorted (headers, m,compare_ctime); .... I get segmentation fault with this, and was wondering how I could fix it. I guess my question is how to use g_list_insert_sorted. I have Googled quite a bit on this, but have not been able to devise the fix. Any help would be very appreciated. Any suggestions? Many thanks and best wishes, Aarem _________________________________________________________________ Don抰 just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ibr@radix50.net Thu Jun 22 19:51:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 934D53B0320 for ; Thu, 22 Jun 2006 19:51:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01890-02 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 340233B0288 for ; Thu, 22 Jun 2006 19:51:09 -0400 (EDT) Received: from mail-in-11-z2.arcor-so.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 12CA117689F for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-11-z2.arcor-so.net (Postfix) with ESMTP id 025AB1C71CE for ; Fri, 23 Jun 2006 01:51:08 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id BD69FEAE5C for ; Fri, 23 Jun 2006 01:51:07 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNongI020870 for ; Fri, 23 Jun 2006 01:50:49 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNon3l020869 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:50:49 +0200 Date: Fri, 23 Jun 2006 01:50:49 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622235049.GC30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:51:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From itsme_515@hotmail.com Thu Jun 22 20:01:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 764923B0295 for ; Thu, 22 Jun 2006 20:01:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02104-10 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from hotmail.com (bay109-f40.bay109.hotmail.com [64.4.19.50]) by menubar.gnome.org (Postfix) with ESMTP id 30A843B0176 for ; Thu, 22 Jun 2006 20:01:09 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Jun 2006 17:01:08 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Fri, 23 Jun 2006 00:01:07 GMT X-Originating-IP: [129.186.100.184] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <20060622235049.GC30610@radix50.net> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Thu, 22 Jun 2006 19:01:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 23 Jun 2006 00:01:08.0504 (UTC) FILETIME=[2134E180:01C69658] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.407 tagged_above=-999 required=2 tests=[AWL=-0.714, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.407 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 00:01:10 -0000 Hi, Many thanks! I think I should let you know that g_list_append works fine, except that it does not give me a sorted list by ctime (creation time). org. The debugger crashes just after entering the function at the point of the "return statement". Program received signal SIGSEGV, Segmentation fault. 0x0804db2b in compare_ctime (a=0x8ef5ae0, b=0x0) at count.c:19 /usr/local/aarem/Desktop/gbuffy-0.2.6/count.c:19:339:beg:0x804db2b Btw, I am sorting by the ctime, the creation time of the messages in the mh folder. Many thanks, aarem > >Hello Aarem, > >On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > > Glist *headers; > > ..... > > headers = g_list_insert_sorted (headers, m,compare_ctime); > >Do you initialize headers with NULL? If not, this could be the reason. >Otherwise, use gdb to see where it crashes. > > > > typedef struct _message_info > > { > > char *from; > > char *subject; > > char *face; > > long *ctime; > > } MESSAGE_INFO; >... > > static gint compare_ctime (gconstpointer a, gconstpointer b) > > { > > const MESSAGE_INFO *p1=a,*p2=b; > > > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : >-1); > > } > >I don't know what long *ctime is, but sorting by pointer value looks >suspicious. This shouldn't segfault, but I'm not sure it does what you >want. > > >With kind regards, >Baurzhan. >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dkasak@nusconsulting.com.au Thu Jun 22 22:27:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1AA23B050E for ; Thu, 22 Jun 2006 22:27:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08034-02 for ; Thu, 22 Jun 2006 22:27:05 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 8B07A3B0139 for ; Thu, 22 Jun 2006 22:27:04 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.13.6/8.13.6) with ESMTP id k5N2SbNx017452; Fri, 23 Jun 2006 12:28:38 +1000 Message-ID: <449B5170.6050609@nusconsulting.com.au> Date: Fri, 23 Jun 2006 12:26:56 +1000 From: Daniel Kasak User-Agent: Thunderbird 1.5.0.2 (X11/20060531) MIME-Version: 1.0 To: Alex Nedelcu , gtk-list@gnome.org Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> In-Reply-To: <449B07F9.9030500@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 462445 - f5bdb0dffa1b X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=462445&m=f5bdb0dffa1b X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=462445&m=f5bdb0dffa1b X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.124, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.398 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 02:27:07 -0000 Alex Nedelcu wrote: > Why is GTK's performance so bad on Windows ? > Of all the gui tookits I use, it has the worse performance. > > I am interested in GTK on Windows because I want to make cross-platform > applications. > > Isn't there a new version on the horizon that will fix this ? > Or what can be done to tune the performance of GTK interfaces ? > > I am using GTK+ version 2.8, and Windows XP. > The platform I use is Mono with the GTK# bindings, > but I also made tests in Python with the PyGTK.bindings, and I've got > the same results. > I don't think it's so bad. I'm developing gtk2-perl applications and deploying on a mix of Linux and Windows ( 2000 ) clients, and the performance is actually quite impressive. It even runs inside vmware on my Linux desktop quite well, though obviously not at full speed. As per previous posts re: performance problems, have you tried changing themes? Also, what exactly is slow? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au From tml@iki.fi Fri Jun 23 02:23:44 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C97C3B0567 for ; Fri, 23 Jun 2006 02:23:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18933-03 for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 542053B00ED for ; Fri, 23 Jun 2006 02:23:43 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CFBA5151223; Fri, 23 Jun 2006 09:23:38 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17563.35042.590000.373902@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:23:30 +0300 To: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-Reply-To: <449B119F.1000203@gnubg.org> References: <449AE8C8.9030709@gnubg.org> <449AF297.6070003@gnome.org> <449B119F.1000203@gnubg.org> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.332 tagged_above=-999 required=2 tests=[AWL=0.132, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.332 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:23:44 -0000 =D8ystein Johansen writes: > It doesn't link? (Yes, I do add -lkernel32) Did you #include ?=20 --tml From tml@iki.fi Fri Jun 23 02:27:56 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A0813B04C0 for ; Fri, 23 Jun 2006 02:27:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18926-08 for ; Fri, 23 Jun 2006 02:27:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 0A0133B041F for ; Fri, 23 Jun 2006 02:27:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CEEBD1511A1; Fri, 23 Jun 2006 09:27:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.35295.574000.601419@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 09:27:43 +0300 To: Alex Nedelcu Subject: Re: GTK performance on Windows In-Reply-To: <449B07F9.9030500@gmail.com> References: <449B07F9.9030500@gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.333 tagged_above=-999 required=2 tests=[AWL=0.131, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.333 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:27:56 -0000 Alex Nedelcu writes: > Why is GTK's performance so bad on Windows ? Because you haven't profiled it and contributed performance improvements? > Of all the gui tookits I use, it has the worse performance. Well, d'oh, you should ask for your money back then! --tml From hdnews@gawab.com Fri Jun 23 02:52:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 596D63B0218 for ; Fri, 23 Jun 2006 02:52:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20492-03 for ; Fri, 23 Jun 2006 02:52:31 -0400 (EDT) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by menubar.gnome.org (Postfix) with ESMTP id D54F03B00ED for ; Fri, 23 Jun 2006 02:52:30 -0400 (EDT) Received: from pegasus.strader.xs4all.nl (strader.xs4all.nl [80.127.15.33]) by smtp-vbr4.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5N6qT2W054997; Fri, 23 Jun 2006 08:52:29 +0200 (CEST) (envelope-from hdnews@gawab.com) Received: from [10.8.0.2] (vpnclient [10.8.0.2] (may be forged)) (authenticated bits=0) by pegasus.strader.xs4all.nl (8.12.10/8.12.10) with ESMTP id k5N6qMbh029399; Fri, 23 Jun 2006 08:52:29 +0200 Message-ID: <449B8FA2.3050501@gawab.com> Date: Fri, 23 Jun 2006 08:52:18 +0200 From: Hans Oesterholt-Dijkema User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tor Lillqvist Subject: Re: GTK performance on Windows References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.656 tagged_above=-999 required=2 tests=[AWL=-1.303, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, SPF_SOFTFAIL=1.384, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -0.656 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 06:52:32 -0000 He must have been adding sleeps in his code. Tor Lillqvist schreef: > Alex Nedelcu writes: > > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! > > --tml > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From nf2@scheinwelt.at Fri Jun 23 04:25:04 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28DDE3B078E for ; Fri, 23 Jun 2006 04:25:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27712-01 for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from mx-01.sil.at (mx-01.sil.at [86.59.12.198]) by menubar.gnome.org (Postfix) with ESMTP id 689883B011E for ; Fri, 23 Jun 2006 04:25:02 -0400 (EDT) Received: from vie-062-116-122-020.dsl.sil.at ([62.116.122.20] helo=[192.168.5.82]) by mx-01.sil.at with esmtp (Exim 4.60) (envelope-from ) id 1FtgyI-0008KO-1Y; Fri, 23 Jun 2006 10:25:02 +0200 Message-ID: <449BA558.7040303@scheinwelt.at> Date: Fri, 23 Jun 2006 10:24:56 +0200 From: nf2 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Sean Middleditch , gtk-list@gnome.org Subject: Re: libxdg-vfs and Gtk-Filechooser References: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> In-Reply-To: <55443.66.93.7.210.1151008938.squirrel@mail.awesomeplay.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 3eb4023d85beba22221bf02b5aa627a5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.427 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, TW_BX=0.077, TW_IB=0.077, TW_XD=0.077] X-Spam-Score: -2.427 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:25:04 -0000 Hi, Sean Middleditch wrote: > Making the GTK file chooser use libxdg is pretty shady. Letting an > application select a file on an FTP share is pointless if the application > itself cannot actually access the file returned by the file chooser. At > best you'd have to have the chooser download/copy the file locally and > return a temporary file path to the app. But then changes to the file > would be lost. Saving the file would be difficult since when saving, the > chooser just returns the URI to the app, which again has no way to write > to any file that isn't local. > http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html libxdg-vfs supports get/put functions for reading and writing files - the application just has to link libxdg-vfs. The libxdg-vfs backend for GTKFileChooser wouldn't be the default, but just for applications which use libxdg-vfs . > The xdg-vfs stuff is interesting, but until there is a complete library > that can be easily integrated into applications, there's little point in > having the file chooser support the xdg stuff. And if you have GTK apps > willing to use a VFS library, you might as well get them to go straight to > the GObject-based gnome-vfs rather than xdg-vfs. > AFAIK gnome-vfs doesn't use GObject in the API. The advantage of libxdg-vfs is, that it uses the VFS system (password storage, protocol handlers, network shares) of the current desktop (KIO *or* Gnome-VFS). Therefore your GTK application will integrate nicely into KDE without directly linking to KIO (or the other way round - a Qt application on Gnome using Gnome-VFS). Also - you don't have a whole desktop-system in the dependencies of your application - Just a little library. (If you want to use Gnome-VFS directly, you also have to link to libGnomeUI - same problem for KIO and the KDE desktop libraries). cheers, Norbert From sven@gimp.org Fri Jun 23 04:54:24 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1DCD3B038E for ; Fri, 23 Jun 2006 04:54:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29667-05 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from buzzloop.caiaq.de (buzzloop.caiaq.de [212.112.241.133]) by menubar.gnome.org (Postfix) with ESMTP id 667C63B0231 for ; Fri, 23 Jun 2006 04:54:21 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 9A4CF7F4028; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23383-03; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Received: from [192.168.1.124] (i577B660E.versanet.de [87.123.102.14]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTP id 251EB7F4022; Fri, 23 Jun 2006 10:54:20 +0200 (CEST) Subject: Re: Main Loop, IO Channels and my CLI From: Sven Neumann To: =?ISO-8859-1?Q?=D8ystein?= Johansen In-Reply-To: <449AE8C8.9030709@gnubg.org> References: <449AE8C8.9030709@gnubg.org> Content-Type: text/plain; charset=utf-8 Date: Fri, 23 Jun 2006 10:54:01 +0200 Message-Id: <1151052841.13729.8.camel@bender> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[AWL=0.853, BAYES_00=-2.599] X-Spam-Score: -1.746 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 08:54:24 -0000 Hi, On Thu, 2006-06-22 at 21:00 +0200, 貀stein Johansen wrote: > I've just made a small glib code that read commands from from a command > line interface prompt. It uses g_main_loop and a g_io_channel. I've > attached the code. > > First: > It nearly works as expected. The callback is called each time I enter a > command, and it's parsed to the command handler. However, I want to > expand this to system to use automatic string completion, (the system > provided in glib), for all available commands. That sounds like fun. When you have something ready and are willing to put it under the GPL, I think it would be interesting to add this code for the GIMP Script-Fu text console mode. The current code needs an overhaul anyway and it would be sweet to have command completion. Sven From linuxhippy@gmail.com Fri Jun 23 06:06:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FFCC3B0231 for ; Fri, 23 Jun 2006 06:06:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01577-01 for ; Fri, 23 Jun 2006 06:06:08 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.202]) by menubar.gnome.org (Postfix) with ESMTP id DB91E3B01D8 for ; Fri, 23 Jun 2006 06:06:07 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so316956hue for ; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.138.14 with SMTP id l14mr1205881hud; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 03:06:06 -0700 (PDT) Message-ID: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> Date: Fri, 23 Jun 2006 12:06:06 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.35295.574000.601419@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.423 tagged_above=-999 required=2 tests=[AWL=-0.381, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.423 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:06:10 -0000 1.) Is this really nescessary? This guy has performance problems on windows asking for help (well, maybe a bit indirect) ... and this is what he gets. Go to QT's bugzilla and search for performance bugs .... 2.) How could he profile it. I asked two times for ways to find out which operations are done in software fallbacks (on X) on this list, no reply. For a non-profgessional profiling GTK and all the stuff it is surrounded by is not trivial and well without no help ... It seems there is not even interrest in speeding up GTK2. lg > > Why is GTK's performance so bad on Windows ? > > Because you haven't profiled it and contributed performance > improvements? > > > Of all the gui tookits I use, it has the worse performance. > > Well, d'oh, you should ask for your money back then! From tml@iki.fi Fri Jun 23 06:22:25 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F0CC3B012A for ; Fri, 23 Jun 2006 06:22:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02739-05 for ; Fri, 23 Jun 2006 06:22:24 -0400 (EDT) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by menubar.gnome.org (Postfix) with ESMTP id 288523B045A for ; Fri, 23 Jun 2006 06:22:23 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id B4B61216477; Fri, 23 Jun 2006 13:22:19 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.49363.293000.582022@gargle.gargle.HOWL> Date: Fri, 23 Jun 2006 13:22:11 +0300 To: "Clemens Eisserer" Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.335 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.335 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:22:25 -0000 Clemens Eisserer writes: > 1.) Is this really nescessary? > This guy has performance problems on windows asking for help (well, > maybe a bit indirect) ... and this is what he gets. I am sorry for being a but rude, but I found his mail more of an accusation than a question. > Go to QT's bugzilla and search for performance bugs .... Why? Are the underlying assumptions and historical background of GTK+ and QT at all comparable? > For a non-profgessional profiling GTK and all the stuff it is > surrounded by is not trivial and well without no help ... If one would ask specific question like "I draw 100000 line segments with separate gdk_draw_line() calls, and it's too slow on Win32" one might get better help. --tml From linuxhippy@gmail.com Fri Jun 23 07:33:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 003FB3B03A7 for ; Fri, 23 Jun 2006 07:33:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06705-03 for ; Fri, 23 Jun 2006 07:33:14 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id C32AC3B0061 for ; Fri, 23 Jun 2006 07:33:13 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so327531hue for ; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.157.15 with SMTP id f15mr1224696hue; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Fri, 23 Jun 2006 04:33:12 -0700 (PDT) Message-ID: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> Date: Fri, 23 Jun 2006 13:33:12 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <17563.49363.293000.582022@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.313 tagged_above=-999 required=2 tests=[AWL=-0.348, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.313 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 11:33:15 -0000 First of all thanks a lot for doing that much work porting GTK to windows. I can't count how many apps I've used myself on windows-pcs which were able to run because of your work. > If one would ask specific question like "I draw 100000 line segments > with separate gdk_draw_line() calls, and it's too slow on Win32" one > might get better help. I installed gimp on some win-xp computers in the company I work for (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These are very much the issues I have on linux but more "visible". Its the UI, menus, window resizing, layout changes or repaint-events sent to the window because its content was invalidated. I can't say wether its really slow or just feels so, maybe the graphic card driver had an influence (nvidia gf4 mx4000) or some other circumstances were not optimal. I simply never did care that much simply because I don't use/like this planform. Its just hard to know whats going wrong, especially if someone is no gtk insider. lg Clemens From linuxhippy@gmail.com Sat Jun 24 06:27:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 803AF3B00EA for ; Sat, 24 Jun 2006 06:27:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06912-07 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.195]) by menubar.gnome.org (Postfix) with ESMTP id 173283B0132 for ; Sat, 24 Jun 2006 06:27:33 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so449148hue for ; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1550801hue; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sat, 24 Jun 2006 03:27:31 -0700 (PDT) Message-ID: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> Date: Sat, 24 Jun 2006 12:27:31 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.745 tagged_above=-999 required=2 tests=[AWL=0.193, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_BG=0.077, TW_BQ=0.077, TW_CP=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077] X-Spam-Score: -1.745 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 10:27:37 -0000 Hello again, I did some further testing and found that even the gtk-demo part "paned widgets" show such low performance if the panes are as large as the whole screen. I further talked to an nvidia driver developer which also analysed the situation and got a profile very similar to mine. This is what he replied: [quote]So I guess I didn't reproduce your problem. In my case, the reason so much time is spent in software solid fills and copies is that GTK seems to create and destroy pixmaps at a fantastic rate. In fact, it creates and destroys a pixmap every time it blinks the cursor. Pixmaps start out in system memory and are only migrated to video memory after they've been used for a while. This means that creating pixmaps, doing two or three rendering operations, and then destroying them is a sure-fire way to make your rendering fall back to software. Future drivers will have an InitialPixmapPlacement nvidia-settings attribute so people can try tweaking this behavior. If I use that to force pixmaps to start in video RAM, then profiling shows that most of the time is spent waiting for the GPU.[/quote] Does even the default theme uses pixmaps for all and everything? Any ideas where to look into this? Thank you in advance, lg Clemens 2006/6/21, Valdis.Kletnieks@vt.edu : > On Wed, 21 Jun 2006 00:41:31 +0200, Clemens Eisserer said: > > > I did some oprofiling, however I don't have a vmlinz-file handy so its > > quite a bit useless: > > 5558 39.2930 no-vmlinux > > Bummer. With a system time *that* high, I'm wondering if there's something > odd going on here... a vmlinux to help split that out would certainly > help a lot in debugging here.. > > > 2116 14.9593 libfb.so > > 1319 9.3248 nvidia_drv.so > > 1031 7.2888 Xorg > > 603 4.2630 libqt-mt.so.3.3.5 > > 550 3.8883 libc-2.4.so > > 470 3.3227 libgobject-2.0.so.0.800.5 > > Was this your Eclipse test, or gftp? What I'm seeing on the 'wiggle the > dividing bar on gftp till it saturates the CPU' is this: (and yes, it's a > generic GTK issue, not gftp, unless the 3 other apps I tested did the same > wrong thing with it.. ;) > > samples % image name app name symbol name > 10597 13.6788 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 scale_line > 7797 10.0645 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 pixops_process > 5232 6.7536 libfb.so libfb.so (no symbols) > 4834 6.2398 Xorg Xorg (no symbols) > 3318 4.2829 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 .loop > 3152 4.0687 nvidia_drv.so nvidia_drv.so _nv000194X > 2591 3.3445 libc-2.4.90.so libc-2.4.90.so memcpy > 2172 2.8037 vmlinux vmlinux get_page_from_freelist > 2067 2.6681 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_unlock > 1570 2.0266 libpthread-2.4.90.so libpthread-2.4.90.so pthread_mutex_lock > 1359 1.7542 nvidia nvidia (no symbols) > 1064 1.3734 libgdk_pixbuf-2.0.so.0.903.0 libgdk_pixbuf-2.0.so.0.903.0 process_pixel > 953 1.2302 libglib-2.0.so.0.1102.1 libglib-2.0.so.0.1102.1 g_hash_table_lookup > > (or, done by shared library: > > 23907 30.8597 libgdk_pixbuf-2.0.so.0.903.0 > 10538 13.6027 vmlinux > 5594 7.2209 libc-2.4.90.so > 5377 6.9408 libgobject-2.0.so.0.1102.1 > 5232 6.7536 libfb.so > 4953 6.3934 Xorg > 4784 6.1753 nvidia_drv.so > 3933 5.0768 libpthread-2.4.90.so > > At least in my case, the top hog appears to be too much work done scaling > theme pixmaps over and over, when they're likely to be invalidated by another > resize before the scaling is completed.... > > You probably mentioned it before, but what GTK2 theme are you using? > > > From itsme_515@hotmail.com Sat Jun 24 22:59:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D2E4A3B0165 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14000-06 for ; Sat, 24 Jun 2006 22:59:14 -0400 (EDT) Received: from hotmail.com (bay109-f20.bay109.hotmail.com [64.4.19.30]) by menubar.gnome.org (Postfix) with ESMTP id DDB273B00C4 for ; Sat, 24 Jun 2006 22:59:13 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 24 Jun 2006 19:57:12 -0700 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Sun, 25 Jun 2006 02:57:07 GMT X-Originating-IP: [63.175.166.181] X-Originating-Email: [itsme_515@hotmail.com] X-Sender: itsme_515@hotmail.com In-Reply-To: <449B14BA.4030509@gnubg.org> From: "Aar Em" To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Date: Sat, 24 Jun 2006 21:57:07 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Jun 2006 02:57:12.0485 (UTC) FILETIME=[0EA7F550:01C69803] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.178 tagged_above=-999 required=2 tests=[AWL=-2.085, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.178 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 02:59:15 -0000 Folks, so I figured it out: turns out that there is what I believe a bug (or a feature) in g_list_insert_sorted -- if the list is null, even then it goes off to sort. This should not happen. If the list is NULL, it should just add to the list. Many thanks and best wishes, Aarem _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From torriem@chem.byu.edu Sun Jun 25 01:12:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 757323B0079 for ; Sun, 25 Jun 2006 01:12:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17632-03 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by menubar.gnome.org (Postfix) with ESMTP id 5E5773B00A6 for ; Sun, 25 Jun 2006 01:12:16 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (sccrmhc13) with ESMTP id <2006062505113001300mgu3se>; Sun, 25 Jun 2006 05:11:31 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5P5BTrC002542 for ; Sat, 24 Jun 2006 23:11:30 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5P5BOTq002537 for gtk-list@gnome.org; Sat, 24 Jun 2006 23:11:24 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: proggressbar.. From: Michael Torrie To: gtk-list@gnome.org In-Reply-To: References: <4497B5B8.1080000@sasken.com> <200606220027.13878.chris@cvine.freeserve.co.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 24 Jun 2006 23:11:24 -0600 Message-Id: <1151212284.32440.16.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.416 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.416 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 05:12:17 -0000 On Thu, 2006-06-22 at 11:08 +0530, Yogesh Arora wrote: > is that just due to tall claims he is making...or has it got something > to do with india I doubt it has to do with India. I have recently noticed a number of posts from people for whom English is not their native language to this list, posts containing questions that are extremely unclear. It could very well be the language barrier, but several of these posts appear to be asking us to do the work for someone, rather than wanting to read the docs, tutorials, and example code. It is those posts that appear to be demanding that we do their work for them that draw reactions such as this one. Michael > > From yeti@physics.muni.cz Sun Jun 25 03:23:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628F93B0374 for ; Sun, 25 Jun 2006 03:23:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21579-03 for ; Sun, 25 Jun 2006 03:23:22 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 8AEA53B030F for ; Sun, 25 Jun 2006 03:23:21 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P7MWuA020910 for ; Sun, 25 Jun 2006 09:22:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id A7E5223D5E; Sun, 25 Jun 2006 09:22:32 +0200 (CEST) Date: Sun, 25 Jun 2006 09:22:33 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060625072233.GK2296@potato.chello.upc.cz> References: <449B14BA.4030509@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 07:23:23 -0000 On Sat, Jun 24, 2006 at 09:57:07PM -0500, Aar Em wrote: > Folks, so I figured it out: turns out that there is what I believe a bug (or > a feature) in g_list_insert_sorted -- if the list is null, even then it goes > off to sort. It does no such thing and never did: http://cvs.gnome.org/viewcvs/glib/glib/glist.c?rev=1.35&view=log > If the list is NULL, it should just add > to the list. And that's exactly what it does since ever. Yeti -- Anonyms eat their boogers. From z_b_r@poczta.fm Sun Jun 25 05:16:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32E853B01D0 for ; Sun, 25 Jun 2006 05:16:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07093-07 for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: from smtp.poczta.interia.pl (unknown [80.48.65.7]) by menubar.gnome.org (Postfix) with ESMTP id A627E3B013D for ; Sun, 25 Jun 2006 05:16:12 -0400 (EDT) Received: by smtp.poczta.interia.pl (INTERIA.PL, from userid 502) id CEE8237485A; Sun, 25 Jun 2006 11:15:17 +0200 (CEST) Received: from poczta.interia.pl (f30.poczta.interia.pl [10.217.2.30]) by smtp.poczta.interia.pl (INTERIA.PL) with ESMTP id 544FC3747D7 for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: by poczta.interia.pl (Postfix, from userid 502) id 4773210C018; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Received: from localhost (localhost.interia.pl [127.0.0.1]) by poczta.interia.pl (Postfix) with ESMTP id 2006310C00F for ; Sun, 25 Jun 2006 11:15:12 +0200 (CEST) Date: 25 Jun 2006 11:15:12 +0200 From: hm Subject: GtkImage simple question, please help To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 149.156.124.16 IMPORTANCE: Normal X-MSMAIL-PRIORITY: Normal X-PRIORITY: 3 X-Mailer: PSE3 Message-Id: <20060625091512.2006310C00F@poczta.interia.pl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.137 tagged_above=-999 required=2 tests=[AWL=-0.734, BAYES_20=-0.74, MISSING_MIMEOLE=1.612, SPF_PASS=-0.001] X-Spam-Score: 0.137 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 09:16:14 -0000 =0AHi !=0A=0A I`ve got a question. Let`s have this piece of code :=0A=0A= =0A...=0A=0A GtkWidget * image1;=0A GtkWidget * button;=0A ...=0A butto= n =3D gtk_button_new ();=0A image =3D gtk_image_new_from_file ( PATH );=0A= gtk_button_set_image ( GTK_BUTTON ( button), image1 );=0A =0Aquestions a= re :=0A=0A* if i`ll call gtk_image_clear (image) .. will it dispose memory = reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap= ? =0A=0A* if answer for previous question is no, it will not dispose the m= emory, then how it is possible to change image inside button ? From yeti@physics.muni.cz Sun Jun 25 06:03:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 047A73B00C9 for ; Sun, 25 Jun 2006 06:03:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08827-02 for ; Sun, 25 Jun 2006 06:03:06 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D10853B008F for ; Sun, 25 Jun 2006 06:03:05 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5P9kCR0012281 for ; Sun, 25 Jun 2006 11:46:13 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 840F923D5E; Sun, 25 Jun 2006 11:46:12 +0200 (CEST) Date: Sun, 25 Jun 2006 11:46:14 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: GtkImage simple question, please help Message-ID: <20060625094614.GN2296@potato.chello.upc.cz> References: <20060625091512.2006310C00F@poczta.interia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060625091512.2006310C00F@poczta.interia.pl> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 10:03:08 -0000 On Sun, Jun 25, 2006 at 11:15:12AM +0200, hm wrote: > > * if i`ll call gtk_image_clear (image) .. will it dispose memory reserved for image pointed by 'image1', or it will just clear pixbuf/bitmap ? gtk_image_clear() clears the image, therefore the image releases the reference the image holds to the displayed pixbuf (or other objects). But the image will still *exist*, it will be just empty. > * if answer for previous question is no, it will not dispose the memory, then how it is possible to change image inside button ? By setting another image. The button then releases the reference it holds to the old image -- and in the described scenario nothing else holds a reference to it, therefore it will be finalized. Please read the refcounting parts in GObject API docs and GObject tutorial -- and of GtkObject too as although the methods are superseded by GObject methods the intro is more comprehensible (IMO). Yeti -- Anonyms eat their boogers. From suryakiran.gullapalli@gmail.com Sun Jun 25 11:51:36 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E43F33B008C for ; Sun, 25 Jun 2006 11:51:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19785-07 for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 389173B008F for ; Sun, 25 Jun 2006 11:51:33 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id m22so1138082nzf for ; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.36.252.42 with SMTP id z42mr6653491nzh; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:09 -0700 (PDT) Message-ID: <3462bcdb0606250851v35bce67mf725816429f52603@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:09 +0530 From: "Surya Kiran Gullapalli" To: gtk-list@gnome.org, gtkmm-list@gnome.org Subject: Theme engine tutorial. In-Reply-To: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4916_21889957.1151250669841" References: <3462bcdb0606130350n4ccd42e7q8e17a9bb7d00a88f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.729, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:51:36 -0000 ------=_Part_4916_21889957.1151250669841 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start. Surya ------=_Part_4916_21889957.1151250669841 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
Where can i get good tutorial/manual for writing a gtk theme engine. I've tried looking at the source code in gtk-engines package, but i'm totally lost. I dont know where to start.

Surya


------=_Part_4916_21889957.1151250669841-- From suryakiran.gullapalli@gmail.com Sun Jun 25 11:52:27 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24C333B008C for ; Sun, 25 Jun 2006 11:52:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20036-02 for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by menubar.gnome.org (Postfix) with ESMTP id AB5653B008F for ; Sun, 25 Jun 2006 11:52:25 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id 40so1027430nzk for ; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.2.65 with SMTP id e65mr6484642nzi; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Received: by 10.37.15.31 with HTTP; Sun, 25 Jun 2006 08:51:49 -0700 (PDT) Message-ID: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Date: Sun, 25 Jun 2006 21:21:49 +0530 From: "Surya Kiran Gullapalli" To: gtkmm-list@gnome.org, gtk-list@gnome.org Subject: Font Path In-Reply-To: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4920_12764368.1151250709216" References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.439 tagged_above=-999 required=2 tests=[AWL=-0.468, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.439 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 15:52:27 -0000 ------=_Part_4920_12764368.1151250709216 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to understand the gtk code. I've a question regarding font path. What is the font path, gtk application is looking into when one open a font selection dialog. This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc) But when opened a font selection dialog, it shows all the available fonts on the machine. Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables. Surya ------=_Part_4920_12764368.1151250709216 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
I'm trying to understand the gtk code. I've a question regarding font path.
What is the font path, gtk application is looking into when one open a font selection dialog.

This question arose, due to the fact that garnome ships with bitstream vera fonts, and when you install it, it goes into the installation directory ($PREFIX/share... etc)
But when opened a font selection dialog, it shows all the available fonts on the machine.

Also if i'm shipping a new application with a new font, and say, i've to ship this font also. where should i put that font. Also please let me know if i need to set any environment variables.

Surya
------=_Part_4920_12764368.1151250709216-- From pocmatos@gmail.com Sun Jun 25 12:17:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D32D3B00BB for ; Sun, 25 Jun 2006 12:17:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20843-01 for ; Sun, 25 Jun 2006 12:17:51 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 04EF43B008C for ; Sun, 25 Jun 2006 12:17:50 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so1536173nzh for ; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.224.8 with SMTP id w8mr1383704nzg; Sun, 25 Jun 2006 09:17:36 -0700 (PDT) Received: by 10.36.66.9 with HTTP; Sun, 25 Jun 2006 09:17:35 -0700 (PDT) Message-ID: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> Date: Sun, 25 Jun 2006 17:17:35 +0100 From: "Paulo J. Matos" To: gtk-list@gnome.org Subject: Using GTK+ with C++ MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.404 tagged_above=-999 required=2 tests=[AWL=-0.158, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.404 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: pocm@sat.inesc-id.pt List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 16:17:53 -0000 Hi all, I know about gtkmm but if I wish to use GTK+ directly, can I do it through C++? Is anyone doing this? Are there any 'tricks' I should know about beyond having to extern "C" the includes of gtk header files? Cheers, -- Paulo Jorge Matos - pocm at sat inesc-id pt Web: http://sat.inesc-id.pt/~pocm Computer and Software Engineering INESC-ID - SAT Group From jcupitt@gmail.com Sun Jun 25 14:02:23 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A39383B0018 for ; Sun, 25 Jun 2006 14:02:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24527-04 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id 632163B0079 for ; Sun, 25 Jun 2006 14:02:22 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so538377uge for ; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.177.11 with SMTP id z11mr1804088hue; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Received: by 10.78.129.2 with HTTP; Sun, 25 Jun 2006 11:02:21 -0700 (PDT) Message-ID: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> Date: Sun, 25 Jun 2006 19:02:21 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 18:02:23 -0000 On 6/24/06, Clemens Eisserer wrote: > [quote]So I guess I didn't reproduce your problem. In my case, the > reason so much time is spent in software solid fills and copies is > that GTK seems to create and destroy pixmaps at a fantastic rate. In > fact, it creates and destroys a pixmap every time it blinks the > cursor. Pixmaps start out in system memory and are only migrated to > video memory after they've been used for a while. This means that > creating pixmaps, doing two or three rendering operations, and then > destroying them is a sure-fire way to make your rendering fall back to > software. Future drivers will have an InitialPixmapPlacement > nvidia-settings attribute so people can try tweaking this behavior. If > I use that to force pixmaps to start in video RAM, then profiling > shows that most of the time is spent waiting for the GPU.[/quote] > > Does even the default theme uses pixmaps for all and everything? That's interesting. gtk2 uses pixmaps for double buffering ... for each expose rectangle, it will create an off-screen pixmap, ask all relevant widgets to paint to that, then at the end of expose, paint the off-screen pixmap on the display. I think it can potentially create and destroy quite a lot of pixmaps in a single expose operation. You could try making a test program and turning off double buffering for some widgets: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 John From oystein@gnubg.org Sun Jun 25 16:42:20 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33D083B0119 for ; Sun, 25 Jun 2006 16:42:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00506-08 for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by menubar.gnome.org (Postfix) with ESMTP id A0BBC3B000C for ; Sun, 25 Jun 2006 16:42:18 -0400 (EDT) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00KQ1O5QACC0@osl1smout1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Received: from [127.0.0.1] ([80.202.37.105]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J1F00I0YO5PEJ33@osl1sminn1.broadpark.no> for gtk-list@gnome.org; Sun, 25 Jun 2006 22:41:50 +0200 (CEST) Date: Sun, 25 Jun 2006 22:41:43 +0200 From: =?ISO-8859-1?Q?=D8ystein_Johansen?= Subject: Re: Main Loop, IO Channels and my CLI In-reply-to: <17562.62051.621000.757828@gargle.gargle.HOWL> To: Tor Lillqvist Message-id: <449EF507.2010707@gnubg.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig87FEA3859F86E18D841D879D X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[AWL=-0.003, BAYES_00=-2.599, TW_LQ=0.077] X-Spam-Score: -2.525 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:42:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig87FEA3859F86E18D841D879D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tor Lillqvist wrote: > =D8ystein Johansen writes: > > However, I want to expand this to system to use automatic string > > completion, (the system provided in glib), for all available > > commands. Now it only handles command as I press enter. I guess I > > need a extra callback for each keypress. This callback can check if > > I press and then call g_completion_complete(), but how do I > > attach such a signal to the main loop? >=20 > Ah, I forgot to answer this part. I am afraid you might run into > difficulty in doing this on Win32. >=20 > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > it's actually quite similar to Unix, and you can do > character-at-a-time input, and your own echo processing. Maybe all you > need to do is something like >=20 > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > mode &=3D ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); >=20 > and it will Just Work?=20 Wow! I just tried this, and it does indeed Just Work! Thanks. I must handle all the characters like backspace and return and so on, but it works... But, it doesn't work on linux.... How can I get character-at-a-time input from a linux console? -=D8ystein --------------enig87FEA3859F86E18D841D879D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEnvUK6kDTFPhwyqYRAtpuAJsEnbvESOizT1xs0ast/iphrHPtpgCdEMi2 fxlkPGgv32vw8JOoa44jBiE= =Hnzr -----END PGP SIGNATURE----- --------------enig87FEA3859F86E18D841D879D-- From linuxhippy@gmail.com Sun Jun 25 16:54:58 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A65A53B00E7 for ; Sun, 25 Jun 2006 16:54:58 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01177-05 for ; Sun, 25 Jun 2006 16:54:56 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.198]) by menubar.gnome.org (Postfix) with ESMTP id 718C23B0079 for ; Sun, 25 Jun 2006 16:54:55 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so595935hue for ; Sun, 25 Jun 2006 13:54:38 -0700 (PDT) Received: by 10.78.167.12 with SMTP id p12mr1824154hue; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Sun, 25 Jun 2006 13:54:37 -0700 (PDT) Message-ID: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> Date: Sun, 25 Jun 2006 22:54:37 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.192 tagged_above=-999 required=2 tests=[AWL=-0.427, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.192 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 20:54:58 -0000 Hello John, Thanks a lot for answering. I created a sample program which contains two buttons in a (horizontally) paned window. When I maximize the window and resize the panes I get very slow resizing, however when setting all involved widgets unbuffered resizing is fast (but painting is done with artifacts). Also the profile looks very different: With doublebuffering enabled: 3298 36.0398 libfb.so (no symbols) 1710 18.6865 nvidia_drv.so _nv000805X Widthout doublebuffering: 1974 19.1632 libcairo.so.2.2.3 (no symbols) 1535 14.9015 Xorg (no symbols) 1083 10.5135 libfb.so (no symbols) So there's still some software rendering involved but its _way_ better. I am currently hitting a deadline in a java project, so I'll busy the next 1-2 weeks, however I would really like to get my hands on the buffer manager, do you think theres a chance to get it in (if its well written and stylish correct). I like tuning code, although I've to admit my C/Unix knowledge is rusty, however then its a good training. lg Clemens > That's interesting. gtk2 uses pixmaps for double buffering ... for > each expose rectangle, it will create an off-screen pixmap, ask all > relevant widgets to paint to that, then at the end of expose, paint > the off-screen pixmap on the display. I think it can potentially > create and destroy quite a lot of pixmaps in a single expose > operation. > > You could try making a test program and turning off double buffering > for some widgets: > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > John > From yeti@physics.muni.cz Sun Jun 25 17:09:40 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2201E3B00C7 for ; Sun, 25 Jun 2006 17:09:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01871-06 for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 3E1553B000C for ; Sun, 25 Jun 2006 17:09:34 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5PL9Wtb021542 for ; Sun, 25 Jun 2006 23:09:33 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1AF7F23D5E; Sun, 25 Jun 2006 23:09:32 +0200 (CEST) Date: Sun, 25 Jun 2006 23:09:36 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Message-ID: <20060625210936.GP2296@potato.chello.upc.cz> References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <449EF507.2010707@gnubg.org> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:09:40 -0000 On Sun, Jun 25, 2006 at 10:41:43PM +0200, ?ystein Johansen wrote: > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? Wouldn't it be better to use GNU readline, at least on Linux? It would give users all the editing operations they are used to and honour their settings. I admit the integration of readline to GLib main loop can be tricky (I think about a second thread which whould just feed complete lines to a pipe managed with GIOChannel on the receiving end), but it can be still more elegant than reimplementation of line editting from scratch. Yeti -- Anonyms eat their boogers. From chris@cvine.freeserve.co.uk Sun Jun 25 17:43:15 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E5443B0104 for ; Sun, 25 Jun 2006 17:43:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03755-03 for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id 843BA3B000C for ; Sun, 25 Jun 2006 17:43:14 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 92D711C00089; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3012.me.freeserve.com (SMTP Server) with ESMTP id 6AFFA1C00088; Sun, 25 Jun 2006 23:43:12 +0200 (CEST) X-ME-UUID: 20060625214312438.6AFFA1C00088@mwinf3012.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PLhBtx004287; Sun, 25 Jun 2006 22:43:11 +0100 From: Chris Vine To: gtk-list@gnome.org, pocm@sat.inesc-id.pt Subject: Re: Using GTK+ with C++ Date: Sun, 25 Jun 2006 22:43:10 +0100 User-Agent: KMail/1.9.1 References: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> In-Reply-To: <11b141710606250917l6108a504tbe567cdbeb3dcdb8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606252243.10889.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.323 tagged_above=-999 required=2 tests=[AWL=-1.072, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.323 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 21:43:15 -0000 On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > Hi all, > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > through C++? Is anyone doing this? Are there any 'tricks' I should > know about beyond having to extern "C" the includes of gtk header > files? They are already declared extern "C" if compiled for a C++ program. There is nothing you need to know - just use them. Chris From chris@cvine.freeserve.co.uk Sun Jun 25 18:28:46 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D960A3B0122 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05775-02 for ; Sun, 25 Jun 2006 18:28:46 -0400 (EDT) Received: from smtp1.freeserve.com (smtp1.wanadoo.co.uk [193.252.22.158]) by menubar.gnome.org (Postfix) with ESMTP id EB0203B013D for ; Sun, 25 Jun 2006 18:28:45 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 9E2E71C00083; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) Received: from boulder.homenet (user-411.l3.c5.dsl.pol.co.uk [81.76.65.155]) by mwinf3011.me.freeserve.com (SMTP Server) with ESMTP id 711621C00082; Mon, 26 Jun 2006 00:28:40 +0200 (CEST) X-ME-UUID: 20060625222840463.711621C00082@mwinf3011.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id k5PMSdtx004517; Sun, 25 Jun 2006 23:28:39 +0100 From: Chris Vine To: gtk-list@gnome.org Subject: Re: Main Loop, IO Channels and my CLI Date: Sun, 25 Jun 2006 23:28:39 +0100 User-Agent: KMail/1.9.1 References: <449AE8C8.9030709@gnubg.org> <17562.62051.621000.757828@gargle.gargle.HOWL> <449EF507.2010707@gnubg.org> In-Reply-To: <449EF507.2010707@gnubg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200606252328.39192.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.232 tagged_above=-999 required=2 tests=[AWL=-0.045, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135, TW_LQ=0.077] X-Spam-Score: -2.232 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 22:28:47 -0000 On Sunday 25 June 2006 21:41, 貀stein Johansen wrote: > Tor Lillqvist wrote: [snip] > > Ah, I forgot to answer this part. I am afraid you might run into > > difficulty in doing this on Win32. > > > > Or maybe it isn't that hard? There is an API SetConsoleMode(), and > > mode bits like "ENABLE_ECHO_INPUT" and "ENABLE_LINE_INPUT", so maybe > > it's actually quite similar to Unix, and you can do > > character-at-a-time input, and your own echo processing. Maybe all you > > need to do is something like > > > > GetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), &mode); > > mode &= ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT); > > SetConsoleMode (GetStdHandle (STD_INPUT_HANDLE), mode); > > > > and it will Just Work? > > Wow! I just tried this, and it does indeed Just Work! Thanks. I must > handle all the characters like backspace and return and so on, but it > works... > > But, it doesn't work on linux.... How can I get character-at-a-time > input from a linux console? If you are not using an event based toolkit such as GDK/GTK+ for handling the keyboard, then you will have to code on a platform specific basis. If you want to code for a Linux/Unix console and you are using the glib main loop then the easiest thing is to use curses with non-blocking input (see the cbreak() and nodelay() calls) and poll it in a timer event you have set up with g_timeout_add(). If you are feeling adventurous you can dispense with curses and use the termios/tcgetattr()/tcsetattr() interface directly and set up the console that way. If you have no other reason to use the glib main loop (and there are plenty of reasons why you might want to use it), you can make your own program loop with select() and an appropriate timeout which polls the keyboard; or if all you are interested in is keyboard events, you can put curses in single extraction (cbreak) mode but with blocking input (or the equivalent with termios) and use that as your event loop. Chris From torriem@chem.byu.edu Sun Jun 25 20:45:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F2DA53B016F for ; Sun, 25 Jun 2006 20:45:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12049-09 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [216.148.227.153]) by menubar.gnome.org (Postfix) with ESMTP id 957B23B0199 for ; Sun, 25 Jun 2006 20:45:14 -0400 (EDT) Received: from enterprise.local.lan (c-24-2-75-5.hsd1.ut.comcast.net[24.2.75.5]) by comcast.net (rwcrmhc13) with ESMTP id <20060626003351m1300g4ie2e>; Mon, 26 Jun 2006 00:33:51 +0000 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.13.1/8.12.8) with ESMTP id k5Q0XjV3017707; Sun, 25 Jun 2006 18:33:45 -0600 Received: (from torriem@localhost) by enterprise.local.lan (8.13.1/8.13.1/Submit) id k5Q0XiQj017703; Sun, 25 Jun 2006 18:33:44 -0600 X-Authentication-Warning: enterprise.local.lan: torriem set sender to torriem@chem.byu.edu using -f Subject: Re: Font Path From: Michael Torrie To: Surya Kiran Gullapalli In-Reply-To: <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> References: <3462bcdb0606122316k2fea57dfyf1c61116c5436ab4@mail.gmail.com> <3462bcdb0606250851q425402d4g74d107d87552d146@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 25 Jun 2006 18:33:44 -0600 Message-Id: <1151282024.32440.29.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.377 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077] X-Spam-Score: -2.377 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 00:45:16 -0000 On Sun, 2006-06-25 at 21:21 +0530, Surya Kiran Gullapalli wrote: > Hi, > I'm trying to understand the gtk code. I've a question regarding font > path. > What is the font path, gtk application is looking into when one open a > font selection dialog. > > This question arose, due to the fact that garnome ships with bitstream > vera fonts, and when you install it, it goes into the installation > directory ($PREFIX/share... etc) > But when opened a font selection dialog, it shows all the available > fonts on the machine. > > Also if i'm shipping a new application with a new font, and say, i've > to ship this font also. where should i put that font. Also please let > me know if i need to set any environment variables. Fonts are not GTK specific. On Unix (X11) fonts should be installed to $HOME/.fonts If you install fonts to another place on the system, you need to modify the config file in /etc/fonts/fonts.conf and set up the path. For more information, see the specifications at freedesktop.org (fontconfig). Michael > > > Surya > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yeajchao@yahoo.com.cn Sun Jun 25 22:36:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79C833B00D9 for ; Sun, 25 Jun 2006 22:36:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16386-06 for ; Sun, 25 Jun 2006 22:36:52 -0400 (EDT) Received: from web15101.mail.cnb.yahoo.com (web15101.mail.cnb.yahoo.com [202.165.103.70]) by menubar.gnome.org (Postfix) with SMTP id 5BEF03B00A9 for ; Sun, 25 Jun 2006 22:36:50 -0400 (EDT) Received: (qmail 93283 invoked by uid 60001); 26 Jun 2006 02:36:39 -0000 Message-ID: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Received: from [221.8.12.141] by web15101.mail.cnb.yahoo.com via HTTP; Mon, 26 Jun 2006 10:36:39 CST Date: Mon, 26 Jun 2006 10:36:39 +0800 (CST) From: yeajchao Subject: =?gb2312?q?=BB=D8=B8=B4=A3=BA=20Re:=20Using=20GTK+=20with=20C++?= To: gtk-list@gnome.org In-Reply-To: <200606252243.10889.chris@cvine.freeserve.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.53 tagged_above=-999 required=2 tests=[AWL=-1.533, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: 0.53 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 02:36:53 -0000 hello when i using gtk+ with c++,how can i compile my application? --- Chris Vine 写道: > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > Hi all, > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > through C++? Is anyone doing this? Are there any 'tricks' I should > > know about beyond having to extern "C" the includes of gtk header > > files? > > They are already declared extern "C" if compiled for a C++ program. There is > > nothing you need to know - just use them. > > Chris > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ___________________________________________________________ 雅虎免费邮箱-3.5G容量,20M附件 http://cn.mail.yahoo.com/ From laowenbo@gmail.com Sun Jun 25 23:23:33 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBB8B3B0185 for ; Sun, 25 Jun 2006 23:23:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18438-05 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id 898803B0199 for ; Sun, 25 Jun 2006 23:23:32 -0400 (EDT) Received: by py-out-1112.google.com with SMTP id f25so1299223pyf for ; Sun, 25 Jun 2006 20:23:32 -0700 (PDT) Received: by 10.35.129.19 with SMTP id g19mr5477137pyn; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Received: by 10.35.103.18 with HTTP; Sun, 25 Jun 2006 20:23:31 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2006 11:23:31 +0800 From: "lao wb" To: "=?ISO-8859-2?Q?David_Ne=E8as_(Yeti)?=" Subject: Re: Drawing images ( with transparency ) one on another In-Reply-To: <20060619104132.GW2858@potato.chello.upc.cz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_47883_15491290.1151292211820" References: <20060619093509.DC2132E5C98@poczta.interia.pl> <20060619104132.GW2858@potato.chello.upc.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.025 tagged_above=-999 required=2 tests=[AWL=0.073, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_MESSAGE=0.001, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.025 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 03:23:34 -0000 ------=_Part_47883_15491290.1151292211820 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline SGksCiAgICBJIG5lZWQgZG8gdGhpcyB0b28gYnV0IGhhdmUgbm90IHN1Y2NlZWRlZCB5ZXQuIEkg dHJ5IHRvIHVzZQpnZGtfZHJhd19waXhidWYgYW5kIGdka19waXhidWZfY29tcG9zaXRlIGluIGV4 cG9zZSBldmVudCBoYW5kbGVyLCBidXQgaXQKc3RpbGwgZG9lc24ndCB3b3JrLiBJIHJlYWxseSBu ZWVkIGhlbHAgdG8gbWFrZSBteSB0ZXN0IGNvZGUgd29yay4KCkxhb3diCgojaW5jbHVkZSA8Z3Rr L2d0ay5oPgojZGVmaW5lIFNURF9XSURUSCAgICA2ODAKI2RlZmluZSBTVERfSEVJR0hUICA0ODAK CnN0YXRpYyBHZGtQaXhidWYgKiBzX2Jhc2VQaXg7CnN0YXRpYyBHZGtQaXhidWYgKiBzX2hvbWVN ZW51UGl4OwoKZ2Jvb2xlYW4gb25fZXhwb3NlKEd0a1dpZGdldCAqIHdpZGdldCwKICAgICAgICAg ICAgICAgICAgIEdka0V2ZW50RXhwb3NlICogcHMsCiAgICAgICAgICAgICAgICAgICBncG9pbnRl ciBkYXRhKQp7CiAgICBnZGtfcGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LAogICAgICAg ICAgICAgICAgICAgICAgICAgc19iYXNlUGl4LCAwLCAwLCBTVERfV0lEVEgsIFNURF9IRUlHSFQs IDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICBHREtfSU5URVJQX05FQVJFU1Qs IDApOwoKICAgIGdka19kcmF3X3BpeGJ1Zih3aWRnZXQtPndpbmRvdywgd2lkZ2V0LT5zdHlsZS0+ YmdfZ2NbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgc19ob21lTWVudVBp eCwgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAgICBTVERfV0lEVEgsCiAgICAgICAgICAg ICAgICAgICAgU1REX0hFSUdIVCwKICAgICAgICAgICAgICAgICAgICBHREtfUkdCX0RJVEhFUl9O T1JNQUwsCiAgICAgICAgICAgICAgICAgICAgMCwgMCk7CiAgICByZXR1cm4gRkFMU0U7Cn0KCgpp bnQgbWFpbihpbnQgYXJnYywgY2hhciAqIGFyZ3ZbXSkKewogICAgR3RrV2lkZ2V0ICogbWFpbldu ZCAgICAgICAgPSBOVUxMOwogICAgR2RrRHJhd2FibGUgKiAgICBwaXhNYXAgICAgPSBOVUxMOwog ICAgR3RrV2lkZ2V0ICogaW1nICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYm94 ICAgICAgICAgICAgPSBOVUxMOwogICAgR3RrV2lkZ2V0ICogYnV0dG9uICAgICAgICA9IE5VTEw7 CiAgICBHdGtBZGp1c3RtZW50ICogdmFkaiAgICA9IE5VTEw7CiAgICBHdGtBZGp1c3RtZW50ICog aGFkaiAgICA9IE5VTEw7CiAgICBHZGtCaXRtYXAgICAgICAqIG1zayAgICAgICAgPSBOVUxMOwog ICAgR2RrQml0bWFwICogaG9tZU1lbnUgICAgPSBOVUxMOwoKICAgIGd0a19pbml0KCZhcmdjLCAm YXJndik7CgogICAgbWFpblduZCA9IGd0a193aW5kb3dfbmV3KEdUS19XSU5ET1dfVE9QTEVWRUwp OwoKICAgIGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19XSU5ET1cobWFpblduZCksICJ0ZXN0IGRy YXcuLi5cbiIpOwoKICAgIGd0a19zaWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAi ZGVzdHJveSIsIGd0a19tYWluX3F1aXQsIE5VTEwpOwoKICAgIGltZyA9IGd0a19pbWFnZV9uZXco KTsKICAgIGd0a19jb250YWluZXJfYWRkKEdUS19DT05UQUlORVIobWFpblduZCksIGltZyk7CiAg ICBndGtfc2lnbmFsX2Nvbm5lY3QoR1RLX09CSkVDVChpbWcpLAogICAgICAgICAgICAgICAgICAg ICAgICJleHBvc2UtZXZlbnQiLAogICAgICAgICAgICAgICAgICAgICAgIEdUS19TSUdOQUxfRlVO Qyhvbl9leHBvc2UpLAogICAgICAgICAgICAgICAgICAgICAgIE5VTEwpOwoKICAgIGd0a19jb250 YWluZXJfc2V0X2JvcmRlcl93aWR0aChHVEtfQ09OVEFJTkVSKG1haW5XbmQpLCA1KTsKCiAgICBn dGtfd2lkZ2V0X3Nob3dfYWxsKG1haW5XbmQpOwoKICAgIGhvbWVNZW51ID0gZ2RrX3BpeG1hcF9j cmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93LAogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAmbXNrLAoKJm1haW5XbmQtPnN0eWxlLT5iZ1tHVEtfU1RBVEVfTk9S TUFMXSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImY6L2hvbWVt ZW51LmJtcCIpOyAvKiBhbHBoYQpjaGFubmVsIGJpdG1hcCovCiAgICBzX2hvbWVNZW51UGl4ID0K ICAgIGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgaG9tZU1lbnUsCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGdka19jb2xvcm1hcF9nZXRfc3lzdGVtKCksCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIDAsIDAsIDAsIDAsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IFNURF9XSURUSCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU1REX0hFSUdIVCk7 CgogICAgcGl4TWFwID0gZ2RrX3BpeG1hcF9jcmVhdGVfZnJvbV94cG0obWFpblduZC0+d2luZG93 LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJm1zaywKCiZtYWluV25k LT5zdHlsZS0+YmdbR1RLX1NUQVRFX05PUk1BTF0sCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAiZjovU3Vuc2V0LmJtcCIpOyAvKiBubyBhbHBoYQpjaGFubmVsIGJpdG1h cCovCiAgICBzX2Jhc2VQaXggPQogICAgZ2RrX3BpeGJ1Zl9nZXRfZnJvbV9kcmF3YWJsZShzX2Jh c2VQaXgsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpeE1hcCwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgZ2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgMCwgMCwgMCwgMCwKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgU1REX1dJRFRILAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBTVERfSEVJR0hUKTsKCiAgICBndGtfbWFpbigpOwoKICAgIHJldHVybiAwOwp9CgoyMDA2LzYv MTksIERhdmlkIE5l6GFzIChZZXRpKSA8eWV0aUBwaHlzaWNzLm11bmkuY3o+Ogo+Cj4gT24gTW9u LCBKdW4gMTksIDIwMDYgYXQgMTE6MzU6MDlBTSArMDIwMCwgaG0gd3JvdGU6Cj4gPgo+ID4gICBJ YHZlIGdvdCBhIHByb2JsZW0uIElgdmUgZ290IHR3byBzZXBhcmF0ZSBpbWFnZXMuIE9uZSBpcyBi YWNrZ3JvdW5kCj4gZm9yICB0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRy YW5zcGFyZW50LiBUaGVyZSBpcyBhbHNvIHRhYmxlLgo+IFF1ZXN0aW9uIGlzIDogaG93IHRvIGRy YXcgaW4gb25lIG9mIHRoZSB0YWJsZWBzIGNlbGxzIHRoZSBiYWNrZ3Jhb3VuZCwgYW5kCj4gb24g dGhpcyBiYWNrZ3JvdW5kICggYXMgYSBzZWNvbmQgbGF5ZXIgKSBzZWNvbmQgaW1hZ2UgKHRyYW5z cGFyZW50KSA/ICBJCj4ga25vdyAoIG9mIGNvdXJzZSApIGhvdyB0byBjcmVhdGUgaW1hZ2VzLCB0 YWJsZXMuCj4KPiBFaXRoZXIgdXNlIGdka19kcmF3X3BpeGJ1ZigpIGlmIHRoZSBjb3JyZWN0IG9y ZGVyIChmaXJzdAo+IGJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudAo+IGhhbmRsZXIsIG9yIHVzZSBnZGtfcGl4YnVmX2NvbXBvc2l0ZSgpIGFuZCBk cmF3IHRoZSBmaW5hbAo+IGltYWdlLgo+Cj4gWWV0aQo+Cj4KPiAtLQo+IEFub255bXMgZWF0IHRo ZWlyIGJvb2dlcnMuCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18KPiBndGstbGlzdCBtYWlsaW5nIGxpc3QKPiBndGstbGlzdEBnbm9tZS5vcmcKPiBodHRw Oi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdAo+Cg== ------=_Part_47883_15491290.1151292211820 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: base64 Content-Disposition: inline SGksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgSSBuZWVkIGRvIHRoaXMgdG9vIGJ1dCBoYXZlIG5v dCBzdWNjZWVkZWQgeWV0LiBJIHRyeSB0byB1c2UgZ2RrX2RyYXdfcGl4YnVmIGFuZCBnZGtfcGl4 YnVmX2NvbXBvc2l0ZSBpbiBleHBvc2UgZXZlbnQgaGFuZGxlciwgYnV0IGl0IHN0aWxsIGRvZXNu J3Qgd29yay4gSSByZWFsbHkgbmVlZCBoZWxwIHRvIG1ha2UgbXkgdGVzdCBjb2RlIHdvcmsuPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Ckxhb3diPGJyPjxicj4jaW5jbHVkZSAmbHQ7Z3RrL2d0 ay5oJmd0Ozxicj4jZGVmaW5lIFNURF9XSURUSCZuYnNwOyZuYnNwOyZuYnNwOyA2ODA8YnI+I2Rl ZmluZSBTVERfSEVJR0hUJm5ic3A7IDQ4MDxicj48YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfYmFz ZVBpeDs8YnI+c3RhdGljIEdka1BpeGJ1ZiAqIHNfaG9tZU1lbnVQaXg7PGJyPjxicj5nYm9vbGVh biBvbl9leHBvc2UoR3RrV2lkZ2V0ICogd2lkZ2V0LCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBHZGtFdmVudEV4cG9zZSAqIHBzLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyBncG9pbnRlciBkYXRhKTxicj57PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBnZGtf cGl4YnVmX2NvbXBvc2l0ZShzX2hvbWVNZW51UGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5i c3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtzX2Jhc2VQaXgsIDAsIDAs IFNURF9XSURUSCwgU1REX0hFSUdIVCwgMCwgMCwgMCwgMCw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7R0RLX0lOVEVSUF9O RUFSRVNULCAwKTs8YnI+Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ2RrX2RyYXdfcGl4YnVmKHdp ZGdldC0mZ3Q7d2luZG93LCB3aWRnZXQtJmd0O3N0eWxlLSZndDtiZ19nY1tHVEtfU1RBVEVfTk9S TUFMXSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyBzX2hvbWVNZW51 UGl4LCAwLCAwLCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyBTVERfV0lEVEgsIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7IFNU RF9IRUlHSFQsPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgR0RLX1JH Ql9ESVRIRVJfTk9STUFMLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAwLCAwKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJldHVybiBGQUxTRTs8YnI+fTxicj48YnI+ PGJyPmludCBtYWluKGludCBhcmdjLCBjaGFyICogYXJndltdKTxicj57PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyBHdGtXaWRnZXQgKiBtYWluV25kJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtEcmF3YWJsZSAqJm5ic3A7 Jm5ic3A7Jm5ic3A7IHBpeE1hcCZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZu YnNwOyZuYnNwOyBHdGtXaWRnZXQgKiBpbWcmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7 Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj4mbmJzcDsmbmJzcDsmbmJzcDsg R3RrV2lkZ2V0ICogYm94Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgPSBOVUxMOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgR3RrV2lkZ2V0ICog YnV0dG9uJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZu YnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogdmFkaiZuYnNwOyZuYnNwOyZuYnNwOyA9 IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHdGtBZGp1c3RtZW50ICogaGFkaiZuYnNwOyZu YnNwOyZuYnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7ICogbXNrJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyA9IE5VTEw7PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBHZGtCaXRtYXAgKiBob21lTWVudSZu YnNwOyZuYnNwOyZuYnNwOyA9IE5VTEw7Cjxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19p bml0KCZhbXA7YXJnYywgJmFtcDthcmd2KTs8YnI+PGJyPiZuYnNwOyZuYnNwOyZuYnNwOyBtYWlu V25kID0gZ3RrX3dpbmRvd19uZXcoR1RLX1dJTkRPV19UT1BMRVZFTCk7PGJyPiZuYnNwOyZuYnNw OyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19X SU5ET1cobWFpblduZCksICZxdW90O3Rlc3QgZHJhdy4uLlxuJnF1b3Q7KTsmbmJzcDsmbmJzcDsm bmJzcDsgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19z aWduYWxfY29ubmVjdChHVEtfT0JKRUNUKG1haW5XbmQpLCAmcXVvdDtkZXN0cm95JnF1b3Q7LCBn dGtfbWFpbl9xdWl0LCBOVUxMKTsKPGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgaW1nID0gZ3Rr X2ltYWdlX25ldygpOzxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2NvbnRhaW5lcl9hZGQoR1RL X0NPTlRBSU5FUihtYWluV25kKSwgaW1nKTs8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19zaWdu YWxfY29ubmVjdChHVEtfT0JKRUNUKGltZyksIDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7 Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyAmcXVvdDtleHBvc2UtZXZlbnQmcXVvdDssPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7IEdUS19TSUdO QUxfRlVOQyhvbl9leHBvc2UpLAo8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsgTlVMTCk7PGJyPjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgZ3RrX2Nv bnRhaW5lcl9zZXRfYm9yZGVyX3dpZHRoKEdUS19DT05UQUlORVIobWFpblduZCksIDUpOzxicj48 YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a193aWRnZXRfc2hvd19hbGwobWFpblduZCk7PGJyPjxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgaG9tZU1lbnUgPSBnZGtfcGl4bWFwX2NyZWF0ZV9mcm9tX3hw bShtYWluV25kLSZndDt3aW5kb3csPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsm bmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsgJmFtcDtt c2ssCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNw OyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZhbXA7bWFpblduZC0mZ3Q7c3R5bGUt Jmd0O2JnW0dUS19TVEFURV9OT1JNQUxdLDxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7ICZx dW90O2Y6L2hvbWVtZW51LmJtcCZxdW90Oyk7IC8qIGFscGhhIGNoYW5uZWwgYml0bWFwKi88YnI+ Jm5ic3A7Jm5ic3A7Jm5ic3A7IHNfaG9tZU1lbnVQaXggPTxicj4KJm5ic3A7Jm5ic3A7Jm5ic3A7 IGdka19waXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19ob21lTWVudVBpeCw8YnI+Jm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5i c3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtob21lTWVudSwgPGJyPiZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZu YnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0 ZW0oKSw8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJz cDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDswLCAw LCAwLCAwLCA8YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsm bmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDtT VERfV0lEVEgsCjxicj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw OyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNw O1NURF9IRUlHSFQpOzxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IHBpeE1hcCA9IGdka19waXht YXBfY3JlYXRlX2Zyb21feHBtKG1haW5XbmQtJmd0O3dpbmRvdywgPGJyPiZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZu YnNwOyAmYW1wO21zaywgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmYW1wO21haW5XbmQtJmd0O3N0 eWxlLSZndDtiZ1tHVEtfU1RBVEVfTk9STUFMXSwKPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJz cDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmcXVv dDtmOi9TdW5zZXQuYm1wJnF1b3Q7KTsgLyogbm8gYWxwaGEgY2hhbm5lbCBiaXRtYXAqLzxicj4m bmJzcDsmbmJzcDsmbmJzcDsgc19iYXNlUGl4ID08YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGdka19w aXhidWZfZ2V0X2Zyb21fZHJhd2FibGUoc19iYXNlUGl4LDxicj4mbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsg Jm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO3BpeE1hcCwgPGJyPiZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAm bmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Z2RrX2NvbG9ybWFwX2dldF9zeXN0ZW0oKSwKPGJyPiZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZu YnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7MCwgMCwgMCwgMCwgPGJy PiZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7 ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7U1REX1dJRFRILDxi cj4mbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNw OyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7Jm5ic3A7Jm5ic3A7ICZuYnNwO1NURF9IRUlHSFQp Ozxicj48YnI+Jm5ic3A7Jm5ic3A7Jm5ic3A7IGd0a19tYWluKCk7PGJyPjxicj4mbmJzcDsmbmJz cDsmbmJzcDsgcmV0dXJuIDA7PGJyPn08YnI+PGJyPjxkaXY+PHNwYW4gY2xhc3M9ImdtYWlsX3F1 b3RlIj4KMjAwNi82LzE5LCBEYXZpZCBOZehhcyAoWWV0aSkgJmx0OzxhIGhyZWY9Im1haWx0bzp5 ZXRpQHBoeXNpY3MubXVuaS5jeiI+eWV0aUBwaHlzaWNzLm11bmkuY3o8L2E+Jmd0Ozo8L3NwYW4+ PGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0iYm9yZGVyLWxlZnQ6IDFweCBz b2xpZCByZ2IoMjA0LCAyMDQsIDIwNCk7IG1hcmdpbjogMHB0IDBwdCAwcHQgMC44ZXg7IHBhZGRp bmctbGVmdDogMWV4OyI+Ck9uIE1vbiwgSnVuIDE5LCAyMDA2IGF0IDExOjM1OjA5QU0gKzAyMDAs IGhtIHdyb3RlOjxicj4mZ3Q7PGJyPiZndDsmbmJzcDsmbmJzcDsgSWB2ZSBnb3QgYSBwcm9ibGVt LiBJYHZlIGdvdCB0d28gc2VwYXJhdGUgaW1hZ2VzLiBPbmUgaXMgYmFja2dyb3VuZCBmb3ImbmJz cDsmbmJzcDt0aGUgc2Vjb25kb25lLiBTZWNvbmRvbmUgaXMgcGFydGlhbGx5IHRyYW5zcGFyZW50 LiBUaGVyZSBpcyBhbHNvIHRhYmxlLiBRdWVzdGlvbiBpcyA6IGhvdyB0byBkcmF3IGluIG9uZSBv ZiB0aGUgdGFibGVgcyBjZWxscyB0aGUgYmFja2dyYW91bmQsIGFuZCBvbiB0aGlzIGJhY2tncm91 bmQgKCBhcyBhIHNlY29uZCBsYXllciApIHNlY29uZCBpbWFnZSAodHJhbnNwYXJlbnQpID8mbmJz cDsmbmJzcDtJIGtub3cgKCBvZiBjb3Vyc2UgKSBob3cgdG8gY3JlYXRlIGltYWdlcywgdGFibGVz Lgo8YnI+PGJyPkVpdGhlciB1c2UgZ2RrX2RyYXdfcGl4YnVmKCkgaWYgdGhlIGNvcnJlY3Qgb3Jk ZXIgKGZpcnN0PGJyPmJhc2UsIHRoZW4gdGhlIG9uZSB3aXRoIGFscGhhIGNoYW5uZWwpIGluIGV4 cG9zZSBldmVudDxicj5oYW5kbGVyLCBvciB1c2UgZ2RrX3BpeGJ1Zl9jb21wb3NpdGUoKSBhbmQg ZHJhdyB0aGUgZmluYWw8YnI+aW1hZ2UuPGJyPjxicj5ZZXRpPGJyPjxicj48YnI+LS08YnI+CkFu b255bXMgZWF0IHRoZWlyIGJvb2dlcnMuPGJyPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fPGJyPmd0ay1saXN0IG1haWxpbmcgbGlzdDxicj48YSBocmVmPSJt YWlsdG86Z3RrLWxpc3RAZ25vbWUub3JnIj5ndGstbGlzdEBnbm9tZS5vcmc8L2E+PGJyPjxhIGhy ZWY9Imh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2d0ay1saXN0Ij4KaHR0 cDovL21haWwuZ25vbWUub3JnL21haWxtYW4vbGlzdGluZm8vZ3RrLWxpc3Q8L2E+PGJyPjwvYmxv Y2txdW90ZT48L2Rpdj48YnI+Cg== ------=_Part_47883_15491290.1151292211820-- From cgallucci@inwind.it Mon Jun 26 07:58:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EFE933B0280 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15191-10 for ; Mon, 26 Jun 2006 07:58:25 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id CEFBB3B0199 for ; Mon, 26 Jun 2006 07:58:24 -0400 (EDT) Received: from localhost (172.16.1.206) by smtp6.libero.it (7.0.027-DD01) id 44992E6400679860 for gtk-list@gnome.org; Mon, 26 Jun 2006 13:58:23 +0200 Received: from smtp1.libero.it ([172.16.1.224]) by localhost (asav20.libero.it [193.70.193.7]) (amavisd-new, port 10024) with ESMTP id 21475-01 for ; Mon, 26 Jun 2006 13:58:23 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp1.libero.it (Postfix) with ESMTP id A5BADA8C53 for ; Mon, 26 Jun 2006 13:58:22 +0200 (MEST) From: "carmelo gallucci" To: Subject: CYGWIN and GTK Date: Mon, 26 Jun 2006 14:02:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.614 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -0.614 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 11:58:26 -0000 I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My application also use SDL and i want to enable SDL hacking to encapsulate it on a gtk window. My gtk application run pefectly. I can show widget and use it. My problem is that i cannot get this code to work (it work perfectly under linux): sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget ::gobj()->window)); I cannot get WINDOWID. When i use the macro GDK_WINDOW_XWINDOW i get the following error: (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): GLib-GObject-CRITICAL **: /instsoft/gnome/platform/glib-2.6.6/go bject/gtype.c:2254: initialization assertion failed, use g_type_init() prior to this function (process:1928): Gdk-WARNING **: /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk drawable-x11.c:971 drawable is not a pixmap or window What's the problem? Anyone know where the problem is? Thanks. Carmelo Gallucci From tml@iki.fi Mon Jun 26 10:19:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E8AB73B03F0 for ; Mon, 26 Jun 2006 10:19:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23891-06 for ; Mon, 26 Jun 2006 10:19:55 -0400 (EDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 4B9203B0369 for ; Mon, 26 Jun 2006 10:19:54 -0400 (EDT) Received: from pettson.tml.iki.fi (DCCCXXIV.tun.saunalahti.fi [213.169.26.224]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 411DF151341; Mon, 26 Jun 2006 17:19:51 +0300 (EEST) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> Date: Mon, 26 Jun 2006 17:18:57 +0300 To: "carmelo gallucci" Subject: Re: CYGWIN and GTK In-Reply-To: References: X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.337 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.337 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:19:57 -0000 carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From marko.ivancic@ultra.si Mon Jun 26 10:48:00 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F1643B021C for ; Mon, 26 Jun 2006 10:47:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25463-10 for ; Mon, 26 Jun 2006 10:47:56 -0400 (EDT) Received: from deliver-2.mx.triera.net (deliver-2.mx.triera.net [213.161.0.32]) by menubar.gnome.org (Postfix) with ESMTP id D503D3B0185 for ; Mon, 26 Jun 2006 10:47:55 -0400 (EDT) Received: from localhost (in-3.mx.triera.net [213.161.0.27]) by deliver-2.mx.triera.net (Postfix) with ESMTP id 384F2A7 for ; Mon, 26 Jun 2006 16:47:46 +0200 (CEST) Received: from smtp.triera.net (smtp.triera.net [213.161.0.30]) by in-3.mx.triera.net (Postfix) with SMTP id 96AFF1BC02F for ; Mon, 26 Jun 2006 16:47:49 +0200 (CEST) Received: from [172.18.1.20] (unknown [213.161.20.162]) by smtp.triera.net (Postfix) with ESMTP id 439601A18AA for ; Mon, 26 Jun 2006 16:47:50 +0200 (CEST) Message-ID: <449FF39D.6080201@ultra.si> Date: Mon, 26 Jun 2006 16:47:57 +0200 From: Marko Ivancic User-Agent: Thunderbird 1.5.0.4 (X11/20060619) MIME-Version: 1.0 To: gtk-list@gnome.org Subject: save copy of gtktextbuffer Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Triera AV Service X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.108 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, TW_GT=0.077] X-Spam-Score: -0.108 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:48:00 -0000 Hi. Is there any way to save a GtkTextBuffer (I mean the context of this buffer including pixbufs and other embedet widgets) into another GtkTextBuffer instance ?? Tnx, By Marko I. From linuxhippy@gmail.com Mon Jun 26 10:53:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 296143B0135 for ; Mon, 26 Jun 2006 10:53:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25937-02 for ; Mon, 26 Jun 2006 10:53:31 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.204]) by menubar.gnome.org (Postfix) with ESMTP id EC5DF3B0185 for ; Mon, 26 Jun 2006 10:53:30 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so731232hue for ; Mon, 26 Jun 2006 07:53:30 -0700 (PDT) Received: by 10.78.117.10 with SMTP id p10mr2151522huc; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 07:53:29 -0700 (PDT) Message-ID: <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> Date: Mon, 26 Jun 2006 16:53:29 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: GTK performance on Windows In-Reply-To: <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449B07F9.9030500@gmail.com> <17563.35295.574000.601419@gargle.gargle.HOWL> <194f62550606230306k6a253856kea134f60711f7ea8@mail.gmail.com> <17563.49363.293000.582022@gargle.gargle.HOWL> <194f62550606230433o1cc23cc4o950af6afb8829229@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.151 tagged_above=-999 required=2 tests=[AWL=-0.386, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.151 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 14:53:32 -0000 I played a bit and found something which could be considered as "slow": Open the configuration dialog of gimp and move another window on top of it. This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you can still see a ~4mm repaint lag. I wonder wether this could also be caused because of inefficient double buffering ... time will show. lg Clemens 2006/6/23, Clemens Eisserer : > First of all thanks a lot for doing that much work porting GTK to windows. > I can't count how many apps I've used myself on windows-pcs which were > able to run because of your work. > > > If one would ask specific question like "I draw 100000 line segments > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > might get better help. > > I installed gimp on some win-xp computers in the company I work for > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > are very much the issues I have on linux but more "visible". Its the > UI, menus, window resizing, layout changes or repaint-events sent to > the window because its content was invalidated. > I can't say wether its really slow or just feels so, maybe the graphic > card driver had an influence (nvidia gf4 mx4000) or some other > circumstances were not optimal. > I simply never did care that much simply because I don't use/like this planform. > > Its just hard to know whats going wrong, especially if someone is no > gtk insider. > > lg Clemens > From torriem@chem.byu.edu Mon Jun 26 11:34:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 728723B03BC for ; Mon, 26 Jun 2006 11:34:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28776-08 for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 75B363B046C for ; Mon, 26 Jun 2006 11:34:51 -0400 (EDT) Received: from isengard.chem.byu.edu (isengard.chem.byu.edu [192.168.105.100]) (authenticated bits=0) by mail.chem.byu.edu (8.13.1/8.13.1) with ESMTP id k5QFYoKJ024264; Mon, 26 Jun 2006 09:34:50 -0600 Subject: Re: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D?= =?UTF-8?Q?=EF=BC=9A?= Re: Using GTK+ with C++ From: Michael L Torrie To: yeajchao In-Reply-To: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> References: <20060626023639.93281.qmail@web15101.mail.cnb.yahoo.com> Content-Type: text/plain; charset=UTF-8 Date: Mon, 26 Jun 2006 09:34:49 -0600 Message-Id: <1151336089.25316.0.camel@isengard> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.chem.byu.edu [192.168.200.10]); Mon, 26 Jun 2006 09:34:50 -0600 (MDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.615 tagged_above=-999 required=2 tests=[AWL=-0.893, BAYES_00=-2.599, SUBJECT_ENCODED_TWICE=1.723, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -1.615 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:34:52 -0000 On Mon, 2006-06-26 at 10:36 +0800, yeajchao wrote: > hello > when i using gtk+ with c++,how can i compile my application? The same way you do it with C, except you have to use g++ instead of gcc. But the command line arguments for doing the build and using pkg- config to get the cflags and ldflags is the same. Michael > > --- Chris Vine 鍐欓亾: > > > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote: > > > Hi all, > > > > > > I know about gtkmm but if I wish to use GTK+ directly, can I do it > > > through C++? Is anyone doing this? Are there any 'tricks' I should > > > know about beyond having to extern "C" the includes of gtk header > > > files? > > > > They are already declared extern "C" if compiled for a C++ program. There is > > > > nothing you need to know - just use them. > > > > Chris > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > ___________________________________________________________ > 闆呰檸鍏嶈垂閭-3.5G瀹归噺锛20M闄勪欢 > http://cn.mail.yahoo.com/ > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From jcupitt@gmail.com Mon Jun 26 11:41:12 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDD083B017D for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29419-03 for ; Mon, 26 Jun 2006 11:41:11 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 7AD633B0387 for ; Mon, 26 Jun 2006 11:41:10 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so888205uge for ; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.165.16 with SMTP id n16mr2166312hue; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Received: by 10.78.124.2 with HTTP; Mon, 26 Jun 2006 08:41:09 -0700 (PDT) Message-ID: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> Date: Mon, 26 Jun 2006 16:41:09 +0100 From: "John Cupitt" To: "Clemens Eisserer" Subject: Re: Scrolling performance In-Reply-To: <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=-0.089, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.412 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 15:41:12 -0000 On 6/25/06, Clemens Eisserer wrote: > When I maximize the window and resize the panes I get very slow > resizing, however when setting all involved widgets unbuffered > resizing is fast (but painting is done with artifacts). I think the artifacts are because, with double-buffering turned off, expose events do not get an automatic clear-to-background. There's a note about this in the entry for gtk_widget_set_double_buffered(): http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 I'm not a gtk-internals expert and I can't really see a good solution to this. The possibilities I can see are: 1) Provide an option to disable double buffering for all widgets You could hack into gdk_window_begin_paint_region() and add a new code path: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 something like if (global_no_double_buffer) clear expose area to background might be enough. Repainting would be fast but flickery and incredibly ugly. People with older machines and nvidia hardware acceleration would see an FPS improvement, but their eyes would be watering. 2) Use nvidia's pixmap placement hint I think this would require a new driver from nvidia and changes to the X server to make the option accessible. Not going to happen any time soon. 3) Persuade nvidia to change their pixmap caching policy It seems to me that their policy is broken. If an app creates a pixmap, you'd expect it to be used soon. Making new pixmaps default to slow memory is rather odd. But I guess they've done a lot of profiling (of non-GTK apps, heh) and like it the way it is. 4) Have a single expose pixmap You could allocate a single large expose pixmap (maybe as big as the enclosing window?) and reuse that, with clipping, rather than creating and destroying a new pixmap each time. gdk_window_begin_paint_region() actually maintains a stack of pending pixmaps, though I've no idea how often the stack feature is used. Perhaps you could get away with having a single permanent expose pixmap, and dynamically create and destroy sub-pixmaps if the stack starts working. If the stack is used infrequently maybe this would work OK. This would chew up graphics card memory :-( and main memory for software drivers :-( and small-footprint people would hate it. My machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if each screen is 50% covered in gtk2 apps, this change will make my X server need an extra 50MB of RAM. Ouch! Maybe there could be a timeout to free the backing pixmap if it's not used for a couple of seconds. John From linuxhippy@gmail.com Mon Jun 26 14:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 889943B02E1 for ; Mon, 26 Jun 2006 14:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06142-05 for ; Mon, 26 Jun 2006 14:14:16 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by menubar.gnome.org (Postfix) with ESMTP id 036D73B03CC for ; Mon, 26 Jun 2006 14:14:15 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so963030uge for ; Mon, 26 Jun 2006 11:14:15 -0700 (PDT) Received: by 10.78.140.17 with SMTP id n17mr2247538hud; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Mon, 26 Jun 2006 11:14:14 -0700 (PDT) Message-ID: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Date: Mon, 26 Jun 2006 20:14:14 +0200 From: "Clemens Eisserer" To: "John Cupitt" , gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.349 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.349 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 18:14:17 -0000 Hello John, Thanks a lot for beeing that patient and constructive, its really motivating! I know I am not the dream-guy to start working on this but hey what can GTK loose ;) > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a Yea I read the note yesterday which made it clear for me too. > 1.) Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. Yes I saw this large amount of flickering, I think this would be more or less a dirty hack when looking at the results. Its really ugly ;) I'll do some tests to see which influence composition managers have, they do their own sort of double buffering, maybe we could dave all these efforts under these circumstances at all? > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. All these concepts act on the assumption that what GTK currently does is more or less a good thing. However best-case for GTKs buffering scenario are onboard shared-mem cards, which do not require (much) bus-interactivity ... but even allocating several megs each repaint in system memory is expensive and more or less a do-not. What nvidia does is very common, on windows its defacto-standard. Also if they would change they semantics GTK would be hardware accalerated but a lot of time would be spent inside the GPU waiting for the requested piece of VRAM. > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. To be honest I like this approach most, especially because I've seen this technique in several other toolkits (Swing, LwVCL) working very well. Swing (a java toolkit) has even support for smaller backbuffers than the rendered area is, they simply repaint it as often to the backbuffer with different clipping/location till they've filled the whole screen. This could help making window resizing smooth (more painting should be in >90% be much faster than allocating a new pixmap each resize), after resizing a new buffer could be created with window size. Another advantage java can take from this design (starting with mustang) is that if the buffer is as large as the window, they actually just paint the pixmap if the window receives expose events. > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. Well but to run that many applications you also should have a descent powered system wheer grahic cards with 64+m are quite common ;) I too see a problem here, for java its maybe not that too dramatical, if the runtime itself is consuming 15mb another 5mb for the backbuffer don't hurt that much but for GTK and tons of long running apps realized with it the situation is a lot different. I am not enough of an expert to know a exact answer to this, I'll do some reseach at QT and other toolkits that provide double buffering how they deal with this issue. Maybe some kind of ergonomics could do the job, deciding when its worth to keep a buffer for how long and when to destroy it (would we need a timer thread for pixmap freeing *outch*?). As I said I simply don't know an answer maybe some experiments will show ... I've the whole summer for coding on this ^^ lg Clemens I browsed a bit through GTKs source code (only gtk, not gdk till now) and I've to admit that I never coded GTK apps before except some small examples and one java-gome application. As far as I understood from the gtk-tutorial there are some widgets which are windows themself ... which is a bit confusing for me. I tried to find the entrance point where X tells gtk windows to expose, does this happen once for the main "window" and gtk repaints the widgets in an hirarchial order or do the widgets which are windows themself get seperate expose events delivered? How (and where) does the buffering take place? How does GTK deal with widgets that don't want to be drawn doublebuffered? I know tons of awkward newbie quetsions, I guess just pointers to the source would be enough ;) From yeti@physics.muni.cz Mon Jun 26 15:10:03 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DD37E3B0167 for ; Mon, 26 Jun 2006 15:10:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08743-04 for ; Mon, 26 Jun 2006 15:09:57 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id E6C703B012B for ; Mon, 26 Jun 2006 15:09:56 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5QJ9sfx029554 for ; Mon, 26 Jun 2006 21:09:55 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 1683523D16; Mon, 26 Jun 2006 21:09:54 +0200 (CEST) Date: Mon, 26 Jun 2006 21:09:57 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Scrolling performance Message-ID: <20060626190957.GR2296@potato.chello.upc.cz> References: <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606261114k4b2b443bt9e410ebe949fb6f0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:10:03 -0000 On Mon, Jun 26, 2006 at 08:14:14PM +0200, Clemens Eisserer wrote: > As far as I understood from the gtk-tutorial there are some widgets > which are windows themself ... which is a bit confusing for me. > I tried to find the entrance point where X tells gtk windows to > expose, X tells Gtk+ nothing, Gtk+ is built on top of Gdk and Gdk receives the X events. Start with gdk_event_dispatch() in gdk/x11/gdkevents-x11.c. It is also instructive to compile Gtk+ with --enable-debug=yes and then do for instance GDK_DEBUG=events ./someprogram > does this happen once for the main "window" and gtk repaints > the widgets in an hirarchial order or do the widgets which are windows > themself get seperate expose events delivered? Widgets with their own windows receive their own expose events. Also have a look at http://primates.ximian.com/~federico/misc/gtk-drawing-model/ which explains the basic concepts. Yeti -- Anonyms eat their boogers. From cgallucci@inwind.it Mon Jun 26 15:56:06 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D635B3B0201 for ; Mon, 26 Jun 2006 15:56:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11469-07 for ; Mon, 26 Jun 2006 15:56:01 -0400 (EDT) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id E0C5D3B007A for ; Mon, 26 Jun 2006 15:56:00 -0400 (EDT) Received: from localhost (172.16.1.83) by smtp6.libero.it (7.0.027-DD01) id 44992E640071E70D; Mon, 26 Jun 2006 21:55:55 +0200 Received: from smtp0.libero.it ([172.16.1.204]) by localhost (asav4.libero.it [193.70.192.153]) (amavisd-new, port 10024) with ESMTP id 20782-04-3; Mon, 26 Jun 2006 21:55:54 +0200 (CEST) Received: from MELO (adsl-174-7.38-151.net24.it [151.38.7.174]) by smtp0.libero.it (Postfix) with ESMTP id 6BA223338A7; Mon, 26 Jun 2006 21:55:53 +0200 (MEST) From: "carmelo gallucci" To: "'Tor Lillqvist'" Subject: RE: CYGWIN and GTK Date: Mon, 26 Jun 2006 21:59:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <17567.60625.324000.832379@gargle.gargle.HOWL> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.397 tagged_above=-999 required=2 tests=[AWL=0.048, BAYES_00=-2.599, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.397 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:56:07 -0000 Hi Tor. Maybe i'm not really shure .-). I'm trying to explain better. I have a complete application built on Linux fedora core (GTKmm, SDL, ffmpeg, etc,etc). I'm thinking the fasted way to have the same application running on a window OS is to build it using CYGwin(i'm really new of it). This only not to spend more time to develop new thing. I compile and run my app without any problem (i intend Gtk ffmpeg). When i try tu use SDL and particylary GDK(X11) function i have problem i wrote. I use SDL only to display YUV format on the video. What can i use instead of it? Thanks. Carmelo -----Original Message----- From: Tor Lillqvist [mailto:tml@iki.fi]=20 Sent: luned=EC 26 giugno 2006 16.19 To: carmelo gallucci Cc: gtk-list@gnome.org Subject: Re: CYGWIN and GTK carmelo gallucci writes: > What's the problem? Anyone know where the problem is? Well, firstly you are using an unmaintained version of GTK+ (2.6.x). Secondly, are you sure what you are doing makes sense? You are using a GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the SDL you are using also for X11 on Cygwin? Or are you trying to use a SDL that would use native Win32 (GDI) together with a GTK+ built for X11? Surely that can't work. --tml From lalitk.pune@gmail.com Mon Jun 26 23:15:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6EF93B0171 for ; Mon, 26 Jun 2006 23:15:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32665-09 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by menubar.gnome.org (Postfix) with ESMTP id 220273B00F2 for ; Mon, 26 Jun 2006 23:15:56 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i1so2013774nzh for ; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.64.148.4 with SMTP id v4mr3198669qbd; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Received: by 10.65.23.15 with HTTP; Mon, 26 Jun 2006 20:15:55 -0700 (PDT) Message-ID: Date: Tue, 27 Jun 2006 08:45:55 +0530 From: "Lalit Kumar" To: gtk-list@gnome.org Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.162 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.162 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 03:15:58 -0000 Hi All, I am facing problem with gdk_font_load method in my application. It returns NULL. I am using gtk-2.0 on Redhat Enterprise WS 4. Can anybody help me to resolve this proble? Help says that gdk_font_load is depricated. What is the name of new equivalent method? Thanx in advance, -- Bye, Lalit Kumar Pune On 6/26/06, gtk-list-request@gnome.org wrote: > Send gtk-list mailing list submissions to > gtk-list@gnome.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.gnome.org/mailman/listinfo/gtk-list > or, via email, send a message with subject or body 'help' to > gtk-list-request@gnome.org > > You can reach the person managing the list at > gtk-list-owner@gnome.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gtk-list digest..." > > > Today's Topics: > > 1. Re: Drawing images ( with transparency ) one on another (lao wb) > 2. CYGWIN and GTK (carmelo gallucci) > 3. Re: CYGWIN and GTK (Tor Lillqvist) > 4. save copy of gtktextbuffer (Marko Ivancic) > 5. Re: GTK performance on Windows (Clemens Eisserer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Jun 2006 11:23:31 +0800 > From: "lao wb" > Subject: Re: Drawing images ( with transparency ) one on another > To: " David Ne?as (Yeti) " > Cc: gtk-list@gnome.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-2" > > Hi, > I need do this too but have not succeeded yet. I try to use > gdk_draw_pixbuf and gdk_pixbuf_composite in expose event handler, but it > still doesn't work. I really need help to make my test code work. > > Laowb > > #include > #define STD_WIDTH 680 > #define STD_HEIGHT 480 > > static GdkPixbuf * s_basePix; > static GdkPixbuf * s_homeMenuPix; > > gboolean on_expose(GtkWidget * widget, > GdkEventExpose * ps, > gpointer data) > { > gdk_pixbuf_composite(s_homeMenuPix, > s_basePix, 0, 0, STD_WIDTH, STD_HEIGHT, 0, 0, 0, 0, > GDK_INTERP_NEAREST, 0); > > gdk_draw_pixbuf(widget->window, widget->style->bg_gc[GTK_STATE_NORMAL], > s_homeMenuPix, 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT, > GDK_RGB_DITHER_NORMAL, > 0, 0); > return FALSE; > } > > > int main(int argc, char * argv[]) > { > GtkWidget * mainWnd = NULL; > GdkDrawable * pixMap = NULL; > GtkWidget * img = NULL; > GtkWidget * box = NULL; > GtkWidget * button = NULL; > GtkAdjustment * vadj = NULL; > GtkAdjustment * hadj = NULL; > GdkBitmap * msk = NULL; > GdkBitmap * homeMenu = NULL; > > gtk_init(&argc, &argv); > > mainWnd = gtk_window_new(GTK_WINDOW_TOPLEVEL); > > gtk_window_set_title(GTK_WINDOW(mainWnd), "test draw...\n"); > > gtk_signal_connect(GTK_OBJECT(mainWnd), "destroy", gtk_main_quit, NULL); > > img = gtk_image_new(); > gtk_container_add(GTK_CONTAINER(mainWnd), img); > gtk_signal_connect(GTK_OBJECT(img), > "expose-event", > GTK_SIGNAL_FUNC(on_expose), > NULL); > > gtk_container_set_border_width(GTK_CONTAINER(mainWnd), 5); > > gtk_widget_show_all(mainWnd); > > homeMenu = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/homemenu.bmp"); /* alpha > channel bitmap*/ > s_homeMenuPix = > gdk_pixbuf_get_from_drawable(s_homeMenuPix, > homeMenu, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > pixMap = gdk_pixmap_create_from_xpm(mainWnd->window, > &msk, > > &mainWnd->style->bg[GTK_STATE_NORMAL], > "f:/Sunset.bmp"); /* no alpha > channel bitmap*/ > s_basePix = > gdk_pixbuf_get_from_drawable(s_basePix, > pixMap, > gdk_colormap_get_system(), > 0, 0, 0, 0, > STD_WIDTH, > STD_HEIGHT); > > gtk_main(); > > return 0; > } > > 2006/6/19, David Ne?as (Yeti) : > > > > On Mon, Jun 19, 2006 at 11:35:09AM +0200, hm wrote: > > > > > > I`ve got a problem. I`ve got two separate images. One is background > > for the secondone. Secondone is partially transparent. There is also table. > > Question is : how to draw in one of the table`s cells the backgraound, and > > on this background ( as a second layer ) second image (transparent) ? I > > know ( of course ) how to create images, tables. > > > > Either use gdk_draw_pixbuf() if the correct order (first > > base, then the one with alpha channel) in expose event > > handler, or use gdk_pixbuf_composite() and draw the final > > image. > > > > Yeti > > > > > > -- > > Anonyms eat their boogers. > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: /archives/gtk-list/attachments/20060626/bc9fc384/attachment.htm > > ------------------------------ > > Message: 2 > Date: Mon, 26 Jun 2006 14:02:02 +0200 > From: "carmelo gallucci" > Subject: CYGWIN and GTK > To: > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > I'm doing porting f my gtk application on win2000/Xp using CYGWIN. My > application also use SDL and i want to enable SDL hacking to encapsulate > it on a gtk window. My gtk application run pefectly. I can show widget > and use it. My problem is that i cannot get this code to work (it work > perfectly under linux): > > sprintf(SDL_windowhack,"SDL_WINDOWID=%ld",GDK_WINDOW_XWINDOW(Gtk::Widget > ::gobj()->window)); > > I cannot get WINDOWID. > > When i use the macro GDK_WINDOW_XWINDOW i get the following error: > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): GLib-GObject-CRITICAL **: > /instsoft/gnome/platform/glib-2.6.6/go > bject/gtype.c:2254: initialization assertion failed, use g_type_init() > prior to this function > > (process:1928): Gdk-WARNING **: > /instsoft/gnome/platform/gtk+-2.6.10/gdk/x11/gdk > drawable-x11.c:971 drawable is not a pixmap or window > > What's the problem? Anyone know where the problem is? > > Thanks. > > Carmelo Gallucci > > > > ------------------------------ > > Message: 3 > Date: Mon, 26 Jun 2006 17:18:57 +0300 > From: Tor Lillqvist > Subject: Re: CYGWIN and GTK > To: "carmelo gallucci" > Cc: gtk-list@gnome.org > Message-ID: <17567.60625.324000.832379@gargle.gargle.HOWL> > Content-Type: text/plain; charset=us-ascii > > carmelo gallucci writes: > > What's the problem? Anyone know where the problem is? > > Well, firstly you are using an unmaintained version of GTK+ (2.6.x). > > Secondly, are you sure what you are doing makes sense? You are using a > GTK+ built for X11 on Cygwin. I don't know anything about SDL, is the > SDL you are using also for X11 on Cygwin? Or are you trying to use a > SDL that would use native Win32 (GDI) together with a GTK+ built for > X11? Surely that can't work. > > --tml > > > > ------------------------------ > > Message: 4 > Date: Mon, 26 Jun 2006 16:47:57 +0200 > From: Marko Ivancic > Subject: save copy of gtktextbuffer > To: gtk-list@gnome.org > Message-ID: <449FF39D.6080201@ultra.si> > Content-Type: text/plain; charset=ISO-8859-2; format=flowed > > Hi. > > Is there any way to save a GtkTextBuffer (I mean the context of this > buffer including pixbufs and other embedet widgets) into another > GtkTextBuffer instance ?? > > Tnx, > By > Marko I. > > > > ------------------------------ > > Message: 5 > Date: Mon, 26 Jun 2006 16:53:29 +0200 > From: "Clemens Eisserer" > Subject: Re: GTK performance on Windows > To: gtk-list@gnome.org > Message-ID: > <194f62550606260753v768eeeccv7a67ccf2973c683f@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I played a bit and found something which could be considered as "slow": > > Open the configuration dialog of gimp and move another window on top of it. > This spikes cpu useage to 80-90% on an AMD Athlon XP 2000+, while you > can still see a ~4mm repaint lag. > > I wonder wether this could also be caused because of inefficient > double buffering ... time will show. > > lg Clemens > > 2006/6/23, Clemens Eisserer : > > First of all thanks a lot for doing that much work porting GTK to windows. > > I can't count how many apps I've used myself on windows-pcs which were > > able to run because of your work. > > > > > If one would ask specific question like "I draw 100000 line segments > > > with separate gdk_draw_line() calls, and it's too slow on Win32" one > > > might get better help. > > > > I installed gimp on some win-xp computers in the company I work for > > (sempron 1,6ghz or so) and also saw some kind of slow behaviour. These > > are very much the issues I have on linux but more "visible". Its the > > UI, menus, window resizing, layout changes or repaint-events sent to > > the window because its content was invalidated. > > I can't say wether its really slow or just feels so, maybe the graphic > > card driver had an influence (nvidia gf4 mx4000) or some other > > circumstances were not optimal. > > I simply never did care that much simply because I don't use/like this planform. > > > > Its just hard to know whats going wrong, especially if someone is no > > gtk insider. > > > > lg Clemens > > > > > ------------------------------ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > End of gtk-list Digest, Vol 26, Issue 37 > **************************************** > From paul@linuxaudiosystems.com Tue Jun 27 09:30:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 168BD3B00AD for ; Tue, 27 Jun 2006 09:30:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31194-03 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id 1FD8D3B0084 for ; Tue, 27 Jun 2006 09:30:20 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1I00ERKTHNOOQ4@vms044.mailsrvcs.net> for gtk-list@gnome.org; Tue, 27 Jun 2006 08:29:48 -0500 (CDT) Date: Tue, 27 Jun 2006 09:30:19 -0400 From: Paul Davis Subject: Re: gtk-list Digest, Vol 26, Issue 37 In-reply-to: To: Lalit Kumar Message-id: <1151415019.28727.41.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, TW_GD=0.077, TW_GT=0.077] X-Spam-Score: -2.476 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 13:30:21 -0000 On Tue, 2006-06-27 at 08:45 +0530, Lalit Kumar wrote: > Hi All, > > I am facing problem with gdk_font_load method in my application. It > returns NULL. > > I am using gtk-2.0 on Redhat Enterprise WS 4. > > Can anybody help me to resolve this proble? > Help says that gdk_font_load is depricated. What is the name of new > equivalent method? a) please do NOT quote an entire digest message just so you can ask a new question. b) please change the subject line when you ask a new question c) there really is no equivalent method. what are you trying to do? explicit font loading is rarely necessary now that GTK uses pango (and has done for at least 2 years. From linuxhippy@gmail.com Wed Jun 28 16:21:19 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 121493B037B for ; Wed, 28 Jun 2006 16:21:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32231-05 for ; Wed, 28 Jun 2006 16:20:47 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.207]) by menubar.gnome.org (Postfix) with ESMTP id 52F463B0515 for ; Wed, 28 Jun 2006 16:19:03 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so1405343hue for ; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr717001hue; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Wed, 28 Jun 2006 13:18:54 -0700 (PDT) Message-ID: <194f62550606281318k48b71f34kd98baccbcef314bb@mail.gmail.com> Date: Wed, 28 Jun 2006 22:18:54 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Re: Scrolling performance In-Reply-To: <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <194f62550606200626ub0395fey60f8527f32fed7b4@mail.gmail.com> <200606201931.k5KJVPU2012082@turing-police.cc.vt.edu> <194f62550606201321u7130d9fen85e51f7e2d654f94@mail.gmail.com> <200606202130.k5KLUJKk016876@turing-police.cc.vt.edu> <194f62550606201541q78f52dd3ib724feb902fae2fd@mail.gmail.com> <200606202343.k5KNhQN3004405@turing-police.cc.vt.edu> <194f62550606240327v45d84315mf0c6f7ca3e2bd17a@mail.gmail.com> <522c6460606251102o60be7467w7e9197b18493f75f@mail.gmail.com> <194f62550606251354u573e5421ud7329c99acc89d94@mail.gmail.com> <522c6460606260841l7bf5d92cr880a39311b9c5163@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.111 tagged_above=-999 required=2 tests=[AWL=-0.346, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.111 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 20:21:19 -0000 Hi again, Thanks a lot for all the hints about gdk, I know found the source-parts which I looked for and thanks to the paper I even understand what they are doing :-) I thought about some techniques about implementing buffer release heuristics, however they destroy the benefit to smoe degree and have some overhead too. However I realized that the memory-consumption scenario is not _such_ a big problem. If you only hold the backbuffer only as long as the window is visible and release it the whole situation is much better because more than 2-3 open full-screen windows are unlikely and 16mb VRAM are ... well ... much more than default. I guess parsing an enviroment-variable or such to enable/disable the caching behaviour wouldn't be a bad idea? lg Clemens 2006/6/26, John Cupitt : > On 6/25/06, Clemens Eisserer wrote: > > When I maximize the window and resize the panes I get very slow > > resizing, however when setting all involved widgets unbuffered > > resizing is fast (but painting is done with artifacts). > > I think the artifacts are because, with double-buffering turned off, > expose events do not get an automatic clear-to-background. There's a > note about this in the entry for gtk_widget_set_double_buffered(): > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id4004696 > > I'm not a gtk-internals expert and I can't really see a good solution > to this. The possibilities I can see are: > > 1) Provide an option to disable double buffering for all widgets > > You could hack into gdk_window_begin_paint_region() and add a new code path: > > http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#id3232356 > > something like > > if (global_no_double_buffer) > clear expose area to background > > might be enough. > > Repainting would be fast but flickery and incredibly ugly. People with > older machines and nvidia hardware acceleration would see an FPS > improvement, but their eyes would be watering. > > 2) Use nvidia's pixmap placement hint > > I think this would require a new driver from nvidia and changes to the > X server to make the option accessible. Not going to happen any time > soon. > > 3) Persuade nvidia to change their pixmap caching policy > > It seems to me that their policy is broken. If an app creates a > pixmap, you'd expect it to be used soon. Making new pixmaps default to > slow memory is rather odd. > > But I guess they've done a lot of profiling (of non-GTK apps, heh) and > like it the way it is. > > 4) Have a single expose pixmap > > You could allocate a single large expose pixmap (maybe as big as the > enclosing window?) and reuse that, with clipping, rather than creating > and destroying a new pixmap each time. > > gdk_window_begin_paint_region() actually maintains a stack of pending > pixmaps, though I've no idea how often the stack feature is used. > Perhaps you could get away with having a single permanent expose > pixmap, and dynamically create and destroy sub-pixmaps if the stack > starts working. If the stack is used infrequently maybe this would > work OK. > > This would chew up graphics card memory :-( and main memory for > software drivers :-( and small-footprint people would hate it. My > machine has 10 virtual desktops, each is 1920x1200 (so about 10MB), if > each screen is 50% covered in gtk2 apps, this change will make my X > server need an extra 50MB of RAM. Ouch! > > Maybe there could be a timeout to free the backing pixmap if it's not > used for a couple of seconds. > > John > From felipe.weckx@gmail.com Wed Jun 28 18:40:29 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 747D83B00EC for ; Wed, 28 Jun 2006 18:40:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05443-08 for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by menubar.gnome.org (Postfix) with ESMTP id 4090F3B007D for ; Wed, 28 Jun 2006 18:40:28 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id s15so144297wxc for ; Wed, 28 Jun 2006 15:40:06 -0700 (PDT) Received: by 10.70.92.2 with SMTP id p2mr2110412wxb; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Received: from c9007af8.virtua.com.br ( [201.52.122.248]) by mx.gmail.com with ESMTP id i17sm7634039wxd.2006.06.28.15.40.04; Wed, 28 Jun 2006 15:40:05 -0700 (PDT) Subject: Set pane position on application startup From: Felipe Weckx To: gtk-list@gnome.org Content-Type: text/plain Date: Wed, 28 Jun 2006 19:40:00 -0300 Message-Id: <1151534400.6517.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.4 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -2.4 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 22:40:29 -0000 Hi everyone, I've an application that saves the pane gutter position when it finishes, so when it is started it can set the position where it was previously. However, when I start the application the gutter doesn't go where I want to... but, if I call the procedure after the app is running, it goes to the right place, I've tried running this function through g_idle_add on the main program, but it doesn't work either... any ideas? -- []'s Felipe Weckx From nc-gaertnma@netcologne.de Wed Jun 28 19:31:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9E3D53B00F3 for ; Wed, 28 Jun 2006 19:31:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07544-07 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from smtp3.netcologne.de (smtp3.netcologne.de [194.8.194.66]) by menubar.gnome.org (Postfix) with ESMTP id 9E74B3B01D5 for ; Wed, 28 Jun 2006 19:31:07 -0400 (EDT) Received: from limapholos.matom.wg (xdsl-81-173-182-178.netcologne.de [81.173.182.178]) by smtp3.netcologne.de (Postfix) with ESMTP id D822567384 for ; Thu, 29 Jun 2006 01:31:03 +0200 (CEST) Date: Thu, 29 Jun 2006 01:31:03 +0200 From: Mattias Gaertner To: gtk-list@gnome.org Subject: iconify and iconify Message-ID: <20060629013103.74081832@limapholos.matom.wg> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.928 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_WEB=1.456, TW_GT=0.077] X-Spam-Score: 0.928 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 23:31:08 -0000 Hi all, When the user iconifies a window and/or when the user switches to another desktop, the gtk sends the 'window-state-event' signal with GDK_WINDOW_STATE_ICONIFIED. How can I find out, which one happened? Mattias From Yandong.Yao@Sun.COM Thu Jun 29 02:53:51 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 169923B0071 for ; Thu, 29 Jun 2006 02:53:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23618-05 for ; Thu, 29 Jun 2006 02:53:47 -0400 (EDT) Received: from sineb-mail-1.sun.com (sineb-mail-1.sun.com [192.18.19.6]) by menubar.gnome.org (Postfix) with ESMTP id 741C93B0206 for ; Thu, 29 Jun 2006 02:53:46 -0400 (EDT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k5T6rh8l019095 for ; Thu, 29 Jun 2006 14:53:44 +0800 (SGT) Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J1M00A010EONK00@mail-apac.sun.com> (original mail from Yandong.Yao@Sun.COM) for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Received: from [129.158.148.217] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J1M002H60HIM4OO@mail-apac.sun.com> for gtk-list@gnome.org; Thu, 29 Jun 2006 14:53:43 +0800 (SGT) Date: Thu, 29 Jun 2006 14:55:08 +0800 From: "yandong.yao" Subject: does g_utf8_collate() need check whether its parameter is utf8 or not? Sender: Yandong.Yao@Sun.COM To: gtk-list@gnome.org Message-id: <44A3794C.7070207@sun.com> Organization: SMI MIME-version: 1.0 Content-type: text/plain; charset=GB2312 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.4 (X11/20060613) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.549 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.549 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Yandong.Yao@Sun.COM List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:53:51 -0000 Hi guys, If i ask in wrong alias, please forgive me and forward to correct alias, thank you. The document of g_utf8_collate() require its parameters should be utf-8 encoded, but it did not check this in function body, so g_utf8_normalize() may return NULL for non-utf8 string, thus strcoll() will crash. I have met such problem for several time on opensolaris. So we need check at somewhere, 3 candidate: 1) check parameter in strcoll(): but because different c lib has diff implementation, so i guess it is not a good place to avoid this problem. 2) check parameter in g_utf8_* function: check parameter in this level will sensible, but it will result in a few check statement in g_utf8_* functions. 3) check in caller of g_utf8_*, this is ok also, but need every developer to do this. i prefer 2), cause it will reduce lots of developer's work, and the cost is little also. any comments or suggestions are welcome, thank you in advance. regards, yandong From linuxhippy@gmail.com Thu Jun 29 13:48:52 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1CC2F3B010F for ; Thu, 29 Jun 2006 13:48:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31768-05 for ; Thu, 29 Jun 2006 13:48:51 -0400 (EDT) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.196]) by menubar.gnome.org (Postfix) with ESMTP id C6A213B00D4 for ; Thu, 29 Jun 2006 13:48:50 -0400 (EDT) Received: by hu-out-0102.google.com with SMTP id 35so144861hue for ; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.164.13 with SMTP id m13mr1091961hue; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Received: by 10.78.24.18 with HTTP; Thu, 29 Jun 2006 10:48:49 -0700 (PDT) Message-ID: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Date: Thu, 29 Jun 2006 19:48:49 +0200 From: "Clemens Eisserer" To: gtk-list@gnome.org Subject: Newbie question about GTKs object model... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.908 tagged_above=-999 required=2 tests=[AWL=0.492, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, SPF_PASS=-0.001] X-Spam-Score: -1.908 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:48:52 -0000 Sorry for such a stupid question ... shame on myself for asking it :-/ I looked arround GdkWindow.h/c bit and actually did not find the definition of the type "GdkWindow", instead I only found the definition of _GdkWindowObject which looks quite like I imagine GdkWindow could look like. So where/how does a GdkWindowObject become to an GdkWindow or do I understand some things completly wrong? btw. yes I did read some docs about Glib's object model ;) Thank you in advance, lg Clemens From RMain@gmx.de Thu Jun 29 13:56:14 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7050A3B00AE for ; Thu, 29 Jun 2006 13:56:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32350-01 for ; Thu, 29 Jun 2006 13:56:12 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id B6A873B027E for ; Thu, 29 Jun 2006 13:56:11 -0400 (EDT) Received: (qmail 2526 invoked by uid 0); 29 Jun 2006 17:56:10 -0000 Received: from 89.57.94.28 by www018.gmx.net with HTTP; Thu, 29 Jun 2006 19:56:10 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Thu, 29 Jun 2006 19:56:10 +0200 From: "Robert Main" Message-ID: <20060629175610.156930@gmx.net> MIME-Version: 1.0 Subject: Problem with compiling To: gtk-list@gnome.org X-Authenticated: #31472207 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.465 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.465 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 17:56:14 -0000 Hi, need to compile GTK+ 1.2 to use it with MPlayer. The problem is: I'm on windows, I need a makefile, but how/where is one? There is makefile.am|in, but cant use that. I also cant run configure, windows and so... friend said i should download this library and that and all that and maybe it would work, but thats so much for just this purpose! ... is there a simple and easy way? I know there are binaries in the latest GTK+, but I dont know if i can use that... the same problem is with glib, also cant compile because i cant run configure hope you can help me :-) -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f黵 Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From yeti@physics.muni.cz Thu Jun 29 14:26:45 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC7EE3B016C for ; Thu, 29 Jun 2006 14:26:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01572-02 for ; Thu, 29 Jun 2006 14:26:40 -0400 (EDT) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 4E5DC3B00AE for ; Thu, 29 Jun 2006 14:26:39 -0400 (EDT) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.5.20060308/8.13.4/Debian-3) with ESMTP id k5TIQb1N025861 for ; Thu, 29 Jun 2006 20:26:38 +0200 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 50CC323D59; Thu, 29 Jun 2006 20:26:37 +0200 (CEST) Date: Thu, 29 Jun 2006 20:26:41 +0200 From: David =?iso-8859-2?B?TmXoYXMgKFlldGkp?= To: gtk-list@gnome.org Subject: Re: Newbie question about GTKs object model... Message-ID: <20060629182641.GA2296@potato.chello.upc.cz> References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.556 tagged_above=-999 required=2 tests=[AWL=0.043, BAYES_00=-2.599] X-Spam-Score: -2.556 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 18:26:45 -0000 On Thu, Jun 29, 2006 at 07:48:49PM +0200, Clemens Eisserer wrote: > Sorry for such a stupid question ... shame on myself for asking it :-/ > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow" You could easily find it using ctags: Run `ctags *' in gdk/ and then press ^] when you have cursor on GdkWindow -- assuming you use vim. > instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? GdkWindow is defined in gdktypes.h: typedef struct _GdkDrawable GdkWindow; and GdkWindowObject has GdkDrawable as a *parent*. The net result is that GdkWindowObject is a GdkWindow which is the same as GdkDrawable. Yeti -- Anonyms eat their boogers. From christianseberino@yahoo.com Thu Jun 29 15:04:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5EC873B00AE for ; Thu, 29 Jun 2006 15:04:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03543-07 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: from web37611.mail.mud.yahoo.com (web37611.mail.mud.yahoo.com [209.191.87.94]) by menubar.gnome.org (Postfix) with SMTP id 446233B0120 for ; Thu, 29 Jun 2006 15:04:00 -0400 (EDT) Received: (qmail 96171 invoked by uid 60001); 29 Jun 2006 19:03:59 -0000 Message-ID: <20060629190359.96169.qmail@web37611.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37611.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:03:59 PDT Date: Thu, 29 Jun 2006 12:03:59 -0700 (PDT) From: Christian Seberino Subject: What does *gnome integration" mean for a GTK app? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1939649571-1151607839=:91636" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.273 tagged_above=-999 required=2 tests=[AWL=-1.288, BAYES_50=0.001, BE_BOSS=1.539, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: 2.273 X-Spam-Level: ** X-Spam-Flag: YES X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:04:01 -0000 --0-1939649571-1151607839=:91636 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME? and... What does "GNOME integration" buy you? Please give examples? Is there some extra work one must do to get this "integration" in their GTK app? (I'm wondering if wxGTK apps will work with GNOME) Chris --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do all GTK apps integrate equally well together and with GNOME?

and...

What does "GNOME integration" buy you?  Please give examples?


Is there some extra work one must do to get this "integration"
in their GTK app?

(I'm wondering if wxGTK apps will work with GNOME)

Chris


Want to be your own boss? Learn how on Yahoo! Small Business. --0-1939649571-1151607839=:91636-- From christianseberino@yahoo.com Thu Jun 29 15:05:55 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B45013B0003 for ; Thu, 29 Jun 2006 15:05:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03609-10 for ; Thu, 29 Jun 2006 15:05:54 -0400 (EDT) Received: from web37610.mail.mud.yahoo.com (web37610.mail.mud.yahoo.com [209.191.87.93]) by menubar.gnome.org (Postfix) with SMTP id CEAD03B00A4 for ; Thu, 29 Jun 2006 15:05:53 -0400 (EDT) Received: (qmail 42338 invoked by uid 60001); 29 Jun 2006 19:05:53 -0000 Message-ID: <20060629190553.42336.qmail@web37610.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37610.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:05:53 PDT Date: Thu, 29 Jun 2006 12:05:53 -0700 (PDT) From: Christian Seberino Subject: Do wx apps lose any (GNOME) integration abilitlies of "pure" GTK apps? To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2050439885-1151607953=:41127" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.742 tagged_above=-999 required=2 tests=[AWL=-0.907, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_MESSAGE=0.001] X-Spam-Score: 0.742 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:05:55 -0000 --0-2050439885-1151607953=:41127 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps? e.g. with GNOME and with other GTK apps? (I sent another email about what benefits there are to integration as I'm not sure.) I don't know if there any bad things about using wx with GTK under the hood. Chris --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Do wx apps lose any integration abilitlies of pure GTK apps?
e.g. with GNOME and with other GTK apps?

(I sent another email about what benefits there are to integration
as I'm not sure.)

I don't know if there any bad things about using wx with GTK under the
hood.

Chris


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta. --0-2050439885-1151607953=:41127-- From christianseberino@yahoo.com Thu Jun 29 15:09:01 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 777823B00AE for ; Thu, 29 Jun 2006 15:09:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03693-08 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: from web37603.mail.mud.yahoo.com (web37603.mail.mud.yahoo.com [209.191.87.86]) by menubar.gnome.org (Postfix) with SMTP id 9717A3B00A4 for ; Thu, 29 Jun 2006 15:09:00 -0400 (EDT) Received: (qmail 26717 invoked by uid 60001); 29 Jun 2006 19:08:59 -0000 Message-ID: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> Received: from [72.132.242.171] by web37603.mail.mud.yahoo.com via HTTP; Thu, 29 Jun 2006 12:08:59 PDT Date: Thu, 29 Jun 2006 12:08:59 -0700 (PDT) From: Christian Seberino Subject: Any reason to worry about using wx? (but it uses GTK!?! :) To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1343824353-1151608139=:24277" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.122 tagged_above=-999 required=2 tests=[AWL=-2.190, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_30_40=0.374, HTML_MESSAGE=0.001, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514] X-Spam-Score: 1.122 X-Spam-Level: * X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 19:09:01 -0000 --0-1343824353-1151608139=:24277 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux. Can anyone see any problems //down the road// with using wx as far as losing benefits a pure GTK app would have? Thanks Chris --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit wx uses GTK under the hood...at least on Unix and Linux.

Can anyone see any problems //down the road// with using wx as far
as losing benefits a pure GTK app would have?

Thanks

Chris


Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --0-1343824353-1151608139=:24277-- From einKI.ml@gmx.net Thu Jun 29 17:14:17 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A16FC3B0285 for ; Thu, 29 Jun 2006 17:14:17 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09269-06 for ; Thu, 29 Jun 2006 17:14:16 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id 7577E3B018F for ; Thu, 29 Jun 2006 17:14:15 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:14:14 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp019) with SMTP; 29 Jun 2006 23:14:14 +0200 X-Authenticated: #31874521 Subject: Draw directly to the screen From: "einKI.ml" To: gtk-list Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:14:12 +0200 Message-Id: <1151615652.5113.18.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.456 tagged_above=-999 required=2 tests=[AWL=-0.068, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.456 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:14:17 -0000 Hi My goal is to draw a line directly to the screen using gdk. "To the screen" means that it should be visible for the user over any other window. I thin i have to use the root window to accomplish this int main( int argc,char *argv[] ) { gtk_init (&argc, &argv); GdkWindow* rw = gdk_get_default_root_window(); GdkGC* gc = gdk_gc_new(rw); gdk_draw_line(rw,gc,10,10,500,500); gdk_flush(); gtk_main (); return 0; } However i dont see anything. I only can see the line if i shut down the x-server. So I believe i only draw to the background even behind nautilus. This seems logically but I cant find any other method to draw directly to the screen. If anyone has done this before or know how to do it I appreciate any help by einKI From paul@linuxaudiosystems.com Thu Jun 29 17:22:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EBB533B007B for ; Thu, 29 Jun 2006 17:22:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09674-01 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id C875B3B0198 for ; Thu, 29 Jun 2006 17:22:32 -0400 (EDT) Received: from dual ([151.197.168.248]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J1N00CZL4PFXGPC@vms044.mailsrvcs.net> for gtk-list@gnome.org; Thu, 29 Jun 2006 16:22:28 -0500 (CDT) Date: Thu, 29 Jun 2006 17:22:58 -0400 From: Paul Davis Subject: Re: Draw directly to the screen In-reply-to: <1151615652.5113.18.camel@localhost> To: einKI.ml@gmx.net Message-id: <1151616178.28727.116.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1151615652.5113.18.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.55 tagged_above=-999 required=2 tests=[AWL=0.049, BAYES_00=-2.599] X-Spam-Score: -2.55 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:22:34 -0000 On Thu, 2006-06-29 at 23:14 +0200, einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. i suggest you look for the little app called "gromit" for ideas. From king@eiffel.com Thu Jun 29 17:26:50 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC5C53B0273 for ; Thu, 29 Jun 2006 17:26:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09893-02 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from smtp.eiffel.com (smtp.eiffel.com [65.170.180.5]) by menubar.gnome.org (Postfix) with ESMTP id A79583B0198 for ; Thu, 29 Jun 2006 17:26:48 -0400 (EDT) Received: from ise171.ise ([10.0.10.171]) by smtp.eiffel.com with esmtp (Exim 4.01) id 1Fw42B-0004qX-00; Thu, 29 Jun 2006 14:26:47 -0700 Message-ID: <44A44597.9030902@eiffel.com> Date: Thu, 29 Jun 2006 14:26:47 -0700 From: Ian King User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: einKI.ml@gmx.net Subject: Re: Draw directly to the screen References: <1151615652.5113.18.camel@localhost> In-Reply-To: <1151615652.5113.18.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[AWL=0.053, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.469 X-Spam-Level: Cc: gtk-list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:26:50 -0000 If you add the line gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); after you create the gc, then it should draw over all child windows. Regards, Ian King Eiffel Software einKI.ml wrote: > Hi > > My goal is to draw a line directly to the screen using gdk. "To the > screen" means that it should be visible for the user over any other > window. > > I thin i have to use the root window to accomplish this > > int main( int argc,char *argv[] ) > { > gtk_init (&argc, &argv); > > GdkWindow* rw = gdk_get_default_root_window(); > GdkGC* gc = gdk_gc_new(rw); > gdk_draw_line(rw,gc,10,10,500,500); > > gdk_flush(); > > gtk_main (); > return 0; > } > > However i dont see anything. I only can see the line if i shut down the > x-server. So I believe i only draw to the background even behind > nautilus. This seems logically but I cant find any other method to draw > directly to the screen. > > If anyone has done this before or know how to do it I appreciate any > help > by > einKI > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > > From einKI.ml@gmx.net Thu Jun 29 17:40:32 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C2FF3B013E for ; Thu, 29 Jun 2006 17:40:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10413-05 for ; Thu, 29 Jun 2006 17:40:31 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by menubar.gnome.org (Postfix) with SMTP id BE9303B0120 for ; Thu, 29 Jun 2006 17:40:30 -0400 (EDT) Received: (qmail invoked by alias); 29 Jun 2006 21:40:29 -0000 Received: from M320P020.adsl.highway.telekom.at (EHLO [192.168.0.9]) [62.47.207.244] by mail.gmx.net (mp035) with SMTP; 29 Jun 2006 23:40:29 +0200 X-Authenticated: #31874521 Subject: Re: Re: Draw directly to the screen From: "einKI.ml" To: gtk-list In-Reply-To: <44A44597.9030902@eiffel.com> References: <1151615652.5113.18.camel@localhost> <44A44597.9030902@eiffel.com> Content-Type: text/plain Organization: na Date: Thu, 29 Jun 2006 23:40:28 +0200 Message-Id: <1151617228.5113.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.5 tagged_above=-999 required=2 tests=[AWL=0.100, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.5 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: einKI.ml@gmx.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 21:40:32 -0000 Hi > If you add the line > gdk_gc_set_subwindow (gc, GDK_INCLUDE_INFERIORS); > after you create the gc, then it should draw over all child windows. thx works perfect! I think i never figured this out alone from the reference but now its clear. > i suggest you look for the little app called "gromit" for ideas. seems a good starting point thy you too by From esodan@gmail.com Thu Jun 29 18:53:34 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 70A2A3B00AC for ; Thu, 29 Jun 2006 18:53:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13109-09 for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by menubar.gnome.org (Postfix) with ESMTP id 2822F3B000D for ; Thu, 29 Jun 2006 18:53:33 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so628092uge for ; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.224.19 with SMTP id w19mr727175ugg; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Received: by 10.66.233.12 with HTTP; Thu, 29 Jun 2006 15:53:31 -0700 (PDT) Message-ID: <144160610606291553u37f4a830l7012f094d4db4cb3@mail.gmail.com> Date: Thu, 29 Jun 2006 17:53:31 -0500 From: "Daniel Espinosa" To: "Clemens Eisserer" Subject: Re: Newbie question about GTKs object model... In-Reply-To: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9631_30011709.1151621611867" References: <194f62550606291048i4d3e58afx51f106173379a7dc@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=-0.174, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.122 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 22:53:34 -0000 ------=_Part_9631_30011709.1151621611867 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2006/6/29, Clemens Eisserer : > > Sorry for such a stupid question ... shame on myself for asking it :-/ > > I looked arround GdkWindow.h/c bit and actually did not find the > definition of the type "GdkWindow", instead I only found the > definition of _GdkWindowObject which looks quite like I imagine > GdkWindow could look like. > So where/how does a GdkWindowObject become to an GdkWindow or do I > understand some things completly wrong? btw. yes I did read some docs > about Glib's object model ;) > > Thank you in advance, lg Clemens > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Why do you need GdkWindow? If you only need to create a window, don't worry about GdkWindow, is internaly managed by a GtkWindow object. --=20 Trabajar, la mejor arma para tu superaci=F3n "de grano en grano, se hace la arena" (R) (entr=E1mite, pero para los cuate= s: LIBRE) ------=_Part_9631_30011709.1151621611867 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

2006/6/29, Clemens Eisserer <linuxhippy@gmail.com>:<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Sorry for such a stupid question ... shame on myself for asking it :-/
<= br>I looked arround GdkWindow.h/c  bit and actually did not find = the
definition of the type "GdkWindow", instead I only found t= he
definition of _GdkWindowObject which looks quite like I imagine
GdkWindo= w could look like.
So where/how does a GdkWindowObject become to an GdkW= indow or do I
understand some things completly wrong? btw. yes I did rea= d some docs
about Glib's object model ;)

Thank you in advance, lg Clemens_______________________________________________
gtk-list mailing listgtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
<= br>Why do you need GdkWindow?

If you only need to create a window, d= on't worry about GdkWindow, is internaly managed by a GtkWindow object.

--
Trabajar, la mejor arma para tu superaci=F3n"de grano en grano, se hace la arena" (R) (entr=E1mite, pero pa= ra los cuates: LIBRE) ------=_Part_9631_30011709.1151621611867-- From sylvia.lopez@obs.u-bordeaux1.fr Fri Jun 30 04:10:38 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDF3B3B0219 for ; Fri, 30 Jun 2006 04:10:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03249-10 for ; Fri, 30 Jun 2006 04:10:34 -0400 (EDT) Received: from alienor.obs.u-bordeaux1.fr (alienor.obs.u-bordeaux1.fr [147.210.44.5]) by menubar.gnome.org (Postfix) with ESMTP id 3307D3B0108 for ; Fri, 30 Jun 2006 04:10:33 -0400 (EDT) Received: from [147.210.44.54] (pclopez.obs.u-bordeaux1.fr [147.210.44.54]) by alienor.obs.u-bordeaux1.fr (8.13.6/alienor) with ESMTP id k5U8ATeb002417 for ; Fri, 30 Jun 2006 10:10:29 +0200 Message-ID: <44A4DC4F.6050103@obs.u-bordeaux1.fr> Date: Fri, 30 Jun 2006 10:09:51 +0200 From: Sylvia Lopez User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk image drawing Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at alienor.obs.u-bordeaux1.fr with ID 44A4DC75.000 by Joe's j-chkmail (17-05-06)! X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.74 tagged_above=-999 required=2 tests=[BAYES_20=-0.74] X-Spam-Score: -0.74 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 08:10:38 -0000 Hello, first, sorry for my english. my answer : i have to create an gtk+ interface who can display an image, zoom, get the x y and value of the pixel (on mouse over), and select a region (rectangle). For the image i had used GtkImage but whe can't draw (?) I had tryed to use GtkDrawingArea, I'm reading docs since days and days, I think there is something that I don't understand for instance (maybe it's so simple ? ;-) ) Can you tell me witch widget I have to use and how can I do that. Thank you for your help syl From mekstran@scl.ameslab.gov Fri Jun 30 09:24:53 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A16B93B028E for ; Fri, 30 Jun 2006 09:24:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21926-05 for ; Fri, 30 Jun 2006 09:24:52 -0400 (EDT) Received: from mail.scl.ameslab.gov (mail.scl.ameslab.gov [147.155.137.19]) by menubar.gnome.org (Postfix) with ESMTP id 87F563B0108 for ; Fri, 30 Jun 2006 09:24:52 -0400 (EDT) Received: from [147.155.137.53] (erg.scl.ameslab.gov [::ffff:147.155.137.53]) by mail.scl.ameslab.gov with esmtp; Fri, 30 Jun 2006 08:24:51 -0500 id 000538B0.44A52623.00004980 In-Reply-To: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> References: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <39eea0d52365fbbe332ff511a3629c34@scl.ameslab.gov> Content-Transfer-Encoding: 7bit From: Michael Ekstrand Subject: Re: Any reason to worry about using wx? (but it uses GTK!?! :) Date: Fri, 30 Jun 2006 08:24:20 -0500 To: Christian Seberino X-Mailer: Apple Mail (2.624) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.87 tagged_above=-999 required=2 tests=[AWL=-0.560, BAYES_00=-2.599, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514] X-Spam-Score: -1.87 X-Spam-Level: Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 13:24:53 -0000 Chris: I'll try to address all three of your mails from yesterday here. On Jun 29, 2006, at 2:08 PM, Christian Seberino wrote: > wx uses GTK under the hood...at least on Unix and Linux. > > Can anyone see any problems //down the road// with using wx as far > as losing benefits a pure GTK app would have? There are two sides to this question, really. One reflected by your previous questions, the issue of integration, and then the other of toolkit niceness. On the integration, I'm not 100% sure. GNOME integration, to me, means providing the appropriate .desktop files so the app shows up in GNOME's menus, using GNOME-style icons, following the HIG (Human Interface Guidelines) as much as possible, potentially using gconf for storing preferences, respecting GNOME's setting for the default web browser and email program, etc. In general, plain GTK apps come close enough that it doesn't matter whether they were specifically for GNOME. Also, lot of that can be accomplished with wx, but not necessarily as easily. And if you're following GNOME HIG, then you aren't following the Windows or Apple UI guidelines very closely (some elements of that wx will handle, but there's a lot that it can't). The other side is toolkit niceness. The benefit a pure GTK+ app has that wxWidgets doesn't is GTK+. GTK+ provides a good selection of expressive, high-level widgets that are capable of fairly incredible behavior out of the box. wxWidgets goes to a lowest-common-denominator, and makes you program these excellent widgets through an API that reeks of Win32 and MFC. I realize this probably isn't what you're asking, but it is a quite pertinent point when it comes to programmer sanity. Where I work, I'm working on a GUI with GTKmm, and some colleagues are working on another program using wx. Their frustration level with getting the widgets to work and do what they want is much higher. Also, wx forces GTK to abandon its native container-based widget layout model (one of GTK+'s huge benefits) in favor of a Windows-like position-and-size model, controlled with size managers. So there's a lost benefit immediately. Down the road? That one still applies as you have to maintain your code. Also, since wxWidgets has a design that makes some assumptions from the Win3.1/Win95 era (in my somewhat limited experience with it through wxPython), it feels like it won't let you easily take advantage of further UI developments as the come very easily. Just my $0.02... - Michael From kyndig@gmail.com Fri Jun 30 13:51:16 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A36463B00C4 for ; Fri, 30 Jun 2006 13:51:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03635-07 for ; Fri, 30 Jun 2006 13:51:16 -0400 (EDT) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by menubar.gnome.org (Postfix) with ESMTP id 937673B007B for ; Fri, 30 Jun 2006 13:51:15 -0400 (EDT) Received: by ug-out-1314.google.com with SMTP id o2so147158uge for ; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Received: by 10.67.101.8 with SMTP id d8mr3329250ugm; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Received: by 10.66.244.6 with HTTP; Fri, 30 Jun 2006 10:51:14 -0700 (PDT) Message-ID: Date: Fri, 30 Jun 2006 13:51:14 -0400 From: "Calvin Ellis" To: gtk-list@gnome.org Subject: midi, wave, mp3 cross platform? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14161_15395746.1151689874340" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.921 tagged_above=-999 required=2 tests=[AWL=-0.806, BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.921 X-Spam-Level: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 17:51:16 -0000 ------=_Part_14161_15395746.1151689874340 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello list, I'm looking for a cross platform library to incorporate into my software application. The application currently takes the commands required to play midi, wave, and mp3 files. Is there a cross platform library which I can bundle with my application? The application currently works on Linux, Windows, and MAC OS X ( with X11 install - can't wait for the native MAC completion! ) Thank you, Calvin ------=_Part_14161_15395746.1151689874340 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello list,

I'm looking for a cross platform library to incorporate into my software application. The application currently takes the commands required to play midi, wave, and mp3 files. Is there a cross platform library which I can bundle with my application? The application currently works on Linux, Windows, and MAC OS X ( with X11 install - can't wait for the native MAC completion! )

Thank you,
Calvin

------=_Part_14161_15395746.1151689874340-- From c_gilbert@verizon.net Sun Jun 25 15:48:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2BF6F3B0018 for ; Sun, 25 Jun 2006 15:48:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27892-08 for ; Sun, 25 Jun 2006 15:48:10 -0400 (EDT) Received: from smtp101.vzn.mail.dcn.yahoo.com (smtp101.vzn.mail.dcn.yahoo.com [209.73.179.139]) by menubar.gnome.org (Postfix) with SMTP id 3A6383B000C for ; Sun, 25 Jun 2006 15:48:10 -0400 (EDT) Received: (qmail 44476 invoked from network); 25 Jun 2006 19:47:41 -0000 Received: from unknown (HELO ?192.168.1.101?) (c?gilbert@verizon.net@71.160.54.146 with login) by smtp101.vzn.mail.dcn.yahoo.com with SMTP; 25 Jun 2006 19:47:40 -0000 Subject: GtkTextBuffer "destroying" From: chuck gilbert To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 25 Jun 2006 12:49:33 -0700 Message-Id: <1151264973.3223.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.944 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_NEUTRAL=1.069, TW_GT=0.077] X-Spam-Score: 1.944 X-Spam-Level: * X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 19:48:13 -0000 I can not seem to destroy a GtkTextBuffer created by calling gtk_text_buffer_new. To test my problem I used a function like below: somefunction() { GtkTextTagTable *tt = gtk_text_tag_table_new(); GtkTextBuffer *buffer = gtk_text_buffer_new(tt); gint n = gtk_text_buffer_get_line_count(buffer); gtk_widget_destroy(GTK_WIDGET(buffer)); } I have tried to cast "buffer" to G_OBJECT,GTK_TEXT_BUFFER,and GTK_OBJECT with no joy. At runtime I receive: gtk CRITICAL gtk_widget_destroy assumtion GTK_IS_WIDGET(widget) failed. The Buffer is created ie. the line count returns '1'. Thanks in advance for any help. From ibr@radix50.net Thu Jun 22 19:48:10 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82ABA3B055E for ; Thu, 22 Jun 2006 19:48:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01689-06 for ; Thu, 22 Jun 2006 19:47:37 -0400 (EDT) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by menubar.gnome.org (Postfix) with ESMTP id AA8643B0288 for ; Thu, 22 Jun 2006 19:47:37 -0400 (EDT) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 0FA7CEAE70 for ; Fri, 23 Jun 2006 01:47:36 +0200 (CEST) Received: from mail-in-03.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id 013C417769D for ; Fri, 23 Jun 2006 01:47:36 +0200 (CEST) Received: from alatau.radix50.net (dslb-088-064-001-208.pools.arcor-ip.net [88.64.1.208]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id BF3B21557B7 for ; Fri, 23 Jun 2006 01:47:35 +0200 (CEST) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.6/8.13.6/Debian-1) with ESMTP id k5MNlHdY020742 for ; Fri, 23 Jun 2006 01:47:18 +0200 Received: (from ibr@localhost) by alatau.radix50.net (8.13.6/8.13.6/Submit) id k5MNlHtg020741 for gtk-list@gnome.org; Fri, 23 Jun 2006 01:47:17 +0200 Date: Fri, 23 Jun 2006 01:47:17 +0200 From: Baurzhan Ismagulov To: gtk-list@gnome.org Subject: Re: question on g_list_insert_sorted () usage Message-ID: <20060622234717.GB30610@radix50.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 23:48:10 -0000 Hello Aarem, On Thu, Jun 22, 2006 at 05:00:50PM -0500, Aar Em wrote: > Glist *headers; > ..... > headers = g_list_insert_sorted (headers, m,compare_ctime); Do you initialize headers with NULL? If not, this could be the reason. Otherwise, use gdb to see where it crashes. > typedef struct _message_info > { > char *from; > char *subject; > char *face; > long *ctime; > } MESSAGE_INFO; ... > static gint compare_ctime (gconstpointer a, gconstpointer b) > { > const MESSAGE_INFO *p1=a,*p2=b; > > return ((p1->ctime > p2->ctime) ? +1: (p1->ctime == p2->ctime) ? 0 : -1); > } I don't know what long *ctime is, but sorting by pointer value looks suspicious. This shouldn't segfault, but I'm not sure it does what you want. With kind regards, Baurzhan. From MAILER-DAEMON Thu Jun 22 21:01:12 2006 Return-Path: <> X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3559E3B0413 for ; Thu, 22 Jun 2006 21:01:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04772-01 for ; Thu, 22 Jun 2006 21:01:07 -0400 (EDT) Received: from 6677.com (unknown [211.140.139.39]) by menubar.gnome.org (Postfix) with ESMTP id B68ED3B0658 for ; Thu, 22 Jun 2006 21:01:06 -0400 (EDT) Received: from 6677.com [127.0.0.1] by 6677.com [127.0.0.1] (with RAW) (MDaemon.PRO.v6.8.5.R) for ; Fri, 23 Jun 2006 09:11:56 +0800 Date: Fri, 23 Jun 2006 09:11:56 +0800 From: Postmaster@6677.com Subject: MDaemon Notification -- Attachment Removed To: gtk-list@gnome.org X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: Mime-Version: 1.0 X-Actual-From: Postmaster@6677.com X-MDSend-Notifications-To: [trash] Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.039 tagged_above=-999 required=2 tests=[BAYES_50=0.001, NO_REAL_NAME=0.961, TW_GT=0.077] X-Spam-Score: 1.039 X-Spam-Level: * X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: Postmaster@6677.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 01:01:12 -0000 下列邮件包含被限制的附件,已被移除: 发信人 : gtk-list@gnome.org 收信人 : jf@6677.com 主题 : Mail Delivery (failure jf@6677.com) 邮件 ID : 已移除的附件: ----------------------------------------- message.scr From prashanthkm22@gmail.com Fri Jun 23 05:24:21 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 21EE33B041F for ; Fri, 23 Jun 2006 05:24:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31011-09 for ; Fri, 23 Jun 2006 05:24:18 -0400 (EDT) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 4E20A3B0397 for ; Fri, 23 Jun 2006 05:24:18 -0400 (EDT) Received: by wx-out-0102.google.com with SMTP id t5so4808wxc for ; Fri, 23 Jun 2006 02:24:17 -0700 (PDT) Received: by 10.70.108.14 with SMTP id g14mr4318104wxc; Fri, 23 Jun 2006 02:24:17 -0700 (PDT) Received: by 10.70.77.6 with HTTP; Fri, 23 Jun 2006 02:24:16 -0700 (PDT) Message-ID: Date: Fri, 23 Jun 2006 14:54:16 +0530 From: "prashanth km22" To: gtk-list@gnome.org Subject: How to set colors to Widgets MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.523 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 09:24:21 -0000 Hi all.. I am beginer to GTK, i created window and butons, but i dont know how to set colors to buttons. i saw gtk examples, i did not understand . Tell me how to do that.. Thank you. Prashanth From jalaganapathy@tataelxsi.co.in Thu Jun 29 02:25:57 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 03A973B011E for ; Thu, 29 Jun 2006 02:25:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22815-01 for ; Thu, 29 Jun 2006 02:25:54 -0400 (EDT) Received: from mail.tataelxsi.co.in (mail.tataelxsi.co.in [203.200.1.48]) by menubar.gnome.org (Postfix) with ESMTP id 26A103B000B for ; Thu, 29 Jun 2006 02:25:52 -0400 (EDT) Received: (from mail.tataelxsi.co.in [203.197.169.20]) by mail.tataelxsi.co.in (MOS 3.7.4b-GA) with HTTP/1.1 id BRM06226 (AUTH jalaganapathy); Thu, 29 Jun 2006 11:56:32 +0530 (IST) From: Jalagandeswari G Subject: Installing GTK+2.9.1 in Fedora core2 To: gtk-list@gnome.org X-Mailer: Mirapoint Webmail Direct 3.7.4b-GA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20060629115632.BRM06226@mail.tataelxsi.co.in> Date: Thu, 29 Jun 2006 11:56:32 +0530 (IST) X-Junkmail: Blacklisted X-Mirapoint-Sig: mail.tataelxsi.co.in X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 06:25:57 -0000 Hello All, Iam trying to install gtk+2.9.1 in fedora core2. my configure options are ./configure --prefix=/exp/ffox Confugure works fine. While running make i am getting the following errors. gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/exp/ffox/lib\" -DGTK_DATADIR=\"/exp/ffox/share\" -DGTK_DATA_PREFIX=\"/exp/ffox\" -DGTK_SYSCONFDIR=\"/exp/ffox/etc\" -DGTK_VERSION=\"2.9.1\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_HOST=\"i686-pc-linux-gnu\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"pdf,cups\" -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_ENABLE_DEBUG -pthread -I/exp/ffox//include/glib-2.0 -I/exp/ffox//lib/glib-2.0/include -I/exp/ffox//include/pango-1.0 -I/exp/ffox//include/cairo -I/exp/ffox//include/atk-1.0 -I/exp/ffox/include -I/usr/X11R6/include -DG_DISABLE_DEPRECATED -g -O2 -g -Wall -MT gtkrecentmanager.lo -MD -MP -MF .deps/gtkrecentmanager.Tpo -c gtkrecentmanager.c -fPIC -DPIC -o .libs/gtkrecentmanager.o gtkrecentmanager.c:109: error: syntax error before "GBookmarkFile" gtkrecentmanager.c:109: warning: no semicolon at end of struct or union gtkrecentmanager.c:113: error: syntax error before '}' token gtkrecentmanager.c: In function `gtk_recent_manager_class_init': gtkrecentmanager.c:274: error: invalid application of `sizeof' to an incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_init': gtkrecentmanager.c:286: error: dereferencing pointer to incomplete type gtkrecentmanager.c:290: error: dereferencing pointer to incomplete type gtkrecentmanager.c:291: error: dereferencing pointer to incomplete type gtkrecentmanager.c:293: error: dereferencing pointer to incomplete type gtkrecentmanager.c:294: error: dereferencing pointer to incomplete type gtkrecentmanager.c:295: error: dereferencing pointer to incomplete type gtkrecentmanager.c:296: error: dereferencing pointer to incomplete type gtkrecentmanager.c:298: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_get_property': gtkrecentmanager.c:336: error: dereferencing pointer to incomplete type gtkrecentmanager.c:339: error: dereferencing pointer to incomplete type gtkrecentmanager.c:342: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_finalize': gtkrecentmanager.c:357: error: dereferencing pointer to incomplete type gtkrecentmanager.c:358: error: dereferencing pointer to incomplete type gtkrecentmanager.c:360: error: dereferencing pointer to incomplete type gtkrecentmanager.c:361: error: dereferencing pointer to incomplete type gtkrecentmanager.c:363: error: dereferencing pointer to incomplete type gtkrecentmanager.c:364: warning: implicit declaration of function `g_bookmark_file_free' gtkrecentmanager.c:364: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_real_changed': gtkrecentmanager.c:377: error: dereferencing pointer to incomplete type gtkrecentmanager.c:385: error: dereferencing pointer to incomplete type gtkrecentmanager.c:387: error: dereferencing pointer to incomplete type gtkrecentmanager.c:392: error: dereferencing pointer to incomplete type gtkrecentmanager.c:394: error: dereferencing pointer to incomplete type gtkrecentmanager.c:394: warning: implicit declaration of function `g_bookmark_file_new' gtkrecentmanager.c:395: error: dereferencing pointer to incomplete type gtkrecentmanager.c:399: warning: implicit declaration of function `g_bookmark_file_to_file' gtkrecentmanager.c:399: error: dereferencing pointer to incomplete type gtkrecentmanager.c:400: error: dereferencing pointer to incomplete type gtkrecentmanager.c:406: error: dereferencing pointer to incomplete type gtkrecentmanager.c:415: error: dereferencing pointer to incomplete type gtkrecentmanager.c:419: error: dereferencing pointer to incomplete type gtkrecentmanager.c:422: error: dereferencing pointer to incomplete type gtkrecentmanager.c:429: error: dereferencing pointer to incomplete type gtkrecentmanager.c:432: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_poll_timeout': gtkrecentmanager.c:458: error: dereferencing pointer to incomplete type gtkrecentmanager.c:458: error: dereferencing pointer to incomplete type gtkrecentmanager.c:461: error: dereferencing pointer to incomplete type gtkrecentmanager.c:470: error: dereferencing pointer to incomplete type gtkrecentmanager.c:477: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `gtk_recent_manager_set_filename': gtkrecentmanager.c:498: error: dereferencing pointer to incomplete type gtkrecentmanager.c:500: error: dereferencing pointer to incomplete type gtkrecentmanager.c:502: error: dereferencing pointer to incomplete type gtkrecentmanager.c:503: error: dereferencing pointer to incomplete type gtkrecentmanager.c:506: error: dereferencing pointer to incomplete type gtkrecentmanager.c:507: error: dereferencing pointer to incomplete type gtkrecentmanager.c:514: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `build_recent_items_list': gtkrecentmanager.c:534: error: dereferencing pointer to incomplete type gtkrecentmanager.c:536: error: dereferencing pointer to incomplete type gtkrecentmanager.c:538: error: dereferencing pointer to incomplete type gtkrecentmanager.c:539: error: dereferencing pointer to incomplete type gtkrecentmanager.c:542: error: dereferencing pointer to incomplete type gtkrecentmanager.c:555: error: dereferencing pointer to incomplete type gtkrecentmanager.c:563: error: dereferencing pointer to incomplete type gtkrecentmanager.c:565: error: dereferencing pointer to incomplete type gtkrecentmanager.c:571: warning: implicit declaration of function `g_bookmark_file_load_from_file' gtkrecentmanager.c:571: error: dereferencing pointer to incomplete type gtkrecentmanager.c:572: error: dereferencing pointer to incomplete type gtkrecentmanager.c:578: error: dereferencing pointer to incomplete type gtkrecentmanager.c:581: error: dereferencing pointer to incomplete type gtkrecentmanager.c:582: error: dereferencing pointer to incomplete type gtkrecentmanager.c:587: warning: implicit declaration of function `g_bookmark_file_get_size' gtkrecentmanager.c:587: error: dereferencing pointer to incomplete type gtkrecentmanager.c:588: error: dereferencing pointer to incomplete type gtkrecentmanager.c:590: error: dereferencing pointer to incomplete type gtkrecentmanager.c:595: error: dereferencing pointer to incomplete type gtkrecentmanager.c:596: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_for_screen': gtkrecentmanager.c:683: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `display_closed': gtkrecentmanager.c:697: error: dereferencing pointer to incomplete type gtkrecentmanager.c:698: error: dereferencing pointer to incomplete type gtkrecentmanager.c:703: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `unset_screen': gtkrecentmanager.c:718: error: dereferencing pointer to incomplete type gtkrecentmanager.c:720: error: dereferencing pointer to incomplete type gtkrecentmanager.c:726: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_set_screen': gtkrecentmanager.c:759: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_set_limit': gtkrecentmanager.c:786: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_limit': gtkrecentmanager.c:808: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_add_full': gtkrecentmanager.c:977: error: dereferencing pointer to incomplete type gtkrecentmanager.c:979: error: dereferencing pointer to incomplete type gtkrecentmanager.c:980: error: dereferencing pointer to incomplete type gtkrecentmanager.c:984: warning: implicit declaration of function `g_bookmark_file_set_title' gtkrecentmanager.c:984: error: dereferencing pointer to incomplete type gtkrecentmanager.c:987: warning: implicit declaration of function `g_bookmark_file_set_description' gtkrecentmanager.c:987: error: dereferencing pointer to incomplete type gtkrecentmanager.c:989: warning: implicit declaration of function `g_bookmark_file_set_mime_type' gtkrecentmanager.c:989: error: dereferencing pointer to incomplete type gtkrecentmanager.c:996: warning: implicit declaration of function `g_bookmark_file_add_group' gtkrecentmanager.c:996: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1003: warning: implicit declaration of function `g_bookmark_file_add_application' gtkrecentmanager.c:1003: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1007: warning: implicit declaration of function `g_bookmark_file_set_is_private' gtkrecentmanager.c:1007: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1013: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_remove_item': gtkrecentmanager.c:1048: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1050: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1051: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1061: warning: implicit declaration of function `g_bookmark_file_remove_item' gtkrecentmanager.c:1061: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1069: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_has_item': gtkrecentmanager.c:1098: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1100: warning: implicit declaration of function `g_bookmark_file_has_item' gtkrecentmanager.c:1100: error: dereferencing pointer to incomplete type gtkrecentmanager.c: At top level: gtkrecentmanager.c:1104: error: syntax error before '*' token gtkrecentmanager.c: In function `build_recent_info': gtkrecentmanager.c:1110: error: `bookmarks' undeclared (first use in this function) gtkrecentmanager.c:1110: error: (Each undeclared identifier is reported only once gtkrecentmanager.c:1110: error: for each function it appears in.) gtkrecentmanager.c:1111: error: `info' undeclared (first use in this function) gtkrecentmanager.c:1113: warning: implicit declaration of function `g_bookmark_file_get_title' gtkrecentmanager.c:1114: warning: implicit declaration of function `g_bookmark_file_get_description' gtkrecentmanager.c:1115: warning: implicit declaration of function `g_bookmark_file_get_mime_type' gtkrecentmanager.c:1117: warning: implicit declaration of function `g_bookmark_file_get_is_private' gtkrecentmanager.c:1119: warning: implicit declaration of function `g_bookmark_file_get_added' gtkrecentmanager.c:1120: warning: implicit declaration of function `g_bookmark_file_get_modified' gtkrecentmanager.c:1121: warning: implicit declaration of function `g_bookmark_file_get_visited' gtkrecentmanager.c:1123: warning: implicit declaration of function `g_bookmark_file_get_groups' gtkrecentmanager.c:1123: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1133: warning: implicit declaration of function `g_bookmark_file_get_applications' gtkrecentmanager.c:1133: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1144: warning: implicit declaration of function `g_bookmark_file_get_app_info' gtkrecentmanager.c: In function `IA__gtk_recent_manager_lookup_item': gtkrecentmanager.c:1196: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1198: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1199: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1209: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1224: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_move_item': gtkrecentmanager.c:1268: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1278: warning: implicit declaration of function `g_bookmark_file_move_item' gtkrecentmanager.c:1278: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1287: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_get_items': gtkrecentmanager.c:1317: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1320: warning: implicit declaration of function `g_bookmark_file_get_uris' gtkrecentmanager.c:1320: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1320: warning: assignment makes pointer from integer without a cast gtkrecentmanager.c:1327: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1344: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1345: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1349: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `purge_recent_items_list': gtkrecentmanager.c:1370: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1373: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1374: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1376: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1377: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1378: error: dereferencing pointer to incomplete type gtkrecentmanager.c: In function `IA__gtk_recent_manager_purge_items': gtkrecentmanager.c:1406: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1409: error: dereferencing pointer to incomplete type gtkrecentmanager.c:1415: error: dereferencing pointer to incomplete type make[4]: *** [gtkrecentmanager.lo] Error 1 make[4]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/exp/ffox/gtk+-2.9.1/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/exp/ffox/gtk+-2.9.1' make: *** [all] Error 2 Pls help me out to find a solution. regards, Jala The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@tataelxsi.co.in From jose.francisco.hevia@gmail.com Thu Jun 29 16:57:13 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 405123B00CC for ; Thu, 29 Jun 2006 16:57:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08622-01 for ; Thu, 29 Jun 2006 16:57:11 -0400 (EDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by menubar.gnome.org (Postfix) with ESMTP id EF19B3B00BD for ; Thu, 29 Jun 2006 16:57:10 -0400 (EDT) Received: by nf-out-0910.google.com with SMTP id c29so144243nfb for ; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Received: by 10.49.28.2 with SMTP id f2mr5801nfj; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Received: by 10.48.218.18 with HTTP; Thu, 29 Jun 2006 13:57:09 -0700 (PDT) Message-ID: Date: Thu, 29 Jun 2006 22:57:09 +0200 From: "Jose Hevia" To: gtk-list@gnome.org Subject: Re: Any reason to worry about using wx? (but it uses GTK!?! :) In-Reply-To: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060629190859.26715.qmail@web37603.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.543 tagged_above=-999 required=2 tests=[AWL=-0.432, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, MANY_EXCLAMATIONS=0.775, PLING_QUERY=0.514, SPF_PASS=-0.001] X-Spam-Score: -1.543 X-Spam-Level: X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 20:57:13 -0000 2006/6/29, Christian Seberino : > wx uses GTK under the hood...at least on Unix and Linux. > > Can anyone see any problems //down the road// with using wx as far > as losing benefits a pure GTK app would have? wx->- Another layer of stuff. - A subset of GTK, so it could be compatible with others.(you lost control) - GTK works on windows, Unix(X11) and native MacOS is in process. -Look at audacity-> wx , amsn... They are ugly on Linux (seems they use GTK 1.2 or GTK 2.0 without themes)(amsn added themes recently, but I remember a lot of people complaining how bad it was(they judged only by its appearance)) -IMHO win32 is dead, Microsoft needs to sell its new .Net related widgets, wx uses win32. -I have never used wx, so I could be mistaken. Cheers Jose Hevia From c_gilbert@verizon.net Thu Jun 29 23:46:08 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8428B3B00C7 for ; Thu, 29 Jun 2006 23:46:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23400-08 for ; Thu, 29 Jun 2006 23:46:07 -0400 (EDT) Received: from smtp102.vzn.mail.dcn.yahoo.com (smtp102.vzn.mail.dcn.yahoo.com [209.73.179.140]) by menubar.gnome.org (Postfix) with SMTP id 8387D3B000E for ; Thu, 29 Jun 2006 23:46:07 -0400 (EDT) Received: (qmail 10047 invoked from network); 30 Jun 2006 03:46:06 -0000 Received: from unknown (HELO ?192.168.1.101?) (c?gilbert@verizon.net@71.160.54.146 with login) by smtp102.vzn.mail.dcn.yahoo.com with SMTP; 30 Jun 2006 03:46:06 -0000 Subject: How to save GtkTextBuffers with formatting From: chuck gilbert To: gtk-list@gnome.org Content-Type: text/plain Date: Thu, 29 Jun 2006 20:48:08 -0700 Message-Id: <1151639288.29469.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.091 tagged_above=-999 required=2 tests=[AWL=-0.147, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_NEUTRAL=1.069] X-Spam-Score: 2.091 X-Spam-Level: ** X-Spam-Flag: YES X-Mailman-Approved-At: Mon, 03 Jul 2006 16:32:44 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 03:46:08 -0000 Is there a way to save and restore GtkTextBuffers with their associated TagTables and markers to files? From AFARRAG@eg.ibm.com Tue Jun 13 11:35:26 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4E7723B008F for ; Tue, 13 Jun 2006 11:35:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28376-08 for ; Tue, 13 Jun 2006 11:35:21 -0400 (EDT) Received: from mtagate6.uk.ibm.com (mtagate6.uk.ibm.com [195.212.29.139]) by menubar.gnome.org (Postfix) with ESMTP id 7AC3D3B000C for ; Tue, 13 Jun 2006 11:35:13 -0400 (EDT) Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate6.uk.ibm.com (8.13.6/8.13.6) with ESMTP id k5DFYN56121848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Jun 2006 15:34:23 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.6/NCO/VER7.0) with ESMTP id k5DFZbfW134912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Jun 2006 16:35:37 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5DFYNXn008997 for ; Tue, 13 Jun 2006 16:34:23 +0100 Received: from d06ml201.portsmouth.uk.ibm.com (d06ml201.portsmouth.uk.ibm.com [9.149.39.66]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5DFYNZo008994 for ; Tue, 13 Jun 2006 16:34:23 +0100 To: gtk-list@gnome.org Subject: Unable to install gtk2.8 MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 From: Ahmed Farrag Message-ID: X-MIMETrack: Serialize by Router on D06ML201/06/M/IBM(Release 6.5.5HF268 | April 6, 2006) at 13/06/2006 18:34:22 Content-Type: multipart/mixed; boundary="=_mixed 00558CBEC225718C_=" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.171 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.171 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 13 Jun 2006 15:35:26 -0000 X-Original-Date: Tue, 13 Jun 2006 18:34:22 +0300 X-List-Received-Date: Tue, 13 Jun 2006 15:35:26 -0000 --=_mixed 00558CBEC225718C_= Content-Type: multipart/alternative; boundary="=_alternative 00558CBEC225718C_=" --=_alternative 00558CBEC225718C_= Content-Type: text/plain; charset="US-ASCII" Hi, I have RHEL 4 installed on my machine, and I want to update the installed gtk to version 2.8.1 . However each time I try to start the configure script, I got a configuration error stating that I have to install glib, atk, cairo and pango libraries with newer versions than the ones currently installed (see the attached txt file). I have installed glib2.8, atk1.8, cairo 1.0.4 and pango 1.9.1 but it seems that the configure script of gtk can't find them. it finds only the older versions of these libraries. I have found that the version number of glib, atk, cairo and pango lib is hard coded in the configure script , and I think this might be the problem. Would you please advise if there is any workarounds I can make to install gtk. Thanks in advance Best Regards Ahmed Farrag Associate Software Engineer iSeries/Rational NLS Team Globalization - Cairo Technology Development Center (CTDC) - IBM EGYPT Branch Pyramids Heights Office Park, Building C10 Cairo - Alexandria Desert Road, KM 22. Giza, Egypt P.O. Box 166 El-Ahram, Giza ,Egypt Tel: Direct : (+202) 536 1422 Ext: 1422 e-mail: afarrag@eg.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------------------------------ "Nothing so conclusively proves a man's ability to lead others as what he does from day to day to lead himself." >>Thomas J. Watson --=_alternative 00558CBEC225718C_= Content-Type: text/html; charset="US-ASCII"
Hi,

I have RHEL 4 installed on my machine, and I want to update the installed gtk to version 2.8.1 . However each time I try to start the configure script, I got a configuration error stating that I have to install glib, atk, cairo and pango libraries with newer versions than the ones currently installed (see the attached txt file).  I have installed glib2.8, atk1.8, cairo 1.0.4 and pango 1.9.1 but it seems that the configure script of gtk can't find them. it finds only the older versions of these libraries. I have found that the version number of glib, atk, cairo and pango lib is hard coded in the configure script , and I think this might be the problem. Would you please advise if there is any workarounds I can make to install gtk.



Thanks in advance

Best Regards
Ahmed Farrag
Associate Software Engineer
iSeries/Rational NLS Team
Globalization -  Cairo Technology Development Center (CTDC) - IBM EGYPT Branch
Pyramids Heights Office Park, Building C10
Cairo - Alexandria Desert Road, KM 22.
Giza,  Egypt
P.O. Box  166 El-Ahram, Giza ,Egypt
Tel: Direct : (+202) 536 1422
Ext: 1422
e-mail:   afarrag@eg.ibm.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------
"Nothing so conclusively proves a man's ability to lead others as what he does from day to day to lead himself."

>>Thomas J. Watson
--=_alternative 00558CBEC225718C_=-- --=_mixed 00558CBEC225718C_= Content-Type: text/plain; name="fileconf.txt" Content-Disposition: attachment; filename="fileconf.txt" Content-Transfer-Encoding: quoted-printable [root@localhost gtk+-2.8.1]# ./configure --prefix=3D/usr=0Achecking for a B= SD-compatible install... /usr/bin//install -c=0Achecking whether build envi= ronment is sane... yes=0Achecking for gawk... gawk=0Achecking whether make = sets $(MAKE)... yes=0Achecking build system type... i686-pc-linux-gnu=0Ache= cking host system type... i686-pc-linux-gnu=0Achecking for native Win32... = no=0Achecking for gcc... gcc=0Achecking for C compiler default output file = name... a.out=0Achecking whether the C compiler works... yes=0Achecking whe= ther we are cross compiling... no=0Achecking for suffix of executables...= =0Achecking for suffix of object files... o=0Achecking whether we are using= the GNU C compiler... yes=0Achecking whether gcc accepts -g... yes=0Acheck= ing for gcc option to accept ANSI C... none needed=0Achecking for style of = include used by make... GNU=0Achecking dependency style of gcc... gcc3=0Ach= ecking for a sed that does not truncate output... /bin/sed=0Achecking for e= grep... grep -E=0Achecking for ld used by gcc... /usr/bin//ld=0Achecking if= the linker (/usr/bin//ld) is GNU ld... yes=0Achecking for /usr/bin//ld opt= ion to reload object files... -r=0Achecking for BSD-compatible nm... /usr/b= in//nm -B=0Achecking whether ln -s works... yes=0Achecking how to recognise= dependent libraries... pass=5Fall=0Achecking how to run the C preprocessor= ... gcc -E=0Achecking for ANSI C header files... yes=0Achecking for sys/typ= es.h... yes=0Achecking for sys/stat.h... yes=0Achecking for stdlib.h... yes= =0Achecking for string.h... yes=0Achecking for memory.h... yes=0Achecking f= or strings.h... yes=0Achecking for inttypes.h... yes=0Achecking for stdint.= h... yes=0Achecking for unistd.h... yes=0Achecking dlfcn.h usability... yes= =0Achecking dlfcn.h presence... yes=0Achecking for dlfcn.h... yes=0Acheckin= g for g++... g++=0Achecking whether we are using the GNU C++ compiler... ye= s=0Achecking whether g++ accepts -g... yes=0Achecking dependency style of g= ++... gcc3=0Achecking how to run the C++ preprocessor... g++ -E=0Achecking = for g77... g77=0Achecking whether we are using the GNU Fortran 77 compiler.= .. yes=0Achecking whether g77 accepts -g... yes=0Achecking the maximum leng= th of command line arguments... 32768=0Achecking command to parse /usr/bin/= /nm -B output from gcc object... ok=0Achecking for objdir... .libs=0Achecki= ng for ar... ar=0Achecking for ranlib... ranlib=0Achecking for strip... str= ip=0Achecking if gcc static flag works... yes=0Achecking if gcc supports -= fno-rtti -fno-exceptions... no=0Achecking for gcc option to produce PIC... = -fPIC=0Achecking if gcc PIC flag -fPIC works... yes=0Achecking if gcc suppo= rts -c -o file.o... yes=0Achecking whether the gcc linker (/usr/bin//ld) su= pports shared libraries... yes=0Achecking whether -lc should be explicitly = linked in... no=0Achecking dynamic linker characteristics... GNU/Linux ld.s= o=0Achecking how to hardcode library paths into programs... immediate=0Ache= cking whether stripping libraries is possible... yes=0Achecking if libtool = supports shared libraries... yes=0Achecking whether to build shared librari= es... yes=0Achecking whether to build static libraries... no=0Aconfigure: c= reating libtool=0Aappending configuration tag "CXX" to libtool=0Achecking f= or ld used by g++... /usr/bin//ld=0Achecking if the linker (/usr/bin//ld) i= s GNU ld... yes=0Achecking whether the g++ linker (/usr/bin//ld) supports s= hared libraries... yes=0Achecking for g++ option to produce PIC... -fPIC=0A= checking if g++ PIC flag -fPIC works... yes=0Achecking if g++ supports -c -= o file.o... yes=0Achecking whether the g++ linker (/usr/bin//ld) supports s= hared libraries... yes=0Achecking dynamic linker characteristics... GNU/Lin= ux ld.so=0Achecking how to hardcode library paths into programs... immediat= e=0Achecking whether stripping libraries is possible... yes=0Aappending con= figuration tag "F77" to libtool=0Achecking if libtool supports shared libra= ries... yes=0Achecking whether to build shared libraries... yes=0Achecking = whether to build static libraries... no=0Achecking for g77 option to produc= e PIC... -fPIC=0Achecking if g77 PIC flag -fPIC works... yes=0Achecking if = g77 supports -c -o file.o... yes=0Achecking whether the g77 linker (/usr/bi= n//ld) supports shared libraries... yes=0Achecking dynamic linker character= istics... GNU/Linux ld.so=0Achecking how to hardcode library paths into pro= grams... immediate=0Achecking whether stripping libraries is possible... ye= s=0Achecking for special C compiler options needed for large files... no=0A= checking for =5FFILE=5FOFFSET=5FBITS value needed for large files... 64=0Ac= hecking for =5FLARGE=5FFILES value needed for large files... no=0Achecking = for nm... /usr/bin//nm -B=0Achecking whether to enable maintainer-specific = portions of Makefiles... no=0Achecking for some Win32 platform... no=0Achec= king whether build environment is sane... yes=0Achecking for strerror in -l= cposix... no=0Achecking for gcc option to accept ANSI C... none needed=0Ach= ecking for a BSD-compatible install... /usr/bin//install -c=0Achecking whet= her make sets $(MAKE)... (cached) yes=0Achecking for pkg-config... /usr/bin= //pkg-config=0Achecking pkg-config is at least version 0.9.0... yes=0Acheck= ing for BASE=5FDEPENDENCIES=5FCFLAGS...=0Achecking for BASE=5FDEPENDENCIES= =5FLIBS...=0Aconfigure: error: Package requirements (glib-2.0 >=3D 2.7.1 = atk >=3D 1.0.1 pango >=3D 1.9.0 cairo >=3D 0.9.2) were not met.=0ACo= nsider adjusting the PKG=5FCONFIG=5FPATH environment variable if you=0Ainst= alled software in a non-standard prefix.=0A=0AAlternatively you may set the= BASE=5FDEPENDENCIES=5FCFLAGS and BASE=5FDEPENDENCIES=5FLIBS environment va= riables=0Ato avoid the need to call pkg-config. See the pkg-config man pag= e for=0Amore details.=0A= --=_mixed 00558CBEC225718C_=-- From M.Kahn@Astronautics.com Tue Jun 13 21:49:37 2006 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 031683B00C8 for ; Tue, 13 Jun 2006 21:49:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13055-01 for ; Tue, 13 Jun 2006 21:49:35 -0400 (EDT) Received: from mail.astronautics.com (mail.astronautics.com [69.216.24.130]) by menubar.gnome.org (Postfix) with ESMTP id 2BD423B00A5 for ; Tue, 13 Jun 2006 21:49:35 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C68F54.A6C559FA" Subject: Button background colors Message-ID: <79D0CFE134D11C45A1E70E6EF187EBFC018FCB1D@HQMAIL1.aca.astronautics.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Button background colors Thread-Index: AcaPVKiN6PSU51MFSPKQGeQNJLbpSA== From: "Michael Kahn" To: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.203 tagged_above=-999 required=2 tests=[AWL=1.318, BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077] X-Spam-Score: -1.203 X-Spam-Level: X-Mailman-Approved-At: Sat, 17 Jun 2006 11:42:49 -0400 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 14 Jun 2006 01:49:37 -0000 X-Original-Date: Tue, 13 Jun 2006 20:48:39 -0500 X-List-Received-Date: Wed, 14 Jun 2006 01:49:37 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C68F54.A6C559FA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Gtk 2.8.18. I would like to know how to set the background color in a GtkButton. I cannot set the background in a style, theme, or resource file because I am programming to requirements that specify different background colors for different buttons. I have tried using gtk_widget_modify_bg on the button, using all combinations of creating the button with and without a label. I also tried gtk_widget_modify_base. =20 I have tried using gtk_widget_set_style: =20 GtkStyle *BtnStyle; BtnStyle =3D gtk_style_new(); BtnStyle->bg[0] =3D BGColor; /* BG Color is a GdkColor that works = nicely setting colors in TextViews */ BtnStyle->bg[1] =3D BGColor; gtk_widget_set_style ( Button, BtnStyle ); =20 =20 I have tried using gtk_widget_modify_style: =20 GtkRcStyle *ModStyle ModStyle =3D gtk_rc_style_new(); ModStyle->bg[0] =3D BGColor; ModStyle->bg[1] =3D BGColor; ModStyle->color_flags[0] |=3D GTK_RC_BG; =20 ModStyle->color_flags[1] |=3D GTK_RC_BG; gtk_widget_modify_style ( Button, ModStyle ); =20 I repeated the above process using foreground colors and then tried it setting both foreground and background. =20 I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling gtk_main. I used gtk_widget_get_parent to get the parent container of the button (once again just before calling gtk_main since gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and tried using all of the above processes (gtk_widget_modify_bg, gtk_widget_modify_base, gtk_widget_set_style, and gtk_widget_modify_style). =20 I have put an EventBox around my button, yielding an idiotic-looking colored border around the button. I have put an EventBox inside my button, and it fills the center of the button with color but leaves a wide non-colored margin around it. =20 It is utterly inconceivable that this process should be so difficult. To change the color of buttons in Motif is trivial - I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want. Motif then takes this basic background color and automatically figures out the colors needed for top, bottom, and activate shadows. The concept of a big green green button to start a process and a big red button to abort/stop/terminate a process is so universal that it can be found on everything from 1920s machine tools to the latest military and commercial aircraft control panels. Thus I am expected to be able to emulate this with the buttons on my GUI. So far, I have failed utterly with GTK. =20 My web searches led me to try some of these processes - in particular, Havoc Pennington's "GTK colors mini-FAQ" is what led me to try using the gtk_widget_get_parent to get the container widget for the button. =20 I have even tried traversing the entire ancestor tree by using a loop to continue calling gtk_widget_get_parent until it returned NULL. Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which means I managed to set the background of the Main Window but nothing else, despite trying gtk_widget_modify_bg on the entire ancestor tree. =20 Please tell me how I can set the background color of my GtkButtons to different colors. =20 Thanks, Michael Kahn =20 ------_=_NextPart_001_01C68F54.A6C559FA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Gtk 2.8.18.

I would like to know how to set the background color = in a GtkButton.

I cannot set the background in a style, theme, or = resource file because I am programming to requirements that specify different = background colors for different buttons.

I have tried using gtk_widget_modify_bg on the = button, using all combinations of creating the button with and without a = label.

I also tried = gtk_widget_modify_base.

 

I have tried using = gtk_widget_set_style:

 

GtkStyle =  *BtnStyle;

BtnStyle =3D = gtk_style_new();

BtnStyle->bg[0] =3D BGColor;  /* BG = Color is a GdkColor that works nicely setting colors in TextViews = */

BtnStyle->bg[1] =3D = BGColor;

gtk_widget_set_style ( Button, BtnStyle = );

 

 

I have tried using = gtk_widget_modify_style:

 

GtkRcStyle  = *ModStyle

ModStyle =3D = gtk_rc_style_new();

ModStyle->bg[0] =3D = BGColor;

ModStyle->bg[1] =3D = BGColor;

ModStyle->color_flags[0] |=3D = GTK_RC_BG; 

ModStyle->color_flags[1] |=3D = GTK_RC_BG;

gtk_widget_modify_style ( Button, ModStyle = );

 

I repeated the above process using foreground colors = and then tried it setting both foreground and = background.

 

I repeated both the gtk_widget_set_style and gtk_widget_modify_style processes just before calling = gtk_main.

I used gtk_widget_get_parent to get the parent = container of the button (once again just before calling gtk_main since = gtk_widget_get_parent returns NULL prior to calling gtk_widget_show on the Main Window) and = tried using all of the above processes (gtk_widget_modify_bg, = gtk_widget_modify_base, gtk_widget_set_style, and = gtk_widget_modify_style).

 

I have put an EventBox around my button, yielding an idiotic-looking colored border around the = button.

I have put an EventBox inside my button, and it fills = the center of the button with color but leaves a wide non-colored margin = around it.

 

It is utterly inconceivable that this process should = be so difficult.  To change the color of buttons in Motif is trivial = – I use the XtSetArg process before creating the widget and simply have to set XmNbackground to the RGB value that I want.  Motif then takes this = basic background color and automatically figures out the colors needed for = top, bottom, and activate shadows.  The concept of a big green green = button to start a process and a big red button to abort/stop/terminate a process = is so universal that it can be found on everything from 1920s machine tools to the = latest military and commercial aircraft control panels.  Thus I am = expected to be able to emulate this with the buttons on my GUI.  So far, I have = failed utterly with GTK.

 

My web searches led me to try some of these processes = – in particular, Havoc Pennington’s “GTK colors = mini-FAQ” is what led me to try using the gtk_widget_get_parent to get the container = widget for the button.

 

I have even tried traversing the entire ancestor tree = by using a loop to continue calling gtk_widget_get_parent until it returned = NULL.  Only the MainWindow returned TRUE to GTK_WIDGET_NO_WINDOW( ), which = means I managed to set the background of the Main Window but nothing else, = despite trying gtk_widget_modify_bg on the entire ancestor = tree.

 

Please tell me how I can set the background color of = my GtkButtons to different colors.

 

Thanks,

  Michael Kahn

 

------_=_NextPart_001_01C68F54.A6C559FA--