Make right clicking on items not lose the current selection, like

the standard GtkFileChooser.
Add separator before the Clear filter toolbar button.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2592 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-05-16 12:16:03 +00:00
parent 3a12da9daf
commit a6ba330b1d
2 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,10 @@
Add Geany prefix for EditorPrefs.
Add Geany prefix for SearchPrefs.
Initialize search_prefs to zero in main.c.
* plugins/filebrowser.c:
Make right clicking on items not lose the current selection, like
the standard GtkFileChooser.
Add separator before the Clear filter toolbar button.
2008-05-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -593,6 +593,8 @@ static gboolean on_button_press(GtkWidget *widget, GdkEventButton *event, gpoint
{
if (event->button == 1 && event->type == GDK_2BUTTON_PRESS)
on_open_clicked(NULL, NULL);
else if (event->button == 3)
return TRUE;
return FALSE;
}
@ -765,6 +767,9 @@ static GtkWidget *make_toolbar(void)
g_signal_connect(G_OBJECT(wid), "clicked", G_CALLBACK(on_current_path), NULL);
gtk_container_add(GTK_CONTAINER(toolbar), wid);
wid = (GtkWidget *) gtk_separator_tool_item_new();
gtk_container_add(GTK_CONTAINER(toolbar), wid);
wid = (GtkWidget *) gtk_tool_button_new_from_stock(GTK_STOCK_CLEAR);
gtk_tool_item_set_tooltip(GTK_TOOL_ITEM(wid), tooltips, _("Clear the filter"), NULL);
g_signal_connect(G_OBJECT(wid), "clicked", G_CALLBACK(on_clear_filter), NULL);