[Glade-users] GtkStatusbar problem with libglade?



Hi,

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
(PACKAGE_DATA_DIR"/"PACKAGE"/glade/e16menuedit2.glade",                 
          "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);
(null)

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

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.

regards
Andreas




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