mirror of https://github.com/GNOME/gimp.git
app/actions/file-actions.c renamed file_last_opened_cmd_callaback() to
2008-03-25 Sven Neumann <sven@gimp.org> * app/actions/file-actions.c * app/actions/file-commands.[ch]: renamed file_last_opened_cmd_callaback() to file_open_recent_cmd_callback(). Use the empty display as progress object. svn path=/trunk/; revision=25215
This commit is contained in:
parent
a8d42d6fa6
commit
bc8086dfa8
|
@ -1,3 +1,10 @@
|
|||
2008-03-25 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/actions/file-actions.c
|
||||
* app/actions/file-commands.[ch]: renamed
|
||||
file_last_opened_cmd_callaback() to file_open_recent_cmd_callback().
|
||||
Use the empty display as progress object.
|
||||
|
||||
2008-03-25 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell.c (gimp_display_shell_new): center
|
||||
|
|
|
@ -177,7 +177,7 @@ file_actions_setup (GimpActionGroup *group)
|
|||
}
|
||||
|
||||
gimp_action_group_add_enum_actions (group, entries, n_entries,
|
||||
G_CALLBACK (file_last_opened_cmd_callback));
|
||||
G_CALLBACK (file_open_recent_cmd_callback));
|
||||
|
||||
for (i = 0; i < n_entries; i++)
|
||||
{
|
||||
|
|
|
@ -133,7 +133,7 @@ file_open_location_cmd_callback (GtkAction *action,
|
|||
}
|
||||
|
||||
void
|
||||
file_last_opened_cmd_callback (GtkAction *action,
|
||||
file_open_recent_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
gpointer data)
|
||||
{
|
||||
|
@ -152,12 +152,17 @@ file_last_opened_cmd_callback (GtkAction *action,
|
|||
|
||||
if (imagefile)
|
||||
{
|
||||
GimpDisplay *display;
|
||||
GimpProgress *progress;
|
||||
GimpImage *image;
|
||||
GimpPDBStatusType status;
|
||||
GError *error = NULL;
|
||||
return_if_no_display (display, data);
|
||||
|
||||
progress = display->image ? NULL : GIMP_PROGRESS (display);
|
||||
|
||||
image = file_open_with_display (gimp, action_data_get_context (data),
|
||||
NULL,
|
||||
progress,
|
||||
GIMP_OBJECT (imagefile)->name, FALSE,
|
||||
&status, &error);
|
||||
|
||||
|
@ -166,7 +171,7 @@ file_last_opened_cmd_callback (GtkAction *action,
|
|||
gchar *filename =
|
||||
file_utils_uri_display_name (GIMP_OBJECT (imagefile)->name);
|
||||
|
||||
gimp_message (gimp, NULL, GIMP_MESSAGE_ERROR,
|
||||
gimp_message (gimp, G_OBJECT (display), GIMP_MESSAGE_ERROR,
|
||||
_("Opening '%s' failed:\n\n%s"),
|
||||
filename, error->message);
|
||||
g_clear_error (&error);
|
||||
|
|
|
@ -26,7 +26,7 @@ void file_open_as_layers_cmd_callback (GtkAction *action,
|
|||
gpointer data);
|
||||
void file_open_location_cmd_callback (GtkAction *action,
|
||||
gpointer data);
|
||||
void file_last_opened_cmd_callback (GtkAction *action,
|
||||
void file_open_recent_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
gpointer data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue