mirror of https://github.com/GNOME/gimp.git
app/widgets/gimpdocumentview.[ch] app/gui/documents-commands.[ch] changed
2002-09-12 Michael Natterer <mitch@gimp.org> * app/widgets/gimpdocumentview.[ch] * app/gui/documents-commands.[ch] * app/gui/menus.c: changed icon/variables/functions to say "Remove" instead of "Delete" because "Delete" is misleading (we don't delete the file but just remove the entry from the document history).
This commit is contained in:
parent
eedcbf7dcc
commit
57d3fff345
|
@ -1,3 +1,12 @@
|
|||
2002-09-12 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpdocumentview.[ch]
|
||||
* app/gui/documents-commands.[ch]
|
||||
* app/gui/menus.c: changed icon/variables/functions to say
|
||||
"Remove" instead of "Delete" because "Delete" is misleading (we
|
||||
don't delete the file but just remove the entry from the document
|
||||
history).
|
||||
|
||||
2002-09-12 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* autogen.sh: fixed output in case automake-1.6 is not available.
|
||||
|
|
|
@ -85,7 +85,7 @@ documents_file_open_dialog_cmd_callback (GtkWidget *widget,
|
|||
}
|
||||
|
||||
void
|
||||
documents_delete_document_cmd_callback (GtkWidget *widget,
|
||||
documents_remove_document_cmd_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GimpDocumentView *view;
|
||||
|
@ -95,7 +95,7 @@ documents_delete_document_cmd_callback (GtkWidget *widget,
|
|||
if (! view)
|
||||
return;
|
||||
|
||||
gtk_button_clicked (GTK_BUTTON (view->delete_button));
|
||||
gtk_button_clicked (GTK_BUTTON (view->remove_button));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ void documents_raise_or_open_document_cmd_callback (GtkWidget *widget,
|
|||
gpointer data);
|
||||
void documents_file_open_dialog_cmd_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
void documents_delete_document_cmd_callback (GtkWidget *widget,
|
||||
void documents_remove_document_cmd_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
void documents_recreate_preview_cmd_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
|
|
|
@ -85,7 +85,7 @@ documents_file_open_dialog_cmd_callback (GtkWidget *widget,
|
|||
}
|
||||
|
||||
void
|
||||
documents_delete_document_cmd_callback (GtkWidget *widget,
|
||||
documents_remove_document_cmd_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GimpDocumentView *view;
|
||||
|
@ -95,7 +95,7 @@ documents_delete_document_cmd_callback (GtkWidget *widget,
|
|||
if (! view)
|
||||
return;
|
||||
|
||||
gtk_button_clicked (GTK_BUTTON (view->delete_button));
|
||||
gtk_button_clicked (GTK_BUTTON (view->remove_button));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ void documents_raise_or_open_document_cmd_callback (GtkWidget *widget,
|
|||
gpointer data);
|
||||
void documents_file_open_dialog_cmd_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
void documents_delete_document_cmd_callback (GtkWidget *widget,
|
||||
void documents_remove_document_cmd_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
void documents_recreate_preview_cmd_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
|
|
|
@ -1958,8 +1958,8 @@ static GimpItemFactoryEntry documents_entries[] =
|
|||
"<StockItem>", GTK_STOCK_OPEN },
|
||||
NULL, NULL, NULL },
|
||||
{ { N_("/Remove Entry"), NULL,
|
||||
documents_delete_document_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_DELETE },
|
||||
documents_remove_document_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_REMOVE },
|
||||
NULL, NULL, NULL },
|
||||
|
||||
SEPARATOR ("/---"),
|
||||
|
|
|
@ -1958,8 +1958,8 @@ static GimpItemFactoryEntry documents_entries[] =
|
|||
"<StockItem>", GTK_STOCK_OPEN },
|
||||
NULL, NULL, NULL },
|
||||
{ { N_("/Remove Entry"), NULL,
|
||||
documents_delete_document_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_DELETE },
|
||||
documents_remove_document_cmd_callback, 0,
|
||||
"<StockItem>", GTK_STOCK_REMOVE },
|
||||
NULL, NULL, NULL },
|
||||
|
||||
SEPARATOR ("/---"),
|
||||
|
|
|
@ -62,7 +62,7 @@ static void gimp_document_view_open_clicked (GtkWidget *widget
|
|||
static void gimp_document_view_open_extended_clicked (GtkWidget *widget,
|
||||
guint state,
|
||||
GimpDocumentView *view);
|
||||
static void gimp_document_view_delete_clicked (GtkWidget *widget,
|
||||
static void gimp_document_view_remove_clicked (GtkWidget *widget,
|
||||
GimpDocumentView *view);
|
||||
static void gimp_document_view_refresh_clicked (GtkWidget *widget,
|
||||
GimpDocumentView *view);
|
||||
|
@ -124,7 +124,7 @@ static void
|
|||
gimp_document_view_init (GimpDocumentView *view)
|
||||
{
|
||||
view->open_button = NULL;
|
||||
view->delete_button = NULL;
|
||||
view->remove_button = NULL;
|
||||
view->refresh_button = NULL;
|
||||
}
|
||||
|
||||
|
@ -169,11 +169,11 @@ gimp_document_view_new (GimpViewType view_type,
|
|||
G_CALLBACK (gimp_document_view_open_extended_clicked),
|
||||
editor);
|
||||
|
||||
document_view->delete_button =
|
||||
document_view->remove_button =
|
||||
gimp_editor_add_button (GIMP_EDITOR (editor->view),
|
||||
GTK_STOCK_DELETE,
|
||||
GTK_STOCK_REMOVE,
|
||||
_("Remove selected entry"), NULL,
|
||||
G_CALLBACK (gimp_document_view_delete_clicked),
|
||||
G_CALLBACK (gimp_document_view_remove_clicked),
|
||||
NULL,
|
||||
editor);
|
||||
|
||||
|
@ -197,7 +197,7 @@ gimp_document_view_new (GimpViewType view_type,
|
|||
GTK_BUTTON (document_view->open_button),
|
||||
GIMP_TYPE_IMAGEFILE);
|
||||
gimp_container_view_enable_dnd (editor->view,
|
||||
GTK_BUTTON (document_view->delete_button),
|
||||
GTK_BUTTON (document_view->remove_button),
|
||||
GIMP_TYPE_IMAGEFILE);
|
||||
|
||||
return GTK_WIDGET (document_view);
|
||||
|
@ -305,7 +305,7 @@ gimp_document_view_open_extended_clicked (GtkWidget *widget,
|
|||
}
|
||||
|
||||
static void
|
||||
gimp_document_view_delete_clicked (GtkWidget *widget,
|
||||
gimp_document_view_remove_clicked (GtkWidget *widget,
|
||||
GimpDocumentView *view)
|
||||
{
|
||||
GimpContainerEditor *editor;
|
||||
|
@ -389,8 +389,7 @@ gimp_document_view_select_item (GimpContainerEditor *editor,
|
|||
GimpViewable *viewable)
|
||||
{
|
||||
GimpDocumentView *view;
|
||||
|
||||
gboolean delete_sensitive = FALSE;
|
||||
gboolean remove_sensitive = FALSE;
|
||||
|
||||
if (GIMP_CONTAINER_EDITOR_CLASS (parent_class)->select_item)
|
||||
GIMP_CONTAINER_EDITOR_CLASS (parent_class)->select_item (editor, viewable);
|
||||
|
@ -400,10 +399,10 @@ gimp_document_view_select_item (GimpContainerEditor *editor,
|
|||
if (viewable && gimp_container_have (editor->view->container,
|
||||
GIMP_OBJECT (viewable)))
|
||||
{
|
||||
delete_sensitive = TRUE;
|
||||
remove_sensitive = TRUE;
|
||||
}
|
||||
|
||||
gtk_widget_set_sensitive (view->delete_button, delete_sensitive);
|
||||
gtk_widget_set_sensitive (view->remove_button, remove_sensitive);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -41,7 +41,7 @@ struct _GimpDocumentView
|
|||
GimpContainerEditor parent_instance;
|
||||
|
||||
GtkWidget *open_button;
|
||||
GtkWidget *delete_button;
|
||||
GtkWidget *remove_button;
|
||||
GtkWidget *refresh_button;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue