[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-devel
Subject: Re: A question about GtkUIManager
From: Matthias Clasen <mclasen () redhat ! com>
Date: 2005-08-25 13:47:26
Message-ID: 1124977646.3222.1.camel () c-24-218-204-47 ! hsd1 ! ma ! comcast ! net
[Download RAW message or body]
On Thu, 2005-08-25 at 18:21 +0800, Wang, Yong Y wrote:
> Hi,
>
> I have a question regarding GtkUIManager. Documentation for the "ui"
> property of GtkUIManager says
>
> The "ui" property
> "ui" gchararray : Read
> An XML string describing the merged UI.
>
> Default value: NULL
>
> However, it seems that's not true. Below is the test case and its
> output.
>
> #include <gtk/gtk.h>
>
> int main (int argc, char* argv[])
> {
> GtkUIManager *ui_manager;
> gchar *ui = NULL;
>
> gtk_init (&argc, &argv);
>
> ui_manager = gtk_ui_manager_new ();
>
> g_object_get(G_OBJECT(ui_manager), "ui", &ui, NULL);
> if (ui)
> g_printf ("%s", ui);
>
> return 0;
> }
>
> ********** Output **********
>
> <ui>
> </ui>
>
> Is this a bug? Or the documentation means the stuff that actually
> matters between the <ui> tags is an empty string? If so, is this a
> gtk-doc bug?
>
Small documentation bug, thanks for pointing it out.
Matthias
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic