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



--Boundary-00=_a2jPBOos5tgJoC+
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Ok, well, don't laugh too hard when you look at it...  :-)

On Tuesday 07 September 2004 11:08, Damon Chaplin wrote:

On Thu, 2004-09-02 at 17:57, Kevin R. Bulgrien wrote:
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?)

Damon

GtkHButtonBox, here is the basic structure of the file.

I still can't reproduce it.

Can you send me your file and I'll try that.

Thanks,

Damon

--Boundary-00=_a2jPBOos5tgJoC+
Content-Type: application/x-glade;
  name="Second.glade"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
        filename="Second.glade"

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

<glade-interface>

<widget class="GtkWindow" id="window">
  <property name="visible">True</property>
  <property name="title" translatable="yes">Surprise!</property>
  <property name="type">GTK_WINDOW_TOPLEVEL</property>
  <property name="window_position">GTK_WIN_POS_NONE</property>
  <property name="modal">False</property>
  <property name="resizable">True</property>
  <property name="destroy_with_parent">False</property>
  <signal name="destroy" handler="gtk_main_quit" last_modification_time="Tue, 31 Aug 2004 02:57:12 GMT"/>

  <child>
    <widget class="GtkVBox" id="vbox1">
      <property name="visible">True</property>
      <property name="homogeneous">False</property>
      <property name="spacing">0</property>

      <child>
        <widget class="GtkMenuBar" id="menubar">
          <property name="visible">True</property>

          <child>
            <widget class="GtkMenuItem" id="filemenu">
              <property name="visible">True</property>
              <property name="label" translatable="yes">_File</property>
              <property name="use_underline">True</property>

              <child>
                <widget class="GtkMenu" id="filemenu_menu">

                  <child>
                    <widget class="GtkImageMenuItem" id="quit">
                      <property name="visible">True</property>
                      <property name="label">gtk-quit</property>
                      <property name="use_stock">True</property>
                      <signal name="activate" handler="on_quit_activate" last_modification_time="Fri, 27 Aug 
2004 02:09:44 GMT"/>
                    </widget>
                  </child>
                </widget>
              </child>
            </widget>
          </child>

          <child>
            <widget class="GtkMenuItem" id="helpmenu">
              <property name="visible">True</property>
              <property name="label" translatable="yes">_Help</property>
              <property name="use_underline">True</property>

              <child>
                <widget class="GtkMenu" id="helpmenu_menu">

                  <child>
                    <widget class="GtkMenuItem" id="about">
                      <property name="visible">True</property>
                      <property name="label" translatable="yes">_About</property>
                      <property name="use_underline">True</property>
                    </widget>
                  </child>
                </widget>
              </child>
            </widget>
          </child>
        </widget>
        <packing>
          <property name="padding">0</property>
          <property name="expand">False</property>
          <property name="fill">False</property>
        </packing>
      </child>

      <child>
        <widget class="GtkHBox" id="hbox1">
          <property name="visible">True</property>
          <property name="homogeneous">True</property>
          <property name="spacing">0</property>

          <child>
            <widget class="GtkHBox" id="hbox3">
              <property name="visible">True</property>
              <property name="homogeneous">True</property>
              <property name="spacing">0</property>

              <child>
                <widget class="GtkHButtonBox" id="hbuttonbox1">
                  <property name="width_request">255</property>
                  <property name="height_request">29</property>
                  <property name="visible">True</property>
                  <property name="layout_style">GTK_BUTTONBOX_START</property>
                  <property name="spacing">0</property>

                  <child>
                    <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" translatable="yes">Push</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                      <accessibility>
                        <atkrelation target="huhbutton" type="controller-for"/>
                      </accessibility>
                      <signal name="clicked" handler="on_pushbutton_clicked" last_modification_time="Tue, 31 
