aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--icons/title-back.pngbin481 -> 0 bytes
-rw-r--r--icons/title-icon.pngbin4919 -> 0 bytes
-rw-r--r--icons/title-install.pngbin0 -> 9715 bytes
-rw-r--r--icons/title-remove.pngbin0 -> 9087 bytes
-rw-r--r--icons/title-tile.pngbin337 -> 194 bytes
-rw-r--r--icons/title-update.pngbin0 -> 10169 bytes
-rwxr-xr-xrpmdrake13
7 files changed, 7 insertions, 6 deletions
diff --git a/icons/title-back.png b/icons/title-back.png
deleted file mode 100644
index 5159301d..00000000
--- a/icons/title-back.png
+++ /dev/null
Binary files differ
diff --git a/icons/title-icon.png b/icons/title-icon.png
deleted file mode 100644
index 5a336686..00000000
--- a/icons/title-icon.png
+++ /dev/null
Binary files differ
diff --git a/icons/title-install.png b/icons/title-install.png
new file mode 100644
index 00000000..4d3b800b
--- /dev/null
+++ b/icons/title-install.png
Binary files differ
diff --git a/icons/title-remove.png b/icons/title-remove.png
new file mode 100644
index 00000000..be0ec980
--- /dev/null
+++ b/icons/title-remove.png
Binary files differ
diff --git a/icons/title-tile.png b/icons/title-tile.png
index 5acd3e3c..f02e4cf4 100644
--- a/icons/title-tile.png
+++ b/icons/title-tile.png
Binary files differ
diff --git a/icons/title-update.png b/icons/title-update.png
new file mode 100644
index 00000000..eb39395c
--- /dev/null
+++ b/icons/title-update.png
Binary files differ
diff --git a/rpmdrake b/rpmdrake
index 2b7575c7..08ad8fbe 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -717,7 +717,7 @@ Is it ok to continue?", $formatlistpkg->(sort { $a cmp $b } keys %{$urpm->{state
1, 2, 1, 2, ['expand', 'fill'], ['expand', 'fill'], 0, 0);
gtkadd($w->{window},
gtkpack_(Gtk2::VBox->new(0, 3),
- 0, gtkset_size_request(my $darea = Gtk2::DrawingArea->new, -1, 57),
+ 0, gtkset_size_request(my $darea = Gtk2::DrawingArea->new, -1, 76),
1, gtkadd(gtkset_shadow_type(gtkset_border_width(Gtk2::Frame->new, 3), 'none'),
gtkpack_(Gtk2::VBox->new(0, 3),
0, gtkpack__(Gtk2::HBox->new(0, 10),
@@ -739,16 +739,17 @@ Is it ok to continue?", $formatlistpkg->(sort { $a cmp $b } keys %{$urpm->{state
gtksignal_connect(Gtk2::Button->new(but_(N("Quit"))),
clicked => sub { Gtk2->main_quit })))
))));
- my $pixbuf_icon = gtkcreate_pixbuf('title-icon');
+ my $pixbuf_icon = gtkcreate_pixbuf("title-$MODE");
$darea->modify_font(Gtk2::Pango::FontDescription->from_string('Sans Italic 24'));
my %t = (remove => N("Software Packages Removal"), update => N("Mandrake Update"), install => N("Software Packages Installation"));
my $layout = $darea->create_pango_layout($t{$MODE});
$darea->signal_connect(realize => sub { set_back_pixbuf($darea, gtkcreate_pixbuf('title-tile')) });
$darea->signal_connect(expose_event => sub {
- my $dx = $darea->allocation->width;
- $pixbuf_icon->render_to_drawable($darea->window, $darea->style->white_gc,
- 0, 0, $dx - $pixbuf_icon->get_width, 0, -1, -1, 'none', 0, 0);
- $darea->window->draw_layout($darea->style->white_gc, ($dx-($layout->get_pixel_size)[0])/2, 17, $layout);
+ my (undef, undef, $dx, $dy) = $darea->allocation->values;
+ $darea->window->draw_pixbuf($darea->style->white_gc, $pixbuf_icon,
+ 0, 0, $dx - $pixbuf_icon->get_width, 0, -1, -1, 'none', 0, 0);
+ my ($lx, $ly) = $layout->get_pixel_size;
+ $darea->window->draw_layout($darea->style->white_gc, ($dx-$lx)/2, ($dy-$ly)/2, $layout);
0;
});