Commit 734265ee authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

show a confirmation dialog if a dock with multiple tabs is being closed.

2004-12-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdock.c: show a confirmation dialog if a dock
	with multiple tabs is being closed. Sorry for the new strings,
	they were carefully copied from gnome-terminal.
parent 8b414f21
2004-12-12 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdock.c: show a confirmation dialog if a dock
with multiple tabs is being closed. Sorry for the new strings,
they were carefully copied from gnome-terminal.
2004-12-12 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/pnm.c: make export do the right thing when
......
......@@ -39,6 +39,8 @@
#include "gimpdockable.h"
#include "gimpdockbook.h"
#include "gimphelp-ids.h"
#include "gimpmessagebox.h"
#include "gimpmessagedialog.h"
#include "gimpwidgets-utils.h"
#include "gimp-intl.h"
......@@ -79,6 +81,8 @@ static void gimp_dock_get_property (GObject *object,
static void gimp_dock_destroy (GtkObject *object);
static gboolean gimp_dock_delete_event (GtkWidget *widget,
GdkEventAny *event);
static gboolean gimp_dock_key_press_event (GtkWidget *widget,
GdkEventKey *kevent);
......@@ -178,18 +182,19 @@ gimp_dock_class_init (GimpDockClass *klass)
G_TYPE_NONE, 1,
GIMP_TYPE_DOCKBOOK);
object_class->constructor = gimp_dock_constructor;
object_class->set_property = gimp_dock_set_property;
object_class->get_property = gimp_dock_get_property;
object_class->constructor = gimp_dock_constructor;
object_class->set_property = gimp_dock_set_property;
object_class->get_property = gimp_dock_get_property;
gtk_object_class->destroy = gimp_dock_destroy;
gtk_object_class->destroy = gimp_dock_destroy;
widget_class->delete_event = gimp_dock_delete_event;
widget_class->key_press_event = gimp_dock_key_press_event;
widget_class->style_set = gimp_dock_style_set;
klass->setup = NULL;
klass->book_added = gimp_dock_real_book_added;
klass->book_removed = gimp_dock_real_book_removed;
klass->setup = NULL;
klass->book_added = gimp_dock_real_book_added;
klass->book_removed = gimp_dock_real_book_removed;
g_object_class_install_property (object_class, PROP_CONTEXT,
g_param_spec_object ("context", NULL, NULL,
......@@ -325,6 +330,45 @@ gimp_dock_destroy (GtkObject *object)
GTK_OBJECT_CLASS (parent_class)->destroy (object);
}
static gboolean
gimp_dock_delete_event (GtkWidget *widget,
GdkEventAny *event)
{
GimpDock *dock = GIMP_DOCK (widget);
GList *list;
gboolean retval = FALSE;
gint n;
for (list = dock->dockbooks, n = 0; list; list = list->next)
n += gtk_notebook_get_n_pages (GTK_NOTEBOOK (list->data));
if (n > 1)
{
GtkWidget *dialog =
gimp_message_dialog_new (_("Close all tabs?"),
GIMP_STOCK_WARNING,
widget, GTK_DIALOG_MODAL,
NULL, NULL,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
_("Close all Tabs"), GTK_RESPONSE_OK,
NULL);
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("Close all tabs?"));
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("This window has %d tabs open. Closing the "
"window will also close all its tabs."), n);
retval = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_CANCEL);
gtk_widget_destroy (dialog);
}
return retval;
}
static gboolean
gimp_dock_key_press_event (GtkWidget *widget,
GdkEventKey *event)
......
2004-12-12 Sven Neumann <sven@gimp.org>
* de.po: updated german translation.
2004-12-10 Adam Weinberger <adamw@gnome.org>
* en_CA.po: Updated Canadian English translation.
......
......@@ -14,13 +14,13 @@ msgid ""
msgstr ""
"Project-Id-Version: GIMP 2.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-12-09 17:00+0100\n"
"PO-Revision-Date: 2004-12-09 17:01+0100\n"
"POT-Creation-Date: 2004-12-12 18:58+0100\n"
"PO-Revision-Date: 2004-12-12 19:00+0100\n"
"Last-Translator: Sven Neumann <sven@gimp.org>\n"
"Language-Team: German <gnome-de@gnome.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit"
"Content-Transfer-Encoding: 8bit\n"
#: plug-ins/FractalExplorer/Dialogs.c:523 plug-ins/gfig/gfig-dialog.c:283
#: plug-ins/gflare/gflare.c:891
......@@ -391,7 +391,7 @@ msgstr "_Fraktale"
#: plug-ins/common/mng.c:557 plug-ins/common/mng.c:941
#: plug-ins/common/pat.c:433 plug-ins/common/pcx.c:585
#: plug-ins/common/pix.c:515 plug-ins/common/png.c:1178
#: plug-ins/common/pnm.c:772 plug-ins/common/postscript.c:1123
#: plug-ins/common/pnm.c:809 plug-ins/common/postscript.c:1123
#: plug-ins/common/psd_save.c:1588 plug-ins/common/raw.c:517
#: plug-ins/common/raw.c:544 plug-ins/common/spheredesigner.c:2088
#: plug-ins/common/sunras.c:513 plug-ins/common/tga.c:1030
......@@ -429,7 +429,7 @@ msgstr "Fraktalparameter speichern"
#: plug-ins/common/jpeg.c:934 plug-ins/common/jpeg.c:2549
#: plug-ins/common/mng.c:1112 plug-ins/common/pat.c:300
#: plug-ins/common/pcx.c:302 plug-ins/common/pix.c:332
#: plug-ins/common/png.c:674 plug-ins/common/pnm.c:395
#: plug-ins/common/png.c:674 plug-ins/common/pnm.c:432
#: plug-ins/common/postscript.c:990 plug-ins/common/psd.c:1759
#: plug-ins/common/psp.c:1457 plug-ins/common/raw.c:230
#: plug-ins/common/raw.c:635 plug-ins/common/spheredesigner.c:1990
......@@ -965,7 +965,7 @@ msgstr "_Tiefe:"
msgid "Antialiasing quality. Higher is better, but slower"
msgstr "Qualität der Kantenglättung. Höher ist besser, aber langsamer"
#: plug-ins/MapObject/mapobject_ui.c:614 plug-ins/common/unsharp.c:717
#: plug-ins/MapObject/mapobject_ui.c:614 plug-ins/common/unsharp.c:720
#: plug-ins/common/wind.c:993 plug-ins/imagemap/imap_preferences.c:539
msgid "_Threshold:"
msgstr "_Schwellwert:"
......@@ -1190,7 +1190,7 @@ msgstr "Fehlerhafte Palette"
#: plug-ins/common/gifload.c:301 plug-ins/common/gih.c:653
#: plug-ins/common/jpeg.c:941 plug-ins/common/pat.c:305
#: plug-ins/common/pcx.c:307 plug-ins/common/pix.c:338
#: plug-ins/common/png.c:681 plug-ins/common/pnm.c:400
#: plug-ins/common/png.c:681 plug-ins/common/pnm.c:437
#: plug-ins/common/postscript.c:996 plug-ins/common/psd.c:1764
#: plug-ins/common/raw.c:640 plug-ins/common/sunras.c:436
#: plug-ins/common/tga.c:420 plug-ins/common/tiff.c:515
......@@ -1231,7 +1231,7 @@ msgstr "Unbekanntes oder ungültiges BMP-Komprimierungsformat."
#: plug-ins/common/gifload.c:865 plug-ins/common/jpeg.c:1101
#: plug-ins/common/jpeg.c:2416 plug-ins/common/pcx.c:334
#: plug-ins/common/pcx.c:340 plug-ins/common/pix.c:374
#: plug-ins/common/png.c:808 plug-ins/common/pnm.c:480
#: plug-ins/common/png.c:808 plug-ins/common/pnm.c:517
#: plug-ins/common/psd.c:2173 plug-ins/common/raw.c:677
#: plug-ins/common/smooth_palette.c:257 plug-ins/common/sunras.c:925
#: plug-ins/common/tga.c:929 plug-ins/common/tiff.c:833
......@@ -1262,7 +1262,7 @@ msgstr "Kann nicht mit unbekanntem Bildtyp arbeiten."
#: plug-ins/common/gih.c:1259 plug-ins/common/gtm.c:245
#: plug-ins/common/jpeg.c:1451 plug-ins/common/pat.c:438
#: plug-ins/common/pcx.c:545 plug-ins/common/pix.c:521
#: plug-ins/common/png.c:1185 plug-ins/common/pnm.c:777
#: plug-ins/common/png.c:1185 plug-ins/common/pnm.c:814
#: plug-ins/common/postscript.c:1128 plug-ins/common/psd_save.c:1593
#: plug-ins/common/sunras.c:518 plug-ins/common/tga.c:1035
#: plug-ins/common/tiff.c:1815 plug-ins/common/xbm.c:1001
......@@ -2115,7 +2115,7 @@ msgstr "_Anzahl Segmente:"
msgid "_Blur"
msgstr "_Weichzeichnen"
#: plug-ins/common/blur.c:191 plug-ins/common/unsharp.c:380
#: plug-ins/common/blur.c:191 plug-ins/common/unsharp.c:383
msgid "Blurring..."
msgstr "Weichzeichnen..."
......@@ -2222,6 +2222,10 @@ msgstr "Automatische Kontrastspreizung..."
msgid "c_astretch: cmap was NULL! Quitting...\n"
msgstr "c_astretch: cmap war NULL! Abbruch...\n"
#: plug-ins/common/cartoon.c:147
msgid "Ca_rtoon..."
msgstr "Cartoon..."
#: plug-ins/common/cartoon.c:228 plug-ins/common/dog.c:246
#: plug-ins/common/gauss.c:430 plug-ins/common/neon.c:222
#: plug-ins/common/photocopy.c:241 plug-ins/common/sel_gauss.c:203
......@@ -2232,7 +2236,7 @@ msgstr "Kann nicht mit Bildern mit indizierter Farbtabelle arbeiten."
#: plug-ins/common/cartoon.c:807
msgid "Cartoon"
msgstr "Cartoon"
msgstr "_Cartoon"
#: plug-ins/common/cartoon.c:837 plug-ins/common/photocopy.c:867
msgid "_Mask radius:"
......@@ -3141,7 +3145,7 @@ msgstr "Re_kursiv"
#: plug-ins/common/despeckle.c:496 plug-ins/common/neon.c:728
#: plug-ins/common/nlfilt.c:1083 plug-ins/common/nova.c:359
#: plug-ins/common/unsharp.c:691 plug-ins/common/whirlpinch.c:588
#: plug-ins/common/unsharp.c:694 plug-ins/common/whirlpinch.c:588
#: plug-ins/gflare/gflare.c:2686 plug-ins/imagemap/imap_circle.c:278
msgid "_Radius:"
msgstr "_Radius:"
......@@ -3470,7 +3474,7 @@ msgid "On Film:"
msgstr "Auf dem Film:"
#. Create selection
#: plug-ins/common/film.c:1169 plug-ins/imagemap/imap_selection.c:408
#: plug-ins/common/film.c:1169 plug-ins/imagemap/imap_selection.c:413
#: plug-ins/rcm/rcm_dialog.c:158
msgid "Selection"
msgstr "Auswahl"
......@@ -5131,7 +5135,7 @@ msgstr "Neon..."
msgid "Neon Detection"
msgstr "Neon Kantenfinder"
#: plug-ins/common/neon.c:743 plug-ins/common/unsharp.c:704
#: plug-ins/common/neon.c:743 plug-ins/common/unsharp.c:707
msgid "_Amount:"
msgstr "_Menge:"
......@@ -5640,55 +5644,63 @@ msgstr "PNM-Bild"
msgid "PNM image"
msgstr "PNM-Bild"
#: plug-ins/common/pnm.c:428 plug-ins/common/pnm.c:449
#: plug-ins/common/pnm.c:456 plug-ins/common/pnm.c:465
#: plug-ins/common/pnm.c:540 plug-ins/common/pnm.c:596
#: plug-ins/common/pnm.c:260
msgid "PGM image"
msgstr "PGM-Bild"
#: plug-ins/common/pnm.c:272
msgid "PPM image"
msgstr "PPM-Bild"
#: plug-ins/common/pnm.c:465 plug-ins/common/pnm.c:486
#: plug-ins/common/pnm.c:493 plug-ins/common/pnm.c:502
#: plug-ins/common/pnm.c:577 plug-ins/common/pnm.c:633
msgid "PNM: Premature end of file."
msgstr "PNM: Unerwartetes Ende der Datei."
#: plug-ins/common/pnm.c:430
#: plug-ins/common/pnm.c:467
msgid "PNM: Invalid file."
msgstr "PNM: Ungültige Datei."
#: plug-ins/common/pnm.c:443
#: plug-ins/common/pnm.c:480
msgid "File not in a supported format."
msgstr "Datei ist nicht in einem unterstützen Format."
#: plug-ins/common/pnm.c:452
#: plug-ins/common/pnm.c:489
msgid "PNM: Invalid X resolution."
msgstr "PNM: Ungültige X Auflösung."
#: plug-ins/common/pnm.c:459
#: plug-ins/common/pnm.c:496
msgid "PNM: Invalid Y resolution."
msgstr "PNM: Ungültige Y Auflösung."
#: plug-ins/common/pnm.c:471
#: plug-ins/common/pnm.c:508
msgid "PNM: Invalid maximum value."
msgstr "PNM: Ungültiger Maximalwert."
#: plug-ins/common/pnm.c:647
#: plug-ins/common/pnm.c:684
msgid "PNM: Error reading file."
msgstr "PNM: Fehler beim Lesen der Datei."
#: plug-ins/common/pnm.c:763
#: plug-ins/common/pnm.c:800
msgid "PNM save cannot handle images with alpha channels."
msgstr "PNM-Speichern kann keine Bilder mit Alpha-Kanal bearbeiten"
#: plug-ins/common/pnm.c:912
#: plug-ins/common/pnm.c:949
msgid "Save as PNM"
msgstr "Als PNM speichern"
#. file save type
#: plug-ins/common/pnm.c:922
#: plug-ins/common/pnm.c:959
msgid "Data formatting"
msgstr "Daten Formatierung"
# TODO
#: plug-ins/common/pnm.c:926
#: plug-ins/common/pnm.c:963
msgid "Raw"
msgstr "Roh"
#: plug-ins/common/pnm.c:927
#: plug-ins/common/pnm.c:964
msgid "Ascii"
msgstr "Ascii"
......@@ -7398,19 +7410,19 @@ msgstr "Alle Textfelder müssen Werte enthalten."
msgid "Unit Editor"
msgstr "Einheiten-Editor"
#: plug-ins/common/unsharp.c:147
#: plug-ins/common/unsharp.c:149
msgid "_Unsharp Mask..."
msgstr "_Unscharf Maskieren..."
#: plug-ins/common/unsharp.c:490
#: plug-ins/common/unsharp.c:493
msgid "Merging..."
msgstr "Maskiere..."
#: plug-ins/common/unsharp.c:661
#: plug-ins/common/unsharp.c:664
msgid "Unsharp Mask"
msgstr "Unscharf Maskieren"
#: plug-ins/common/url.c:85 plug-ins/imagemap/imap_selection.c:429
#: plug-ins/common/url.c:85 plug-ins/imagemap/imap_selection.c:434
msgid "URL"
msgstr "URL"
......@@ -9970,7 +9982,7 @@ msgid "Cut"
msgstr "Ausschneiden"
#: plug-ins/imagemap/imap_cmd_delete.c:57
#: plug-ins/imagemap/imap_selection.c:181 plug-ins/imagemap/imap_tools.c:179
#: plug-ins/imagemap/imap_selection.c:186 plug-ins/imagemap/imap_tools.c:179
msgid "Delete"
msgstr "Löschen"
......@@ -10089,7 +10101,7 @@ msgstr "Punkt hinzufügen"
#: plug-ins/imagemap/imap_cmd_move_down.c:53
#: plug-ins/imagemap/imap_cmd_object_down.c:55
#: plug-ins/imagemap/imap_object_popup.c:109
#: plug-ins/imagemap/imap_selection.c:172
#: plug-ins/imagemap/imap_selection.c:177
msgid "Move Down"
msgstr "Runter"
......@@ -10110,7 +10122,7 @@ msgstr "Nach vorne bringen"
#: plug-ins/imagemap/imap_cmd_move_up.c:53
#: plug-ins/imagemap/imap_cmd_object_up.c:55
#: plug-ins/imagemap/imap_object_popup.c:107
#: plug-ins/imagemap/imap_selection.c:168
#: plug-ins/imagemap/imap_selection.c:173
msgid "Move Up"
msgstr "Rauf"
......@@ -10570,19 +10582,19 @@ msgstr "Oben links _x:"
msgid "Upper left _y:"
msgstr "Oben links _y:"
#: plug-ins/imagemap/imap_selection.c:177 plug-ins/imagemap/imap_tools.c:174
#: plug-ins/imagemap/imap_selection.c:182 plug-ins/imagemap/imap_tools.c:174
msgid "Edit"
msgstr "Bearbeiten"
#: plug-ins/imagemap/imap_selection.c:418
#: plug-ins/imagemap/imap_selection.c:423
msgid "#"
msgstr "Nr. "
#: plug-ins/imagemap/imap_selection.c:447
#: plug-ins/imagemap/imap_selection.c:452
msgid "ALT Text"
msgstr "ALT-Text"
#: plug-ins/imagemap/imap_selection.c:457
#: plug-ins/imagemap/imap_selection.c:462
msgid "Target"
msgstr "Ziel"
......@@ -11711,4 +11723,3 @@ msgstr "Fehler: Konnte XJT Eigenschaften-Datei '%s' nicht lesen."
#, c-format
msgid "Error: XJT property file '%s' is empty."
msgstr "Fehler: XJT Eigenschaften-Datei '%s' ist leer."
......@@ -13,8 +13,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GIMP 2.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-12-12 17:40+0100\n"
"PO-Revision-Date: 2004-12-12 17:42+0100\n"
"POT-Creation-Date: 2004-12-12 18:58+0100\n"
"PO-Revision-Date: 2004-12-12 18:55+0100\n"
"Last-Translator: Hendrik Brandt <heb@gnome-de.org>\n"
"Language-Team: German <gnome-de@gnome.org>\n"
"MIME-Version: 1.0\n"
......@@ -10165,7 +10165,24 @@ msgstr "Vordergrund: %d, %d, %d"
msgid "Background: %d, %d, %d"
msgstr "Hintergrund: %d, %d, %d"
#: app/widgets/gimpdock.c:430
#: app/widgets/gimpdock.c:348 app/widgets/gimpdock.c:359
msgid "Close all tabs?"
msgstr "Alle Reiter schließen?"
#: app/widgets/gimpdock.c:354
msgid "Close all Tabs"
msgstr "Alle Reiter schließen"
#: app/widgets/gimpdock.c:361
#, c-format
msgid ""
"This window has %d tabs open. Closing the window will also close all its "
"tabs."
msgstr ""
"Dieses Fenster hat %d offene Reiter. Das Schließen dieses Fensters wird auch "
"diese schließen."
#: app/widgets/gimpdock.c:474
msgid "You can drop dockable dialogs here."
msgstr "Hier können Dialoge angedockt werden."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment