Revision: 2068 http://geany.svn.sourceforge.net/geany/?rev=2068&view=rev Author: eht16 Date: 2007-11-22 09:48:59 -0800 (Thu, 22 Nov 2007)
Log Message: ----------- Enable Shift+click on a fold point to unfold all possibly folded children (same as the pref "Unfold all children of a fold point").
Modified Paths: -------------- trunk/ChangeLog trunk/geany.glade trunk/src/editor.c trunk/src/interface.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-11-22 17:03:53 UTC (rev 2067) +++ trunk/ChangeLog 2007-11-22 17:48:59 UTC (rev 2068) @@ -2,6 +2,9 @@
* po/POTFILES.in, plugins/autosave.c, plugins/Makefile.am, plugins/makefile.win32: New plugin: Auto Save. + * geany.glade, src/editor.c, src/interface.c: + Enable Shift+click on a fold point to unfold all possibly folded + children (same as the pref "Unfold all children of a fold point").
2007-11-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/geany.glade =================================================================== --- trunk/geany.glade 2007-11-22 17:03:53 UTC (rev 2067) +++ trunk/geany.glade 2007-11-22 17:48:59 UTC (rev 2068) @@ -5873,7 +5873,7 @@ <child> <widget class="GtkCheckButton" id="check_unfold_children"> <property name="visible">True</property> - <property name="tooltip" translatable="yes">Unfold all children of a fold point when unfolding it.</property> + <property name="tooltip" translatable="yes">Unfold all children of a fold point when unfolding it. The same behaviour can be reached when holding the shift key while clicking on the fold symbol.</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Unfold all children of a fold point</property> <property name="use_underline">True</property>
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2007-11-22 17:03:53 UTC (rev 2067) +++ trunk/src/editor.c 2007-11-22 17:48:59 UTC (rev 2068) @@ -124,7 +124,7 @@ gint line = SSM(sci, SCI_LINEFROMPOSITION, nt->position, 0);
SSM(sci, SCI_TOGGLEFOLD, line, 0); - if (editor_prefs.unfold_all_children && + if ((editor_prefs.unfold_all_children || (nt->modifiers & SCMOD_SHIFT)) && SSM(sci, SCI_GETLINEVISIBLE, line + 1, 0)) { // unfold all children of the current fold point gint last_line = SSM(sci, SCI_GETLASTCHILD, line, -1);
Modified: trunk/src/interface.c =================================================================== --- trunk/src/interface.c 2007-11-22 17:03:53 UTC (rev 2067) +++ trunk/src/interface.c 2007-11-22 17:48:59 UTC (rev 2068) @@ -3650,7 +3650,7 @@ check_unfold_children = gtk_check_button_new_with_mnemonic (_("Unfold all children of a fold point")); gtk_widget_show (check_unfold_children); gtk_box_pack_start (GTK_BOX (vbox17), check_unfold_children, FALSE, FALSE, 0); - gtk_tooltips_set_tip (tooltips, check_unfold_children, _("Unfold all children of a fold point when unfolding it."), NULL); + gtk_tooltips_set_tip (tooltips, check_unfold_children, _("Unfold all children of a fold point when unfolding it. The same behaviour can be reached when holding the shift key while clicking on the fold symbol."), NULL); gtk_button_set_focus_on_click (GTK_BUTTON (check_unfold_children), FALSE);
check_indicators = gtk_check_button_new_with_mnemonic (_("Use indicators to show compile errors"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.