From e5990036001b214ed5160e3e5ff3737ad4b8191d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 13 Feb 2004 19:02:17 +0000 Subject: new banners --- icons/title-install.png | Bin 7271 -> 3646 bytes icons/title-remove.png | Bin 6904 -> 3821 bytes icons/title-update.png | Bin 7389 -> 3764 bytes rpmdrake | 20 ++++++-------------- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/icons/title-install.png b/icons/title-install.png index 97ed1381..7bae2cad 100644 Binary files a/icons/title-install.png and b/icons/title-install.png differ diff --git a/icons/title-remove.png b/icons/title-remove.png index 52c6c2b1..c59f2bdc 100644 Binary files a/icons/title-remove.png and b/icons/title-remove.png differ diff --git a/icons/title-update.png b/icons/title-update.png index 86455fee..d5e0d039 100644 Binary files a/icons/title-update.png and b/icons/title-update.png differ diff --git a/rpmdrake b/rpmdrake index da1d430e..e2a5cc80 100755 --- a/rpmdrake +++ b/rpmdrake @@ -882,7 +882,12 @@ Is it ok to continue?", to_utf8($urpm->translate_why_removed($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, 76), + 0, Gtk2::Banner->new("title-$MODE", + { remove => N("Software Packages Removal"), + update => N("Mandrake Update"), + install => N("Software Packages Installation"), + }->{$MODE} + ), 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), @@ -909,19 +914,6 @@ Is it ok to continue?", to_utf8($urpm->translate_why_removed($urpm->{state}, @{$ )))); $> and $action_button->set_sensitive(0); $find_entry->grab_focus; - 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 (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; - }); $w->{window}->set_default_size($typical_width*2.7, 500); $w->{rwindow}->show_all; -- cgit v1.2.1