summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-08-20 20:32:13 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-08-20 20:32:13 +0000
commit3e1db1a9dde3a13629227a71d53c83ce4f8d7a40 (patch)
treed91bef8f830ffb75fbb67812eca01186e2a070d8
parentb4dd1833c2523696926609c7fd544b5c07f3bea2 (diff)
downloadcontrol-center-3e1db1a9dde3a13629227a71d53c83ce4f8d7a40.tar
control-center-3e1db1a9dde3a13629227a71d53c83ce4f8d7a40.tar.gz
control-center-3e1db1a9dde3a13629227a71d53c83ce4f8d7a40.tar.bz2
control-center-3e1db1a9dde3a13629227a71d53c83ce4f8d7a40.tar.xz
control-center-3e1db1a9dde3a13629227a71d53c83ce4f8d7a40.zip
summary textview: smoother margins
-rwxr-xr-xcontrol-center10
1 files changed, 7 insertions, 3 deletions
diff --git a/control-center b/control-center
index e7270e7e..3e3bca90 100755
--- a/control-center
+++ b/control-center
@@ -400,9 +400,11 @@ my $pixbuf_icon = gtkcreate_pixbuf('mcc-title-icon');
# main page (summary) :
+my $margin = 40;
my $summary = gtktext_insert(Gtk2::TextView->new, [
[ N("Welcome to the Mandrake Control Center")."\n\n",
- {'size-points' => 15, justification => 'center', 'weight-set' => 1, weight => 1000 } ],
+ {'size-points' => 15, justification => 'center', pixels_above_lines => $margin-10,
+ 'weight-set' => 1, weight => 1000 } ],
[ formatAlaTeX(N("Mandrake Control Center is Mandrake Linux's main configuration
tool. It enables the system administrator to configure the hardware
and services used for all users.
@@ -414,9 +416,11 @@ evil command line.")) ],
[ "\n ", { justification => 'GTK_JUSTIFY_RIGHT' } ],
[ gtkcreate_pixbuf('mcc-welcome-logo'), { justification => 'GTK_JUSTIFY_RIGHT' } ]
]);
+$summary->set_left_margin($margin);
+$summary->set_right_margin($margin);
-add2notebook($notebook_global, "", create_scrolled_window(gtkset_size_request(gtkset_border_width($summary, 40),
- 50, 50),
+add2notebook($notebook_global, "", create_scrolled_window(gtkset_size_request($summary,
+ 50, 50),
),
);