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:
parent
3a12da9daf
commit
a6ba330b1d
@ -21,6 +21,10 @@
|
|||||||
Add Geany prefix for EditorPrefs.
|
Add Geany prefix for EditorPrefs.
|
||||||
Add Geany prefix for SearchPrefs.
|
Add Geany prefix for SearchPrefs.
|
||||||
Initialize search_prefs to zero in main.c.
|
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>
|
2008-05-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||||
|
@ -593,6 +593,8 @@ static gboolean on_button_press(GtkWidget *widget, GdkEventButton *event, gpoint
|
|||||||
{
|
{
|
||||||
if (event->button == 1 && event->type == GDK_2BUTTON_PRESS)
|
if (event->button == 1 && event->type == GDK_2BUTTON_PRESS)
|
||||||
on_open_clicked(NULL, NULL);
|
on_open_clicked(NULL, NULL);
|
||||||
|
else if (event->button == 3)
|
||||||
|
return TRUE;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -765,6 +767,9 @@ static GtkWidget *make_toolbar(void)
|
|||||||
g_signal_connect(G_OBJECT(wid), "clicked", G_CALLBACK(on_current_path), NULL);
|
g_signal_connect(G_OBJECT(wid), "clicked", G_CALLBACK(on_current_path), NULL);
|
||||||
gtk_container_add(GTK_CONTAINER(toolbar), wid);
|
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);
|
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);
|
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);
|
g_signal_connect(G_OBJECT(wid), "clicked", G_CALLBACK(on_clear_filter), NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user