Aug 2004 03:05:04 GMT"/>
                    </widget>
                  </child>

                  <child>
                    <widget class="GtkButton" id="huhbutton">
                      <property name="width_request">50</property>
                      <property name="height_request">29</property>
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
                      <property name="label" translatable="yes">Huh?</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                      <signal name="clicked" handler="on_huhbutton_clicked" last_modification_time="Tue, 31 
Aug 2004 02:46:56 GMT"/>
                    </widget>
                  </child>

                  <child>
                    <widget class="GtkButton" id="yeahbutton">
                      <property name="width_request">50</property>
                      <property name="height_request">29</property>
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
                      <property name="label" translatable="yes">Yeah?</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                      <signal name="clicked" handler="on_yeahbutton_clicked" last_modification_time="Tue, 31 
Aug 2004 03:57:13 GMT"/>
                    </widget>
                  </child>
                </widget>
                <packing>
                  <property name="padding">0</property>
                  <property name="expand">True</property>
                  <property name="fill">True</property>
                </packing>
              </child>

              <child>
                <widget class="GtkVBox" id="vbox4">
                  <property name="visible">True</property>
                  <property name="homogeneous">True</property>
                  <property name="spacing">0</property>

                  <child>
                    <widget class="GtkLabel" id="label1">
                      <property name="visible">True</property>
                      <property name="label" translatable="yes">label1</property>
                      <property name="use_underline">False</property>
                      <property name="use_markup">False</property>
                      <property name="justify">GTK_JUSTIFY_LEFT</property>
                      <property name="wrap">False</property>
                      <property name="selectable">False</property>
                      <property name="xalign">0.5</property>
                      <property name="yalign">0.5</property>
                      <property name="xpad">0</property>
                      <property name="ypad">0</property>
                    </widget>
                    <packing>
                      <property name="padding">0</property>
                      <property name="expand">False</property>
                      <property name="fill">False</property>
                    </packing>
                  </child>

                  <child>
                    <widget class="GtkLabel" id="label2">
                      <property name="visible">True</property>
                      <property name="label" translatable="yes">label2</property>
                      <property name="use_underline">False</property>
                      <property name="use_markup">False</property>
                      <property name="justify">GTK_JUSTIFY_LEFT</property>
                      <property name="wrap">False</property>
                      <property name="selectable">False</property>
                      <property name="xalign">0.5</property>
                      <property name="yalign">0.5</property>
                      <property name="xpad">0</property>
                      <property name="ypad">0</property>
                    </widget>
                    <packing>
                      <property name="padding">0</property>
                      <property name="expand">False</property>
                      <property name="fill">False</property>
                    </packing>
                  </child>
                </widget>
                <packing>
                  <property name="padding">0</property>
                  <property name="expand">True</property>
                  <property name="fill">True</property>
                </packing>
              </child>

              <child>
                <widget class="GtkHButtonBox" id="hbuttonbox2">
                  <property name="width_request">255</property>
                  <property name="height_request">29</property>
                  <property name="visible">True</property>
                  <property name="layout_style">GTK_BUTTONBOX_END</property>
                  <property name="spacing">0</property>

                  <child>
                    <widget class="GtkButton" id="whatbutton">
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
                      <property name="label" translatable="yes">What?</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                      <signal name="clicked" handler="on_whatbutton_clicked" last_modification_time="Tue, 31 
Aug 2004 03:57:26 GMT"/>
                    </widget>
                  </child>

                  <child>
                    <widget class="GtkButton" id="andbutton">
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
                      <property name="label" translatable="yes">And?</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                      <signal name="clicked" handler="on_andbutton_clicked" last_modification_time="Tue, 31 
Aug 2004 03:57:37 GMT"/>
                    </widget>
                  </child>

                  <child>
                    <widget class="GtkButton" id="whobutton">
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
                      <property name="label" translatable="yes">Who?</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                      <signal name="clicked" handler="on_whobutton_clicked" last_modification_time="Tue, 31 
