[Glade-users] glade 2.0.1 open .glade file skips width_request and height_request

On Thursday 02 September 2004 08:17, Damon Chaplin wrote:
On Wed, 2004-09-01 at 17:15, Kevin R. Bulgrien wrote:
I've searched around and am surprised not to have found any previous
posts for this issue.   The only ones I saw were related to glade--.

I am using 2.0.1 that comes on Mandrake 10.0 Official, and I've tried
compiling 2.5, but it doesn't care for gtk+2.0-2.2.4-9 and I don't really
feel energetic enough to upgrade GTK today.

I created a test project to learn how to use Glade, and have quickly
realized that you really have to do all your tweaking in one session
because when you shutdown and come back later, glade will not read
back the project as I left it.

Here is a snippet from my project .glade file.

                    <widget class="GtkButton" id="pushbutton">
                      <property name="width_request">50</property>
                      <property name="height_request">29</property>
                      <property name="visible">True</property>
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
                      <property name="label"
                      <property name="use_underline">True</property>
name="relief">GTK_RELIEF_NORMAL</property> <accessibility>
                        <atkrelation target="huhbutton"
                      <signal name="clicked"
handler="on_pushbutton_clicked" last_modification_time="Tue, 31 Aug 200
4 03:05:04 GMT"/>

The width_request and height_request entries will not get loaded into
the properties dialog.  If you twiddle with the widget and save it again,
the .glade file is overwritten and that widget's height and width
settings will be gone.

I can't reproduce this yet. What container widget is the button in?
(A GtkHBox/GtkTable/GtkFixed?)


GtkHButtonBox, here is the basic structure of the file.

It also turns out that the size information is not loaded for the button box
either... not just the buttons inside it.

I don't mind forwarding the entire file (13K).   I have two of them in
the file, and the buttons inside them both exhibit this behavior.

<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd";>


<widget class="GtkWindow" id="window">
    <widget class="GtkVBox" id="vbox1">
        <widget class="GtkMenuBar" id="menubar">
            <widget class="GtkMenuItem" id="filemenu">
                <widget class="GtkMenu" id="filemenu_menu">
                    <widget class="GtkImageMenuItem" id="quit">
            <widget class="GtkMenuItem" id="helpmenu">
                <widget class="GtkMenu" id="helpmenu_menu">
                    <widget class="GtkMenuItem" id="about">
        <widget class="GtkHBox" id="hbox1">
            <widget class="GtkHBox" id="hbox3">
                <widget class="GtkHButtonBox" id="hbuttonbox1">
                    <widget class="GtkButton" id="pushbutton">
                    <widget class="GtkButton" id="huhbutton">
                    <widget class="GtkButton" id="yeahbutton">
                <widget class="GtkVBox" id="vbox4">
                    <widget class="GtkLabel" id="label1">
                    <widget class="GtkLabel" id="label2">
                <widget class="GtkHButtonBox" id="hbuttonbox2">
                    <widget class="GtkButton" id="whatbutton">
                    <widget class="GtkButton" id="andbutton">
                    <widget class="GtkButton" id="whobutton">
        <widget class="GtkScrolledWindow" id="scrolledwindow7">
            <widget class="GtkViewport" id="viewport1">
                <widget class="GtkImage" id="image1">
        <widget class="GtkHBox" id="hbox2">
            <widget class="GtkVBox" id="vbox3">
                <widget class="GtkLabel" id="label3">
                <widget class="GtkLabel" id="label4">

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