summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-05 16:05:48 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-05 16:05:48 +0000
commitca8a87f179313e549db1d9ba8e61ed3a4b4f1ddd (patch)
treeb19a23230abcfdb8f2ed03d0e5f8b89fbaa9d5fd
parent84232fec9071ca256965dd28b144a32aee02994c (diff)
downloadcontrol-center-ca8a87f179313e549db1d9ba8e61ed3a4b4f1ddd.tar
control-center-ca8a87f179313e549db1d9ba8e61ed3a4b4f1ddd.tar.gz
control-center-ca8a87f179313e549db1d9ba8e61ed3a4b4f1ddd.tar.bz2
control-center-ca8a87f179313e549db1d9ba8e61ed3a4b4f1ddd.tar.xz
control-center-ca8a87f179313e549db1d9ba8e61ed3a4b4f1ddd.zip
wrap text
-rwxr-xr-xcontrol-center28
1 files changed, 9 insertions, 19 deletions
diff --git a/control-center b/control-center
index 201f3c0d..0a4bd6e4 100755
--- a/control-center
+++ b/control-center
@@ -1108,15 +1108,7 @@ sub new {
),
gtkpack_(Gtk2::HBox->new,
0, my $img = gtkcreate_img($icon),
- 1, Gtk2::WrappedLabel->new($text),
- if_(0, 1, gtktext_insert(
- # disable selecting text and popping the contextual menu
- # (GUI team says it's *horrible* to be able to do select text!)
- gtksignal_connect(my $tv = Gtk2::TextView->new,
- button_press_event => sub { 1 }),
- [ [ $text, {'background_set' => 0,
- 'background_stipple_set' => 0 } ] ])
- ),
+ 0, 1, Gtk2::WrappedLabel->new($text),
),
);
@@ -1139,16 +1131,14 @@ sub new {
gtkpack_(
Gtk2::VBox->new(0, $hbox_spacing),
0, gtkcreate_img($icon),
- 1, Gtk2::WrappedLabel->new($text),
- if_(0,1, gtktext_insert(
- # disable selecting text and popping the contextual menu
- # (GUI team says it's *horrible* to be able to do select text!)
- gtksignal_connect(my $tv = Gtk2::TextView->new,
- button_press_event => sub { 1 }),
- [ [ $text, {'background_set' => 0,
- 'background_stipple_set' => 0 } ] ])
- ),
- )
+ 1, gtktext_insert(
+ # disable selecting text and popping the contextual menu
+ # (GUI team says it's *horrible* to be able to do select text!)
+ gtksignal_connect(my $tv = Gtk2::TextView->new,
+ button_press_event => sub { 1 }),
+ [ [ $text, {'background_set' => 0, justification => "center",
+ 'background_stipple_set' => 0 } ] ])
+ ),
);
$tv->set_events([]);
# FIXME : resize sig: ->foreach; set_size_request