summaryrefslogtreecommitdiffstats
path: root/control-center3
diff options
context:
space:
mode:
authorYves Duret <yduret@mandriva.com>2001-02-15 22:18:47 +0000
committerYves Duret <yduret@mandriva.com>2001-02-15 22:18:47 +0000
commit62afac64ece17f971487c6b0686bf81199f5d964 (patch)
tree516b8d4cc9553f72a0e1c4117fb3f164f3bc21c5 /control-center3
parent8fcc16f8f4129ec081eb5163f6fd8ccd51845f40 (diff)
downloadcontrol-center-62afac64ece17f971487c6b0686bf81199f5d964.tar
control-center-62afac64ece17f971487c6b0686bf81199f5d964.tar.gz
control-center-62afac64ece17f971487c6b0686bf81199f5d964.tar.bz2
control-center-62afac64ece17f971487c6b0686bf81199f5d964.tar.xz
control-center-62afac64ece17f971487c6b0686bf81199f5d964.zip
fixed most of the warning
Diffstat (limited to 'control-center3')
-rwxr-xr-xcontrol-center321
1 files changed, 9 insertions, 12 deletions
diff --git a/control-center3 b/control-center3
index 02b86255..651dcc3a 100755
--- a/control-center3
+++ b/control-center3
@@ -28,6 +28,8 @@ use POSIX;
init Gtk;
use Data::Dumper;
+my $false = 0;
+
my $_xbindir = "/usr/X11R6/bin";
my $_bindir = "/usr/bin";
my $_sbindir = "/usr/sbin";
@@ -46,6 +48,8 @@ $window_global->signal_connect ( delete_event => sub { quit_global(); });
$window_global->set_position(1);
$window_global->set_title("Mandrake Control Center");
$window_global->border_width(0);
+#$window_global->realize;
+
$vbox_global = new Gtk::VBox(0, 0);
$window_global->add($vbox_global);
@@ -293,25 +297,18 @@ sub xpm_label_box
{
my ( $parent, $xpm_filename, $label_text ) = @_;
- my $box;
- my $style;
- my $pixmap;
- my $mask;
- my $pixmapwid;
- my $label;
-
# Create box for xpm and label
- $box = new Gtk::HBox( $false, 0 );
+ my $box = new Gtk::HBox( $false, 0 );
# Get the style of the button to get the background color.
- $style = $parent->get_style()->bg( 'normal' );
+ my $style = $parent->get_style()->bg( 'normal' );
# Now on to the xpm stuff
- ($pixmap, $mask ) = Gtk::Gdk::Pixmap->create_from_xpm($parent->window, $style, $xpm_filename );
- $pixmapwid = new Gtk::Pixmap( $pixmap, $mask );
+ my ($pixmap, $mask ) = Gtk::Gdk::Pixmap->create_from_xpm($parent->window, $style, $xpm_filename );
+ my $pixmapwid = new Gtk::Pixmap( $pixmap, $mask );
# Create a label for the button
- $label = new Gtk::Label( $label_text );
+ my $label = new Gtk::Label( $label_text );
# Pack the pixmap and label into the box
$box->pack_start( $pixmapwid, $false, $false, 3 );