A question about GtkUIManager



Title: A question about GtkUIManager

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?

Thanks
Yong




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]