[Glade-users] File Chooser has no open/cancel buttons (perl)
- From: rkellne gwdg de (Robert Kellner)
- Subject: [Glade-users] File Chooser has no open/cancel buttons (perl)
- Date: Tue, 18 Jan 2005 13:07:08 +0100
Hi everyone,
I am having a very strange problem. I was writing a small program calling
a GtkFileChooserDialog. On the machine I was writing the program, everything
works fine, but it refuses to work on another machine. They are both running
the very same Debian distribution. I included a sample program calling
the file
chooser along with the glade file:
Anyone knows why?
Thanks,
Robert
#----------- Begin Perl code ---------
#!/usr/bin/perl -w
use strict;
use warnings;
use Gtk2 '-init'; # auto-initializes Gtk2
use Gtk2::GladeXML;
# GUI globals ---------------------------------------
my $glade;
my $filechooser; #filechooser Window
# Load the UI from xml definition file
$glade = Gtk2::GladeXML->new('file_chooser_not_ok.glade');
# Connect the signals
$glade->signal_autoconnect_from_package('main');
$filechooser = $glade->get_widget('filechooser');
Gtk2->main;
exit 0;
#--End perl code
#----Begin glade xml-file------------
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkFileChooserDialog" id="filechooserdialog">
<property name="visible">True</property>
<property name="action">GTK_FILE_CHOOSER_ACTION_OPEN</property>
<property name="local_only">True</property>
<property name="select_multiple">False</property>
<property name="show_hidden">False</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="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>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">24</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="button1">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-cancel</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">-6</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="button2">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-open</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">-5</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>
</widget>
</child>
</widget>
</glade-interface>
#---End Glade file----------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]