Re: DGSEAL_ENABLE: replace direct addressing in statusbar
- From: Nader Morshed <morshed nader gmail com>
- To: Carlos Pereira <jose carlos pereira ist utl pt>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: DGSEAL_ENABLE: replace direct addressing in statusbar
- Date: Sat, 3 Jul 2010 22:17:22 -0700
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 pereira ist utl pt> wrote:
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Nader Morshed <morshed nader gmail com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]