Fw: [Glade-users] help



----- Original Message -----
From: "S.W.Liu" <cep02lsw student zsu edu cn>
To: "Mike" <Mike kordik net>
Sent: Wednesday, October 08, 2003 9:30 AM
Subject: Re: [Glade-users] help


thanks! my simple project with file selection dialog is:


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

<glade-interface>

<widget class="GtkFileSelection" id="fileselection1">
  <property name="border_width">10</property>
  <property name="visible">True</property>
  <property name="title" translatable="yes">Select File</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>
  <property name="show_fileops">True</property>

  <child internal-child="cancel_button">
    <widget class="GtkButton" id="cancel_button1">
      <property name="visible">True</property>
      <property name="can_default">True</property>
      <property name="can_focus">True</property>
      <property name="relief">GTK_RELIEF_NORMAL</property>
    </widget>
  </child>

  <child internal-child="ok_button">
    <widget class="GtkButton" id="ok_button1">
      <property name="visible">True</property>
      <property name="can_default">True</property>
      <property name="can_focus">True</property>
      <property name="relief">GTK_RELIEF_NORMAL</property>
    </widget>
  </child>
</widget>

</glade-interface>

my question is: I want to get the selected filename when i press OK
button,
but how could I do to get the signal by glade-2? Because I can't get the
right code from glade-2, i must modify it by hand!

very thanks!

----- Original Message -----
From: "Mike" <Mike kordik net>
To: "S.W.Liu" <cep02lsw taurus zsu edu cn>
Cc: <glade-users lists ximian com>
Sent: Wednesday, October 08, 2003 8:34 AM
Subject: Re: [Glade-users] help


Can you be more specific? I am very new to Glade so I am not sure I can
help but I don't really understand the question.

Is this a fileselection dialog? I don't knwo what a fileselection
control box is. Also is this C or C++?

In general to get your the object in a C++ signal handler make sure you
make your Glade object is protected or public.



On Tue, 2003-10-07 at 09:47, S.W.Liu wrote:
hi, how to use fileselection control box in glade-2? This signal code
generated by glade-2 can't work any more!

how could I do?

thank!







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