mirror of https://github.com/GNOME/gimp.git
use a GimpMessageBox to display the informative message when scaling an
2005-01-08 Sven Neumann <sven@gimp.org> * app/dialogs/scale-dialog.c: use a GimpMessageBox to display the informative message when scaling an indexed image.
This commit is contained in:
parent
b5094bee04
commit
32731ae0ea
|
@ -1,3 +1,8 @@
|
|||
2005-01-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/dialogs/scale-dialog.c: use a GimpMessageBox to display the
|
||||
informative message when scaling an indexed image.
|
||||
|
||||
2005-01-07 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpcontainertreeview.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;
|
||||
|
|
Loading…
Reference in New Issue