Aug 2004 03:57:46 GMT"/>
                    </widget>
                  </child>
                </widget>
                <packing>
                  <property name="padding">0</property>
                  <property name="expand">True</property>
                  <property name="fill">True</property>
                  <property name="pack_type">GTK_PACK_END</property>
                </packing>
              </child>
            </widget>
            <packing>
              <property name="padding">0</property>
              <property name="expand">True</property>
              <property name="fill">True</property>
            </packing>
          </child>
        </widget>
        <packing>
          <property name="padding">0</property>
          <property name="expand">True</property>
          <property name="fill">True</property>
        </packing>
      </child>

      <child>
        <widget class="GtkScrolledWindow" id="scrolledwindow7">
          <property name="width_request">644</property>
          <property name="height_request">534</property>
          <property name="visible">True</property>
          <property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
          <property name="vscrollbar_policy">GTK_POLICY_NEVER</property>
          <property name="shadow_type">GTK_SHADOW_NONE</property>
          <property name="window_placement">GTK_CORNER_TOP_LEFT</property>

          <child>
            <widget class="GtkViewport" id="viewport1">
              <property name="visible">True</property>
              <property name="shadow_type">GTK_SHADOW_IN</property>

              <child>
                <widget class="GtkImage" id="image1">
                  <property name="pixbuf">love.bmp</property>
                  <property name="xalign">0.5</property>
                  <property name="yalign">0.5</property>
                  <property name="xpad">0</property>
                  <property name="ypad">0</property>
                </widget>
              </child>
            </widget>
          </child>
        </widget>
        <packing>
          <property name="padding">0</property>
          <property name="expand">True</property>
          <property name="fill">True</property>
        </packing>
      </child>

      <child>
        <widget class="GtkHBox" id="hbox2">
          <property name="visible">True</property>
          <property name="homogeneous">False</property>
          <property name="spacing">0</property>

          <child>
            <widget class="GtkVBox" id="vbox3">
              <property name="visible">True</property>
              <property name="homogeneous">True</property>
              <property name="spacing">0</property>

              <child>
                <widget class="GtkLabel" id="label3">
                  <property name="visible">True</property>
                  <property name="label" translatable="yes">label3</property>
                  <property name="use_underline">False</property>
                  <property name="use_markup">False</property>
                  <property name="justify">GTK_JUSTIFY_LEFT</property>
                  <property name="wrap">False</property>
                  <property name="selectable">False</property>
                  <property name="xalign">0.5</property>
                  <property name="yalign">0.5</property>
                  <property name="xpad">0</property>
                  <property name="ypad">0</property>
                </widget>
                <packing>
                  <property name="padding">0</property>
                  <property name="expand">False</property>
                  <property name="fill">False</property>
                </packing>
              </child>

              <child>
                <widget class="GtkLabel" id="label4">
                  <property name="visible">True</property>
                  <property name="label" translatable="yes">label4</property>
                  <property name="use_underline">False</property>
                  <property name="use_markup">False</property>
                  <property name="justify">GTK_JUSTIFY_LEFT</property>
                  <property name="wrap">False</property>
                  <property name="selectable">False</property>
                  <property name="xalign">0.5</property>
                  <property name="yalign">0.5</property>
                  <property name="xpad">0</property>
                  <property name="ypad">0</property>
                </widget>
                <packing>
                  <property name="padding">0</property>
                  <property name="expand">False</property>
                  <property name="fill">False</property>
                </packing>
              </child>
            </widget>
            <packing>
              <property name="padding">0</property>
              <property name="expand">True</property>
              <property name="fill">True</property>
            </packing>
          </child>
        </widget>
        <packing>
          <property name="padding">0</property>
          <property name="expand">True</property>
          <property name="fill">True</property>
        </packing>
      </child>
    </widget>
  </child>
</widget>

</glade-interface>

--Boundary-00=_a2jPBOos5tgJoC+--




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