Re: DGSEAL_ENABLE: replace direct addressing in statusbar

2010-09-16 Thread Olivier Sessink
On 07/04/2010 07:57 AM, Carlos Pereira wrote: On 07/04/10 06:17, Nader Morshed wrote: statusbar = gtk_statusbar_new (); label = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar)); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); Thanks Nader, I believe you are in the right

Re: DGSEAL_ENABLE: replace direct addressing in statusbar

2010-07-04 Thread Nader Morshed
Oh, woops, just glanced at the documentation, well, I guess you could leave it with the -label for now, and once 3.0 comes, switch over as both the method and GSEAL stuff will be in place at that point. You could always write the code for the transition now and add a preprocessor check like so:

DGSEAL_ENABLE: replace direct addressing in statusbar

2010-07-03 Thread Carlos Pereira
Hi, How can I rewrite the following code, to be GTK 3.0 ready (without addressing directly the label, forbidden by the -DGSEAL_ENABLE mechanism)? statusbar = gtk_statusbar_new (); gtk_misc_set_alignment (GTK_MISC (GTK_STATUSBAR (statusbar)-label), 0.5, 0.5); Cheers, Carlos

Re: DGSEAL_ENABLE: replace direct addressing in statusbar

2010-07-03 Thread Nader Morshed
I believe you'd want to use gtk_statusbar_get_message_area: statusbar = gtk_statusbar_new (); label = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar)); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); On Sun, 04 Jul 2010 06:09:09 +0100 Carlos Pereira jose.carlos.pere...@ist.utl.pt

Re: DGSEAL_ENABLE: replace direct addressing in statusbar

2010-07-03 Thread Carlos Pereira
On 07/04/10 06:17, Nader Morshed wrote: statusbar = gtk_statusbar_new (); label = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar)); gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); Thanks Nader, I believe you are in the right path (although the documentation actually says this