set a filename based on the image name. Based on a patch from Kevin
2007-05-30 Sven Neumann <sven@gimp.org> * plug-ins/imagemap/imap_file.c (do_file_save_as_dialog): set a filename based on the image name. Based on a patch from Kevin Hurewitz (bug #317916). * plug-ins/twain/tw_mac.c: don't use C++ style comments. svn path=/trunk/; revision=22658
This commit is contained in:

committed by
Sven Neumann

parent
bb89e53743
commit
2e32d33c6d
@ -1,3 +1,11 @@
|
|||||||
|
2007-05-30 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* plug-ins/imagemap/imap_file.c (do_file_save_as_dialog): set a
|
||||||
|
filename based on the image name. Based on a patch from Kevin
|
||||||
|
Hurewitz (bug #317916).
|
||||||
|
|
||||||
|
* plug-ins/twain/tw_mac.c: don't use C++ style comments.
|
||||||
|
|
||||||
2007-05-29 Sven Neumann <sven@gimp.org>
|
2007-05-29 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/common/postscript.c: minor code cleanup.
|
* plug-ins/common/postscript.c: minor code cleanup.
|
||||||
|
@ -117,6 +117,8 @@ do_file_save_as_dialog (void)
|
|||||||
|
|
||||||
if (! dialog)
|
if (! dialog)
|
||||||
{
|
{
|
||||||
|
gchar *filename;
|
||||||
|
|
||||||
dialog =
|
dialog =
|
||||||
gtk_file_chooser_dialog_new (_("Save Image Map"),
|
gtk_file_chooser_dialog_new (_("Save Image Map"),
|
||||||
NULL,
|
NULL,
|
||||||
@ -142,6 +144,18 @@ do_file_save_as_dialog (void)
|
|||||||
g_signal_connect (dialog, "response",
|
g_signal_connect (dialog, "response",
|
||||||
G_CALLBACK (save_cb),
|
G_CALLBACK (save_cb),
|
||||||
dialog);
|
dialog);
|
||||||
|
|
||||||
|
/* Suggest a filename based on the image name.
|
||||||
|
* The image name is in UTF-8 encoding.
|
||||||
|
*/
|
||||||
|
filename = g_strconcat (get_image_name(), ".map", NULL);
|
||||||
|
|
||||||
|
if (filename)
|
||||||
|
{
|
||||||
|
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog),
|
||||||
|
filename);
|
||||||
|
g_free (filename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_window_present (GTK_WINDOW (dialog));
|
gtk_window_present (GTK_WINDOW (dialog));
|
||||||
|
@ -155,7 +155,7 @@ void twainQuitApplication ()
|
|||||||
|
|
||||||
/* main bits */
|
/* main bits */
|
||||||
|
|
||||||
// mojo from http://lists.wxwidgets.org/archive/wxPython-mac/msg00117.html
|
/* http://lists.wxwidgets.org/archive/wxPython-mac/msg00117.html */
|
||||||
extern OSErr CPSSetProcessName (ProcessSerialNumber *psn, char *processname);
|
extern OSErr CPSSetProcessName (ProcessSerialNumber *psn, char *processname);
|
||||||
extern OSErr CPSEnableForegroundOperation( ProcessSerialNumber *psn, UInt32 _arg2, UInt32 _arg3, UInt32 _arg4, UInt32 _arg5);
|
extern OSErr CPSEnableForegroundOperation( ProcessSerialNumber *psn, UInt32 _arg2, UInt32 _arg3, UInt32 _arg4, UInt32 _arg5);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user