Revision: 2160 http://geany.svn.sourceforge.net/geany/?rev=2160&view=rev Author: eht16 Date: 2008-01-11 05:17:00 -0800 (Fri, 11 Jan 2008)
Log Message: ----------- Fix broken Rename functionality (closes #1868621).
Modified Paths: -------------- trunk/ChangeLog trunk/src/dialogs.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-01-11 13:07:57 UTC (rev 2159) +++ trunk/ChangeLog 2008-01-11 13:17:00 UTC (rev 2160) @@ -1,3 +1,8 @@ +2008-01-11 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/dialogs.c: Fix broken Rename functionality (closes #1868621). + + 2008-01-10 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/keybindings.c:
Modified: trunk/src/dialogs.c =================================================================== --- trunk/src/dialogs.c 2008-01-11 13:07:57 UTC (rev 2159) +++ trunk/src/dialogs.c 2008-01-11 13:17:00 UTC (rev 2160) @@ -57,6 +57,11 @@ #include "build.h"
+enum +{ + GEANY_RESPONSE_RENAME +}; + #if ! GEANY_USE_WIN32_DIALOG static GtkWidget *add_file_open_extra_widget(); #endif @@ -382,7 +387,7 @@
switch (response) { - case GTK_RESPONSE_APPLY: + case GEANY_RESPONSE_RENAME: rename_file = TRUE; // fall through
@@ -463,7 +468,7 @@ _("Save the file and rename it."), NULL); gtk_widget_show(rename_btn); gtk_dialog_add_action_widget(GTK_DIALOG(ui_widgets.save_filesel), - rename_btn, GTK_RESPONSE_APPLY); + rename_btn, GEANY_RESPONSE_RENAME);
gtk_dialog_add_buttons(GTK_DIALOG(ui_widgets.save_filesel), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.