* editors.[ch]: Add "%w" macro to disable full screen deactivation when
running an editor command.
* img-view.c, layout_image.c, pan-view.c: Honor %w editor flag to
prevent exit of full screen.
* image-load.c (image_load_begin): Fix to not treat short reads as
end of file condition.
* README, doc/10_5_editor_commands.html: Document %w macro for editor
commands.
* po/it.po: Update Italian translation,
submitted by Kostantino <inverness1ATvirgilio.it>.
+Mon Jun 13 17:31:46 2005 John Ellis <johne@verizon.net>
+
+ * editors.[ch]: Add "%w" macro to disable full screen deactivation when
+ running an editor command.
+ * img-view.c, layout_image.c, pan-view.c: Honor %w editor flag to
+ prevent exit of full screen.
+ * image-load.c (image_load_begin): Fix to not treat short reads as
+ end of file condition.
+ * README, doc/10_5_editor_commands.html: Document %w macro for editor
+ commands.
+ * po/it.po: Update Italian translation,
+ submitted by Kostantino <inverness1ATvirgilio.it>.
+
Sun Jun 12 19:25:26 2005 John Ellis <johne@verizon.net>
* format_canon.[ch]: Reimplement canon raw parser to use convenience
Sun Jun 12 19:25:26 2005 John Ellis <johne@verizon.net>
* format_canon.[ch]: Reimplement canon raw parser to use convenience
Use of the following to display output window for the command:
%v Display result of command in output window, must occur as first two
Use of the following to display output window for the command:
%v Display result of command in output window, must occur as first two
- characters in the command.
+ characters in the command, or immediately after the "%w" macro.
%V Like v above, but when used with %p, only displays output window for
multiple files. The output of a single file is suppressed.
%V Like v above, but when used with %p, only displays output window for
multiple files. The output of a single file is suppressed.
+ Additional macros:
+
+ %w Prevent full screen from deactivating when command is executed,
+ must occur as the first two characters.
+
======== Additional comments:
Advanced options:
======== Additional comments:
Advanced options:
- > update translations: it( ) ( ) ( )
+d> update translations: it(x) ( ) ( )
> document recent additions/changes:
> Added 'Fast jpeg thumbnailing'.
> document recent additions/changes:
> Added 'Fast jpeg thumbnailing'.
<TITLE>Editor Options - GQview User Manual</TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.3 (Linux)">
<META NAME="CREATED" CONTENT="20040805;23590500">
<TITLE>Editor Options - GQview User Manual</TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.3 (Linux)">
<META NAME="CREATED" CONTENT="20040805;23590500">
- <META NAME="CHANGED" CONTENT="20050131;8430800">
+ <META NAME="CHANGED" CONTENT="20050613;17101000">
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<CENTER>
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<CENTER>
<P ALIGN=CENTER>%v</P>
</TD>
<TD WIDTH=80%>
<P ALIGN=CENTER>%v</P>
</TD>
<TD WIDTH=80%>
- <P>Display the result of the command in an output window, must
- occur as the first two characters.</P>
+ <P>Display the result of the command in an output window. Must
+ occur as the first two characters, or immediately after the “%w”
+ macro.</P>
</TD>
</TR>
<TR VALIGN=TOP>
</TD>
</TR>
<TR VALIGN=TOP>
file is suppressed.</P>
</TD>
</TR>
file is suppressed.</P>
</TD>
</TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=20%>
+ <P ALIGN=CENTER>%w</P>
+ </TD>
+ <TD WIDTH=80%>
+ <P>Prevent full screen from deactivating when command is
+ executed. Must occur as the first two characters.</P>
+ </TD>
+ </TR>
<P STYLE="margin-bottom: 0in"><BR>
</P>
</BODY>
<P STYLE="margin-bottom: 0in"><BR>
</P>
</BODY>
+</HTML>
\ No newline at end of file
-# translation of gqview-1.5.9_it.po to Italiano
+# translation of gqview-2.1.0_it.po to Italiano
# This file is distributed under the same license as the PACKAGE package.
# This file is distributed under the same license as the PACKAGE package.
-# Costantino <inverness1ATvirgilio.it>, 2005.
# Un ringraziamento per i preziosi suggerimenti a Marco Colombo <m.colomboATed.ac.uk>
# Un ringraziamento per i preziosi suggerimenti a Marco Colombo <m.colomboATed.ac.uk>
+# Kostantino <inverness1ATvirgilio.it>, 2005.
# Copyright (C) Christopher R. Gabriel <cgabriel@pluto.linux.it>, 2000 - 2001.
# Copyright (C) Christopher R. Gabriel <cgabriel@pluto.linux.it>, 2000 - 2001.
-# Costantino <inverness1ATvirgilio.it>, 2005.
+# Kostantino <inverness1ATvirgilio.it>, 2005.
-"Project-Id-Version: gqview-1.5.9_it\n"
+"Project-Id-Version: gqview-2.1.0_it\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-03-05 16:24-0500\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-03-05 16:24-0500\n"
-"PO-Revision-Date: 2005-02-26 16:44+0100\n"
-"Last-Translator: Costantino <inverness1ATvirgilio.it>\n"
-"Language-Team: Italiano <it@li.org>\n"
+"PO-Revision-Date: 2005-03-11 17:26+0100\n"
+"Last-Translator: Kostantino <inverness1ATvirgilio.it>\n"
+"Language-Team: Italiano <tp@lists.linux.it>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.3.1\n"
+"X-Generator: KBabel 1.9.1\n"
#: src/bar_info.c:30
msgid "Favorite"
#: src/bar_info.c:30
msgid "Favorite"
msgstr "C_erca..."
#: src/layout_util.c:768
msgstr "C_erca..."
#: src/layout_util.c:768
+msgstr "_Vista panoramica"
#: src/layout_util.c:769
msgid "_Print..."
#: src/layout_util.c:769
msgid "_Print..."
msgstr "Ruota di _180 gradi"
#: src/pan-view.c:3109
msgstr "Ruota di _180 gradi"
#: src/pan-view.c:3109
+msgstr "%d immagini, %s"
#: src/pan-view.c:3180 src/pan-view.c:3233
#: src/pan-view.c:3180 src/pan-view.c:3233
msgid "Sorting images..."
msgid "Sorting images..."
-msgstr "Sto ordinando..."
+msgstr "Sto ordinando le immagini..."
#: src/pan-view.c:3552 src/pan-view.c:3879
#: src/pan-view.c:3552 src/pan-view.c:3879
#: src/pan-view.c:3562 src/preferences.c:849 src/print.c:3201 src/print.c:3408
msgid "Size:"
#: src/pan-view.c:3562 src/preferences.c:849 src/print.c:3201 src/print.c:3408
msgid "Size:"
#: src/pan-view.c:3617
msgid "path found"
#: src/pan-view.c:3617
msgid "path found"
+msgstr "il percorso è stato trovato"
-msgstr "Il file non è stato trovato"
+msgstr "Il file è stato trovato"
+msgstr "corrispondenza parziale"
#: src/pan-view.c:3876 src/pan-view.c:3909
msgid "no match"
#: src/pan-view.c:3876 src/pan-view.c:3909
msgid "no match"
+msgstr "nessuna corrispondenza"
#: src/pan-view.c:4179 src/search.c:2140
msgid "Folder not found"
#: src/pan-view.c:4179 src/search.c:2140
msgid "Folder not found"
#: src/pan-view.c:4180
msgid "The entered path is not a folder"
#: src/pan-view.c:4180
msgid "The entered path is not a folder"
+msgstr "Il percorso immesso non corrisponde ad una cartella"
+msgstr "Cartelle (fiore)"
#: src/pan-view.c:4289
msgid "Grid"
#: src/pan-view.c:4289
msgid "Grid"
+msgstr "Nessuna immagine"
+msgstr "Miniature Piccole"
msgid "Normal Thumbnails"
msgid "Normal Thumbnails"
+msgstr "Miniature Normali"
+msgstr "Miniature Grandi"
#: src/pan-view.c:4303
msgid "1:10 (10%)"
#: src/pan-view.c:4303
msgid "1:10 (10%)"
#: src/pan-view.c:4304
msgid "1:4 (25%)"
#: src/pan-view.c:4304
msgid "1:4 (25%)"
#: src/pan-view.c:4305
msgid "1:3 (33%)"
#: src/pan-view.c:4305
msgid "1:3 (33%)"
#: src/pan-view.c:4306
msgid "1:2 (50%)"
#: src/pan-view.c:4306
msgid "1:2 (50%)"
#: src/pan-view.c:4307
msgid "1:1 (100%)"
#: src/pan-view.c:4307
msgid "1:1 (100%)"
#: src/pan-view.c:4409
msgid "Find"
#: src/pan-view.c:4409
msgid "Find"
#: src/pan-view.c:4470
msgid "Pan View Performance"
#: src/pan-view.c:4470
msgid "Pan View Performance"
+msgstr "Esecuzione Vista Panoramica"
#: src/pan-view.c:4477
msgid "Pan view performance may be poor."
#: src/pan-view.c:4477
msgid "Pan view performance may be poor."
+msgstr "L'esecuzione in vista panoramica può essere scadente."
#: src/pan-view.c:4478
msgid ""
#: src/pan-view.c:4478
msgid ""
"can be enabled. Note that both options must be enabled to notice a change in "
"performance."
msgstr ""
"can be enabled. Note that both options must be enabled to notice a change in "
"performance."
msgstr ""
+"Le opzioni seguenti possono essere abilitate per migliorare l'esecuzione delle miniature in modalità vista panoramica. "
+"Nota che, per rilevare una modifica nella resa, entrambe le opzioni "
+"devono essere abilitate."
#: src/pan-view.c:4486 src/preferences.c:852
msgid "Cache thumbnails"
#: src/pan-view.c:4486 src/preferences.c:852
msgid "Cache thumbnails"
#: src/pan-view.c:4494
msgid "Do not show this dialog again"
#: src/pan-view.c:4494
msgid "Do not show this dialog again"
+msgstr "Non mostrare ancora questo"
#: src/preferences.c:390
msgid "Nearest (worst, but fastest)"
#: src/preferences.c:390
msgid "Nearest (worst, but fastest)"
#: src/preferences.c:872
msgid "Faster jpeg thumbnailing (may reduce quality)"
#: src/preferences.c:872
msgid "Faster jpeg thumbnailing (may reduce quality)"
+msgstr "Miniaturizzazione JPEG veloce (potrebbe ridurre la qualità)"
#: src/preferences.c:875
msgid "Slide show"
#: src/preferences.c:875
msgid "Slide show"
#: src/thumb.c:379
msgid "Thumbnail image in cache failed to load, trying to recreate.\n"
#: src/thumb.c:379
msgid "Thumbnail image in cache failed to load, trying to recreate.\n"
-msgstr ""
-"Non sono riuscito a caricare le miniature dalla cache: provo a ricrearle.\n"
+msgstr "Non sono riuscito a caricare le miniature dalla cache: provo a ricrearle.\n"
#: src/ui_bookmark.c:148
#, c-format
#: src/ui_bookmark.c:148
#, c-format
msgstr ""
"Il nome del file non è valido:\n"
"%s"
msgstr ""
"Il nome del file non è valido:\n"
"%s"
*
* Only one of the macros %f or %p may be used in a given commmand.
*
*
* Only one of the macros %f or %p may be used in a given commmand.
*
- * %v must be the first two characters in a command, causes a window to display
+ * %v must be the first two characters[1] in a command, causes a window to display
* showing the output of the command(s).
* %V same as %v except in the case of %p only displays a window for multiple files,
* operating on a single file is suppresses the output dialog.
* showing the output of the command(s).
* %V same as %v except in the case of %p only displays a window for multiple files,
* operating on a single file is suppresses the output dialog.
+ *
+ * %w must be first two characters in a command, presence will disable full screen
+ * from exiting upon invocation.
+ *
+ *
+ * [1] Note: %v,%V may also be preceded by "%w".
*/
static void editor_command_run(const gchar *template, const gchar *text, GList *list)
{
*/
static void editor_command_run(const gchar *template, const gchar *text, GList *list)
{
for_each = (strstr(template, "%p") != NULL);
for_each = (strstr(template, "%p") != NULL);
+ /* no window state change flag, skip */
+ if (strncmp(template, "%w", 2) == 0) template += 2;
+
if (strncmp(template, "%v", 2) == 0)
{
template += 2;
if (strncmp(template, "%v", 2) == 0)
{
template += 2;
start_editor_from_path_list(n, list);
g_list_free(list);
}
start_editor_from_path_list(n, list);
g_list_free(list);
}
+
+gint editor_window_flag_set(gint n)
+{
+ if (n < 0 || n >= GQVIEW_EDITOR_SLOTS ||
+ !editor_command[n] ||
+ strlen(editor_command[n]) == 0) return TRUE;
+
+ return (strncmp(editor_command[n], "%w", 2) == 0);
+}
+
+
void start_editor_from_file(gint n, const gchar *path);
void start_editor_from_path_list(gint n, GList *list);
void start_editor_from_file(gint n, const gchar *path);
void start_editor_from_path_list(gint n, GList *list);
+gint editor_window_flag_set(gint n);
+
b = read(il->load_fd, &buf, sizeof(buf));
b = read(il->load_fd, &buf, sizeof(buf));
format_raw_img_exif_offsets_fd(il->load_fd, il->path, buf, b, &offset, NULL))
{
if (debug) printf("Raw file %s contains embedded image\n", il->path);
format_raw_img_exif_offsets_fd(il->load_fd, il->path, buf, b, &offset, NULL))
{
if (debug) printf("Raw file %s contains embedded image\n", il->path);
- if (gdk_pixbuf_loader_write(il->loader, buf, b, NULL))
+ if (!gdk_pixbuf_loader_write(il->loader, buf, b, NULL))
- il->bytes_read += b + offset;
+ image_loader_stop(il);
+ return FALSE;
+ }
- if (b < sizeof(buf))
- {
- /* end of file already */
+ il->bytes_read += b + offset;
+ /* read until size is known */
+ while (il->loader && !gdk_pixbuf_loader_get_pixbuf(il->loader) && b > 0)
+ {
+ b = read(il->load_fd, &buf, sizeof(buf));
+ if (b < 0 || (b > 0 && !gdk_pixbuf_loader_write(il->loader, buf, b, NULL)))
+ {
-
- if (!il->pixbuf) return FALSE;
-
- image_loader_done_delay(il);
- return TRUE;
- else
- {
- /* larger file */
-
- /* read until size is known */
- while(il->loader && !gdk_pixbuf_loader_get_pixbuf(il->loader) && b > 0)
- {
- b = read(il->load_fd, &buf, sizeof(buf));
- if (b < 0 || (b > 0 && !gdk_pixbuf_loader_write(il->loader, buf, b, NULL)))
- {
- image_loader_stop(il);
- return FALSE;
- }
- il->bytes_read += b;
- }
- if (!il->pixbuf) image_loader_sync_pixbuf(il);
-
- if (il->bytes_read == il->bytes_total || b < sizeof(buf))
- {
- /* done, handle (broken) loaders that do not have pixbuf till close */
- image_loader_stop(il);
+ il->bytes_read += b;
+ }
+ if (!il->pixbuf) image_loader_sync_pixbuf(il);
- if (!il->pixbuf) return FALSE;
+ if (il->bytes_read == il->bytes_total || b < 1)
+ {
+ /* done, handle (broken) loaders that do not have pixbuf till close */
+ image_loader_stop(il);
- image_loader_done_delay(il);
- return TRUE;
- }
+ if (!il->pixbuf) return FALSE;
- if (!il->pixbuf)
- {
- image_loader_stop(il);
- return FALSE;
- }
-
- /* finally, progressive loading :) */
- il->idle_id = g_idle_add_full(il->idle_priority, image_loader_idle_cb, il, NULL);
- return TRUE;
- }
+ image_loader_done_delay(il);
+ return TRUE;
{
image_loader_stop(il);
return FALSE;
}
{
image_loader_stop(il);
return FALSE;
}
+ /* finally, progressive loading :) */
+ il->idle_id = g_idle_add_full(il->idle_priority, image_loader_idle_cb, il, NULL);
+
- view_fullscreen_toggle(vw, TRUE);
+ if (!editor_window_flag_set(n))
+ {
+ view_fullscreen_toggle(vw, TRUE);
+ }
+ imd = view_window_active_image(vw);
start_editor_from_file(n, image_get_path(imd));
}
}
start_editor_from_file(n, image_get_path(imd));
}
}
static void view_edit_cb(GtkWidget *widget, gpointer data)
{
ViewWindow *vw;
static void view_edit_cb(GtkWidget *widget, gpointer data)
{
ViewWindow *vw;
gint n;
vw = submenu_item_get_data(widget);
n = GPOINTER_TO_INT(data);
if (!vw) return;
gint n;
vw = submenu_item_get_data(widget);
n = GPOINTER_TO_INT(data);
if (!vw) return;
- view_fullscreen_toggle(vw, TRUE);
- start_editor_from_file(n, image_get_path(vw->imd));
+ if (!editor_window_flag_set(n))
+ {
+ view_fullscreen_toggle(vw, TRUE);
+ }
+
+ imd = view_window_active_image(vw);
+ start_editor_from_file(n, image_get_path(imd));
}
static void view_alter_cb(GtkWidget *widget, gpointer data)
}
static void view_alter_cb(GtkWidget *widget, gpointer data)
- layout_image_full_screen_stop(lw);
+ if (!editor_window_flag_set(n))
+ {
+ layout_image_full_screen_stop(lw);
+ }
start_editor_from_file(n, layout_image_get_path(lw));
}
}
start_editor_from_file(n, layout_image_get_path(lw));
}
}
lw = submenu_item_get_data(widget);
n = GPOINTER_TO_INT(data);
lw = submenu_item_get_data(widget);
n = GPOINTER_TO_INT(data);
- layout_image_full_screen_stop(lw);
-
+ if (!editor_window_flag_set(n))
+ {
+ layout_image_full_screen_stop(lw);
+ }
start_editor_from_file(n, layout_image_get_path(lw));
}
start_editor_from_file(n, layout_image_get_path(lw));
}
- pan_fullscreen_toggle(pw, TRUE);
+ if (!editor_window_flag_set(n))
+ {
+ pan_fullscreen_toggle(pw, TRUE);
+ }
start_editor_from_file(n, path);
stop_signal = TRUE;
}
start_editor_from_file(n, path);
stop_signal = TRUE;
}
path = pan_menu_click_path(pw);
if (path)
{
path = pan_menu_click_path(pw);
if (path)
{
- pan_fullscreen_toggle(pw, TRUE);
+ if (!editor_window_flag_set(n))
+ {
+ pan_fullscreen_toggle(pw, TRUE);
+ }
start_editor_from_file(n, path);
}
}
start_editor_from_file(n, path);
}
}