summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.pl
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-08-20 16:49:09 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-08-20 17:20:25 +0200
commitbe542c85f1b44a7d32274f2e176d36c4f25c1300 (patch)
tree42c901c4d4b86fd6ad2a47a778bfdda2170eec80 /drakpxelinux.pl
parentdd2e9e28eed4e2fc7f7be92627ebb8d1d63e0cef (diff)
downloaddrakpxelinux-be542c85f1b44a7d32274f2e176d36c4f25c1300.tar
drakpxelinux-be542c85f1b44a7d32274f2e176d36c4f25c1300.tar.gz
drakpxelinux-be542c85f1b44a7d32274f2e176d36c4f25c1300.tar.bz2
drakpxelinux-be542c85f1b44a7d32274f2e176d36c4f25c1300.tar.xz
drakpxelinux-be542c85f1b44a7d32274f2e176d36c4f25c1300.zip
fix gtk3 port
fix various "undefined value for mandatory argument 'text'" crashes
Diffstat (limited to 'drakpxelinux.pl')
-rwxr-xr-xdrakpxelinux.pl14
1 files changed, 5 insertions, 9 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 9d832ca..f106239 100755
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -545,8 +545,7 @@ sub edit_box_item {
$initrd->set_text($entry->{initrd});
set_help_tip($initrd, 'initrd');
- my $auto_install = Gtk3::Entry->new;
- $auto_install->set_text($entry->{auto_install});
+ my $auto_install = gtknew('Entry', text => $entry->{auto_install} || '');
set_help_tip($auto_install, 'auto_install');
my $profile = get_selected_profile();
my $profile_selection = $fdwidget->($auto_install, "", "auto_install", $entry->{label}, $profile);
@@ -573,12 +572,10 @@ sub edit_box_item {
# $network->set_text($entry->{network});
# set_help_tip($network, 'network');
- my $server = Gtk3::Entry->new;
- $server->set_text($entry->{server});
+ my $server = gtknew('Entry', text => $entry->{server} || '');
set_help_tip($server, 'server');
- my $directory = Gtk3::Entry->new;
- $directory->set_text($entry->{directory});
+ my $directory = gtknew('Entry', text => $entry->{directory} || '');
set_help_tip($directory, 'directory');
my $file_dialogd = $fdwidget->($directory, "dir");
@@ -596,8 +593,7 @@ sub edit_box_item {
$vga->entry->set_text($network::pxe::vga_bios_to_resolution{$entry->{vga}});
set_help_tip($vga, 'vga');
- my $display = Gtk3::Entry->new;
- $display->set_text($entry->{display});
+ my $display = gtknew('Entry', text => $entry->{display} || '');
set_help_tip($display, 'display');
my $others = Gtk3::Entry->new;
@@ -623,7 +619,7 @@ sub edit_box_item {
} else {
$toggledhcp->set_active(0);
$ipaddr->set_sensitive(1);
- $ipaddr->set_text($entry->{network});
+ $ipaddr->set_text($entry->{network} || '');
}
$toggledhcp->signal_connect(clicked => sub {