Re: How read glade file to gtk2?



Below is the content of glade file. I think 2.16 is right version:

<?xml version="1.0"?>
<interface>
  <requires lib="gtk+" version="2.16"/>
  <!-- interface-naming-policy project-wide -->
  <object class="GtkWindow" id="window">
    <child>
      <object class="GtkVPaned" id="vpaned1">
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkLabel" id="label1">
            <property name="visible">True</property>
            <property name="label" translatable="yes">Hello world</property>
          </object>
          <packing>
            <property name="resize">False</property>
            <property name="shrink">True</property>
          </packing>
        </child>
        <child>
          <placeholder/>
        </child>
      </object>
    </child>
  </object>
</interface>


On Mon, Mar 22, 2010 at 5:46 PM, Tadej BorovÅak <tadeboro gmail com> wrote:
Hello.

My Gtk2 module is installed by ppm. It's heard that don't include
GladeXMLãIs it reason?

Code you posted doesn't use GladeXML (libglade) at all - it uses
GtkBuilder, which is part of GTK+ itself and is properly wrapped in
gtk-perl. What version of Glade did you use to create your interface?
In what format did you save your project?

BTW, I'm redirecting this back to mailing list, since you left it out
when replying.

Tadej

--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com




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