SF.net SVN: geany:[3341] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Dec 7 19:12:27 UTC 2008


Revision: 3341
          http://geany.svn.sourceforge.net/geany/?rev=3341&view=rev
Author:   eht16
Date:     2008-12-07 19:12:27 +0000 (Sun, 07 Dec 2008)

Log Message:
-----------
When using the focus path entry and file list keyboard shortcuts, make sure the filebrowser tab is the current notebook tab in the sidebar (closes #2402290).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/plugins/filebrowser.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-12-07 19:12:08 UTC (rev 3340)
+++ trunk/ChangeLog	2008-12-07 19:12:27 UTC (rev 3341)
@@ -13,6 +13,10 @@
    Add View->Editor submenu and group there the Line numbers,
    Markers margin, Show white space, Show line endings and Show
    indentation guides settings.
+ * plugins/filebrowser.c:
+   When using the focus path entry and file list keyboard shortcuts,
+   make sure the filebrowser tab is the current notebook tab in the
+   sidebar (closes #2402290).
 
 
 2008-12-06  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/plugins/filebrowser.c
===================================================================
--- trunk/plugins/filebrowser.c	2008-12-07 19:12:08 UTC (rev 3340)
+++ trunk/plugins/filebrowser.c	2008-12-07 19:12:27 UTC (rev 3341)
@@ -85,6 +85,8 @@
 static gchar		*config_file;
 static gchar 		*filter = NULL;
 
+static gint			 page_number = 0;
+
 static struct
 {
 	GtkWidget *open;
@@ -865,6 +867,7 @@
 
 static void kb_activate(guint key_id)
 {
+	gtk_notebook_set_current_page(GTK_NOTEBOOK(geany->main_widgets->sidebar_notebook), page_number);
 	switch (key_id)
 	{
 		case KB_FOCUS_FILE_LIST:
@@ -906,8 +909,8 @@
 	gtk_container_add(GTK_CONTAINER(file_view_vbox), scrollwin);
 
 	gtk_widget_show_all(file_view_vbox);
-	gtk_notebook_append_page(GTK_NOTEBOOK(geany->main_widgets->sidebar_notebook), file_view_vbox,
-		gtk_label_new(_("Files")));
+	page_number = gtk_notebook_append_page(GTK_NOTEBOOK(geany->main_widgets->sidebar_notebook),
+		file_view_vbox, gtk_label_new(_("Files")));
 
 	load_settings();
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list