Hi!
I'm Michael from Vienna and am using Geany for several month (used SciTE before).
Geany has a lot of features I like. One of the rare nuisances is the "Find"-dialog-box that rejects to set "Case sensitive" by default. There is an option in the Geany configuration file for this but it is ignored by Geany.
Today I took a look into the source code and found the reason why. The default is loaded, but when the checkbox is created there is line of code missing to actually *use* the default settings.
I'm using version 0.19 of Geany on Gentoo-Linux. Here is my patch:
--- src.orig/search.c 2010-05-11 12:10:31.000000000 +0000 +++ src/search.c 2010-11-27 14:36:06.189515685 +0000 @@ -273,6 +273,7 @@ g_object_set_data_full(G_OBJECT(dialog), "check_case", g_object_ref(checkbox1), (GDestroyNotify)g_object_unref); gtk_button_set_focus_on_click(GTK_BUTTON(checkbox1), FALSE); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbox1), settings.fif_case_sensitive); checkbox2 = gtk_check_button_new_with_mnemonic(_("Match only a _whole word")); g_object_set_data_full(G_OBJECT(dialog), "check_word",
Greetings, Michael
On Sat, 27 Nov 2010 18:25:47 +0100 "Dipl.-Ing. Michael Niederle" mniederle@gmx.at wrote:
Hi!
Hi.
Geany has a lot of features I like. One of the rare nuisances is the "Find"-dialog-box that rejects to set "Case sensitive" by default. There is an option in the Geany configuration file for this but it is ignored by Geany.
The "fif_" options are for the Find in Files dialog, so the patch is not OK.
However, All, why are the FiF options saved, and the standard Find options are not? Doesn't make sense, and since I use Geany mostly for case-sensitive programming languages, the default case sensitive = off is really a nuisance.
On 28 November 2010 22:18, Dimitar Zhekov dimitar.zhekov@gmail.com wrote:
On Sat, 27 Nov 2010 18:25:47 +0100 "Dipl.-Ing. Michael Niederle" mniederle@gmx.at wrote:
Hi!
Hi.
Geany has a lot of features I like. One of the rare nuisances is the "Find"-dialog-box that rejects to set "Case sensitive" by default. There is an option in the Geany configuration file for this but it is ignored by Geany.
The "fif_" options are for the Find in Files dialog, so the patch is not OK.
However, All, why are the FiF options saved, and the standard Find options are not? Doesn't make sense, and since I use Geany mostly for case-sensitive programming languages, the default case sensitive = off is really a nuisance.
Agree about the case sensitive.
I don't see any point in saving settings for find, in fact I think its better if they always default to a known point. Allowing the user to configure the known point might be useful though, so case-sensitive vs case insensitive default is user configurable.
AFAIU fif is saved because of the files filter, you don't want to have to keep re-typing it.
Cheers Lex
-- E-gards: Jimmy _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel