Re: Background color problem

2009-03-18 Thread Vlad Volodin
Sorry, for being a bit stupid and persistent I appreciate your help, but I've also faced with structures: When I changed a bit your example (I used 1 instead of 0) ClutterColor clutter_background_color = { 1, }; g_debug(Colors: %x %x %x %x, clutter_background_color.red,

Re: GIO channels and connection closed by foreign host on WIN32

2009-03-18 Thread Gabriele Greco
On Tue, Mar 17, 2009 at 6:59 PM, Tor Lillqvist t...@iki.fi wrote: (Yes, it might well be that it should be considerd a bug that one on Windows has to explicitly watch for G_IO_HUP in addition to G_IO_IN to be able to catch EOF. Please file a bug for that. This change made the trick:

Re: Problem with continuous image updation in a while loop

2009-03-18 Thread Adeel Malik
In my application, I am implementing status indication (displaying either 'red' or 'green' ) by using Gdkpixmap to assign an image to 'red' or 'green' pixel array. i display or hide the image by calling gtk_widget_show (..) or gtk_widget_hide(..) . The structure of my application is as follows:

Re: Problem with continuous image updation in a while loop

2009-03-18 Thread Adeel Malik
In my application, I am implementing status indication (displaying either 'red' or 'green' ) by using Gdkpixmap to assign an image to 'red' or 'green' pixel array. i display or hide the image by calling gtk_widget_show (..) or gtk_widget_hide(..) . The structure of my application is as follows:

Re: Problem with continuous image updation

2009-03-18 Thread Ardhan Madras
Looks like you want to update a widget state by running a busy loop in a main loop or by using small delay. If you try this, your widget is never (look) updated.., avoid using sleep or busy loop in the gtk_main() main loop. you should try attach a new source with g_timeout_add*() functions,

is this good code?

2009-03-18 Thread Dr. Michael J. Chudobiak
I've never fully understood the timing issues with signals and callbacks. Is this good or evil (vala) code? public bool ensureConnected () { /* try to connect, if not already connected */ if (!connectButton.get_active()) connectButton.set_active(true); /* are we connected

Re: is this good code?

2009-03-18 Thread Tristan Van Berkom
On Wed, Mar 18, 2009 at 8:25 AM, Dr. Michael J. Chudobiak m...@avtechpulse.com wrote: I've never fully understood the timing issues with signals and callbacks. Is this good or evil (vala) code? public bool ensureConnected () {    /* try to connect, if not already connected */    if

Re: is this good code?

2009-03-18 Thread Dr. Michael J. Chudobiak
Tristan Van Berkom wrote: Anyway, I guess the question is: has all code tied to the set_active(true) signal executed before the last line? I dont know vala at all and I can tell you yes this code is perfectly safe, assuming the signal is implemented as a GSignal, which is a pretty safe

Re: GWeakNotify fired earlier than expected

2009-03-18 Thread Havoc Pennington
Hi, On Mon, Mar 16, 2009 at 12:45 PM, IdaRub ida...@gmail.com wrote: After reading the gobject code a bit more, it seems that weak references are fired on dispose, not finalize: Right, that's correct. All of the documentation I could find states that it happens during finalization, but it

support gtk+ about zoom in a widget

2009-03-18 Thread 呉永
Hi, First, I want to zoom in a window just like when we use IE browser,sometime we can't see the web page clearly, so we will use [Ctrl]+[mouse wheel] keys to zoom the page in, in that case we can see the web page clearly! please tell me how to do that in gtk! Thanks!

Re: support gtk+ about zoom in a widget

2009-03-18 Thread Michael Cronenworth
Original Message Subject: support gtk+ about zoom in a widget From: 呉永 w...@shcore.com.cn To: gtk-app-devel-list@gnome.org Date: 03/16/2009 08:23 PM Hi, First, I want to zoom in a window just like when we use IE browser,sometime we can't see the web page clearly, so we will

enumerating available fonts

2009-03-18 Thread Chuck Crisler
How do I enumerate the fonts available on a system? I suspect XListFonts() may not yield all of the nicer fonts but I haven't been able to find anything promising in Pango. Thank you! Chuck ___ gtk-app-devel-list mailing list

Re: enumerating available fonts

2009-03-18 Thread Behdad Esfahbod
On 03/18/2009 05:14 PM, Chuck Crisler wrote: How do I enumerate the fonts available on a system? I suspect XListFonts() may not yield all of the nicer fonts but I haven't been able to find anything promising in Pango. pango_font_map_list_families()? behdad Thank you! Chuck

getting system UI defaults

2009-03-18 Thread Chuck Crisler
How do you get system default values such as text color, window background color, desktop color, etc? Thank you, Chuck ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: enumerating available fonts

2009-03-18 Thread Chuck Crisler
That function seems to list 'families' for a given 'font map'. But it seems that you have to have a font map to begin. I simply want to know all of the fonts on the system, like open office writer. Chuck On Wed, 2009-03-18 at 17:16 -0400, Behdad Esfahbod wrote: On 03/18/2009 05:14 PM, Chuck

re: enumerating available fonts

2009-03-18 Thread Garth's KidStuff
How do I enumerate the fonts available on a system? Here's a little function using Gtkmm that I use... vectorstring* LXUtils::GetAllFontNames() { // RETURN a pointer to a static string vector that contains the font names static vectorstring vsFonts; if (vsFonts.empty()) { // Only

Re: enumerating available fonts

2009-03-18 Thread Behdad Esfahbod
On 03/18/2009 05:23 PM, Chuck Crisler wrote: That function seems to list 'families' for a given 'font map'. But it seems that you have to have a font map to begin. pango_cairo_font_map_get_default(). behdad I simply want to know all of the fonts on the system, like open office writer.

Popup window for alert

2009-03-18 Thread Jeffrey Barish
I would like a popup window with a black line on its border in which I can put a label to alert the user to a failure condition. A Dialog doesn't work because the appearance and disappearance of the window is entirely under program control. A WINDOW_POPUP doesn't work because it lacks the black

Re: Popup window for alert

2009-03-18 Thread John Coppens
On Wed, 18 Mar 2009 16:55:35 -0600 Jeffrey Barish jeff_bar...@earthlink.net wrote: I would like a popup window with a black line on its border in which I can put a label to alert the user to a failure condition. A Dialog doesn't work because the appearance and disappearance of the window is

Re: Popup window for alert

2009-03-18 Thread Ardhan Madras
You can use GdkWindowTypeHint value to set window decoration, the gtk_window_set_type_hint(). If you want to the window is not deletable, use gtk_window_set_deletable(). For example: ... gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_deletable (window, FALSE);

Re: Popup window for alert

2009-03-18 Thread Jeffrey Barish
John Coppens wrote: On Wed, 18 Mar 2009 16:55:35 -0600 Jeffrey Barish jeff_bar...@earthlink.net wrote: I would like a popup window with a black line on its border in which I can put a label to alert the user to a failure condition. A Dialog doesn't work because the appearance and