SF.net SVN: geany: [1932] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Mon Oct 8 12:10:05 UTC 2007


Revision: 1932
          http://geany.svn.sourceforge.net/geany/?rev=1932&view=rev
Author:   eht16
Date:     2007-10-08 05:10:03 -0700 (Mon, 08 Oct 2007)

Log Message:
-----------
Fix wrong insert position of Insert Date function when using keyboard shortcut and place the cursor behind the inserted date.
Enable horizontal scrollbar for the Open Files list.       

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/callbacks.c
    trunk/src/keybindings.c
    trunk/src/treeviews.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-10-05 12:07:42 UTC (rev 1931)
+++ trunk/ChangeLog	2007-10-08 12:10:03 UTC (rev 1932)
@@ -1,3 +1,11 @@
+2007-10-08  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/callbacks.c, src/keybindings.c:
+   Fix wrong insert position of Insert Date function when using keyboard
+   shortcut and place the cursor behind the inserted date.
+ * src/treeviews.c: Enable horizontal scrollbar for the Open Files list.
+
+
 2007-10-03  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * src/prefs.c:

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2007-10-05 12:07:42 UTC (rev 1931)
+++ trunk/src/callbacks.c	2007-10-08 12:10:03 UTC (rev 1932)
@@ -1480,6 +1480,7 @@
 		verify_click_pos(idx); // make sure that the click_pos is valid
 
 		sci_insert_text(doc_list[idx].sci, editor_info.click_pos, time_str);
+		sci_goto_pos(doc_list[idx].sci, editor_info.click_pos + strlen(time_str), FALSE);
 	}
 	else
 	{

Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c	2007-10-05 12:07:42 UTC (rev 1931)
+++ trunk/src/keybindings.c	2007-10-08 12:10:03 UTC (rev 1932)
@@ -1326,7 +1326,7 @@
 
 static void cb_func_menu_insert_date(G_GNUC_UNUSED guint key_id)
 {
-	gtk_menu_item_activate(GTK_MENU_ITEM(lookup_widget(app->popup_menu, "insert_date_custom2")));
+	gtk_menu_item_activate(GTK_MENU_ITEM(lookup_widget(app->window, "insert_date_custom1")));
 }
 
 static void cb_func_menu_insert_specialchars(G_GNUC_UNUSED guint key_id)

Modified: trunk/src/treeviews.c
===================================================================
--- trunk/src/treeviews.c	2007-10-05 12:07:42 UTC (rev 1931)
+++ trunk/src/treeviews.c	2007-10-08 12:10:03 UTC (rev 1932)
@@ -205,7 +205,7 @@
 	// doesn't keep the settings
 	gtk_scrolled_window_set_policy(
 			GTK_SCROLLED_WINDOW(lookup_widget(app->window, "scrolledwindow7")),
-			GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+			GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 
 	renderer = gtk_cell_renderer_text_new();
 	column = gtk_tree_view_column_new_with_attributes(_("Open files"), renderer,


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