Commit e697f507 authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson

Display the background context menu if no item is selected.

2002-03-05  Anders Carlsson  <andersca@gnu.org>

	* src/file-manager/fm-list-view.c
	(event_after_callback):
	Display the background context menu if no item is
	selected.
parent c4aba4f1
2002-03-05 Anders Carlsson <andersca@gnu.org>
* src/file-manager/fm-list-view.c
(event_after_callback):
Display the background context menu if no item is
selected.
=== nautilus 1.1.8 ===
2002-03-05 Darin Adler <darin@bentspoon.com>
* NEWS: Bump version.
......
......@@ -92,9 +92,20 @@ list_activate_callback (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewCo
static void
event_after_callback (GtkWidget *widget, GdkEventAny *event, gpointer callback_data)
{
if (event->type == GDK_BUTTON_PRESS && ((GdkEventButton *) event)->button == 3) {
fm_directory_view_pop_up_selection_context_menu
(FM_DIRECTORY_VIEW (callback_data), (GdkEventButton *) event);
if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget),
((GdkEventButton *) event)->x,
((GdkEventButton *) event)->y,
NULL, NULL, NULL, NULL) == TRUE) {
fm_directory_view_pop_up_selection_context_menu
(FM_DIRECTORY_VIEW (callback_data), (GdkEventButton *) event);
}
else {
fm_directory_view_pop_up_background_context_menu
(FM_DIRECTORY_VIEW (callback_data), (GdkEventButton *) event);
}
}
}
......
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