[Glade-users] Re: Non-resizable dialogs



This is a multi-part message in MIME format.
--------------070805080300090209080508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Damon Chaplin wrote:

I don't think so.

If you send me your .glade file I'll try it out here.

Thanks for your reply. Here you go, I include a sample glade and test 
program.

Note: I had initially only replied to Damon, as email attachments are 
not always welcome on newsgroups and mailing lists. However, I don't 
think ASCII attachments could do much harm, so I include them here as 
well, for the sake of completeness.

Regards,

-- 
Ney Andr� de Mello Zunino

--------------070805080300090209080508
Content-Type: text/xml;
 name="non-resizable.glade"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="non-resizable.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="GtkDialog" id="dialog1">
  <property name="width_request">300</property>
  <property name="height_request">200</property>
  <property name="visible">True</property>
  <property name="title" translatable="yes">Non-resizable</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">False</property>
  <property name="destroy_with_parent">False</property>
  <property name="decorated">True</property>
  <property name="skip_taskbar_hint">False</property>
  <property name="skip_pager_hint">False</property>
  <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
  <property name="has_separator">True</property>

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

      <child internal-child="action_area">
        <widget class="GtkHButtonBox" id="dialog-action_area1">
          <property name="visible">True</property>
          <property name="layout_style">GTK_BUTTONBOX_END</property>

          <child>
            <widget class="GtkButton" id="closebutton1">
              <property name="visible">True</property>
              <property name="can_default">True</property>
              <property name="can_focus">True</property>
              <property name="label">gtk-close</property>
              <property name="use_stock">True</property>
              <property name="relief">GTK_RELIEF_NORMAL</property>
              <property name="focus_on_click">True</property>
              <property name="response_id">-7</property>
            </widget>
          </child>
        </widget>
        <packing>
          <property name="padding">0</property>
          <property name="expand">False</property>
          <property name="fill">True</property>
          <property name="pack_type">GTK_PACK_END</property>
        </packing>
      </child>

      <child>
        <widget class="GtkLabel" id="label2">
          <property name="visible">True</property>
          <property name="label" translatable="yes">This should be a non-resizable dialog.</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">True</property>
          <property name="fill">False</property>
        </packing>
      </child>
    </widget>
  </child>
</widget>

</glade-interface>

--------------070805080300090209080508
Content-Type: text/plain;
 name="non-resizable.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="non-resizable.cpp"

#include <gtkmm/main.h>
#include <gtkmm/dialog.h>
#include <libglademm.h>

int main(int argc, char* argv[])
{
  Gtk::Main gtkMain(argc, argv);
  Glib::RefPtr<Gnome::Glade::Xml> refGlade = Gnome::Glade::Xml::create("non-resizable.glade");
  Gtk::Dialog* dialog = 0;
  refGlade->get_widget("dialog1", dialog);
  gtkMain.run(*dialog);
}

--------------070805080300090209080508--





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