summaryrefslogtreecommitdiffstats
path: root/bin/drakinvictus
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-07 16:57:13 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 11:00:40 +0100
commit4a4453328a1a2051307f44e6c1c200625666ba16 (patch)
tree9fb9eb5089abd561cf1c857e448e3c63fcc4465e /bin/drakinvictus
parent7bf101337af175668274aaae14b6320a5224f480 (diff)
downloaddrakx-net-4a4453328a1a2051307f44e6c1c200625666ba16.tar
drakx-net-4a4453328a1a2051307f44e6c1c200625666ba16.tar.gz
drakx-net-4a4453328a1a2051307f44e6c1c200625666ba16.tar.bz2
drakx-net-4a4453328a1a2051307f44e6c1c200625666ba16.tar.xz
drakx-net-4a4453328a1a2051307f44e6c1c200625666ba16.zip
switch from gtk2 to gtk3
Diffstat (limited to 'bin/drakinvictus')
-rwxr-xr-xbin/drakinvictus10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/drakinvictus b/bin/drakinvictus
index c903bc6..eaf6fe1 100755
--- a/bin/drakinvictus
+++ b/bin/drakinvictus
@@ -29,14 +29,14 @@ use common;
use network::invictus;
use network::network;
use detect_devices;
-use mygtk2 qw(gtknew);
-use ugtk2 qw(:create :helpers :wrappers :dialogs);
+use mygtk3 qw(gtknew);
+use ugtk3 qw(:create :helpers :wrappers :dialogs);
require_root_capability();
-$ugtk2::wm_icon = 'invictus-16';
+$ugtk3::wm_icon = 'invictus-16';
my $title = N("Invictus Firewall");
-my $w = ugtk2->new($title);
+my $w = ugtk3->new($title);
$::main_window = $w->{real_window}; #- so that transient_for is defined for wait messages and dialogs
my $net = {};
@@ -98,7 +98,7 @@ sub update_ct_sync_state() {
gtkadd($w->{window},
gtknew('VBox', spacing => 5, children_tight => [
- $::isEmbedded ? () : Gtk2::Banner->new('invictus-32', $title),
+ $::isEmbedded ? () : Gtk3::Banner->new('invictus-32', $title),
gtknew('WrappedLabel', text => N("This tool allows to set up network interfaces failover and firewall replication.")),
gtknew('Frame', border_width => 5,
text => N("Network redundancy (leave empty if interface is not used)"),