[Glade-users] GtkStatusbar problem with libglade?


I've created a window with GtkStatusbar (name: main_statusbar) in Glade.
The GUI is created with libglade. All widgets work like expected, but
I couldn't get the GtkStatusbar. See here:

GtkWidget *main_statusbar;
GladeXML *main_xml;

main_xml = glade_xml_new
          "main_window", NULL);

/* could get a lot of widgets with glade_xml_get_widget() here... */

main_statusbar = glade_xml_get_widget (main_xml, "main_statusbar");
/* -> main_statusbar does everytime return NULL */
g_print ("%S", main_statusbar);

And see the glade-code:
        <widget class="GtkStatusbar" id="main_statusbar">
          <property name="visible">True</property>
          <property name="has_resize_grip">True</property>
          <property name="padding">0</property>
          <property name="expand">False</property>
          <property name="fill">False</property>

Seems to be a bug in libglade, not? Or did I made a mistake? If not I
file it as bug and create the GtkStatusbar not it Glade, but in code.


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