lists.geany.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
List overview
Commits
August 2006
----- 2024 -----
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
commits@lists.geany.org
3 participants
123 discussions
Start a n
N
ew thread
SF.net SVN: geany: [656] trunk
by eht16ï¼ users.sourceforge.net
01 Aug '06
01 Aug '06
Revision: 656 Author: eht16 Date: 2006-08-01 03:35:32 -0700 (Tue, 01 Aug 2006) ViewCVS:
http://svn.sourceforge.net/geany/?rev=656&view=rev
Log Message: ----------- Added some menu items to the edit menu for editing tasks. Added keyboard shortcuts for increase/decrease of line indentation (closes #1521717). Modified Paths: -------------- trunk/ChangeLog trunk/geany.glade trunk/src/callbacks.c trunk/src/callbacks.h trunk/src/geany.h trunk/src/interface.c trunk/src/keybindings.c trunk/src/keybindings.h trunk/src/main.c trunk/src/sciwrappers.c trunk/src/sciwrappers.h Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/ChangeLog 2006-08-01 10:35:32 UTC (rev 656) @@ -1,3 +1,12 @@ +2006-08-01 Enrico Tröger <enrico.troeger(a)uvena.de> + + * geany.glade, src/interface.c, src/callbacks.c, src/keybindings.c, + src/main.c, src/sciwrappers.c: + Added some menu items to the edit menu for editing tasks. + Added keyboard shortcuts for increase/decrease of line indentation + (closes #1521717). + + 2006-08-01 Nick Treleaven <nick.treleaven(a)btinternet.com> * src/interface.c, src/utils.c, src/utils.h, src/callbacks.c, Modified: trunk/geany.glade =================================================================== --- trunk/geany.glade 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/geany.glade 2006-08-01 10:35:32 UTC (rev 656) @@ -57,7 +57,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image959"> + <widget class="GtkImage" id="image987"> <property name="visible">True</property> <property name="stock">gtk-new</property> <property name="icon_size">1</property> @@ -150,7 +150,7 @@ <signal name="activate" handler="on_save_all1_activate" last_modification_time="Thu, 02 Jun 2005 14:15:30 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image960"> + <widget class="GtkImage" id="image988"> <property name="visible">True</property> <property name="stock">gtk-save</property> <property name="icon_size">1</property> @@ -171,7 +171,7 @@ <signal name="activate" handler="on_toolbutton23_clicked" last_modification_time="Mon, 24 Jul 2006 19:26:04 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image961"> + <widget class="GtkImage" id="image989"> <property name="visible">True</property> <property name="stock">gtk-revert-to-saved</property> <property name="icon_size">1</property> @@ -191,7 +191,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image962"> + <widget class="GtkImage" id="image990"> <property name="visible">True</property> <property name="stock">gtk-revert-to-saved</property> <property name="icon_size">1</property> @@ -271,7 +271,7 @@ <signal name="activate" handler="on_close_all1_activate" last_modification_time="Thu, 02 Jun 2005 14:15:30 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image963"> + <widget class="GtkImage" id="image991"> <property name="visible">True</property> <property name="stock">gtk-close</property> <property name="icon_size">1</property> @@ -402,7 +402,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image964"> + <widget class="GtkImage" id="image992"> <property name="visible">True</property> <property name="stock">gtk-add</property> <property name="icon_size">1</property> @@ -434,7 +434,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image965"> + <widget class="GtkImage" id="image993"> <property name="visible">True</property> <property name="stock">gtk-add</property> <property name="icon_size">1</property> @@ -509,19 +509,19 @@ </child> <child> - <widget class="GtkMenuItem" id="menu_change_selection2"> + <widget class="GtkMenuItem" id="menu_format1"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Convert the case of the current selection</property> - <property name="label" translatable="yes">C_onvert case</property> + <property name="label" translatable="yes">_Format</property> <property name="use_underline">True</property> <child> - <widget class="GtkMenu" id="menu_change_selection2_menu"> + <widget class="GtkMenu" id="menu_format1_menu"> <child> <widget class="GtkMenuItem" id="menu_to_lower-case2"> <property name="visible">True</property> - <property name="label" translatable="yes">To lower-case</property> + <property name="label" translatable="yes">Convert Selection to _lower-case</property> <property name="use_underline">True</property> <signal name="activate" handler="on_to_lower-case1_activate" last_modification_time="Fri, 06 May 2005 18:21:23 GMT"/> </widget> @@ -530,11 +530,68 @@ <child> <widget class="GtkMenuItem" id="menu_to_upper-case2"> <property name="visible">True</property> - <property name="label" translatable="yes">To upper-case</property> + <property name="label" translatable="yes">Convert Selection to _upper-case</property> <property name="use_underline">True</property> <signal name="activate" handler="on_to_upper-case1_activate" last_modification_time="Fri, 06 May 2005 18:21:23 GMT"/> </widget> </child> + + <child> + <widget class="GtkSeparatorMenuItem" id="separator28"> + <property name="visible">True</property> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_comment_line1"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Comment Line</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_comment_line1_activate" last_modification_time="Tue, 01 Aug 2006 10:28:54 GMT"/> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_uncomment_line1"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Uncomment Line</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_uncomment_line1_activate" last_modification_time="Tue, 01 Aug 2006 10:28:54 GMT"/> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_duplicate_line1"> + <property name="visible">True</property> + <property name="label" translatable="yes">D_uplicate Line</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_duplicate_line1_activate" last_modification_time="Tue, 01 Aug 2006 10:28:54 GMT"/> + </widget> + </child> + + <child> + <widget class="GtkSeparatorMenuItem" id="separator29"> + <property name="visible">True</property> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_increase_indent1"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Increase Indent</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_increase_indent1_activate" last_modification_time="Tue, 01 Aug 2006 10:28:54 GMT"/> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_decrease_indent1"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Decrease Indent</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_decrease_indent1_activate" last_modification_time="Tue, 01 Aug 2006 10:28:54 GMT"/> + </widget> + </child> </widget> </child> </widget> @@ -613,7 +670,7 @@ <signal name="activate" handler="on_replace1_activate" last_modification_time="Sun, 23 Oct 2005 13:22:36 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image966"> + <widget class="GtkImage" id="image994"> <property name="visible">True</property> <property name="stock">gtk-find-and-replace</property> <property name="icon_size">1</property> @@ -655,7 +712,7 @@ <signal name="activate" handler="on_go_to_line1_activate" last_modification_time="Tue, 23 May 2006 17:10:49 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image967"> + <widget class="GtkImage" id="image995"> <property name="visible">True</property> <property name="stock">gtk-jump-to</property> <property name="icon_size">1</property> @@ -690,7 +747,7 @@ <signal name="activate" handler="on_change_font1_activate" last_modification_time="Fri, 22 Apr 2005 18:58:45 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image968"> + <widget class="GtkImage" id="image996"> <property name="visible">True</property> <property name="stock">gtk-select-font</property> <property name="icon_size">1</property> @@ -712,7 +769,7 @@ <signal name="activate" handler="on_show_color_chooser1_activate" last_modification_time="Wed, 22 Jun 2005 18:10:21 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image969"> + <widget class="GtkImage" id="image997"> <property name="visible">True</property> <property name="stock">gtk-select-color</property> <property name="icon_size">1</property> @@ -2195,7 +2252,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image787"> + <widget class="GtkImage" id="image983"> <property name="visible">True</property> <property name="stock">gtk-add</property> <property name="icon_size">1</property> @@ -2227,7 +2284,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image788"> + <widget class="GtkImage" id="image984"> <property name="visible">True</property> <property name="stock">gtk-add</property> <property name="icon_size">1</property> @@ -2302,18 +2359,18 @@ </child> <child> - <widget class="GtkMenuItem" id="change_selection1"> + <widget class="GtkMenuItem" id="menu_format2"> <property name="visible">True</property> - <property name="label" translatable="yes">Convert case</property> + <property name="label" translatable="yes">_Format</property> <property name="use_underline">True</property> <child> - <widget class="GtkMenu" id="change_selection1_menu"> + <widget class="GtkMenu" id="menu_format2_menu"> <child> <widget class="GtkMenuItem" id="to_lower-case1"> <property name="visible">True</property> - <property name="label" translatable="yes">To lower-case</property> + <property name="label" translatable="yes">Convert Selection to _lower-case</property> <property name="use_underline">True</property> <signal name="activate" handler="on_to_lower-case1_activate" last_modification_time="Thu, 05 May 2005 08:29:19 GMT"/> </widget> @@ -2322,11 +2379,68 @@ <child> <widget class="GtkMenuItem" id="to_upper-case1"> <property name="visible">True</property> - <property name="label" translatable="yes">To upper-case</property> + <property name="label" translatable="yes">Convert Selection to _upper-case</property> <property name="use_underline">True</property> <signal name="activate" handler="on_to_upper-case1_activate" last_modification_time="Thu, 05 May 2005 08:29:19 GMT"/> </widget> </child> + + <child> + <widget class="GtkSeparatorMenuItem" id="separator30"> + <property name="visible">True</property> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_comment_line2"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Comment Line</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_comment_line1_activate" last_modification_time="Tue, 01 Aug 2006 10:31:38 GMT"/> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_uncomment_line2"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Uncomment Line</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_uncomment_line1_activate" last_modification_time="Tue, 01 Aug 2006 10:31:38 GMT"/> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_duplicate_line2"> + <property name="visible">True</property> + <property name="label" translatable="yes">D_uplicate Line</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_duplicate_line1_activate" last_modification_time="Tue, 01 Aug 2006 10:31:38 GMT"/> + </widget> + </child> + + <child> + <widget class="GtkSeparatorMenuItem" id="separator31"> + <property name="visible">True</property> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_increase_indent2"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Increase Indent</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_increase_indent1_activate" last_modification_time="Tue, 01 Aug 2006 10:31:38 GMT"/> + </widget> + </child> + + <child> + <widget class="GtkMenuItem" id="menu_decrease_indent2"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Decrease Indent</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_decrease_indent1_activate" last_modification_time="Tue, 01 Aug 2006 10:31:38 GMT"/> + </widget> + </child> </widget> </child> </widget> @@ -2346,7 +2460,7 @@ <signal name="activate" handler="on_find_usage1_activate" last_modification_time="Fri, 27 May 2005 21:55:12 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image789"> + <widget class="GtkImage" id="image985"> <property name="visible">True</property> <property name="stock">gtk-find</property> <property name="icon_size">1</property> @@ -2392,7 +2506,7 @@ <signal name="activate" handler="on_go_to_line_activate" last_modification_time="Sat, 16 Jul 2005 11:20:32 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image790"> + <widget class="GtkImage" id="image986"> <property name="visible">True</property> <property name="stock">gtk-jump-to</property> <property name="icon_size">1</property> @@ -5246,7 +5360,7 @@ <child> <widget class="GtkImage" id="image808"> <property name="visible">True</property> - <property name="stock">gtk-directory</property> + <property name="stock">gtk-open</property> <property name="icon_size">4</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> Modified: trunk/src/callbacks.c =================================================================== --- trunk/src/callbacks.c 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/callbacks.c 2006-08-01 10:35:32 UTC (rev 656) @@ -2679,3 +2679,68 @@ } } + +void +on_menu_comment_line1_activate (GtkMenuItem *menuitem, + gpointer user_data) +{ + gint idx = document_get_cur_idx(); + if (idx == -1 || ! doc_list[idx].is_valid) return; + sci_cb_do_comment(idx); +} + + +void +on_menu_uncomment_line1_activate (GtkMenuItem *menuitem, + gpointer user_data) +{ + gint idx = document_get_cur_idx(); + if (idx == -1 || ! doc_list[idx].is_valid) return; + sci_cb_do_uncomment(idx); +} + + +void +on_menu_duplicate_line1_activate (GtkMenuItem *menuitem, + gpointer user_data) +{ + gint idx = document_get_cur_idx(); + if (idx == -1 || ! doc_list[idx].is_valid) return; + if (sci_can_copy(doc_list[idx].sci)) + sci_selection_duplicate(doc_list[idx].sci); + else + sci_line_duplicate(doc_list[idx].sci); +} + + +void +on_menu_increase_indent1_activate (GtkMenuItem *menuitem, + gpointer user_data) +{ + gint idx = document_get_cur_idx(); + gint line, pos; + if (idx == -1 || ! doc_list[idx].is_valid) return; + + line = sci_get_current_line(doc_list[idx].sci, -1); + pos = sci_get_line_indent_position(doc_list[idx].sci, line); + + sci_set_current_position(doc_list[idx].sci, pos); + sci_cmd(doc_list[idx].sci, SCI_TAB); +} + + +void +on_menu_decrease_indent1_activate (GtkMenuItem *menuitem, + gpointer user_data) +{ + gint idx = document_get_cur_idx(); + gint line, pos; + if (idx == -1 || ! doc_list[idx].is_valid) return; + + line = sci_get_current_line(doc_list[idx].sci, -1); + pos = sci_get_line_indent_position(doc_list[idx].sci, line); + + sci_set_current_position(doc_list[idx].sci, pos); + sci_cmd(doc_list[idx].sci, SCI_BACKTAB); +} + Modified: trunk/src/callbacks.h =================================================================== --- trunk/src/callbacks.h 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/callbacks.h 2006-08-01 10:35:32 UTC (rev 656) @@ -623,3 +623,23 @@ void on_menu_write_unicode_bom1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data); + +void +on_menu_comment_line1_activate (GtkMenuItem *menuitem, + gpointer user_data); + +void +on_menu_uncomment_line1_activate (GtkMenuItem *menuitem, + gpointer user_data); + +void +on_menu_duplicate_line1_activate (GtkMenuItem *menuitem, + gpointer user_data); + +void +on_menu_increase_indent1_activate (GtkMenuItem *menuitem, + gpointer user_data); + +void +on_menu_decrease_indent1_activate (GtkMenuItem *menuitem, + gpointer user_data); Modified: trunk/src/geany.h =================================================================== --- trunk/src/geany.h 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/geany.h 2006-08-01 10:35:32 UTC (rev 656) @@ -211,8 +211,8 @@ GtkWidget *new_file_menu; GtkWidget *menu_insert_include_item[2]; GtkWidget *popup_goto_items[3]; - GtkWidget *popup_items[4]; - GtkWidget *menu_copy_items[4]; + GtkWidget *popup_items[5]; + GtkWidget *menu_copy_items[5]; GtkWidget *redo_items[3]; GtkWidget *undo_items[3]; GtkWidget *save_buttons[2]; Modified: trunk/src/interface.c =================================================================== --- trunk/src/interface.c 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/interface.c 2006-08-01 10:35:32 UTC (rev 656) @@ -37,7 +37,7 @@ GtkWidget *menuitem1_menu; GtkWidget *menu_new1; GtkWidget *menu_new_with_template1; - GtkWidget *image959; + GtkWidget *image987; GtkWidget *menu_new_with_template1_menu; GtkWidget *invisible2; GtkWidget *separator12; @@ -49,11 +49,11 @@ GtkWidget *menu_save1; GtkWidget *menu_save_as1; GtkWidget *menu_save_all1; - GtkWidget *image960; + GtkWidget *image988; GtkWidget *menu_reload1; - GtkWidget *image961; + GtkWidget *image989; GtkWidget *menu_reload_as1; - GtkWidget *image962; + GtkWidget *image990; GtkWidget *menu_reload_as1_menu; GtkWidget *invisible7; GtkWidget *separator21; @@ -63,7 +63,7 @@ GtkWidget *separator14; GtkWidget *menu_close1; GtkWidget *menu_close_all1; - GtkWidget *image963; + GtkWidget *image991; GtkWidget *menu_separatormenuitem1; GtkWidget *menu_quit1; GtkWidget *edit1; @@ -79,11 +79,11 @@ GtkWidget *menu_select_all1; GtkWidget *separator25; GtkWidget *insert_include2; - GtkWidget *image964; + GtkWidget *image992; GtkWidget *insert_include2_menu; GtkWidget *invisible4; GtkWidget *add_comments1; - GtkWidget *image965; + GtkWidget *image993; GtkWidget *add_comments1_menu; GtkWidget *menu_add_changelog_entry1; GtkWidget *insert_file_header1; @@ -91,10 +91,17 @@ GtkWidget *insert_multiline_comment2; GtkWidget *insert_gpl_notice2; GtkWidget *separator18; - GtkWidget *menu_change_selection2; - GtkWidget *menu_change_selection2_menu; + GtkWidget *menu_format1; + GtkWidget *menu_format1_menu; GtkWidget *menu_to_lower_case2; GtkWidget *menu_to_upper_case2; + GtkWidget *separator28; + GtkWidget *menu_comment_line1; + GtkWidget *menu_uncomment_line1; + GtkWidget *menu_duplicate_line1; + GtkWidget *separator29; + GtkWidget *menu_increase_indent1; + GtkWidget *menu_decrease_indent1; GtkWidget *menu_count_words1; GtkWidget *separator9; GtkWidget *preferences1; @@ -104,18 +111,18 @@ GtkWidget *find_next1; GtkWidget *find_previous1; GtkWidget *replace1; - GtkWidget *image966; + GtkWidget *image994; GtkWidget *separator27; GtkWidget *find_in_files1; GtkWidget *separator11; GtkWidget *go_to_line1; - GtkWidget *image967; + GtkWidget *image995; GtkWidget *menuitem3; GtkWidget *menuitem3_menu; GtkWidget *menu_change_font1; - GtkWidget *image968; + GtkWidget *image996; GtkWidget *menu_choose_color1; - GtkWidget *image969; + GtkWidget *image997; GtkWidget *menu_separator4; GtkWidget *menu_fullscreen1; GtkWidget *menu_show_messages_window1; @@ -251,9 +258,9 @@ gtk_widget_show (menu_new_with_template1); gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_new_with_template1); - image959 = gtk_image_new_from_stock ("gtk-new", GTK_ICON_SIZE_MENU); - gtk_widget_show (image959); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_new_with_template1), image959); + image987 = gtk_image_new_from_stock ("gtk-new", GTK_ICON_SIZE_MENU); + gtk_widget_show (image987); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_new_with_template1), image987); menu_new_with_template1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_new_with_template1), menu_new_with_template1_menu); @@ -298,25 +305,25 @@ gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_save_all1); gtk_tooltips_set_tip (tooltips, menu_save_all1, _("Saves all open files"), NULL); - image960 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_MENU); - gtk_widget_show (image960); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_save_all1), image960); + image988 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_MENU); + gtk_widget_show (image988); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_save_all1), image988); menu_reload1 = gtk_image_menu_item_new_with_mnemonic (_("_Reload")); gtk_widget_show (menu_reload1); gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_reload1); - image961 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); - gtk_widget_show (image961); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reload1), image961); + image989 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); + gtk_widget_show (image989); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reload1), image989); menu_reload_as1 = gtk_image_menu_item_new_with_mnemonic (_("R_eload as")); gtk_widget_show (menu_reload_as1); gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_reload_as1); - image962 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); - gtk_widget_show (image962); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reload_as1), image962); + image990 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); + gtk_widget_show (image990); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reload_as1), image990); menu_reload_as1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_reload_as1), menu_reload_as1_menu); @@ -357,9 +364,9 @@ gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_close_all1); gtk_tooltips_set_tip (tooltips, menu_close_all1, _("Closes all open files"), NULL); - image963 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_MENU); - gtk_widget_show (image963); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_close_all1), image963); + image991 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_MENU); + gtk_widget_show (image991); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_close_all1), image991); menu_separatormenuitem1 = gtk_separator_menu_item_new (); gtk_widget_show (menu_separatormenuitem1); @@ -425,9 +432,9 @@ gtk_widget_show (insert_include2); gtk_container_add (GTK_CONTAINER (edit1_menu), insert_include2); - image964 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); - gtk_widget_show (image964); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include2), image964); + image992 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); + gtk_widget_show (image992); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include2), image992); insert_include2_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (insert_include2), insert_include2_menu); @@ -439,9 +446,9 @@ gtk_widget_show (add_comments1); gtk_container_add (GTK_CONTAINER (edit1_menu), add_comments1); - image965 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); - gtk_widget_show (image965); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_comments1), image965); + image993 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); + gtk_widget_show (image993); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_comments1), image993); add_comments1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (add_comments1), add_comments1_menu); @@ -476,22 +483,52 @@ gtk_container_add (GTK_CONTAINER (edit1_menu), separator18); gtk_widget_set_sensitive (separator18, FALSE); - menu_change_selection2 = gtk_menu_item_new_with_mnemonic (_("C_onvert case")); - gtk_widget_show (menu_change_selection2); - gtk_container_add (GTK_CONTAINER (edit1_menu), menu_change_selection2); - gtk_tooltips_set_tip (tooltips, menu_change_selection2, _("Convert the case of the current selection"), NULL); + menu_format1 = gtk_menu_item_new_with_mnemonic (_("_Format")); + gtk_widget_show (menu_format1); + gtk_container_add (GTK_CONTAINER (edit1_menu), menu_format1); + gtk_tooltips_set_tip (tooltips, menu_format1, _("Convert the case of the current selection"), NULL); - menu_change_selection2_menu = gtk_menu_new (); - gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_change_selection2), menu_change_selection2_menu); + menu_format1_menu = gtk_menu_new (); + gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_format1), menu_format1_menu); - menu_to_lower_case2 = gtk_menu_item_new_with_mnemonic (_("To lower-case")); + menu_to_lower_case2 = gtk_menu_item_new_with_mnemonic (_("Convert Selection to _lower-case")); gtk_widget_show (menu_to_lower_case2); - gtk_container_add (GTK_CONTAINER (menu_change_selection2_menu), menu_to_lower_case2); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), menu_to_lower_case2); - menu_to_upper_case2 = gtk_menu_item_new_with_mnemonic (_("To upper-case")); + menu_to_upper_case2 = gtk_menu_item_new_with_mnemonic (_("Convert Selection to _upper-case")); gtk_widget_show (menu_to_upper_case2); - gtk_container_add (GTK_CONTAINER (menu_change_selection2_menu), menu_to_upper_case2); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), menu_to_upper_case2); + separator28 = gtk_separator_menu_item_new (); + gtk_widget_show (separator28); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), separator28); + gtk_widget_set_sensitive (separator28, FALSE); + + menu_comment_line1 = gtk_menu_item_new_with_mnemonic (_("_Comment Line")); + gtk_widget_show (menu_comment_line1); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), menu_comment_line1); + + menu_uncomment_line1 = gtk_menu_item_new_with_mnemonic (_("_Uncomment Line")); + gtk_widget_show (menu_uncomment_line1); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), menu_uncomment_line1); + + menu_duplicate_line1 = gtk_menu_item_new_with_mnemonic (_("D_uplicate Line")); + gtk_widget_show (menu_duplicate_line1); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), menu_duplicate_line1); + + separator29 = gtk_separator_menu_item_new (); + gtk_widget_show (separator29); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), separator29); + gtk_widget_set_sensitive (separator29, FALSE); + + menu_increase_indent1 = gtk_menu_item_new_with_mnemonic (_("_Increase Indent")); + gtk_widget_show (menu_increase_indent1); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), menu_increase_indent1); + + menu_decrease_indent1 = gtk_menu_item_new_with_mnemonic (_("_Decrease Indent")); + gtk_widget_show (menu_decrease_indent1); + gtk_container_add (GTK_CONTAINER (menu_format1_menu), menu_decrease_indent1); + menu_count_words1 = gtk_menu_item_new_with_mnemonic (_("Count _words")); gtk_widget_show (menu_count_words1); gtk_container_add (GTK_CONTAINER (edit1_menu), menu_count_words1); @@ -529,9 +566,9 @@ gtk_widget_show (replace1); gtk_container_add (GTK_CONTAINER (search1_menu), replace1); - image966 = gtk_image_new_from_stock ("gtk-find-and-replace", GTK_ICON_SIZE_MENU); - gtk_widget_show (image966); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (replace1), image966); + image994 = gtk_image_new_from_stock ("gtk-find-and-replace", GTK_ICON_SIZE_MENU); + gtk_widget_show (image994); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (replace1), image994); separator27 = gtk_separator_menu_item_new (); gtk_widget_show (separator27); @@ -551,9 +588,9 @@ gtk_widget_show (go_to_line1); gtk_container_add (GTK_CONTAINER (search1_menu), go_to_line1); - image967 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU); - gtk_widget_show (image967); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (go_to_line1), image967); + image995 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU); + gtk_widget_show (image995); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (go_to_line1), image995); menuitem3 = gtk_menu_item_new_with_mnemonic (_("_View")); gtk_widget_show (menuitem3); @@ -567,18 +604,18 @@ gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_change_font1); gtk_tooltips_set_tip (tooltips, menu_change_font1, _("Change the default font"), NULL); - image968 = gtk_image_new_from_stock ("gtk-select-font", GTK_ICON_SIZE_MENU); - gtk_widget_show (image968); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_change_font1), image968); + image996 = gtk_image_new_from_stock ("gtk-select-font", GTK_ICON_SIZE_MENU); + gtk_widget_show (image996); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_change_font1), image996); menu_choose_color1 = gtk_image_menu_item_new_with_mnemonic (_("Show _Colour Chooser")); gtk_widget_show (menu_choose_color1); gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_choose_color1); gtk_tooltips_set_tip (tooltips, menu_choose_color1, _("Open a color chooser dialog, to interactively pick colors from a palette."), NULL); - image969 = gtk_image_new_from_stock ("gtk-select-color", GTK_ICON_SIZE_MENU); - gtk_widget_show (image969); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_choose_color1), image969); + image997 = gtk_image_new_from_stock ("gtk-select-color", GTK_ICON_SIZE_MENU); + gtk_widget_show (image997); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_choose_color1), image997); menu_separator4 = gtk_separator_menu_item_new (); gtk_widget_show (menu_separator4); @@ -1121,6 +1158,21 @@ g_signal_connect ((gpointer) menu_to_upper_case2, "activate", G_CALLBACK (on_to_upper_case1_activate), NULL); + g_signal_connect ((gpointer) menu_comment_line1, "activate", + G_CALLBACK (on_menu_comment_line1_activate), + NULL); + g_signal_connect ((gpointer) menu_uncomment_line1, "activate", + G_CALLBACK (on_menu_uncomment_line1_activate), + NULL); + g_signal_connect ((gpointer) menu_duplicate_line1, "activate", + G_CALLBACK (on_menu_duplicate_line1_activate), + NULL); + g_signal_connect ((gpointer) menu_increase_indent1, "activate", + G_CALLBACK (on_menu_increase_indent1_activate), + NULL); + g_signal_connect ((gpointer) menu_decrease_indent1, "activate", + G_CALLBACK (on_menu_decrease_indent1_activate), + NULL); g_signal_connect ((gpointer) menu_count_words1, "activate", G_CALLBACK (on_count_words1_activate), NULL); @@ -1302,7 +1354,7 @@ GLADE_HOOKUP_OBJECT (window1, menuitem1_menu, "menuitem1_menu"); GLADE_HOOKUP_OBJECT (window1, menu_new1, "menu_new1"); GLADE_HOOKUP_OBJECT (window1, menu_new_with_template1, "menu_new_with_template1"); - GLADE_HOOKUP_OBJECT (window1, image959, "image959"); + GLADE_HOOKUP_OBJECT (window1, image987, "image987"); GLADE_HOOKUP_OBJECT (window1, menu_new_with_template1_menu, "menu_new_with_template1_menu"); GLADE_HOOKUP_OBJECT (window1, invisible2, "invisible2"); GLADE_HOOKUP_OBJECT (window1, separator12, "separator12"); @@ -1314,11 +1366,11 @@ GLADE_HOOKUP_OBJECT (window1, menu_save1, "menu_save1"); GLADE_HOOKUP_OBJECT (window1, menu_save_as1, "menu_save_as1"); GLADE_HOOKUP_OBJECT (window1, menu_save_all1, "menu_save_all1"); - GLADE_HOOKUP_OBJECT (window1, image960, "image960"); + GLADE_HOOKUP_OBJECT (window1, image988, "image988"); GLADE_HOOKUP_OBJECT (window1, menu_reload1, "menu_reload1"); - GLADE_HOOKUP_OBJECT (window1, image961, "image961"); + GLADE_HOOKUP_OBJECT (window1, image989, "image989"); GLADE_HOOKUP_OBJECT (window1, menu_reload_as1, "menu_reload_as1"); - GLADE_HOOKUP_OBJECT (window1, image962, "image962"); + GLADE_HOOKUP_OBJECT (window1, image990, "image990"); GLADE_HOOKUP_OBJECT (window1, menu_reload_as1_menu, "menu_reload_as1_menu"); GLADE_HOOKUP_OBJECT (window1, invisible7, "invisible7"); GLADE_HOOKUP_OBJECT (window1, separator21, "separator21"); @@ -1328,7 +1380,7 @@ GLADE_HOOKUP_OBJECT (window1, separator14, "separator14"); GLADE_HOOKUP_OBJECT (window1, menu_close1, "menu_close1"); GLADE_HOOKUP_OBJECT (window1, menu_close_all1, "menu_close_all1"); - GLADE_HOOKUP_OBJECT (window1, image963, "image963"); + GLADE_HOOKUP_OBJECT (window1, image991, "image991"); GLADE_HOOKUP_OBJECT (window1, menu_separatormenuitem1, "menu_separatormenuitem1"); GLADE_HOOKUP_OBJECT (window1, menu_quit1, "menu_quit1"); GLADE_HOOKUP_OBJECT (window1, edit1, "edit1"); @@ -1344,11 +1396,11 @@ GLADE_HOOKUP_OBJECT (window1, menu_select_all1, "menu_select_all1"); GLADE_HOOKUP_OBJECT (window1, separator25, "separator25"); GLADE_HOOKUP_OBJECT (window1, insert_include2, "insert_include2"); - GLADE_HOOKUP_OBJECT (window1, image964, "image964"); + GLADE_HOOKUP_OBJECT (window1, image992, "image992"); GLADE_HOOKUP_OBJECT (window1, insert_include2_menu, "insert_include2_menu"); GLADE_HOOKUP_OBJECT (window1, invisible4, "invisible4"); GLADE_HOOKUP_OBJECT (window1, add_comments1, "add_comments1"); - GLADE_HOOKUP_OBJECT (window1, image965, "image965"); + GLADE_HOOKUP_OBJECT (window1, image993, "image993"); GLADE_HOOKUP_OBJECT (window1, add_comments1_menu, "add_comments1_menu"); GLADE_HOOKUP_OBJECT (window1, menu_add_changelog_entry1, "menu_add_changelog_entry1"); GLADE_HOOKUP_OBJECT (window1, insert_file_header1, "insert_file_header1"); @@ -1356,10 +1408,17 @@ GLADE_HOOKUP_OBJECT (window1, insert_multiline_comment2, "insert_multiline_comment2"); GLADE_HOOKUP_OBJECT (window1, insert_gpl_notice2, "insert_gpl_notice2"); GLADE_HOOKUP_OBJECT (window1, separator18, "separator18"); - GLADE_HOOKUP_OBJECT (window1, menu_change_selection2, "menu_change_selection2"); - GLADE_HOOKUP_OBJECT (window1, menu_change_selection2_menu, "menu_change_selection2_menu"); + GLADE_HOOKUP_OBJECT (window1, menu_format1, "menu_format1"); + GLADE_HOOKUP_OBJECT (window1, menu_format1_menu, "menu_format1_menu"); GLADE_HOOKUP_OBJECT (window1, menu_to_lower_case2, "menu_to_lower_case2"); GLADE_HOOKUP_OBJECT (window1, menu_to_upper_case2, "menu_to_upper_case2"); + GLADE_HOOKUP_OBJECT (window1, separator28, "separator28"); + GLADE_HOOKUP_OBJECT (window1, menu_comment_line1, "menu_comment_line1"); + GLADE_HOOKUP_OBJECT (window1, menu_uncomment_line1, "menu_uncomment_line1"); + GLADE_HOOKUP_OBJECT (window1, menu_duplicate_line1, "menu_duplicate_line1"); + GLADE_HOOKUP_OBJECT (window1, separator29, "separator29"); + GLADE_HOOKUP_OBJECT (window1, menu_increase_indent1, "menu_increase_indent1"); + GLADE_HOOKUP_OBJECT (window1, menu_decrease_indent1, "menu_decrease_indent1"); GLADE_HOOKUP_OBJECT (window1, menu_count_words1, "menu_count_words1"); GLADE_HOOKUP_OBJECT (window1, separator9, "separator9"); GLADE_HOOKUP_OBJECT (window1, preferences1, "preferences1"); @@ -1369,18 +1428,18 @@ GLADE_HOOKUP_OBJECT (window1, find_next1, "find_next1"); GLADE_HOOKUP_OBJECT (window1, find_previous1, "find_previous1"); GLADE_HOOKUP_OBJECT (window1, replace1, "replace1"); - GLADE_HOOKUP_OBJECT (window1, image966, "image966"); + GLADE_HOOKUP_OBJECT (window1, image994, "image994"); GLADE_HOOKUP_OBJECT (window1, separator27, "separator27"); GLADE_HOOKUP_OBJECT (window1, find_in_files1, "find_in_files1"); GLADE_HOOKUP_OBJECT (window1, separator11, "separator11"); GLADE_HOOKUP_OBJECT (window1, go_to_line1, "go_to_line1"); - GLADE_HOOKUP_OBJECT (window1, image967, "image967"); + GLADE_HOOKUP_OBJECT (window1, image995, "image995"); GLADE_HOOKUP_OBJECT (window1, menuitem3, "menuitem3"); GLADE_HOOKUP_OBJECT (window1, menuitem3_menu, "menuitem3_menu"); GLADE_HOOKUP_OBJECT (window1, menu_change_font1, "menu_change_font1"); - GLADE_HOOKUP_OBJECT (window1, image968, "image968"); + GLADE_HOOKUP_OBJECT (window1, image996, "image996"); GLADE_HOOKUP_OBJECT (window1, menu_choose_color1, "menu_choose_color1"); - GLADE_HOOKUP_OBJECT (window1, image969, "image969"); + GLADE_HOOKUP_OBJECT (window1, image997, "image997"); GLADE_HOOKUP_OBJECT (window1, menu_separator4, "menu_separator4"); GLADE_HOOKUP_OBJECT (window1, menu_fullscreen1, "menu_fullscreen1"); GLADE_HOOKUP_OBJECT (window1, menu_show_messages_window1, "menu_show_messages_window1"); @@ -1605,11 +1664,11 @@ GtkWidget *normal_size2; GtkWidget *separator6; GtkWidget *insert_include1; - GtkWidget *image787; + GtkWidget *image983; GtkWidget *insert_include1_menu; GtkWidget *invisible3; GtkWidget *comments; - GtkWidget *image788; + GtkWidget *image984; GtkWidget *comments_menu; GtkWidget *add_changelog_entry2; GtkWidget *insert_file_header2; @@ -1617,18 +1676,25 @@ GtkWidget *insert_multiline_comment1; GtkWidget *insert_gpl_notice1; GtkWidget *separator17; - GtkWidget *change_selection1; - GtkWidget *change_selection1_menu; + GtkWidget *menu_format2; + GtkWidget *menu_format2_menu; GtkWidget *to_lower_case1; GtkWidget *to_upper_case1; + GtkWidget *separator30; + GtkWidget *menu_comment_line2; + GtkWidget *menu_uncomment_line2; + GtkWidget *menu_duplicate_line2; + GtkWidget *separator31; + GtkWidget *menu_increase_indent2; + GtkWidget *menu_decrease_indent2; GtkWidget *separator7; GtkWidget *find_usage1; - GtkWidget *image789; + GtkWidget *image985; GtkWidget *goto_tag_definition1; GtkWidget *goto_tag_declaration1; GtkWidget *separator15; GtkWidget *go_to_line; - GtkWidget *image790; + GtkWidget *image986; GtkAccelGroup *accel_group; GtkTooltips *tooltips; @@ -1702,9 +1768,9 @@ gtk_widget_show (insert_include1); gtk_container_add (GTK_CONTAINER (edit_menu1), insert_include1); - image787 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); - gtk_widget_show (image787); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include1), image787); + image983 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); + gtk_widget_show (image983); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include1), image983); insert_include1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (insert_include1), insert_include1_menu); @@ -1716,9 +1782,9 @@ gtk_widget_show (comments); gtk_container_add (GTK_CONTAINER (edit_menu1), comments); - image788 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); - gtk_widget_show (image788); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (comments), image788); + image984 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); + gtk_widget_show (image984); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (comments), image984); comments_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (comments), comments_menu); @@ -1753,21 +1819,51 @@ gtk_container_add (GTK_CONTAINER (edit_menu1), separator17); gtk_widget_set_sensitive (separator17, FALSE); - change_selection1 = gtk_menu_item_new_with_mnemonic (_("Convert case")); - gtk_widget_show (change_selection1); - gtk_container_add (GTK_CONTAINER (edit_menu1), change_selection1); + menu_format2 = gtk_menu_item_new_with_mnemonic (_("_Format")); + gtk_widget_show (menu_format2); + gtk_container_add (GTK_CONTAINER (edit_menu1), menu_format2); - change_selection1_menu = gtk_menu_new (); - gtk_menu_item_set_submenu (GTK_MENU_ITEM (change_selection1), change_selection1_menu); + menu_format2_menu = gtk_menu_new (); + gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_format2), menu_format2_menu); - to_lower_case1 = gtk_menu_item_new_with_mnemonic (_("To lower-case")); + to_lower_case1 = gtk_menu_item_new_with_mnemonic (_("Convert Selection to _lower-case")); gtk_widget_show (to_lower_case1); - gtk_container_add (GTK_CONTAINER (change_selection1_menu), to_lower_case1); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), to_lower_case1); - to_upper_case1 = gtk_menu_item_new_with_mnemonic (_("To upper-case")); + to_upper_case1 = gtk_menu_item_new_with_mnemonic (_("Convert Selection to _upper-case")); gtk_widget_show (to_upper_case1); - gtk_container_add (GTK_CONTAINER (change_selection1_menu), to_upper_case1); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), to_upper_case1); + separator30 = gtk_separator_menu_item_new (); + gtk_widget_show (separator30); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), separator30); + gtk_widget_set_sensitive (separator30, FALSE); + + menu_comment_line2 = gtk_menu_item_new_with_mnemonic (_("_Comment Line")); + gtk_widget_show (menu_comment_line2); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), menu_comment_line2); + + menu_uncomment_line2 = gtk_menu_item_new_with_mnemonic (_("_Uncomment Line")); + gtk_widget_show (menu_uncomment_line2); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), menu_uncomment_line2); + + menu_duplicate_line2 = gtk_menu_item_new_with_mnemonic (_("D_uplicate Line")); + gtk_widget_show (menu_duplicate_line2); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), menu_duplicate_line2); + + separator31 = gtk_separator_menu_item_new (); + gtk_widget_show (separator31); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), separator31); + gtk_widget_set_sensitive (separator31, FALSE); + + menu_increase_indent2 = gtk_menu_item_new_with_mnemonic (_("_Increase Indent")); + gtk_widget_show (menu_increase_indent2); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), menu_increase_indent2); + + menu_decrease_indent2 = gtk_menu_item_new_with_mnemonic (_("_Decrease Indent")); + gtk_widget_show (menu_decrease_indent2); + gtk_container_add (GTK_CONTAINER (menu_format2_menu), menu_decrease_indent2); + separator7 = gtk_separator_menu_item_new (); gtk_widget_show (separator7); gtk_container_add (GTK_CONTAINER (edit_menu1), separator7); @@ -1777,9 +1873,9 @@ gtk_widget_show (find_usage1); gtk_container_add (GTK_CONTAINER (edit_menu1), find_usage1); - image789 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_MENU); - gtk_widget_show (image789); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (find_usage1), image789); + image985 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_MENU); + gtk_widget_show (image985); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (find_usage1), image985); goto_tag_definition1 = gtk_menu_item_new_with_mnemonic (_("Go to tag definition")); gtk_widget_show (goto_tag_definition1); @@ -1799,9 +1895,9 @@ gtk_container_add (GTK_CONTAINER (edit_menu1), go_to_line); gtk_tooltips_set_tip (tooltips, go_to_line, _("Goto to the entered line"), NULL); - image790 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU); - gtk_widget_show (image790); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (go_to_line), image790); + image986 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU); + gtk_widget_show (image986); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (go_to_line), image986); g_signal_connect ((gpointer) undo1, "activate", G_CALLBACK (on_undo1_activate), @@ -1854,6 +1950,21 @@ g_signal_connect ((gpointer) to_upper_case1, "activate", G_CALLBACK (on_to_upper_case1_activate), NULL); + g_signal_connect ((gpointer) menu_comment_line2, "activate", + G_CALLBACK (on_menu_comment_line1_activate), + NULL); + g_signal_connect ((gpointer) menu_uncomment_line2, "activate", + G_CALLBACK (on_menu_uncomment_line1_activate), + NULL); + g_signal_connect ((gpointer) menu_duplicate_line2, "activate", + G_CALLBACK (on_menu_duplicate_line1_activate), + NULL); + g_signal_connect ((gpointer) menu_increase_indent2, "activate", + G_CALLBACK (on_menu_increase_indent1_activate), + NULL); + g_signal_connect ((gpointer) menu_decrease_indent2, "activate", + G_CALLBACK (on_menu_decrease_indent1_activate), + NULL); g_signal_connect ((gpointer) find_usage1, "activate", G_CALLBACK (on_find_usage1_activate), NULL); @@ -1884,11 +1995,11 @@ GLADE_HOOKUP_OBJECT (edit_menu1, normal_size2, "normal_size2"); GLADE_HOOKUP_OBJECT (edit_menu1, separator6, "separator6"); GLADE_HOOKUP_OBJECT (edit_menu1, insert_include1, "insert_include1"); - GLADE_HOOKUP_OBJECT (edit_menu1, image787, "image787"); + GLADE_HOOKUP_OBJECT (edit_menu1, image983, "image983"); GLADE_HOOKUP_OBJECT (edit_menu1, insert_include1_menu, "insert_include1_menu"); GLADE_HOOKUP_OBJECT (edit_menu1, invisible3, "invisible3"); GLADE_HOOKUP_OBJECT (edit_menu1, comments, "comments"); - GLADE_HOOKUP_OBJECT (edit_menu1, image788, "image788"); + GLADE_HOOKUP_OBJECT (edit_menu1, image984, "image984"); GLADE_HOOKUP_OBJECT (edit_menu1, comments_menu, "comments_menu"); GLADE_HOOKUP_OBJECT (edit_menu1, add_changelog_entry2, "add_changelog_entry2"); GLADE_HOOKUP_OBJECT (edit_menu1, insert_file_header2, "insert_file_header2"); @@ -1896,18 +2007,25 @@ GLADE_HOOKUP_OBJECT (edit_menu1, insert_multiline_comment1, "insert_multiline_comment1"); GLADE_HOOKUP_OBJECT (edit_menu1, insert_gpl_notice1, "insert_gpl_notice1"); GLADE_HOOKUP_OBJECT (edit_menu1, separator17, "separator17"); - GLADE_HOOKUP_OBJECT (edit_menu1, change_selection1, "change_selection1"); - GLADE_HOOKUP_OBJECT (edit_menu1, change_selection1_menu, "change_selection1_menu"); + GLADE_HOOKUP_OBJECT (edit_menu1, menu_format2, "menu_format2"); + GLADE_HOOKUP_OBJECT (edit_menu1, menu_format2_menu, "menu_format2_menu"); GLADE_HOOKUP_OBJECT (edit_menu1, to_lower_case1, "to_lower_case1"); GLADE_HOOKUP_OBJECT (edit_menu1, to_upper_case1, "to_upper_case1"); + GLADE_HOOKUP_OBJECT (edit_menu1, separator30, "separator30"); + GLADE_HOOKUP_OBJECT (edit_menu1, menu_comment_line2, "menu_comment_line2"); + GLADE_HOOKUP_OBJECT (edit_menu1, menu_uncomment_line2, "menu_uncomment_line2"); + GLADE_HOOKUP_OBJECT (edit_menu1, menu_duplicate_line2, "menu_duplicate_line2"); + GLADE_HOOKUP_OBJECT (edit_menu1, separator31, "separator31"); + GLADE_HOOKUP_OBJECT (edit_menu1, menu_increase_indent2, "menu_increase_indent2"); + GLADE_HOOKUP_OBJECT (edit_menu1, menu_decrease_indent2, "menu_decrease_indent2"); GLADE_HOOKUP_OBJECT (edit_menu1, separator7, "separator7"); GLADE_HOOKUP_OBJECT (edit_menu1, find_usage1, "find_usage1"); - GLADE_HOOKUP_OBJECT (edit_menu1, image789, "image789"); + GLADE_HOOKUP_OBJECT (edit_menu1, image985, "image985"); GLADE_HOOKUP_OBJECT (edit_menu1, goto_tag_definition1, "goto_tag_definition1"); GLADE_HOOKUP_OBJECT (edit_menu1, goto_tag_declaration1, "goto_tag_declaration1"); GLADE_HOOKUP_OBJECT (edit_menu1, separator15, "separator15"); GLADE_HOOKUP_OBJECT (edit_menu1, go_to_line, "go_to_line"); - GLADE_HOOKUP_OBJECT (edit_menu1, image790, "image790"); + GLADE_HOOKUP_OBJECT (edit_menu1, image986, "image986"); GLADE_HOOKUP_OBJECT_NO_REF (edit_menu1, tooltips, "tooltips"); gtk_menu_set_accel_group (GTK_MENU (edit_menu1), accel_group); @@ -2993,7 +3111,7 @@ (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); - image808 = gtk_image_new_from_stock ("gtk-directory", GTK_ICON_SIZE_BUTTON); + image808 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image808); gtk_container_add (GTK_CONTAINER (button_grep), image808); Modified: trunk/src/keybindings.c =================================================================== --- trunk/src/keybindings.c 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/keybindings.c 2006-08-01 10:35:32 UTC (rev 656) @@ -87,6 +87,8 @@ static void cb_func_edit_duplicateline(void); static void cb_func_edit_commentline(void); static void cb_func_edit_uncommentline(void); +static void cb_func_edit_increaseindent(void); +static void cb_func_edit_decreaseindent(void); static void cb_func_edit_autocomplete(void); static void cb_func_edit_calltip(void); static void cb_func_edit_macrolist(void); @@ -196,6 +198,10 @@ GDK_d, GDK_CONTROL_MASK, "edit_commentline", _("Comment line")); keys[GEANY_KEYS_EDIT_UNCOMMENTLINE] = fill(cb_func_edit_uncommentline, GDK_d, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "edit_uncommentline", _("Uncomment line")); + keys[GEANY_KEYS_EDIT_INCREASEINDENT] = fill(cb_func_edit_increaseindent, + GDK_i, GDK_CONTROL_MASK, "edit_increaseindent", _("Increase indent")); + keys[GEANY_KEYS_EDIT_DECREASEINDENT] = fill(cb_func_edit_decreaseindent, + GDK_i, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "edit_decreaseindent", _("Decrease indent")); keys[GEANY_KEYS_EDIT_AUTOCOMPLETE] = fill(cb_func_edit_autocomplete, GDK_space, GDK_CONTROL_MASK, "edit_autocomplete", _("Complete word")); #ifdef G_OS_WIN32 @@ -281,6 +287,11 @@ GEANY_ADD_ACCEL(GEANY_KEYS_MENU_REPLACETABS, menu_replace_tabs); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_FOLDALL, menu_fold_all1); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_UNFOLDALL, menu_unfold_all1); + GEANY_ADD_ACCEL(GEANY_KEYS_EDIT_COMMENTLINE, menu_comment_line1); + GEANY_ADD_ACCEL(GEANY_KEYS_EDIT_UNCOMMENTLINE, menu_uncomment_line1); + GEANY_ADD_ACCEL(GEANY_KEYS_EDIT_DUPLICATELINE, menu_duplicate_line1); + GEANY_ADD_ACCEL(GEANY_KEYS_EDIT_INCREASEINDENT, menu_increase_indent1); + GEANY_ADD_ACCEL(GEANY_KEYS_EDIT_DECREASEINDENT, menu_decrease_indent1); GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_MENU_UNDO, undo1); GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_MENU_REDO, redo1); @@ -291,6 +302,11 @@ GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_POPUP_GOTOTAGDEFINITION, goto_tag_definition1); GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_POPUP_GOTOTAGDECLARATION, goto_tag_declaration1); GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_MENU_GOTOLINE, go_to_line); + GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_EDIT_COMMENTLINE, menu_comment_line2); + GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_EDIT_UNCOMMENTLINE, menu_uncomment_line2); + GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_EDIT_DUPLICATELINE, menu_duplicate_line2); + GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_EDIT_INCREASEINDENT, menu_increase_indent2); + GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_EDIT_DECREASEINDENT, menu_decrease_indent2); // the build menu items are set if the build menus are created @@ -692,26 +708,17 @@ static void cb_func_edit_duplicateline(void) { - gint idx = document_get_cur_idx(); - if (idx == -1 || ! doc_list[idx].is_valid) return; - if (sci_can_copy(doc_list[idx].sci)) - sci_selection_duplicate(doc_list[idx].sci); - else - sci_line_duplicate(doc_list[idx].sci); + on_menu_duplicate_line1_activate(NULL, NULL); } static void cb_func_edit_commentline(void) { - gint idx = document_get_cur_idx(); - if (idx == -1 || ! doc_list[idx].is_valid) return; - sci_cb_do_comment(idx); + on_menu_comment_line1_activate(NULL, NULL); } static void cb_func_edit_uncommentline(void) { - gint idx = document_get_cur_idx(); - if (idx == -1 || ! doc_list[idx].is_valid) return; - sci_cb_do_uncomment(idx); + on_menu_uncomment_line1_activate(NULL, NULL); } static void cb_func_edit_autocomplete(void) @@ -754,3 +761,13 @@ if (idx == -1 || ! doc_list[idx].is_valid) return; document_print(idx); } + +static void cb_func_edit_increaseindent(void) +{ + on_menu_increase_indent1_activate(NULL, NULL); +} + +static void cb_func_edit_decreaseindent(void) +{ + on_menu_decrease_indent1_activate(NULL, NULL); +} Modified: trunk/src/keybindings.h =================================================================== --- trunk/src/keybindings.h 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/keybindings.h 2006-08-01 10:35:32 UTC (rev 656) @@ -84,6 +84,8 @@ GEANY_KEYS_EDIT_DUPLICATELINE, GEANY_KEYS_EDIT_COMMENTLINE, GEANY_KEYS_EDIT_UNCOMMENTLINE, + GEANY_KEYS_EDIT_INCREASEINDENT, + GEANY_KEYS_EDIT_DECREASEINDENT, GEANY_KEYS_EDIT_AUTOCOMPLETE, GEANY_KEYS_EDIT_CALLTIP, GEANY_KEYS_EDIT_MACROLIST, Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/main.c 2006-08-01 10:35:32 UTC (rev 656) @@ -262,11 +262,13 @@ app->popup_items[0] = lookup_widget(app->popup_menu, "cut1"); app->popup_items[1] = lookup_widget(app->popup_menu, "copy1"); app->popup_items[2] = lookup_widget(app->popup_menu, "delete1"); - app->popup_items[3] = lookup_widget(app->popup_menu, "change_selection1"); + app->popup_items[3] = lookup_widget(app->popup_menu, "to_lower_case1"); + app->popup_items[4] = lookup_widget(app->popup_menu, "to_upper_case1"); app->menu_copy_items[0] = lookup_widget(app->window, "menu_cut1"); app->menu_copy_items[1] = lookup_widget(app->window, "menu_copy1"); app->menu_copy_items[2] = lookup_widget(app->window, "menu_delete1"); - app->menu_copy_items[3] = lookup_widget(app->window, "menu_change_selection2"); + app->menu_copy_items[3] = lookup_widget(app->window, "menu_to_lower_case2"); + app->menu_copy_items[4] = lookup_widget(app->window, "menu_to_upper_case2"); app->menu_insert_include_item[0] = lookup_widget(app->popup_menu, "insert_include1"); app->menu_insert_include_item[1] = lookup_widget(app->window, "insert_include2"); app->save_buttons[0] = lookup_widget(app->window, "menu_save1"); Modified: trunk/src/sciwrappers.c =================================================================== --- trunk/src/sciwrappers.c 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/sciwrappers.c 2006-08-01 10:35:32 UTC (rev 656) @@ -843,3 +843,7 @@ SSM(sci, SCI_SELECTALL, 0, 0); } +gint sci_get_line_indent_position(ScintillaObject *sci, gint line) +{ + return SSM(sci, SCI_GETLINEINDENTPOSITION, line, 0); +} Modified: trunk/src/sciwrappers.h =================================================================== --- trunk/src/sciwrappers.h 2006-08-01 10:30:56 UTC (rev 655) +++ trunk/src/sciwrappers.h 2006-08-01 10:35:32 UTC (rev 656) @@ -142,7 +142,7 @@ void sci_target_from_selection (ScintillaObject * sci); void sci_target_start (ScintillaObject * sci, gint start); void sci_target_end (ScintillaObject * sci, gint end); -gint sci_target_replace (ScintillaObject *sci, const gchar *text, gboolean regex); +gint sci_target_replace (ScintillaObject * sci, const gchar *text, gboolean regex); void sci_set_keywords (ScintillaObject * sci, gint k, gchar *text); void sci_scroll_lines (ScintillaObject * sci, gint lines); gint sci_get_lexer (ScintillaObject * sci); @@ -155,6 +155,6 @@ void sci_set_styling (ScintillaObject * sci, gint len, gint style); void sci_start_styling (ScintillaObject * sci, gint pos, gint mask); void sci_select_all (ScintillaObject * sci); +gint sci_get_line_indent_position(ScintillaObject * sci, gint line); - #endif This was sent by the
SourceForge.net
collaborative development platform, the world's largest Open Source development site.
1
0
0
0
SF.net SVN: geany: [655] trunk
by ntrelï¼ users.sourceforge.net
01 Aug '06
01 Aug '06
Revision: 655 Author: ntrel Date: 2006-08-01 03:30:56 -0700 (Tue, 01 Aug 2006) ViewCVS:
http://svn.sourceforge.net/geany/?rev=655&view=rev
Log Message: ----------- Change default for removing trailing spaces to off Modified Paths: -------------- trunk/ChangeLog trunk/src/keyfile.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-08-01 10:06:28 UTC (rev 654) +++ trunk/ChangeLog 2006-08-01 10:30:56 UTC (rev 655) @@ -5,6 +5,7 @@ Added Auto indentation and Line wrapping options to Preferences dialog. Split up Miscellaneous items into Display and Features. Renamed Change Selection and Run toolbutton. + * src/keyfile.c: Change default for removing trailing spaces to off. 2006-07-31 Enrico Tröger <enrico.troeger(a)uvena.de> Modified: trunk/src/keyfile.c =================================================================== --- trunk/src/keyfile.c 2006-08-01 10:06:28 UTC (rev 654) +++ trunk/src/keyfile.c 2006-08-01 10:30:56 UTC (rev 655) @@ -331,7 +331,7 @@ app->pref_editor_replace_tabs = utils_get_setting_boolean(config, PACKAGE, "pref_editor_replace_tabs", FALSE); app->pref_editor_new_line = utils_get_setting_boolean(config, PACKAGE, "pref_editor_new_line", TRUE); - app->pref_editor_trail_space = utils_get_setting_boolean(config, PACKAGE, "pref_editor_trail_space", TRUE); + app->pref_editor_trail_space = utils_get_setting_boolean(config, PACKAGE, "pref_editor_trail_space", FALSE); tmp_string = g_find_program_in_path(GEANY_DEFAULT_TOOLS_MAKE); app->tools_make_cmd = utils_get_setting_string(config, "tools", "make_cmd", tmp_string); This was sent by the
SourceForge.net
collaborative development platform, the world's largest Open Source development site.
1
0
0
0
SF.net SVN: geany: [654] trunk
by ntrelï¼ users.sourceforge.net
01 Aug '06
01 Aug '06
Revision: 654 Author: ntrel Date: 2006-08-01 03:06:28 -0700 (Tue, 01 Aug 2006) ViewCVS:
http://svn.sourceforge.net/geany/?rev=654&view=rev
Log Message: ----------- Added Auto indentation and Line wrapping options to Preferences dialog; Split up Miscellaneous items into Display and Features; Renamed Change Selection and Run toolbutton. Modified Paths: -------------- trunk/ChangeLog trunk/geany.glade trunk/src/callbacks.c trunk/src/document.c trunk/src/interface.c trunk/src/keyfile.c trunk/src/prefs.c trunk/src/utils.c trunk/src/utils.h Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/ChangeLog 2006-08-01 10:06:28 UTC (rev 654) @@ -1,3 +1,12 @@ +2006-08-01 Nick Treleaven <nick.treleaven(a)btinternet.com> + + * src/interface.c, src/utils.c, src/utils.h, src/callbacks.c, + src/keyfile.c, src/document.c, src/prefs.c, geany.glade: + Added Auto indentation and Line wrapping options to Preferences + dialog. Split up Miscellaneous items into Display and Features. + Renamed Change Selection and Run toolbutton. + + 2006-07-31 Enrico Tröger <enrico.troeger(a)uvena.de> * src/keybindings.c, src/sci_cb.c: Modified: trunk/geany.glade =================================================================== --- trunk/geany.glade 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/geany.glade 2006-08-01 10:06:28 UTC (rev 654) @@ -57,7 +57,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image929"> + <widget class="GtkImage" id="image959"> <property name="visible">True</property> <property name="stock">gtk-new</property> <property name="icon_size">1</property> @@ -150,7 +150,7 @@ <signal name="activate" handler="on_save_all1_activate" last_modification_time="Thu, 02 Jun 2005 14:15:30 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image930"> + <widget class="GtkImage" id="image960"> <property name="visible">True</property> <property name="stock">gtk-save</property> <property name="icon_size">1</property> @@ -171,7 +171,7 @@ <signal name="activate" handler="on_toolbutton23_clicked" last_modification_time="Mon, 24 Jul 2006 19:26:04 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image931"> + <widget class="GtkImage" id="image961"> <property name="visible">True</property> <property name="stock">gtk-revert-to-saved</property> <property name="icon_size">1</property> @@ -191,7 +191,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image932"> + <widget class="GtkImage" id="image962"> <property name="visible">True</property> <property name="stock">gtk-revert-to-saved</property> <property name="icon_size">1</property> @@ -271,7 +271,7 @@ <signal name="activate" handler="on_close_all1_activate" last_modification_time="Thu, 02 Jun 2005 14:15:30 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image933"> + <widget class="GtkImage" id="image963"> <property name="visible">True</property> <property name="stock">gtk-close</property> <property name="icon_size">1</property> @@ -402,7 +402,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image934"> + <widget class="GtkImage" id="image964"> <property name="visible">True</property> <property name="stock">gtk-add</property> <property name="icon_size">1</property> @@ -434,7 +434,7 @@ <property name="use_underline">True</property> <child internal-child="image"> - <widget class="GtkImage" id="image935"> + <widget class="GtkImage" id="image965"> <property name="visible">True</property> <property name="stock">gtk-add</property> <property name="icon_size">1</property> @@ -511,7 +511,8 @@ <child> <widget class="GtkMenuItem" id="menu_change_selection2"> <property name="visible">True</property> - <property name="label" translatable="yes">Change _Selection</property> + <property name="tooltip" translatable="yes">Convert the case of the current selection</property> + <property name="label" translatable="yes">C_onvert case</property> <property name="use_underline">True</property> <child> @@ -612,7 +613,7 @@ <signal name="activate" handler="on_replace1_activate" last_modification_time="Sun, 23 Oct 2005 13:22:36 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image936"> + <widget class="GtkImage" id="image966"> <property name="visible">True</property> <property name="stock">gtk-find-and-replace</property> <property name="icon_size">1</property> @@ -654,7 +655,7 @@ <signal name="activate" handler="on_go_to_line1_activate" last_modification_time="Tue, 23 May 2006 17:10:49 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image937"> + <widget class="GtkImage" id="image967"> <property name="visible">True</property> <property name="stock">gtk-jump-to</property> <property name="icon_size">1</property> @@ -689,7 +690,7 @@ <signal name="activate" handler="on_change_font1_activate" last_modification_time="Fri, 22 Apr 2005 18:58:45 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image938"> + <widget class="GtkImage" id="image968"> <property name="visible">True</property> <property name="stock">gtk-select-font</property> <property name="icon_size">1</property> @@ -711,7 +712,7 @@ <signal name="activate" handler="on_show_color_chooser1_activate" last_modification_time="Wed, 22 Jun 2005 18:10:21 GMT"/> <child internal-child="image"> - <widget class="GtkImage" id="image939"> + <widget class="GtkImage" id="image969"> <property name="visible">True</property> <property name="stock">gtk-select-color</property> <property name="icon_size">1</property> @@ -843,8 +844,8 @@ <child> <widget class="GtkCheckMenuItem" id="menu_line_breaking1"> <property name="visible">True</property> - <property name="tooltip" translatable="yes">Break the line at the window border and continue it on the next line</property> - <property name="label" translatable="yes">_Line breaking</property> + <property name="tooltip" translatable="yes">Wrap the line at the window border and continue it on the next line. Note: line wrapping has a high performance cost for large documents so should be disabled on slow machines.</property> + <property name="label" translatable="yes">_Line wrapping</property> <property name="use_underline">True</property> <property name="active">True</property> <signal name="toggled" handler="on_line_breaking1_toggled" last_modification_time="Sun, 04 Sep 2005 11:12:08 GMT"/> @@ -1299,8 +1300,6 @@ <widget class="GtkToolButton" id="toolbutton26"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Run or view the current file</property> - <property name="label" translatable="yes">Run</property> - <property name="use_underline">True</property> <property name="stock_id">gtk-execute</property> <property name="visible_horizontal">True</property> <property name="visible_vertical">True</property> @@ -2305,7 +2304,7 @@ <child> <widget class="GtkMenuItem" id="change_selection1"> <property name="visible">True</property> - <property name="label" translatable="yes">Change Selection</property> + <property name="label" translatable="yes">Convert case</property> <property name="use_underline">True</property> <child> @@ -4588,16 +4587,75 @@ <property name="fill">False</property> </packing> </child> + </widget> + </child> + </widget> + </child> + <child> + <widget class="GtkLabel" id="label102"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b>Display</b></property> + <property name="use_underline">False</property> + <property name="use_markup">True</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="type">label_item</property> + </packing> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + + <child> + <widget class="GtkFrame" id="frame14"> + <property name="visible">True</property> + <property name="label_xalign">0</property> + <property name="label_yalign">0.5</property> + <property name="shadow_type">GTK_SHADOW_NONE</property> + + <child> + <widget class="GtkAlignment" id="alignment17"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">1</property> + <property name="yscale">1</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">12</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkVBox" id="vbox17"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">0</property> + <child> - <widget class="GtkCheckButton" id="check_xmltag"> + <widget class="GtkCheckButton" id="check_auto_indent"> <property name="visible">True</property> - <property name="tooltip" translatable="yes">Automatic completion of open XML tags(includes HTML tags)</property> + <property name="tooltip" translatable="yes">Add the same indentation as the previous line after pressing enter</property> <property name="can_focus">True</property> - <property name="label" translatable="yes">XML tag auto completion</property> + <property name="label" translatable="yes">Auto indentation</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">False</property> + <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> @@ -4610,6 +4668,26 @@ </child> <child> + <widget class="GtkCheckButton" id="check_line_wrapping"> + <property name="visible">True</property> + <property name="tooltip" translatable="yes">Wrap the line at the window border and continue it on the next line. Note: line wrapping has a high performance cost for large documents so should be disabled on slow machines.</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">Line wrapping</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <property name="active">False</property> + <property name="inconsistent">False</property> + <property name="draw_indicator">True</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + + <child> <widget class="GtkCheckButton" id="check_auto_complete"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Automatic completion of often used constructs like if and for</property> @@ -4630,11 +4708,11 @@ </child> <child> - <widget class="GtkCheckButton" id="check_folding"> + <widget class="GtkCheckButton" id="check_xmltag"> <property name="visible">True</property> - <property name="tooltip" translatable="yes">Whether to enable folding the code</property> + <property name="tooltip" translatable="yes">Automatic completion of open XML tags(includes HTML tags)</property> <property name="can_focus">True</property> - <property name="label" translatable="yes">Enable folding</property> + <property name="label" translatable="yes">XML tag auto completion</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">False</property> @@ -4650,11 +4728,11 @@ </child> <child> - <widget class="GtkCheckButton" id="check_indicators"> + <widget class="GtkCheckButton" id="check_folding"> <property name="visible">True</property> - <property name="tooltip" translatable="yes">Whether to use indicators(a squiggly underline) to highlight the lines, where the compiler found a warning or an error.</property> + <property name="tooltip" translatable="yes">Whether to enable folding the code</property> <property name="can_focus">True</property> - <property name="label" translatable="yes">Use indicators to show compile errors</property> + <property name="label" translatable="yes">Enable folding</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">False</property> @@ -4670,22 +4748,17 @@ </child> <child> - <widget class="GtkLabel" id="label148"> + <widget class="GtkCheckButton" id="check_indicators"> <property name="visible">True</property> - <property name="label" translatable="yes"></property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> - <property name="width_chars">-1</property> - <property name="single_line_mode">False</property> - <property name="angle">0</property> + <property name="tooltip" translatable="yes">Whether to use indicators (a squiggly underline) to highlight the lines where the compiler found a warning or an error.</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">Use indicators to show compile errors</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">False</property> + <property name="active">False</property> + <property name="inconsistent">False</property> + <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> @@ -4693,19 +4766,15 @@ <property name="fill">False</property> </packing> </child> - - <child> - <placeholder/> - </child> </widget> </child> </widget> </child> <child> - <widget class="GtkLabel" id="label102"> + <widget class="GtkLabel" id="label172"> <property name="visible">True</property> - <property name="label" translatable="yes"><b>Miscellaneous</b></property> + <property name="label" translatable="yes"><b>Features</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> @@ -4731,10 +4800,6 @@ <property name="fill">True</property> </packing> </child> - - <child> - <placeholder/> - </child> </widget> <packing> <property name="tab_expand">False</property> @@ -5710,7 +5775,7 @@ </child> </widget> <packing> - <property name="padding">0</property> + <property name="padding">6</property> <property name="expand">True</property> <property name="fill">True</property> </packing> Modified: trunk/src/callbacks.c =================================================================== --- trunk/src/callbacks.c 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/src/callbacks.c 2006-08-01 10:06:28 UTC (rev 654) @@ -738,32 +738,14 @@ if (idx >= 0 && app->opening_session_files == FALSE) { - app->ignore_callback = TRUE; - gtk_check_menu_item_set_active( - GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "menu_line_breaking1")), - doc_list[idx].line_breaking); - gtk_check_menu_item_set_active( - GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "menu_use_auto_indention1")), - doc_list[idx].use_auto_indention); - gtk_check_menu_item_set_active( - GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "set_file_readonly1")), - doc_list[idx].readonly); - gtk_check_menu_item_set_active( - GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "menu_write_unicode_bom1")), - doc_list[idx].has_bom); - - gtk_widget_set_sensitive(lookup_widget(app->window, "menu_write_unicode_bom1"), - utils_is_unicode_charset(doc_list[idx].encoding)); - gtk_tree_model_foreach(GTK_TREE_MODEL(tv.store_openfiles), treeviews_find_node, GINT_TO_POINTER(idx)); document_set_text_changed(idx); + utils_document_show_hide(idx); //update the document menu utils_build_show_hide(idx); utils_update_statusbar(idx, -1); utils_set_window_title(idx); utils_update_tag_list(idx, FALSE); - - app->ignore_callback = FALSE; } } Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/src/document.c 2006-08-01 10:06:28 UTC (rev 654) @@ -184,8 +184,8 @@ { doc_list[i].is_valid = FALSE; doc_list[i].has_tags = FALSE; - doc_list[i].use_auto_indention = TRUE; - doc_list[i].line_breaking = TRUE; + doc_list[i].use_auto_indention = app->pref_editor_use_auto_indention; + doc_list[i].line_breaking = app->pref_editor_line_breaking; doc_list[i].readonly = FALSE; doc_list[i].tag_store = NULL; doc_list[i].tag_tree = NULL; @@ -282,8 +282,8 @@ this->last_check = time(NULL); this->do_overwrite = FALSE; this->readonly = FALSE; - this->line_breaking = TRUE; - this->use_auto_indention = TRUE; + this->line_breaking = app->pref_editor_line_breaking; + this->use_auto_indention = app->pref_editor_use_auto_indention; this->has_tags = FALSE; this->is_valid = TRUE; @@ -366,6 +366,7 @@ doc_list[idx].mtime = time(NULL); doc_list[idx].changed = FALSE; document_set_text_changed(idx); + utils_document_show_hide(idx); //update the document menu #ifdef G_OS_WIN32 sci_set_eol_mode(doc_list[idx].sci, SC_EOL_CRLF); #else @@ -604,26 +605,10 @@ sci_goto_pos(doc_list[idx].sci, pos, TRUE); - app->ignore_callback = TRUE; - - gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM( - lookup_widget(app->window, "menu_write_unicode_bom1")), doc_list[idx].has_bom); - gtk_widget_set_sensitive(lookup_widget(app->window, "menu_write_unicode_bom1"), - utils_is_unicode_charset(doc_list[idx].encoding)); - - app->ignore_callback = FALSE; - if (! reload) { filetype *use_ft = (ft != NULL) ? ft : filetypes_get_from_filename(utf8_filename); - app->ignore_callback = TRUE; - - gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "set_file_readonly1")), - readonly); - - app->ignore_callback = FALSE; - doc_list[idx].readonly = readonly; sci_set_readonly(doc_list[idx].sci, readonly); @@ -636,6 +621,7 @@ } document_set_text_changed(idx); + utils_document_show_hide(idx); //update the document menu g_free(data); Modified: trunk/src/interface.c =================================================================== --- trunk/src/interface.c 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/src/interface.c 2006-08-01 10:06:28 UTC (rev 654) @@ -37,7 +37,7 @@ GtkWidget *menuitem1_menu; GtkWidget *menu_new1; GtkWidget *menu_new_with_template1; - GtkWidget *image929; + GtkWidget *image959; GtkWidget *menu_new_with_template1_menu; GtkWidget *invisible2; GtkWidget *separator12; @@ -49,11 +49,11 @@ GtkWidget *menu_save1; GtkWidget *menu_save_as1; GtkWidget *menu_save_all1; - GtkWidget *image930; + GtkWidget *image960; GtkWidget *menu_reload1; - GtkWidget *image931; + GtkWidget *image961; GtkWidget *menu_reload_as1; - GtkWidget *image932; + GtkWidget *image962; GtkWidget *menu_reload_as1_menu; GtkWidget *invisible7; GtkWidget *separator21; @@ -63,7 +63,7 @@ GtkWidget *separator14; GtkWidget *menu_close1; GtkWidget *menu_close_all1; - GtkWidget *image933; + GtkWidget *image963; GtkWidget *menu_separatormenuitem1; GtkWidget *menu_quit1; GtkWidget *edit1; @@ -79,11 +79,11 @@ GtkWidget *menu_select_all1; GtkWidget *separator25; GtkWidget *insert_include2; - GtkWidget *image934; + GtkWidget *image964; GtkWidget *insert_include2_menu; GtkWidget *invisible4; GtkWidget *add_comments1; - GtkWidget *image935; + GtkWidget *image965; GtkWidget *add_comments1_menu; GtkWidget *menu_add_changelog_entry1; GtkWidget *insert_file_header1; @@ -104,18 +104,18 @@ GtkWidget *find_next1; GtkWidget *find_previous1; GtkWidget *replace1; - GtkWidget *image936; + GtkWidget *image966; GtkWidget *separator27; GtkWidget *find_in_files1; GtkWidget *separator11; GtkWidget *go_to_line1; - GtkWidget *image937; + GtkWidget *image967; GtkWidget *menuitem3; GtkWidget *menuitem3_menu; GtkWidget *menu_change_font1; - GtkWidget *image938; + GtkWidget *image968; GtkWidget *menu_choose_color1; - GtkWidget *image939; + GtkWidget *image969; GtkWidget *menu_separator4; GtkWidget *menu_fullscreen1; GtkWidget *menu_show_messages_window1; @@ -251,9 +251,9 @@ gtk_widget_show (menu_new_with_template1); gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_new_with_template1); - image929 = gtk_image_new_from_stock ("gtk-new", GTK_ICON_SIZE_MENU); - gtk_widget_show (image929); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_new_with_template1), image929); + image959 = gtk_image_new_from_stock ("gtk-new", GTK_ICON_SIZE_MENU); + gtk_widget_show (image959); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_new_with_template1), image959); menu_new_with_template1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_new_with_template1), menu_new_with_template1_menu); @@ -298,25 +298,25 @@ gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_save_all1); gtk_tooltips_set_tip (tooltips, menu_save_all1, _("Saves all open files"), NULL); - image930 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_MENU); - gtk_widget_show (image930); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_save_all1), image930); + image960 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_MENU); + gtk_widget_show (image960); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_save_all1), image960); menu_reload1 = gtk_image_menu_item_new_with_mnemonic (_("_Reload")); gtk_widget_show (menu_reload1); gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_reload1); - image931 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); - gtk_widget_show (image931); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reload1), image931); + image961 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); + gtk_widget_show (image961); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reload1), image961); menu_reload_as1 = gtk_image_menu_item_new_with_mnemonic (_("R_eload as")); gtk_widget_show (menu_reload_as1); gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_reload_as1); - image932 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); - gtk_widget_show (image932); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reload_as1), image932); + image962 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); + gtk_widget_show (image962); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reload_as1), image962); menu_reload_as1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_reload_as1), menu_reload_as1_menu); @@ -357,9 +357,9 @@ gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_close_all1); gtk_tooltips_set_tip (tooltips, menu_close_all1, _("Closes all open files"), NULL); - image933 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_MENU); - gtk_widget_show (image933); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_close_all1), image933); + image963 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_MENU); + gtk_widget_show (image963); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_close_all1), image963); menu_separatormenuitem1 = gtk_separator_menu_item_new (); gtk_widget_show (menu_separatormenuitem1); @@ -425,9 +425,9 @@ gtk_widget_show (insert_include2); gtk_container_add (GTK_CONTAINER (edit1_menu), insert_include2); - image934 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); - gtk_widget_show (image934); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include2), image934); + image964 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); + gtk_widget_show (image964); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include2), image964); insert_include2_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (insert_include2), insert_include2_menu); @@ -439,9 +439,9 @@ gtk_widget_show (add_comments1); gtk_container_add (GTK_CONTAINER (edit1_menu), add_comments1); - image935 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); - gtk_widget_show (image935); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_comments1), image935); + image965 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); + gtk_widget_show (image965); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_comments1), image965); add_comments1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (add_comments1), add_comments1_menu); @@ -476,9 +476,10 @@ gtk_container_add (GTK_CONTAINER (edit1_menu), separator18); gtk_widget_set_sensitive (separator18, FALSE); - menu_change_selection2 = gtk_menu_item_new_with_mnemonic (_("Change _Selection")); + menu_change_selection2 = gtk_menu_item_new_with_mnemonic (_("C_onvert case")); gtk_widget_show (menu_change_selection2); gtk_container_add (GTK_CONTAINER (edit1_menu), menu_change_selection2); + gtk_tooltips_set_tip (tooltips, menu_change_selection2, _("Convert the case of the current selection"), NULL); menu_change_selection2_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_change_selection2), menu_change_selection2_menu); @@ -528,9 +529,9 @@ gtk_widget_show (replace1); gtk_container_add (GTK_CONTAINER (search1_menu), replace1); - image936 = gtk_image_new_from_stock ("gtk-find-and-replace", GTK_ICON_SIZE_MENU); - gtk_widget_show (image936); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (replace1), image936); + image966 = gtk_image_new_from_stock ("gtk-find-and-replace", GTK_ICON_SIZE_MENU); + gtk_widget_show (image966); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (replace1), image966); separator27 = gtk_separator_menu_item_new (); gtk_widget_show (separator27); @@ -550,9 +551,9 @@ gtk_widget_show (go_to_line1); gtk_container_add (GTK_CONTAINER (search1_menu), go_to_line1); - image937 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU); - gtk_widget_show (image937); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (go_to_line1), image937); + image967 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU); + gtk_widget_show (image967); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (go_to_line1), image967); menuitem3 = gtk_menu_item_new_with_mnemonic (_("_View")); gtk_widget_show (menuitem3); @@ -566,18 +567,18 @@ gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_change_font1); gtk_tooltips_set_tip (tooltips, menu_change_font1, _("Change the default font"), NULL); - image938 = gtk_image_new_from_stock ("gtk-select-font", GTK_ICON_SIZE_MENU); - gtk_widget_show (image938); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_change_font1), image938); + image968 = gtk_image_new_from_stock ("gtk-select-font", GTK_ICON_SIZE_MENU); + gtk_widget_show (image968); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_change_font1), image968); menu_choose_color1 = gtk_image_menu_item_new_with_mnemonic (_("Show _Colour Chooser")); gtk_widget_show (menu_choose_color1); gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_choose_color1); gtk_tooltips_set_tip (tooltips, menu_choose_color1, _("Open a color chooser dialog, to interactively pick colors from a palette."), NULL); - image939 = gtk_image_new_from_stock ("gtk-select-color", GTK_ICON_SIZE_MENU); - gtk_widget_show (image939); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_choose_color1), image939); + image969 = gtk_image_new_from_stock ("gtk-select-color", GTK_ICON_SIZE_MENU); + gtk_widget_show (image969); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_choose_color1), image969); menu_separator4 = gtk_separator_menu_item_new (); gtk_widget_show (menu_separator4); @@ -641,10 +642,10 @@ menu_item4_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_item4), menu_item4_menu); - menu_line_breaking1 = gtk_check_menu_item_new_with_mnemonic (_("_Line breaking")); + menu_line_breaking1 = gtk_check_menu_item_new_with_mnemonic (_("_Line wrapping")); gtk_widget_show (menu_line_breaking1); gtk_container_add (GTK_CONTAINER (menu_item4_menu), menu_line_breaking1); - gtk_tooltips_set_tip (tooltips, menu_line_breaking1, _("Break the line at the window border and continue it on the next line"), NULL); + gtk_tooltips_set_tip (tooltips, menu_line_breaking1, _("Wrap the line at the window border and continue it on the next line. Note: line wrapping has a high performance cost for large documents so should be disabled on slow machines."), NULL); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_line_breaking1), TRUE); menu_use_auto_indention1 = gtk_check_menu_item_new_with_mnemonic (_("_Use auto indentation")); @@ -839,9 +840,7 @@ gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton13); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton13), tooltips, _("Compile the current file"), NULL); - tmp_image = gtk_image_new_from_stock ("gtk-execute", tmp_toolbar_icon_size); - gtk_widget_show (tmp_image); - toolbutton26 = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Run")); + toolbutton26 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-execute"); gtk_widget_show (toolbutton26); gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton26); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton26), tooltips, _("Run or view the current file"), NULL); @@ -1303,7 +1302,7 @@ GLADE_HOOKUP_OBJECT (window1, menuitem1_menu, "menuitem1_menu"); GLADE_HOOKUP_OBJECT (window1, menu_new1, "menu_new1"); GLADE_HOOKUP_OBJECT (window1, menu_new_with_template1, "menu_new_with_template1"); - GLADE_HOOKUP_OBJECT (window1, image929, "image929"); + GLADE_HOOKUP_OBJECT (window1, image959, "image959"); GLADE_HOOKUP_OBJECT (window1, menu_new_with_template1_menu, "menu_new_with_template1_menu"); GLADE_HOOKUP_OBJECT (window1, invisible2, "invisible2"); GLADE_HOOKUP_OBJECT (window1, separator12, "separator12"); @@ -1315,11 +1314,11 @@ GLADE_HOOKUP_OBJECT (window1, menu_save1, "menu_save1"); GLADE_HOOKUP_OBJECT (window1, menu_save_as1, "menu_save_as1"); GLADE_HOOKUP_OBJECT (window1, menu_save_all1, "menu_save_all1"); - GLADE_HOOKUP_OBJECT (window1, image930, "image930"); + GLADE_HOOKUP_OBJECT (window1, image960, "image960"); GLADE_HOOKUP_OBJECT (window1, menu_reload1, "menu_reload1"); - GLADE_HOOKUP_OBJECT (window1, image931, "image931"); + GLADE_HOOKUP_OBJECT (window1, image961, "image961"); GLADE_HOOKUP_OBJECT (window1, menu_reload_as1, "menu_reload_as1"); - GLADE_HOOKUP_OBJECT (window1, image932, "image932"); + GLADE_HOOKUP_OBJECT (window1, image962, "image962"); GLADE_HOOKUP_OBJECT (window1, menu_reload_as1_menu, "menu_reload_as1_menu"); GLADE_HOOKUP_OBJECT (window1, invisible7, "invisible7"); GLADE_HOOKUP_OBJECT (window1, separator21, "separator21"); @@ -1329,7 +1328,7 @@ GLADE_HOOKUP_OBJECT (window1, separator14, "separator14"); GLADE_HOOKUP_OBJECT (window1, menu_close1, "menu_close1"); GLADE_HOOKUP_OBJECT (window1, menu_close_all1, "menu_close_all1"); - GLADE_HOOKUP_OBJECT (window1, image933, "image933"); + GLADE_HOOKUP_OBJECT (window1, image963, "image963"); GLADE_HOOKUP_OBJECT (window1, menu_separatormenuitem1, "menu_separatormenuitem1"); GLADE_HOOKUP_OBJECT (window1, menu_quit1, "menu_quit1"); GLADE_HOOKUP_OBJECT (window1, edit1, "edit1"); @@ -1345,11 +1344,11 @@ GLADE_HOOKUP_OBJECT (window1, menu_select_all1, "menu_select_all1"); GLADE_HOOKUP_OBJECT (window1, separator25, "separator25"); GLADE_HOOKUP_OBJECT (window1, insert_include2, "insert_include2"); - GLADE_HOOKUP_OBJECT (window1, image934, "image934"); + GLADE_HOOKUP_OBJECT (window1, image964, "image964"); GLADE_HOOKUP_OBJECT (window1, insert_include2_menu, "insert_include2_menu"); GLADE_HOOKUP_OBJECT (window1, invisible4, "invisible4"); GLADE_HOOKUP_OBJECT (window1, add_comments1, "add_comments1"); - GLADE_HOOKUP_OBJECT (window1, image935, "image935"); + GLADE_HOOKUP_OBJECT (window1, image965, "image965"); GLADE_HOOKUP_OBJECT (window1, add_comments1_menu, "add_comments1_menu"); GLADE_HOOKUP_OBJECT (window1, menu_add_changelog_entry1, "menu_add_changelog_entry1"); GLADE_HOOKUP_OBJECT (window1, insert_file_header1, "insert_file_header1"); @@ -1370,18 +1369,18 @@ GLADE_HOOKUP_OBJECT (window1, find_next1, "find_next1"); GLADE_HOOKUP_OBJECT (window1, find_previous1, "find_previous1"); GLADE_HOOKUP_OBJECT (window1, replace1, "replace1"); - GLADE_HOOKUP_OBJECT (window1, image936, "image936"); + GLADE_HOOKUP_OBJECT (window1, image966, "image966"); GLADE_HOOKUP_OBJECT (window1, separator27, "separator27"); GLADE_HOOKUP_OBJECT (window1, find_in_files1, "find_in_files1"); GLADE_HOOKUP_OBJECT (window1, separator11, "separator11"); GLADE_HOOKUP_OBJECT (window1, go_to_line1, "go_to_line1"); - GLADE_HOOKUP_OBJECT (window1, image937, "image937"); + GLADE_HOOKUP_OBJECT (window1, image967, "image967"); GLADE_HOOKUP_OBJECT (window1, menuitem3, "menuitem3"); GLADE_HOOKUP_OBJECT (window1, menuitem3_menu, "menuitem3_menu"); GLADE_HOOKUP_OBJECT (window1, menu_change_font1, "menu_change_font1"); - GLADE_HOOKUP_OBJECT (window1, image938, "image938"); + GLADE_HOOKUP_OBJECT (window1, image968, "image968"); GLADE_HOOKUP_OBJECT (window1, menu_choose_color1, "menu_choose_color1"); - GLADE_HOOKUP_OBJECT (window1, image939, "image939"); + GLADE_HOOKUP_OBJECT (window1, image969, "image969"); GLADE_HOOKUP_OBJECT (window1, menu_separator4, "menu_separator4"); GLADE_HOOKUP_OBJECT (window1, menu_fullscreen1, "menu_fullscreen1"); GLADE_HOOKUP_OBJECT (window1, menu_show_messages_window1, "menu_show_messages_window1"); @@ -1754,7 +1753,7 @@ gtk_container_add (GTK_CONTAINER (edit_menu1), separator17); gtk_widget_set_sensitive (separator17, FALSE); - change_selection1 = gtk_menu_item_new_with_mnemonic (_("Change Selection")); + change_selection1 = gtk_menu_item_new_with_mnemonic (_("Convert case")); gtk_widget_show (change_selection1); gtk_container_add (GTK_CONTAINER (edit_menu1), change_selection1); @@ -2042,12 +2041,17 @@ GtkWidget *check_indent; GtkWidget *check_white_space; GtkWidget *check_line_end; + GtkWidget *label102; + GtkWidget *frame14; + GtkWidget *alignment17; + GtkWidget *vbox17; + GtkWidget *check_auto_indent; + GtkWidget *check_line_wrapping; + GtkWidget *check_auto_complete; GtkWidget *check_xmltag; - GtkWidget *check_auto_complete; GtkWidget *check_folding; GtkWidget *check_indicators; - GtkWidget *label148; - GtkWidget *label102; + GtkWidget *label172; GtkWidget *label95; GtkWidget *vbox2; GtkWidget *label17; @@ -2114,7 +2118,7 @@ notebook2 = gtk_notebook_new (); gtk_widget_show (notebook2); - gtk_box_pack_start (GTK_BOX (dialog_vbox3), notebook2, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (dialog_vbox3), notebook2, TRUE, TRUE, 6); GTK_WIDGET_UNSET_FLAGS (notebook2, GTK_CAN_FOCUS); gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook2), GTK_POS_LEFT); @@ -2797,39 +2801,64 @@ gtk_tooltips_set_tip (tooltips, check_line_end, _("Show the line ending character"), NULL); gtk_button_set_focus_on_click (GTK_BUTTON (check_line_end), FALSE); - check_xmltag = gtk_check_button_new_with_mnemonic (_("XML tag auto completion")); - gtk_widget_show (check_xmltag); - gtk_box_pack_start (GTK_BOX (vbox12), check_xmltag, FALSE, FALSE, 0); - gtk_tooltips_set_tip (tooltips, check_xmltag, _("Automatic completion of open XML tags(includes HTML tags)"), NULL); - gtk_button_set_focus_on_click (GTK_BUTTON (check_xmltag), FALSE); + label102 = gtk_label_new (_("<b>Display</b>")); + gtk_widget_show (label102); + gtk_frame_set_label_widget (GTK_FRAME (frame5), label102); + gtk_label_set_use_markup (GTK_LABEL (label102), TRUE); + frame14 = gtk_frame_new (NULL); + gtk_widget_show (frame14); + gtk_box_pack_start (GTK_BOX (vbox5), frame14, TRUE, TRUE, 0); + gtk_frame_set_shadow_type (GTK_FRAME (frame14), GTK_SHADOW_NONE); + + alignment17 = gtk_alignment_new (0.5, 0.5, 1, 1); + gtk_widget_show (alignment17); + gtk_container_add (GTK_CONTAINER (frame14), alignment17); + gtk_alignment_set_padding (GTK_ALIGNMENT (alignment17), 0, 0, 12, 0); + + vbox17 = gtk_vbox_new (FALSE, 0); + gtk_widget_show (vbox17); + gtk_container_add (GTK_CONTAINER (alignment17), vbox17); + + check_auto_indent = gtk_check_button_new_with_mnemonic (_("Auto indentation")); + gtk_widget_show (check_auto_indent); + gtk_box_pack_start (GTK_BOX (vbox17), check_auto_indent, FALSE, FALSE, 0); + gtk_tooltips_set_tip (tooltips, check_auto_indent, _("Add the same indentation as the previous line after pressing enter"), NULL); + + check_line_wrapping = gtk_check_button_new_with_mnemonic (_("Line wrapping")); + gtk_widget_show (check_line_wrapping); + gtk_box_pack_start (GTK_BOX (vbox17), check_line_wrapping, FALSE, FALSE, 0); + gtk_tooltips_set_tip (tooltips, check_line_wrapping, _("Wrap the line at the window border and continue it on the next line. Note: line wrapping has a high performance cost for large documents so should be disabled on slow machines."), NULL); + check_auto_complete = gtk_check_button_new_with_mnemonic (_("Construct auto completion")); gtk_widget_show (check_auto_complete); - gtk_box_pack_start (GTK_BOX (vbox12), check_auto_complete, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (vbox17), check_auto_complete, FALSE, FALSE, 0); gtk_tooltips_set_tip (tooltips, check_auto_complete, _("Automatic completion of often used constructs like if and for"), NULL); gtk_button_set_focus_on_click (GTK_BUTTON (check_auto_complete), FALSE); + check_xmltag = gtk_check_button_new_with_mnemonic (_("XML tag auto completion")); + gtk_widget_show (check_xmltag); + gtk_box_pack_start (GTK_BOX (vbox17), check_xmltag, FALSE, FALSE, 0); + gtk_tooltips_set_tip (tooltips, check_xmltag, _("Automatic completion of open XML tags(includes HTML tags)"), NULL); + gtk_button_set_focus_on_click (GTK_BUTTON (check_xmltag), FALSE); + check_folding = gtk_check_button_new_with_mnemonic (_("Enable folding")); gtk_widget_show (check_folding); - gtk_box_pack_start (GTK_BOX (vbox12), check_folding, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (vbox17), check_folding, FALSE, FALSE, 0); gtk_tooltips_set_tip (tooltips, check_folding, _("Whether to enable folding the code"), NULL); gtk_button_set_focus_on_click (GTK_BUTTON (check_folding), FALSE); check_indicators = gtk_check_button_new_with_mnemonic (_("Use indicators to show compile errors")); gtk_widget_show (check_indicators); - gtk_box_pack_start (GTK_BOX (vbox12), check_indicators, FALSE, FALSE, 0); - gtk_tooltips_set_tip (tooltips, check_indicators, _("Whether to use indicators(a squiggly underline) to highlight the lines, where the compiler found a warning or an error."), NULL); + gtk_box_pack_start (GTK_BOX (vbox17), check_indicators, FALSE, FALSE, 0); + gtk_tooltips_set_tip (tooltips, check_indicators, _("Whether to use indicators (a squiggly underline) to highlight the lines where the compiler found a warning or an error."), NULL); gtk_button_set_focus_on_click (GTK_BUTTON (check_indicators), FALSE); - label148 = gtk_label_new (""); - gtk_widget_show (label148); - gtk_box_pack_start (GTK_BOX (vbox12), label148, FALSE, FALSE, 0); + label172 = gtk_label_new (_("<b>Features</b>")); + gtk_widget_show (label172); + gtk_frame_set_label_widget (GTK_FRAME (frame14), label172); + gtk_label_set_use_markup (GTK_LABEL (label172), TRUE); - label102 = gtk_label_new (_("<b>Miscellaneous</b>")); - gtk_widget_show (label102); - gtk_frame_set_label_widget (GTK_FRAME (frame5), label102); - gtk_label_set_use_markup (GTK_LABEL (label102), TRUE); - label95 = gtk_label_new (_("Editor")); gtk_widget_show (label95); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 3), label95); @@ -3231,12 +3260,17 @@ GLADE_HOOKUP_OBJECT (prefs_dialog, check_indent, "check_indent"); GLADE_HOOKUP_OBJECT (prefs_dialog, check_white_space, "check_white_space"); GLADE_HOOKUP_OBJECT (prefs_dialog, check_line_end, "check_line_end"); + GLADE_HOOKUP_OBJECT (prefs_dialog, label102, "label102"); + GLADE_HOOKUP_OBJECT (prefs_dialog, frame14, "frame14"); + GLADE_HOOKUP_OBJECT (prefs_dialog, alignment17, "alignment17"); + GLADE_HOOKUP_OBJECT (prefs_dialog, vbox17, "vbox17"); + GLADE_HOOKUP_OBJECT (prefs_dialog, check_auto_indent, "check_auto_indent"); + GLADE_HOOKUP_OBJECT (prefs_dialog, check_line_wrapping, "check_line_wrapping"); + GLADE_HOOKUP_OBJECT (prefs_dialog, check_auto_complete, "check_auto_complete"); GLADE_HOOKUP_OBJECT (prefs_dialog, check_xmltag, "check_xmltag"); - GLADE_HOOKUP_OBJECT (prefs_dialog, check_auto_complete, "check_auto_complete"); GLADE_HOOKUP_OBJECT (prefs_dialog, check_folding, "check_folding"); GLADE_HOOKUP_OBJECT (prefs_dialog, check_indicators, "check_indicators"); - GLADE_HOOKUP_OBJECT (prefs_dialog, label148, "label148"); - GLADE_HOOKUP_OBJECT (prefs_dialog, label102, "label102"); + GLADE_HOOKUP_OBJECT (prefs_dialog, label172, "label172"); GLADE_HOOKUP_OBJECT (prefs_dialog, label95, "label95"); GLADE_HOOKUP_OBJECT (prefs_dialog, vbox2, "vbox2"); GLADE_HOOKUP_OBJECT (prefs_dialog, label17, "label17"); Modified: trunk/src/keyfile.c =================================================================== --- trunk/src/keyfile.c 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/src/keyfile.c 2006-08-01 10:06:28 UTC (rev 654) @@ -247,21 +247,21 @@ app->sidebar_openfiles_visible = utils_get_setting_boolean(config, PACKAGE, "sidebar_openfiles_visible", TRUE); app->sidebar_visible = utils_get_setting_boolean(config, PACKAGE, "sidebar_visible", TRUE); app->msgwindow_visible = utils_get_setting_boolean(config, PACKAGE, "msgwindow_visible", TRUE); - app->pref_editor_folding = utils_get_setting_boolean(config, PACKAGE, "use_folding", TRUE); + app->pref_editor_line_breaking = utils_get_setting_boolean(config, PACKAGE, "line_breaking", FALSE); //default is off for better performance + app->pref_editor_use_auto_indention = utils_get_setting_boolean(config, PACKAGE, "use_auto_indention", TRUE); app->pref_editor_use_indicators = utils_get_setting_boolean(config, PACKAGE, "use_indicators", TRUE); - app->pref_editor_use_auto_indention = utils_get_setting_boolean(config, PACKAGE, "use_auto_indention", TRUE); app->pref_editor_show_indent_guide = utils_get_setting_boolean(config, PACKAGE, "show_indent_guide", FALSE); app->pref_editor_show_white_space = utils_get_setting_boolean(config, PACKAGE, "show_white_space", FALSE); + app->pref_editor_show_line_endings = utils_get_setting_boolean(config, PACKAGE, "show_line_endings", FALSE); + app->pref_editor_auto_close_xml_tags = utils_get_setting_boolean(config, PACKAGE, "auto_close_xml_tags", TRUE); + app->pref_editor_auto_complete_constructs = utils_get_setting_boolean(config, PACKAGE, "auto_complete_constructs", TRUE); + app->pref_editor_folding = utils_get_setting_boolean(config, PACKAGE, "use_folding", TRUE); app->show_markers_margin = utils_get_setting_boolean(config, PACKAGE, "show_markers_margin", TRUE); app->show_linenumber_margin = utils_get_setting_boolean(config, PACKAGE, "show_linenumber_margin", TRUE); - app->pref_editor_show_line_endings = utils_get_setting_boolean(config, PACKAGE, "show_line_endings", FALSE); - app->pref_editor_line_breaking = utils_get_setting_boolean(config, PACKAGE, "line_breaking", TRUE); app->fullscreen = utils_get_setting_boolean(config, PACKAGE, "fullscreen", FALSE); app->tab_order_ltr = utils_get_setting_boolean(config, PACKAGE, "tab_order_ltr", FALSE); app->brace_match_ltgt = utils_get_setting_boolean(config, PACKAGE, "brace_match_ltgt", FALSE); app->switch_msgwin_pages = utils_get_setting_boolean(config, PACKAGE, "switch_msgwin_pages", FALSE); - app->pref_editor_auto_close_xml_tags = utils_get_setting_boolean(config, PACKAGE, "auto_close_xml_tags", TRUE); - app->pref_editor_auto_complete_constructs = utils_get_setting_boolean(config, PACKAGE, "auto_complete_constructs", TRUE); app->editor_font = utils_get_setting_string(config, PACKAGE, "editor_font", GEANY_DEFAULT_FONT_EDITOR); app->tagbar_font = utils_get_setting_string(config, PACKAGE, "tagbar_font", GEANY_DEFAULT_FONT_SYMBOL_LIST); app->msgwin_font = utils_get_setting_string(config, PACKAGE, "msgwin_font", GEANY_DEFAULT_FONT_MSG_WINDOW); Modified: trunk/src/prefs.c =================================================================== --- trunk/src/prefs.c 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/src/prefs.c 2006-08-01 10:06:28 UTC (rev 654) @@ -215,12 +215,18 @@ widget = lookup_widget(app->prefs_dialog, "check_line_end"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), app->pref_editor_show_line_endings); - widget = lookup_widget(app->prefs_dialog, "check_xmltag"); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), app->pref_editor_auto_close_xml_tags); + widget = lookup_widget(app->prefs_dialog, "check_auto_indent"); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), app->pref_editor_use_auto_indention); + widget = lookup_widget(app->prefs_dialog, "check_line_wrapping"); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), app->pref_editor_line_breaking); + widget = lookup_widget(app->prefs_dialog, "check_auto_complete"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), app->pref_editor_auto_complete_constructs); + widget = lookup_widget(app->prefs_dialog, "check_xmltag"); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), app->pref_editor_auto_close_xml_tags); + widget = lookup_widget(app->prefs_dialog, "check_folding"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), app->pref_editor_folding); @@ -498,12 +504,18 @@ widget = lookup_widget(app->prefs_dialog, "check_line_end"); app->pref_editor_show_line_endings = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); - widget = lookup_widget(app->prefs_dialog, "check_xmltag"); - app->pref_editor_auto_close_xml_tags = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + widget = lookup_widget(app->prefs_dialog, "check_auto_indent"); + app->pref_editor_use_auto_indention = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + widget = lookup_widget(app->prefs_dialog, "check_line_wrapping"); + app->pref_editor_line_breaking = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + widget = lookup_widget(app->prefs_dialog, "check_auto_complete"); app->pref_editor_auto_complete_constructs = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + widget = lookup_widget(app->prefs_dialog, "check_xmltag"); + app->pref_editor_auto_close_xml_tags = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + widget = lookup_widget(app->prefs_dialog, "check_indicators"); app->pref_editor_use_indicators = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); Modified: trunk/src/utils.c =================================================================== --- trunk/src/utils.c 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/src/utils.c 2006-08-01 10:06:28 UTC (rev 654) @@ -2506,3 +2506,29 @@ } return FALSE; } + + +void utils_document_show_hide(gint idx) +{ + if (idx == -1 || ! doc_list[idx].is_valid) return; + app->ignore_callback = TRUE; + + gtk_check_menu_item_set_active( + GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "menu_line_breaking1")), + doc_list[idx].line_breaking); + gtk_check_menu_item_set_active( + GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "menu_use_auto_indention1")), + doc_list[idx].use_auto_indention); + gtk_check_menu_item_set_active( + GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "set_file_readonly1")), + doc_list[idx].readonly); + gtk_check_menu_item_set_active( + GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "menu_write_unicode_bom1")), + doc_list[idx].has_bom); + + gtk_widget_set_sensitive(lookup_widget(app->window, "menu_write_unicode_bom1"), + utils_is_unicode_charset(doc_list[idx].encoding)); + + app->ignore_callback = FALSE; + +} Modified: trunk/src/utils.h =================================================================== --- trunk/src/utils.h 2006-07-31 09:39:33 UTC (rev 653) +++ trunk/src/utils.h 2006-08-01 10:06:28 UTC (rev 654) @@ -225,4 +225,6 @@ gboolean utils_is_unicode_charset(const gchar *string); +void utils_document_show_hide(gint idx); + #endif This was sent by the
SourceForge.net
collaborative development platform, the world's largest Open Source development site.
1
0
0
0
← Newer
1
...
10
11
12
13
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
Results per page:
10
25
50
100
200