From 32731ae0ea8df7fe8f8e0dd34adc597a8fc5bce9 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Sat, 8 Jan 2005 16:22:31 +0000 Subject: [PATCH] use a GimpMessageBox to display the informative message when scaling an 2005-01-08 Sven Neumann * app/dialogs/scale-dialog.c: use a GimpMessageBox to display the informative message when scaling an indexed image. --- ChangeLog | 5 +++++ app/dialogs/scale-dialog.c | 20 +++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index f7dd7e129e..854a480d72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-08 Sven Neumann + + * app/dialogs/scale-dialog.c: use a GimpMessageBox to display the + informative message when scaling an indexed image. + 2005-01-07 Sven Neumann * app/widgets/gimpcontainertreeview.c diff --git a/app/dialogs/scale-dialog.c b/app/dialogs/scale-dialog.c index 7ebd6c5fb7..0a5bb12467 100644 --- a/app/dialogs/scale-dialog.c +++ b/app/dialogs/scale-dialog.c @@ -29,6 +29,7 @@ #include "widgets/gimpenumcombobox.h" #include "widgets/gimphelp-ids.h" +#include "widgets/gimpmessagebox.h" #include "widgets/gimpsizebox.h" #include "widgets/gimpviewabledialog.h" @@ -189,16 +190,17 @@ scale_dialog_new (GimpViewable *viewable, if (gimp_image_base_type (image) == GIMP_INDEXED) { - label = gtk_label_new (_("Indexed color layers are always scaled " - "without interpolation. The chosen " - "interpolation type will affect channels " - "and masks only.")); + GtkWidget *box = gimp_message_box_new (GIMP_STOCK_INFO); - gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0); - gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); - gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); - gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - gtk_widget_show (label); + gimp_message_box_set_text (GIMP_MESSAGE_BOX (box), + _("Indexed color layers are always scaled " + "without interpolation. The chosen " + "interpolation type will affect channels " + "and masks only.")); + + gtk_container_set_border_width (GTK_CONTAINER (box), 0); + gtk_box_pack_start (GTK_BOX (vbox), box, FALSE, FALSE, 0); + gtk_widget_show (box); } return dialog;